Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModuleName = "order" DefaultNewOrderMsgGasUnit = 40000 DefaultCancelOrderMsgGasUnit = 30000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenesisState ¶
type GenesisState struct { Params Params `json:"params"` OpenOrders []*v0_10.Order `json:"open_orders"` }
GenesisState - all order state that must be provided at genesis
func Migrate ¶
func Migrate(oldGenState v0_10.GenesisState) GenesisState
type Params ¶
type Params struct { OrderExpireBlocks int64 `json:"order_expire_blocks"` MaxDealsPerBlock int64 `json:"max_deals_per_block"` FeePerBlock sdk.SysCoin `json:"fee_per_block"` TradeFeeRate sdk.Dec `json:"trade_fee_rate"` NewOrderMsgGasUnit uint64 `json:"new_order_msg_gas_unit"` CancelOrderMsgGasUnit uint64 `json:"cancel_order_msg_gas_unit"` }
nolint : order parameters
Click to show internal directories.
Click to hide internal directories.