Documentation ¶
Index ¶
- Constants
- 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
- type BMCMessage
- type BlockNotification
- type CoinMetadata
- type Event
- type Extras
- type Metadata
- type ServiceBlacklistMessagePayload
- type ServiceFeeGatheringRequestPayload
- type ServiceMessage
- type ServiceTokenlimitMessagePayload
Constants ¶
View Source
const ( ADD_TO_BLACKLIST = 0 REMOVE_FROM_BLACKLIST = 1 BLACKLIST_MESSAGE = 3 CHANGE_TOKEN_LIMIT = 4 FEE_GATHERING = "FeeGathering" )
Variables ¶
This section is empty.
Functions ¶
func GetWalletFromPrivKey ¶
func GetWalletFromPrivKey(privKey string) (*wallet.NearWallet, error)
Types ¶
type BMCMessage ¶
type BlockNotification ¶
type BlockNotification struct { *types.BlockNotification // contains filtered or unexported fields }
func NewBlockNotification ¶
func NewBlockNotification(offset int64) BlockNotification
func (*BlockNotification) AddTransactions ¶
func (bn *BlockNotification) AddTransactions(transactions []types.Transaction)
type CoinMetadata ¶
type Event ¶
type Event struct { Name chain.EventLogType `json:"event"` Code types.BigInt `json:"code"` SenderAddress types.AccountId `json:"sender_address,omitempty"` SerialNumber types.BigInt `json:"serial_number"` ReceiverAddress chain.BTPAddress `json:"receiver_address,omitempty"` Assets []AssetDetails `json:"assets,omitempty"` TokenName string `json:"token_name,omitempty"` Message string `json:"message,omitempty"` TokenAccount types.AccountId `json:"token_account,omitempty"` }
type Metadata ¶
type Metadata struct {
CoinMetadata CoinMetadata `json:"metadata,omitempty"`
}
type ServiceMessage ¶
Click to show internal directories.
Click to hide internal directories.