Documentation ¶
Index ¶
- Variables
- type TestGasConsumer
- type TestGasConsumerCaller
- type TestGasConsumerCallerRaw
- type TestGasConsumerCallerSession
- type TestGasConsumerFilterer
- type TestGasConsumerRaw
- func (_TestGasConsumer *TestGasConsumerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_TestGasConsumer *TestGasConsumerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_TestGasConsumer *TestGasConsumerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TestGasConsumerSession
- type TestGasConsumerTransactor
- type TestGasConsumerTransactorRaw
- type TestGasConsumerTransactorSession
- type TestGasConsumerzContext
Constants ¶
This section is empty.
Variables ¶
var TestGasConsumerABI = TestGasConsumerMetaData.ABI
TestGasConsumerABI is the input ABI used to generate the binding from. Deprecated: Use TestGasConsumerMetaData.ABI instead.
var TestGasConsumerBin = TestGasConsumerMetaData.Bin
TestGasConsumerBin is the compiled bytecode used for deploying new contracts. Deprecated: Use TestGasConsumerMetaData.Bin instead.
var TestGasConsumerMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"origin\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"internalType\":\"structTestGasConsumer.zContext\",\"name\":\"_context\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"_zrc20\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_message\",\"type\":\"bytes\"}],\"name\":\"onCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x6080604052348015600f57600080fd5b5061036d8061001f6000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80635bcfd61614610030575b600080fd5b61004a60048036038101906100459190610233565b61004c565b005b61005461005b565b5050505050565b6000624c4b4090506000614e209050600081836100789190610306565b905060005b818110156100bb576000819080600181540180825580915050600190039060005260206000200160009091909190915055808060010191505061007d565b506000806100c991906100ce565b505050565b50805460008255906000526020600020908101906100ec91906100ef565b50565b5b808211156101085760008160009055506001016100f0565b5090565b600080fd5b600080fd5b600080fd5b60006060828403121561013157610130610116565b5b81905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006101658261013a565b9050919050565b6101758161015a565b811461018057600080fd5b50565b6000813590506101928161016c565b92915050565b6000819050919050565b6101ab81610198565b81146101b657600080fd5b50565b6000813590506101c8816101a2565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126101f3576101f26101ce565b5b8235905067ffffffffffffffff8111156102105761020f6101d3565b5b60208301915083600182028301111561022c5761022b6101d8565b5b9250929050565b60008060008060006080868803121561024f5761024e61010c565b5b600086013567ffffffffffffffff81111561026d5761026c610111565b5b6102798882890161011b565b955050602061028a88828901610183565b945050604061029b888289016101b9565b935050606086013567ffffffffffffffff8111156102bc576102bb610111565b5b6102c8888289016101dd565b92509250509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061031182610198565b915061031c83610198565b92508261032c5761032b6102d7565b5b82820490509291505056fea2646970667358221220e1d03a34090a8a647a128849d9f9434831ba3b1e4d28a514d9c9dc922068351e64736f6c634300081a0033",
}
TestGasConsumerMetaData contains all meta data concerning the TestGasConsumer contract.
Functions ¶
This section is empty.
Types ¶
type TestGasConsumer ¶
type TestGasConsumer struct { TestGasConsumerCaller // Read-only binding to the contract TestGasConsumerTransactor // Write-only binding to the contract TestGasConsumerFilterer // Log filterer for contract events }
TestGasConsumer is an auto generated Go binding around an Ethereum contract.
func DeployTestGasConsumer ¶
func DeployTestGasConsumer(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *TestGasConsumer, error)
DeployTestGasConsumer deploys a new Ethereum contract, binding an instance of TestGasConsumer to it.
func NewTestGasConsumer ¶
func NewTestGasConsumer(address common.Address, backend bind.ContractBackend) (*TestGasConsumer, error)
NewTestGasConsumer creates a new instance of TestGasConsumer, bound to a specific deployed contract.
type TestGasConsumerCaller ¶
type TestGasConsumerCaller struct {
// contains filtered or unexported fields
}
TestGasConsumerCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewTestGasConsumerCaller ¶
func NewTestGasConsumerCaller(address common.Address, caller bind.ContractCaller) (*TestGasConsumerCaller, error)
NewTestGasConsumerCaller creates a new read-only instance of TestGasConsumer, bound to a specific deployed contract.
type TestGasConsumerCallerRaw ¶
type TestGasConsumerCallerRaw struct {
Contract *TestGasConsumerCaller // Generic read-only contract binding to access the raw methods on
}
TestGasConsumerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*TestGasConsumerCallerRaw) Call ¶
func (_TestGasConsumer *TestGasConsumerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type TestGasConsumerCallerSession ¶
type TestGasConsumerCallerSession struct { Contract *TestGasConsumerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
TestGasConsumerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type TestGasConsumerFilterer ¶
type TestGasConsumerFilterer struct {
// contains filtered or unexported fields
}
TestGasConsumerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewTestGasConsumerFilterer ¶
func NewTestGasConsumerFilterer(address common.Address, filterer bind.ContractFilterer) (*TestGasConsumerFilterer, error)
NewTestGasConsumerFilterer creates a new log filterer instance of TestGasConsumer, bound to a specific deployed contract.
type TestGasConsumerRaw ¶
type TestGasConsumerRaw struct {
Contract *TestGasConsumer // Generic contract binding to access the raw methods on
}
TestGasConsumerRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*TestGasConsumerRaw) Call ¶
func (_TestGasConsumer *TestGasConsumerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*TestGasConsumerRaw) Transact ¶
func (_TestGasConsumer *TestGasConsumerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TestGasConsumerRaw) Transfer ¶
func (_TestGasConsumer *TestGasConsumerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type TestGasConsumerSession ¶
type TestGasConsumerSession struct { Contract *TestGasConsumer // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TestGasConsumerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*TestGasConsumerSession) OnCall ¶
func (_TestGasConsumer *TestGasConsumerSession) OnCall(_context TestGasConsumerzContext, _zrc20 common.Address, _amount *big.Int, _message []byte) (*types.Transaction, error)
OnCall is a paid mutator transaction binding the contract method 0x5bcfd616.
Solidity: function onCall((bytes,address,uint256) _context, address _zrc20, uint256 _amount, bytes _message) returns()
type TestGasConsumerTransactor ¶
type TestGasConsumerTransactor struct {
// contains filtered or unexported fields
}
TestGasConsumerTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewTestGasConsumerTransactor ¶
func NewTestGasConsumerTransactor(address common.Address, transactor bind.ContractTransactor) (*TestGasConsumerTransactor, error)
NewTestGasConsumerTransactor creates a new write-only instance of TestGasConsumer, bound to a specific deployed contract.
func (*TestGasConsumerTransactor) OnCall ¶
func (_TestGasConsumer *TestGasConsumerTransactor) OnCall(opts *bind.TransactOpts, _context TestGasConsumerzContext, _zrc20 common.Address, _amount *big.Int, _message []byte) (*types.Transaction, error)
OnCall is a paid mutator transaction binding the contract method 0x5bcfd616.
Solidity: function onCall((bytes,address,uint256) _context, address _zrc20, uint256 _amount, bytes _message) returns()
type TestGasConsumerTransactorRaw ¶
type TestGasConsumerTransactorRaw struct {
Contract *TestGasConsumerTransactor // Generic write-only contract binding to access the raw methods on
}
TestGasConsumerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*TestGasConsumerTransactorRaw) Transact ¶
func (_TestGasConsumer *TestGasConsumerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TestGasConsumerTransactorRaw) Transfer ¶
func (_TestGasConsumer *TestGasConsumerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type TestGasConsumerTransactorSession ¶
type TestGasConsumerTransactorSession struct { Contract *TestGasConsumerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TestGasConsumerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*TestGasConsumerTransactorSession) OnCall ¶
func (_TestGasConsumer *TestGasConsumerTransactorSession) OnCall(_context TestGasConsumerzContext, _zrc20 common.Address, _amount *big.Int, _message []byte) (*types.Transaction, error)
OnCall is a paid mutator transaction binding the contract method 0x5bcfd616.
Solidity: function onCall((bytes,address,uint256) _context, address _zrc20, uint256 _amount, bytes _message) returns()