abi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInputsParser

func GetInputsParser(ABI *core.SmartContract_ABI, method string) (eABI.Arguments, error)

GetInputsParser returns input method parser arguments from ABI

func GetPaddedParam

func GetPaddedParam(param []Param) ([]byte, error)

GetPaddedParam from struct

func GetParser

func GetParser(ABI *core.SmartContract_ABI, method string) (eABI.Arguments, error)

GetParser return output method parser arguments from ABI

func Pack

func Pack(method string, param []Param) ([]byte, error)

Pack data into bytes

func Signature

func Signature(method string) []byte

Signature of a method

Types

type Param

type Param map[string]interface{}

Param list

func LoadFromJSON

func LoadFromJSON(jString string) ([]Param, error)

LoadFromJSON string into ABI data

Jump to

Keyboard shortcuts

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