abicoder

package
v3.0.0-...-e8b7a4c Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package abicoder is simple tool to pack datas like solidity abi.

Index

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

func PackDataWithFuncHash(funcHash []byte, args ...interface{}) []byte

PackDataWithFuncHash pack data with func hash

func ParseAddressSliceAsAddressesInData

func ParseAddressSliceAsAddressesInData(data []byte, pos uint64) ([]common.Address, error)

ParseAddressSliceAsAddressesInData parse

func ParseAddressSliceInData

func ParseAddressSliceInData(data []byte, pos uint64) ([]string, error)

ParseAddressSliceInData parse

func ParseBytesInData

func ParseBytesInData(data []byte, pos uint64) (hexutil.Bytes, error)

ParseBytesInData parse

func ParseBytesSliceInData

func ParseBytesSliceInData(data []byte, pos uint64) ([]hexutil.Bytes, error)

ParseBytesSliceInData parse

func ParseNumberSliceAsBigIntsInData

func ParseNumberSliceAsBigIntsInData(data []byte, pos uint64) ([]*big.Int, error)

ParseNumberSliceAsBigIntsInData parse

func ParseNumberSliceInData

func ParseNumberSliceInData(data []byte, pos uint64) ([]string, error)

ParseNumberSliceInData parse

func ParseStringInData

func ParseStringInData(data []byte, pos uint64) (string, error)

ParseStringInData parse

func ParseStringSliceInData

func ParseStringSliceInData(data []byte, pos uint64) ([]string, error)

ParseStringSliceInData parse

Types

This section is empty.

Jump to

Keyboard shortcuts

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