Documentation ¶
Index ¶
- Constants
- Variables
- type GasEstimator
- type GasEstimatorCaller
- type GasEstimatorCallerRaw
- type GasEstimatorCallerSession
- type GasEstimatorFilterer
- type GasEstimatorRaw
- func (_GasEstimator *GasEstimatorRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_GasEstimator *GasEstimatorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_GasEstimator *GasEstimatorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type GasEstimatorSession
- type GasEstimatorTransactor
- type GasEstimatorTransactorRaw
- type GasEstimatorTransactorSession
Constants ¶
const GasEstimatorDeployedBin = "" /* 1306-byte string literal not displayed */
GasEstimatorDeployedBin is the resulting bytecode of the created contract
Variables ¶
var GasEstimatorABI = GasEstimatorMetaData.ABI
GasEstimatorABI is the input ABI used to generate the binding from. Deprecated: Use GasEstimatorMetaData.ABI instead.
var GasEstimatorBin = GasEstimatorMetaData.Bin
GasEstimatorBin is the compiled bytecode used for deploying new contracts. Deprecated: Use GasEstimatorMetaData.Bin instead.
var GasEstimatorMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"estimate\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"result\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"gas\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x608060405234801561001057600080fd5b5061028c806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80630eb34cd314610030575b600080fd5b61004361003e3660046100eb565b61005b565b60405161005293929190610189565b60405180910390f35b600060606000805a90508673ffffffffffffffffffffffffffffffffffffffff16868660405161008c929190610206565b6000604051808303816000865af19150503d80600081146100c9576040519150601f19603f3d011682016040523d82523d6000602084013e6100ce565b606091505b5090945092505a6100df9082610216565b91505093509350939050565b60008060006040848603121561010057600080fd5b833573ffffffffffffffffffffffffffffffffffffffff8116811461012457600080fd5b9250602084013567ffffffffffffffff8082111561014157600080fd5b818601915086601f83011261015557600080fd5b81358181111561016457600080fd5b87602082850101111561017657600080fd5b6020830194508093505050509250925092565b831515815260006020606081840152845180606085015260005b818110156101bf578681018301518582016080015282016101a3565b5060006080828601015260807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010192505050826040830152949350505050565b8183823760009101908152919050565b81810381811115610250577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b9291505056fea26469706673582212206fceab4570410e5aaef6bf82e04a9e582054db6ef051e3d1376a3c3ddfe0d7e464736f6c63430008120033",
}
GasEstimatorMetaData contains all meta data concerning the GasEstimator contract.
Functions ¶
This section is empty.
Types ¶
type GasEstimator ¶
type GasEstimator struct { GasEstimatorCaller // Read-only binding to the contract GasEstimatorTransactor // Write-only binding to the contract GasEstimatorFilterer // Log filterer for contract events }
GasEstimator is an auto generated Go binding around an Ethereum contract.
func DeployGasEstimator ¶
func DeployGasEstimator(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *GasEstimator, error)
DeployGasEstimator deploys a new Ethereum contract, binding an instance of GasEstimator to it.
func NewGasEstimator ¶
func NewGasEstimator(address common.Address, backend bind.ContractBackend) (*GasEstimator, error)
NewGasEstimator creates a new instance of GasEstimator, bound to a specific deployed contract.
type GasEstimatorCaller ¶
type GasEstimatorCaller struct {
// contains filtered or unexported fields
}
GasEstimatorCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewGasEstimatorCaller ¶
func NewGasEstimatorCaller(address common.Address, caller bind.ContractCaller) (*GasEstimatorCaller, error)
NewGasEstimatorCaller creates a new read-only instance of GasEstimator, bound to a specific deployed contract.
type GasEstimatorCallerRaw ¶
type GasEstimatorCallerRaw struct {
Contract *GasEstimatorCaller // Generic read-only contract binding to access the raw methods on
}
GasEstimatorCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*GasEstimatorCallerRaw) Call ¶
func (_GasEstimator *GasEstimatorCallerRaw) 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 GasEstimatorCallerSession ¶
type GasEstimatorCallerSession struct { Contract *GasEstimatorCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
GasEstimatorCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type GasEstimatorFilterer ¶
type GasEstimatorFilterer struct {
// contains filtered or unexported fields
}
GasEstimatorFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewGasEstimatorFilterer ¶
func NewGasEstimatorFilterer(address common.Address, filterer bind.ContractFilterer) (*GasEstimatorFilterer, error)
NewGasEstimatorFilterer creates a new log filterer instance of GasEstimator, bound to a specific deployed contract.
type GasEstimatorRaw ¶
type GasEstimatorRaw struct {
Contract *GasEstimator // Generic contract binding to access the raw methods on
}
GasEstimatorRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*GasEstimatorRaw) Call ¶
func (_GasEstimator *GasEstimatorRaw) 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 (*GasEstimatorRaw) Transact ¶
func (_GasEstimator *GasEstimatorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*GasEstimatorRaw) Transfer ¶
func (_GasEstimator *GasEstimatorRaw) 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 GasEstimatorSession ¶
type GasEstimatorSession struct { Contract *GasEstimator // 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 }
GasEstimatorSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*GasEstimatorSession) Estimate ¶
func (_GasEstimator *GasEstimatorSession) Estimate(_to common.Address, _data []byte) (*types.Transaction, error)
Estimate is a paid mutator transaction binding the contract method 0x0eb34cd3.
Solidity: function estimate(address _to, bytes _data) returns(bool success, bytes result, uint256 gas)
type GasEstimatorTransactor ¶
type GasEstimatorTransactor struct {
// contains filtered or unexported fields
}
GasEstimatorTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewGasEstimatorTransactor ¶
func NewGasEstimatorTransactor(address common.Address, transactor bind.ContractTransactor) (*GasEstimatorTransactor, error)
NewGasEstimatorTransactor creates a new write-only instance of GasEstimator, bound to a specific deployed contract.
func (*GasEstimatorTransactor) Estimate ¶
func (_GasEstimator *GasEstimatorTransactor) Estimate(opts *bind.TransactOpts, _to common.Address, _data []byte) (*types.Transaction, error)
Estimate is a paid mutator transaction binding the contract method 0x0eb34cd3.
Solidity: function estimate(address _to, bytes _data) returns(bool success, bytes result, uint256 gas)
type GasEstimatorTransactorRaw ¶
type GasEstimatorTransactorRaw struct {
Contract *GasEstimatorTransactor // Generic write-only contract binding to access the raw methods on
}
GasEstimatorTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*GasEstimatorTransactorRaw) Transact ¶
func (_GasEstimator *GasEstimatorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*GasEstimatorTransactorRaw) Transfer ¶
func (_GasEstimator *GasEstimatorTransactorRaw) 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 GasEstimatorTransactorSession ¶
type GasEstimatorTransactorSession struct { Contract *GasEstimatorTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
GasEstimatorTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*GasEstimatorTransactorSession) Estimate ¶
func (_GasEstimator *GasEstimatorTransactorSession) Estimate(_to common.Address, _data []byte) (*types.Transaction, error)
Estimate is a paid mutator transaction binding the contract method 0x0eb34cd3.
Solidity: function estimate(address _to, bytes _data) returns(bool success, bytes result, uint256 gas)