Documentation ¶
Index ¶
- func NormalizeToken(srcToken *Balance, tokens *TokenPage) (t blockatlas.Token, ok bool)
- func NormalizeTokens(srcBalance []Balance, tokens *TokenPage) (tokenPage []blockatlas.Token)
- func NormalizeTx(srcTx Tx, token, address string) (blockatlas.TxPage, bool)
- func NormalizeTxs(srcTxs []Tx, token, adress string) (txs []blockatlas.Tx)
- func TokenSymbol(asset string) string
- type Account
- type Balance
- type BlockDescriptor
- type BlockList
- type Client
- type Data
- type DexClient
- type Error
- type OrderData
- type Platform
- func (p *Platform) Coin() coin.Coin
- func (p *Platform) CurrentBlockNumber() (int64, error)
- func (p *Platform) GetBlockByNumber(num int64) (*blockatlas.Block, error)
- func (p *Platform) GetTokenListByAddress(address string) (blockatlas.TokenPage, error)
- func (p *Platform) GetTokenTxsByAddress(address string, token string) (blockatlas.TxPage, error)
- func (p *Platform) GetTxsByAddress(address string) (blockatlas.TxPage, error)
- type SubTx
- type SubTxs
- type SubTxsDto
- type Token
- type TokenPage
- type Tx
- type TxPage
- type TxType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeToken ¶ added in v1.0.37
func NormalizeToken(srcToken *Balance, tokens *TokenPage) (t blockatlas.Token, ok bool)
NormalizeToken converts a Binance token into the generic model
func NormalizeTokens ¶ added in v1.0.37
func NormalizeTokens(srcBalance []Balance, tokens *TokenPage) (tokenPage []blockatlas.Token)
NormalizeTxs converts multiple Binance tokens
func NormalizeTx ¶ added in v1.0.0
func NormalizeTx(srcTx Tx, token, address string) (blockatlas.TxPage, bool)
NormalizeTx converts a Binance transaction into the generic model
func NormalizeTxs ¶ added in v1.0.0
func NormalizeTxs(srcTxs []Tx, token, adress string) (txs []blockatlas.Tx)
NormalizeTxs converts multiple Binance transactions
func TokenSymbol ¶ added in v1.0.37
Types ¶
type BlockDescriptor ¶ added in v1.0.0
type BlockList ¶ added in v1.0.0
type BlockList struct {
BlockArray []BlockDescriptor `json:"blockArray"`
}
type Client ¶ added in v1.0.0
type Client struct {
blockatlas.Request
}
func (*Client) GetBlockByNumber ¶ added in v1.0.0
func (*Client) GetBlockList ¶ added in v1.0.0
type DexClient ¶ added in v1.0.37
type DexClient struct {
blockatlas.Request
}
func (*DexClient) GetAccountMetadata ¶ added in v1.0.37
type OrderData ¶ added in v1.0.37
type OrderData struct { Symbol string `json:"symbol"` Base string `json:"-"` Quote string `json:"-"` Quantity interface{} `json:"quantity"` Price interface{} `json:"price"` }
func (OrderData) GetQuantity ¶ added in v1.0.37
type Platform ¶ added in v1.0.0
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) CurrentBlockNumber ¶ added in v1.0.0
func (*Platform) GetBlockByNumber ¶ added in v1.0.0
func (p *Platform) GetBlockByNumber(num int64) (*blockatlas.Block, error)
func (*Platform) GetTokenListByAddress ¶ added in v1.0.37
func (p *Platform) GetTokenListByAddress(address string) (blockatlas.TokenPage, error)
func (*Platform) GetTokenTxsByAddress ¶ added in v1.0.37
func (*Platform) GetTxsByAddress ¶ added in v1.0.37
func (p *Platform) GetTxsByAddress(address string) (blockatlas.TxPage, error)
type Tx ¶ added in v1.0.0
type Tx struct { BlockHeight uint64 `json:"blockHeight"` Type TxType `json:"txType"` Code int `json:"code"` ConfirmBlocks int `json:"confirmBlocks"` Data string `json:"data"` FromAddr string `json:"fromAddr"` OrderID string `json:"orderId"` Timestamp int64 `json:"timeStamp"` ToAddr string `json:"toAddr"` Age int64 `json:"txAge"` Asset string `json:"txAsset"` Fee json.Number `json:"txFee"` Hash string `json:"txHash"` Value json.Number `json:"value"` Memo string `json:"memo"` HasChildren int `json:"hasChildren"` SubTxsDto SubTxsDto `json:"subTxsDto"` }
Click to show internal directories.
Click to hide internal directories.