erc20

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ABIERC20 = `` /* 5459-byte string literal not displayed */
View Source
const ABIERC20ForTransferWithData = `` /* 5195-byte string literal not displayed */

Variables

This section is empty.

Functions

func PackPayloadForErc20

func PackPayloadForErc20(function string, params []byte) (string, error)

func UnpackReturnsForErc20

func UnpackReturnsForErc20(function string, returns []byte) (string, error)

Types

type CallErc20In

type CallErc20In struct {
	Address   string `json:"address,omitempty"`
	Owner     string `json:"owner,omitempty"`
	Spender   string `json:"spender,omitempty"`
	From      string `json:"from,omitempty"`
	To        string `json:"to,omitempty"`
	Recipient string `json:"recipient,omitempty"`

	Amount string `json:"amount,omitempty"`
	Memo   string `json:"data,omitempty"`
}

for call contract

type UnpackErc20

type UnpackErc20 struct {
	Function string
	CallErc20In
}

for call contract

func UnpackPayloadForErc20

func UnpackPayloadForErc20(payload string) (*UnpackErc20, error)

Jump to

Keyboard shortcuts

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