abi

package
v0.0.0-...-4f02c87 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package abi provides methods for encoding and decoding JSON and Solidity ABI payloads.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(typ types.Type, code Code) (json.RawMessage, error)

Decode translates Solidity ABI-encoded code into JSON, using typ as reference. typ is usually of type types.Tuple representing a Solidity function return type list.

Types

type Code

type Code []byte

Code represents a Solidity ABI-encoded payload.

func Encode

func Encode(typ types.Type, arg json.RawMessage) (Code, error)

Encode translates JSON into Solidity ABI-encoded code, using typ as reference. typ is usually of type types.Tuple representing a Solidity function parameter list.

Jump to

Keyboard shortcuts

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