icon

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventSignature             = "Message(str,int,bytes)"
	MonitorBlockMaxConcurrency = 1
)
View Source
const (
	ADD_TO_BLACKLIST      = 0
	REMOVE_FROM_BLACKLIST = 1
	BLACKLIST_MESSAGE     = 3
	CHANGE_TOKEN_LIMIT    = 4
	FEE_GATHERING         = "FeeGathering"
)
View Source
const (
	DefaultSendTransactionRetryInterval        = 3 * time.Second         //3sec
	DefaultGetTransactionResultPollingInterval = 1500 * time.Millisecond //1.5sec
)

Variables

This section is empty.

Functions

func GetWalletFromPrivKey

func GetWalletFromPrivKey(privKey string) (module.Wallet, error)

func NewApi

func NewApi(l log.Logger, cfg *chain.Config) (chain.ChainAPI, error)

func NewFinder

func NewFinder(l log.Logger, nameToAddrMap map[chain.ContractName]string) *finder

func NewParser

func NewParser(nameToAddr map[chain.ContractName]string) (*parser, error)

func SignTransactionParam

func SignTransactionParam(wallet module.Wallet, param *types.TransactionParam) error

Types

type AssetTx

type AssetTx struct {
	Name  string
	Value []byte
}

type AssetTxDetails

type AssetTxDetails struct {
	Name  string
	Value []byte
	Fee   []byte
}

type BMCMessage

type BMCMessage struct {
	Src     string //  an address of BMC (i.e. btp://1234.PARA/0x1234)
	Dst     string //  an address of destination BMC
	Svc     string //  service name of BSH
	Sn      []byte //  sequence number of BMC
	Message []byte //  serialized Service Message from BSH
}

type ServiceBlacklistMessagePayload

type ServiceBlacklistMessagePayload struct {
	RequestType []byte
	Addresses   []string
	Net         string
}

type ServiceFeeGatheringRequestPayload

type ServiceFeeGatheringRequestPayload struct {
	FeeAggregator string
	Services      []string
}

type ServiceMessage

type ServiceMessage struct {
	ServiceType []byte
	Payload     []byte
}

type ServiceTokenlimitMessagePayload

type ServiceTokenlimitMessagePayload struct {
	CoinNames   []string
	TokenLimits [][]byte
	Net         string
}

type TxnEventLog

type TxnEventLog struct {
	Addr    types.Address `json:"scoreAddress"`
	Indexed []string      `json:"indexed"`
	Data    []string      `json:"data"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL