types

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: Apache-2.0 Imports: 3 Imported by: 6

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

func (o OrderTx) MarshalJSON() ([]byte, error)

MarshalJSON marshals as JSON.

func (*OrderTx) UnmarshalJSON

func (o *OrderTx) UnmarshalJSON(input []byte) error

UnmarshalJSON unmarshals from JSON.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL