Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ModuleName The name that will be used throughout the module ModuleName = "order" // StoreKey Top level store key where all module items will be stored StoreKey = ModuleName // RouterKey Top level router key RouterKey = ModuleName // DefaultParamspace default name for parameter store DefaultParamspace = ModuleName )
View Source
const MaxTimeInForce = 600
Variables ¶
View Source
var ModuleCdc = codec.New()
Functions ¶
func RegisterCodec ¶
Types ¶
type ListQueryResult ¶
type ListQueryResult struct {
Orders []Order `json:"orders"`
}
func (ListQueryResult) String ¶
func (l ListQueryResult) String() string
type MsgCancel ¶
type MsgCancel struct { Owner sdk.AccAddress `json:"owner" yaml:"owner"` OrderID store.EntityID `json:"order_id" yaml:"order_id"` }
func NewMsgCancel ¶
func NewMsgCancel(owner sdk.AccAddress, orderID store.EntityID) MsgCancel
func (MsgCancel) GetSignBytes ¶
func (MsgCancel) GetSigners ¶
func (msg MsgCancel) GetSigners() []sdk.AccAddress
func (MsgCancel) ValidateBasic ¶
type MsgPost ¶
type MsgPost struct { Owner sdk.AccAddress `json:"owner" yaml:"owner"` MarketID store.EntityID `json:"market_id" yaml:"market_id"` Direction matcheng.Direction `json:"direction" yaml:"direction"` Price sdk.Uint `json:"price" yaml:"price"` Quantity sdk.Uint `json:"quantity" yaml:"quantity"` TimeInForce uint16 `json:"time_in_force" yaml:"time_in_force"` }
func NewMsgPost ¶
func (MsgPost) GetSignBytes ¶
func (MsgPost) GetSigners ¶
func (msg MsgPost) GetSigners() []sdk.AccAddress
func (MsgPost) ValidateBasic ¶
type Order ¶
type Order struct { ID store.EntityID `json:"id"` Owner sdk.AccAddress `json:"owner"` MarketID store.EntityID `json:"market"` Direction matcheng.Direction `json:"direction"` Price sdk.Uint `json:"price"` Quantity sdk.Uint `json:"quantity"` TimeInForceBlocks uint16 `json:"time_in_force_blocks"` CreatedBlock int64 `json:"created_block"` }
Click to show internal directories.
Click to hide internal directories.