Documentation ¶
Index ¶
- Constants
- type Contract
- func (c *Contract) CallContract(method string, args ...interface{}) ([]interface{}, error)
- func (c *Contract) ContractAddress() *common.Address
- func (c *Contract) DeployContract(params ...interface{}) (common.Address, error)
- func (c *Contract) ExecuteTransaction(method string, opts transactor.TransactOptions, args ...interface{}) (*common.Hash, error)
- func (c *Contract) PackMethod(method string, args ...interface{}) ([]byte, error)
- func (c *Contract) UnpackResult(method string, output []byte) ([]interface{}, error)
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 (*Contract) ContractAddress ¶
func (*Contract) DeployContract ¶
func (*Contract) ExecuteTransaction ¶
func (c *Contract) ExecuteTransaction(method string, opts transactor.TransactOptions, args ...interface{}) (*common.Hash, error)
func (*Contract) PackMethod ¶
Click to show internal directories.
Click to hide internal directories.