Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlexCancelOrderEvent ¶
type FlexCancelOrderEvent struct {
Owner common.Address `json:"owner"`
OrderHash common.Hash `json:"order_hash"`
CutoffTime int64 `json:"cutoff_time"`
TokenS common.Address `json:"token_s"`
TokenB common.Address `json:"token_b"`
Type FlexCancelType `json:"type"`
}
func (FlexCancelOrderEvent) MarshalJSON ¶
func (f FlexCancelOrderEvent) MarshalJSON() ([]byte, error)
MarshalJSON marshals as JSON.
func (*FlexCancelOrderEvent) UnmarshalJSON ¶
func (f *FlexCancelOrderEvent) UnmarshalJSON(input []byte) error
UnmarshalJSON unmarshals from JSON.
type FlexCancelType ¶
type FlexCancelType uint8
const ( FLEX_CANCEL_BY_HASH FlexCancelType = 1 FLEX_CANCEL_BY_OWNER FlexCancelType = 2 FLEX_CANCEL_BY_TIME FlexCancelType = 3 FLEX_CANCEL_BY_MARKET FlexCancelType = 4 )
type OrderTx ¶
type OrderTx struct {
Owner common.Address `json:"owner"` // tx_from
TxHash common.Hash `json:"tx_hash"`
OrderHash common.Hash `json:"order_hash"`
OrderStatus types.OrderStatus `json:"order_status"`
Nonce int64 `json:"nonce"`
}
func (OrderTx) MarshalJSON ¶
MarshalJSON marshals as JSON.
func (*OrderTx) UnmarshalJSON ¶
UnmarshalJSON unmarshals from JSON.
Click to show internal directories.
Click to hide internal directories.