contracts

package
v1.0.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultDeployGasLimit = 6000000

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	ABI abi.ABI

	transactor.Transactor
	// contains filtered or unexported fields
}

func NewContract

func NewContract(
	contractAddress common.Address,
	abi abi.ABI,
	bytecode []byte,
	client calls.ContractCallerDispatcher,
	transactor transactor.Transactor,
) Contract

func (*Contract) CallContract

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

func (*Contract) ContractAddress

func (c *Contract) ContractAddress() *common.Address

func (*Contract) DeployContract

func (c *Contract) DeployContract(params ...interface{}) (common.Address, error)

func (*Contract) ExecuteTransaction

func (c *Contract) ExecuteTransaction(method string, opts transactor.TransactOptions, args ...interface{}) (*common.Hash, error)

func (*Contract) PackMethod

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

func (*Contract) UnpackResult

func (c *Contract) UnpackResult(method string, output []byte) ([]interface{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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