Versions in this module Expand all Collapse all v1 v1.5.0 Jun 21, 2018 Changes in this version + const SYMBOL_ETH + const SYMBOL_LRC + const SYMBOL_WETH + func TypeStr(typ TxType) string + type ApproveContent struct + Amount string + Owner string + Spender string + type CancelContent struct + Amount string + OrderHash string + type CutoffContent struct + CutoffTimeStamp int64 + Owner string + type CutoffPairContent struct + CutoffTimeStamp int64 + Owner string + Token1 string + Token2 string + type OrderFilledContent struct + AmountB string + AmountS string + FillIndex string + LrcFee string + LrcReward string + Market string + OrderHash string + Owner string + RingHash string + RingIndex string + SplitB string + SplitS string + TokenB string + TokenS string + type TransactionContent struct + Fill string + Market string + OrderHash string + type TransactionEntity struct + BlockNumber int64 + BlockTime int64 + Content string + From common.Address + GasLimit *big.Int + GasPrice *big.Int + GasUsed *big.Int + Hash common.Hash + LogIndex int64 + Nonce *big.Int + Protocol common.Address + Status types.TxStatus + To common.Address + Value *big.Int + func (tx *TransactionEntity) Compare(src *TransactionEntity) bool + func (tx *TransactionEntity) FromApproveEvent(src *types.ApprovalEvent) error + func (tx *TransactionEntity) FromCancelEvent(src *types.OrderCancelledEvent) error + func (tx *TransactionEntity) FromCutoffEvent(src *types.CutoffEvent) error + func (tx *TransactionEntity) FromCutoffPairEvent(src *types.CutoffPairEvent) error + func (tx *TransactionEntity) FromEthTransferEvent(src *types.EthTransferEvent) error + func (tx *TransactionEntity) FromOrderFilledEvent(src *types.OrderFilledEvent) error + func (tx *TransactionEntity) FromTransferEvent(src *types.TransferEvent) error + func (tx *TransactionEntity) FromUnsupportedContractEvent(src *types.UnsupportedContractEvent) error + func (tx *TransactionEntity) FromWethDepositEvent(src *types.WethDepositEvent) error + func (tx *TransactionEntity) FromWethWithdrawalEvent(src *types.WethWithdrawalEvent) error + type TransactionJsonResult struct + BlockNumber int64 + Content TransactionContent + CreateTime int64 + From common.Address + GasLimit string + GasPrice string + GasUsed string + LogIndex int64 + Nonce string + Owner common.Address + Protocol common.Address + Status string + Symbol string + To common.Address + TxHash common.Hash + Type string + UpdateTime int64 + Value string + func NewResult(tx *TransactionView) TransactionJsonResult + func (r *TransactionJsonResult) FromApproveEntity(entity *TransactionEntity) error + func (r *TransactionJsonResult) FromCancelEntity(entity *TransactionEntity) error + func (r *TransactionJsonResult) FromCutoffEntity(entity *TransactionEntity) error + func (r *TransactionJsonResult) FromCutoffPairEntity(entity *TransactionEntity) error + func (r *TransactionJsonResult) FromFillEntity(entity *TransactionEntity) error + func (r *TransactionJsonResult) FromOtherEntity(entity *TransactionEntity) error + func (r *TransactionJsonResult) FromTransferEntity(entity *TransactionEntity) error + func (r *TransactionJsonResult) FromWethDepositEntity(entity *TransactionEntity) error + func (r *TransactionJsonResult) FromWethWithdrawalEntity(entity *TransactionEntity) error + type TransactionView struct + Amount *big.Int + BlockNumber int64 + CreateTime int64 + LogIndex int64 + Nonce *big.Int + Owner common.Address + Status types.TxStatus + Symbol string + TxHash common.Hash + Type TxType + UpdateTime int64 + func ApproveView(src *types.ApprovalEvent) (TransactionView, error) + func CancelView(src *types.OrderCancelledEvent) (TransactionView, error) + func CutoffPairView(src *types.CutoffPairEvent) (TransactionView, error) + func CutoffView(src *types.CutoffEvent) (TransactionView, error) + func EthTransferView(src *types.EthTransferEvent) ([]TransactionView, error) + func OrderFilledView(src *types.OrderFilledEvent) ([]TransactionView, error) + func TransferView(src *types.TransferEvent) ([]TransactionView, error) + func UnsupportedContractView(src *types.UnsupportedContractEvent) ([]TransactionView, error) + func WethDepositView(src *types.WethDepositEvent) ([]TransactionView, error) + func WethWithdrawalView(src *types.WethWithdrawalEvent) ([]TransactionView, error) + type TransferContent struct + Amount string + Receiver string + Sender string + type TxType uint8 + const TX_TYPE_APPROVE + const TX_TYPE_BUY + const TX_TYPE_CANCEL_ORDER + const TX_TYPE_CONVERT_INCOME + const TX_TYPE_CONVERT_OUTCOME + const TX_TYPE_CUTOFF + const TX_TYPE_CUTOFF_PAIR + const TX_TYPE_LRC_FEE + const TX_TYPE_LRC_REWARD + const TX_TYPE_RECEIVE + const TX_TYPE_SELL + const TX_TYPE_SEND + const TX_TYPE_UNKNOWN + const TX_TYPE_UNSUPPORTED_CONTRACT + func StrToTxType(typ string) TxType + type WethDepositContent struct + Amount string + Dst string + type WethWithdrawalContent struct + Amount string + Src string