dex

package
v0.10.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: MPL-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultCodespace = types.DefaultCodespace
View Source
const DefaultDepthLevels = 100 // matches UI requirement
View Source
const DelayedDaysForDelist = 3
View Source
const DexAbciQueryPrefix = "dex"
View Source
const DexMiniAbciQueryPrefix = "dex-mini"
View Source
const MaxDepthLevels = 1000 // matches UI requirement

Variables

View Source
var DefaultGenesis = Genesis{}
View Source
var NewDexKeeper = order.NewDexKeeper
View Source
var NewTradingPairMapper = store.NewTradingPairMapper

Functions

func EndBreatheBlock

func EndBreatheBlock(ctx sdk.Context, dexKeeper *DexKeeper, govKeeper gov.Keeper, height int64, blockTime time.Time)

EndBreatheBlock processes the breathe block lifecycle event.

func InitPlugin

func InitPlugin(
	appp app.ChainApp, dexKeeper *DexKeeper, tokenMapper tokens.Mapper, govKeeper gov.Keeper,
)

InitPlugin initializes the dex plugin.

func RegisterWire

func RegisterWire(cdc *wire.Codec)

Register concrete types on wire codec

func Routes

func Routes(dexKeeper *DexKeeper, tokenMapper tokens.Mapper, govKeeper gov.Keeper) map[string]sdk.Handler

Routes exports dex message routes

Types

type DexKeeper

type DexKeeper = order.DexKeeper

type Genesis

type Genesis struct {
}

TODO: maybe we need other things to put into genesis besides the TradingGenesis

type TradingPairMapper

type TradingPairMapper = store.TradingPairMapper

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL