abiCoder

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coder

type Coder struct {
	// contains filtered or unexported fields
}

Coder is an ABI coder struct

func NewCoder

func NewCoder(types []string) (*Coder, error)

NewCoder is used to get new Coder instance

func (*Coder) Bytes

func (c *Coder) Bytes(args ...interface{}) ([]byte, error)

Bytes is used to get ABI encoded bytes that can be decoded by the smart-contract

func (*Coder) KeccakHash

func (c *Coder) KeccakHash(args ...interface{}) ([32]byte, error)

KeccakHash is used to get ABI byte32 type hash from given args

Jump to

Keyboard shortcuts

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