dex

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MPL-2.0 Imports: 18 Imported by: 0

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