Versions in this module Expand all Collapse all v1 v1.1.15 Jan 14, 2021 Changes in this version + const SubscriptionsTokenIndexer + func CreateAssociations(database *db.Instance, addressAssetsMap map[string][]string) error + func RunTokenIndexerSubscribe(database *db.Instance, apis map[uint]blockatlas.TokensAPI, ...) error + type ConsumerIndexer struct + Database *db.Instance + Delivery func(*db.Instance, map[uint]blockatlas.TokensAPI, amqp.Delivery) error + TokensAPIs map[uint]blockatlas.TokensAPI + func (c ConsumerIndexer) Callback(msg amqp.Delivery) error + type GetTokensByAddressRequest struct + AddressesByCoin map[string][]string + From uint + type GetTokensByAddressResponse []string type Instance + func (i Instance) GetTokensByAddress(r GetTokensByAddressRequest) (GetTokensByAddressResponse, error) v1.1.14 Nov 24, 2020 Changes in this version + const TokenIndexer + func GetAssetsFromTransactions(txs []blockatlas.Tx) []models.Asset + func RunTokenIndexer(database *db.Instance, delivery amqp.Delivery) + type Asset struct + Asset string + Decimals uint + Name string + Symbol string + Type string + type Instance struct + func Init(database *db.Instance) Instance + func (i Instance) HandleNewTokensRequest(r Request, ctx context.Context) (Response, error) + type Request struct + Coin int + From int64 + type Response struct + Assets []Asset