contracts

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZeroHash = common.Hash{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}

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) Client

func (*Contract) ContractAddress

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

func (*Contract) DeployContract

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

func (*Contract) DomainId

func (c *Contract) DomainId() uint8

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) SetDomainId

func (c *Contract) SetDomainId(id uint8)

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