Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModuleName = "order" RouterKey = ModuleName StoreKey = 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 OrderID store.EntityID }
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 MarketID store.EntityID Direction matcheng.Direction Price sdk.Uint Quantity sdk.Uint TimeInForce uint16 }
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.