ethcontract

package
v1.17.5 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: LGPL-3.0, MIT Imports: 7 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustParseABI

func MustParseABI(abiJSON string) abi.ABI

func ParseABI

func ParseABI(abiJSON string) (abi.ABI, error)

Types

type Contract

type Contract struct {
	*bind.BoundContract
	Address common.Address
	ABI     abi.ABI
}

func NewContract

func NewContract(address common.Address, abi abi.ABI, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) *Contract

func NewContractCaller

func NewContractCaller(address common.Address, abi abi.ABI, caller bind.ContractCaller) *Contract

func NewContractFilterer

func NewContractFilterer(address common.Address, abi abi.ABI, filterer bind.ContractFilterer) *Contract

func NewContractTransactor

func NewContractTransactor(address common.Address, abi abi.ABI, caller bind.ContractCaller, transactor bind.ContractTransactor) *Contract

func (*Contract) Encode

func (c *Contract) Encode(method string, args ...interface{}) ([]byte, error)

func (*Contract) EventTopicHash added in v1.17.0

func (c *Contract) EventTopicHash(eventName string) (ethkit.Hash, error)

Jump to

Keyboard shortcuts

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