abiparse

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvmPreMarshal added in v0.2.10

func EvmPreMarshal(v interface{}, t abi.Type) interface{}

EvmPreMarshal converts v to a type that gives us the JSON serialization that we like: - large integers are JSON strings instead of JSON numbers - byte array types are JSON strings of base64 instead of JSON arrays of numbers Contrived dot for godot linter: .

func ParseData

func ParseData(data []byte, contractABI *abi.ABI) (*abi.Method, []interface{}, error)

ParseData parses call data into the method and its arguments.

func ParseError

func ParseError(data []byte, contractABI *abi.ABI) (*abi.Error, []interface{}, error)

func ParseEvent

func ParseEvent(topics [][]byte, data []byte, contractABI *abi.ABI) (*abi.Event, []interface{}, error)

func ParseResult

func ParseResult(result []byte, method *abi.Method) ([]interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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