contract

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseClient

func ReleaseClient(c Client)

func ReleaseInstance

func ReleaseInstance(i Instance)

Types

type Client

type Client interface {
	Endpoint() string
	bind.ContractBackend
	Counter
	// contains filtered or unexported methods
}

func NewEthClient

func NewEthClient(endpoint string) (Client, error)

type Counter

type Counter interface {
	RefCount() int32
	// contains filtered or unexported methods
}

type Instance

type Instance interface {
	Name() string
	Key() string
	Address() common.Address
	Client() Client
	ABI() abi.ABI
	Counter

	ReadContext(ctx context.Context, method string, args ...any) (any, error)
	Read(method string, args ...any) (any, error)
	ReadResultContext(ctx context.Context, method string, res any, args ...any) error
	ReadResult(method string, res any, args ...any) error
}

func NewInstance

func NewInstance(name, address, endpoint string, abi abi.ABI) (Instance, error)

func NewInstanceByABI

func NewInstanceByABI(name, address, endpoint string, content []byte) (Instance, error)

Jump to

Keyboard shortcuts

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