Versions in this module Expand all Collapse all v0 v0.0.11 Oct 27, 2022 Changes in this version + const ADD_TO_BLACKLIST + const BLACKLIST_MESSAGE + const CHANGE_TOKEN_LIMIT + const FEE_GATHERING + const REMOVE_FROM_BLACKLIST + func GetWalletFromPrivKey(privKey string) (*wallet.NearWallet, error) + func NewApi(l log.Logger, cfg *chain.Config) (chain.ChainAPI, error) + func NewClient(url string, logger log.Logger) (*client, error) + func NewFinder(l log.Logger, nameToAddrMap map[chain.ContractName]string) *finder + func NewParser(nameToAddr map[chain.ContractName]string) (*parser, error) + type AssetDetails struct + Fee types.BigInt + Name string + Value types.BigInt + type BMCMessage struct + Dst string + Message []byte + Sn []byte + Src string + Svc string + type BlockNotification struct + func NewBlockNotification(offset int64) BlockNotification + func (bn *BlockNotification) AddTransactions(transactions []types.Transaction) + type CoinMetadata struct + Extras Extras + FeeNumerator string + FixedFee string + Name string + Network string + Symbol string + Uri string + type Event struct + Assets []AssetDetails + Code types.BigInt + Message string + Name chain.EventLogType + ReceiverAddress chain.BTPAddress + SenderAddress types.AccountId + SerialNumber types.BigInt + TokenAccount types.AccountId + TokenName string + type Extras struct + Decimals int64 + Icon interface{} + ReferenceHash interface{} + Refrence interface{} + Spec string + type Metadata struct + CoinMetadata CoinMetadata + type ServiceBlacklistMessagePayload struct + Addresses []string + Net string + RequestType []byte + type ServiceFeeGatheringRequestPayload struct + FeeAggregator string + Services []string + type ServiceMessage struct + Payload []byte + ServiceType []byte + type ServiceTokenlimitMessagePayload struct + CoinNames []string + Net string + TokenLimits [][]byte