Documentation ¶
Overview ¶
Package abicoder is simple tool to pack datas like solidity abi.
Index ¶
- Variables
- func PackData(args ...interface{}) []byte
- func PackDataWithFuncHash(funcHash []byte, args ...interface{}) []byte
- func ParseAddressSliceAsAddressesInData(data []byte, pos uint64) ([]common.Address, error)
- func ParseAddressSliceInData(data []byte, pos uint64) ([]string, error)
- func ParseBytesInData(data []byte, pos uint64) (hexutil.Bytes, error)
- func ParseBytesSliceInData(data []byte, pos uint64) ([]hexutil.Bytes, error)
- func ParseNumberSliceAsBigIntsInData(data []byte, pos uint64) ([]*big.Int, error)
- func ParseNumberSliceInData(data []byte, pos uint64) ([]string, error)
- func ParseStringInData(data []byte, pos uint64) (string, error)
- func ParseStringSliceInData(data []byte, pos uint64) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrParseDataError = errors.New("parse data error")
)
parse errors
Functions ¶
func PackData ¶
func PackData(args ...interface{}) []byte
PackData pack data nolint:gocyclo,makezero // allow big switch
func PackDataWithFuncHash ¶
PackDataWithFuncHash pack data with func hash
func ParseAddressSliceAsAddressesInData ¶
ParseAddressSliceAsAddressesInData parse
func ParseAddressSliceInData ¶
ParseAddressSliceInData parse
func ParseBytesInData ¶
ParseBytesInData parse
func ParseBytesSliceInData ¶
ParseBytesSliceInData parse
func ParseNumberSliceAsBigIntsInData ¶
ParseNumberSliceAsBigIntsInData parse
func ParseNumberSliceInData ¶
ParseNumberSliceInData parse
func ParseStringInData ¶
ParseStringInData parse
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.