contracts

package
v1.0.43 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: LGPL-3.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultDeployGasLimit = 6000000

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	// 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