abis

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const BridgeJSONABI = `` /* 12647-byte string literal not displayed */
View Source
const StressTestJSONABI = `` /* 870-byte string literal not displayed */
View Source
const ValidatorSetJSONABI = `` /* 38694-byte string literal not displayed */
View Source
const VaultJSONABI = `` /* 3226-byte string literal not displayed */

Variables

View Source
var (
	// ValidatorSet contract abi
	ValidatorSetABI = abi.MustNewABI(ValidatorSetJSONABI)
	// bridge contract abi
	BridgeABI = abi.MustNewABI(BridgeJSONABI)
	// vault contract abi
	VaultABI = abi.MustNewABI(VaultJSONABI)
)

Predeployed system contract ABI

View Source
var (
	ErrNoMethod          = errors.New("no method in abi")
	ErrInvalidSignature  = errors.New("invalid signature")
	ErrResultTypeCasting = errors.New("failed to casting type to map")
)
View Source
var (
	// StressTest contract abi
	StressTestABI = abi.MustNewABI(StressTestJSONABI)
)

Temporarily deployed contract ABI

Functions

func DecodeTxMethodInput added in v1.2.0

func DecodeTxMethodInput(method *abi.Method, val []byte) (map[string]interface{}, error)

func DecodeTxMethodOutput added in v1.2.0

func DecodeTxMethodOutput(method *abi.Method, val []byte) (map[string]interface{}, error)

func EncodeTxMethod added in v1.2.0

func EncodeTxMethod(method *abi.Method, abiArgs map[string]interface{}) (input []byte, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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