transfer

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetParent

func SetParent(parent *cobra.Command)

SetParent sets parent command

Types

type BatchSummary added in v1.0.4

type BatchSummary struct {
	// contains filtered or unexported fields
}

func (BatchSummary) GetTotalFailCount added in v1.0.4

func (f BatchSummary) GetTotalFailCount() int

func (*BatchSummary) Merge added in v1.0.4

func (f *BatchSummary) Merge(other BatchSummary)

func (*BatchSummary) String added in v1.0.4

func (f *BatchSummary) String() string

type Enviorment added in v1.0.4

type Enviorment struct {
	// contains filtered or unexported fields
}

func NewEnviorment added in v1.0.4

func NewEnviorment() *Enviorment

func (*Enviorment) AddrDisplay added in v1.0.4

func (env *Enviorment) AddrDisplay(addr *cfxaddress.Address) string

func (*Enviorment) DecodeTx added in v1.0.4

func (env *Enviorment) DecodeTx(rawTxBytes []byte) *types.UnsignedTransaction

func (*Enviorment) GetFromAddressOfSpace added in v1.0.4

func (env *Enviorment) GetFromAddressOfSpace() *cfxaddress.Address

GetFromAddressOfSpace returns cfxaddress of env.from accroding to space

func (*Enviorment) GetTokenListUrl added in v1.0.4

func (env *Enviorment) GetTokenListUrl() string

func (*Enviorment) SignTx added in v1.0.4

func (env *Enviorment) SignTx(tx *types.UnsignedTransaction) ([]byte, error)

type ProcessState added in v1.0.4

type ProcessState struct {
	ChainID           uint32
	Sender            *cfxaddress.Address
	ReceiverListHash  string
	TokenSymbol       string
	TokenAddress      *cfxaddress.Address
	SendingStartIdx   int
	SendingBatchElems []clientRpc.BatchElem
}

func (*ProcessState) UnmarshalJSON added in v1.0.4

func (s *ProcessState) UnmarshalJSON(data []byte) error

type Receiver

type Receiver struct {
	Address     string
	AmountInCfx decimal.Decimal
}

Receiver represents transfer receiver infomation

type TokenList added in v1.0.4

type TokenList struct {
	List []struct {
		Address string `json:"contract"`
		Symbol  string `json:"symbol"`
	} `json:"list"`
}

type TokensResp added in v1.0.4

type TokensResp struct {
	// Total int `json:"total"`
	Data   TokenList `json:"data"`
	Result TokenList `json:"result"`
}

Jump to

Keyboard shortcuts

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