Documentation
¶
Index ¶
- Variables
- type Echo
- type EchoCaller
- type EchoCallerRaw
- type EchoCallerSession
- type EchoFilterer
- type EchoRaw
- func (_Echo *EchoRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Echo *EchoRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Echo *EchoRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type EchoSession
- type EchoTransactor
- type EchoTransactorRaw
- type EchoTransactorSession
Constants ¶
This section is empty.
Variables ¶
var EchoABI = EchoMetaData.ABI
EchoABI is the input ABI used to generate the binding from. Deprecated: Use EchoMetaData.ABI instead.
var EchoMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"echo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"}],\"name\":\"setTime\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"timestamps\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
EchoMetaData contains all meta data concerning the Echo contract.
Functions ¶
This section is empty.
Types ¶
type Echo ¶
type Echo struct { EchoCaller // Read-only binding to the contract EchoTransactor // Write-only binding to the contract EchoFilterer // Log filterer for contract events }
Echo is an auto generated Go binding around an Ethereum contract.
type EchoCaller ¶
type EchoCaller struct {
// contains filtered or unexported fields
}
EchoCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewEchoCaller ¶
func NewEchoCaller(address common.Address, caller bind.ContractCaller) (*EchoCaller, error)
NewEchoCaller creates a new read-only instance of Echo, bound to a specific deployed contract.
func (*EchoCaller) Echo ¶
Echo is a free data retrieval call binding the contract method 0x6279e43c.
Solidity: function echo(uint256 value) pure returns(uint256)
func (*EchoCaller) Timestamps ¶
Timestamps is a free data retrieval call binding the contract method 0x8bc33af3.
Solidity: function timestamps(uint256 ) view returns(uint256)
type EchoCallerRaw ¶
type EchoCallerRaw struct {
Contract *EchoCaller // Generic read-only contract binding to access the raw methods on
}
EchoCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*EchoCallerRaw) Call ¶
func (_Echo *EchoCallerRaw) 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 EchoCallerSession ¶
type EchoCallerSession struct { Contract *EchoCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
EchoCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*EchoCallerSession) Echo ¶
Echo is a free data retrieval call binding the contract method 0x6279e43c.
Solidity: function echo(uint256 value) pure returns(uint256)
func (*EchoCallerSession) Timestamps ¶
Timestamps is a free data retrieval call binding the contract method 0x8bc33af3.
Solidity: function timestamps(uint256 ) view returns(uint256)
type EchoFilterer ¶
type EchoFilterer struct {
// contains filtered or unexported fields
}
EchoFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewEchoFilterer ¶
func NewEchoFilterer(address common.Address, filterer bind.ContractFilterer) (*EchoFilterer, error)
NewEchoFilterer creates a new log filterer instance of Echo, bound to a specific deployed contract.
type EchoRaw ¶
type EchoRaw struct {
Contract *Echo // Generic contract binding to access the raw methods on
}
EchoRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*EchoRaw) Call ¶
func (_Echo *EchoRaw) 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 (*EchoRaw) Transact ¶
func (_Echo *EchoRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*EchoRaw) Transfer ¶
func (_Echo *EchoRaw) 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 EchoSession ¶
type EchoSession struct { Contract *Echo // 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 }
EchoSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*EchoSession) Echo ¶
Echo is a free data retrieval call binding the contract method 0x6279e43c.
Solidity: function echo(uint256 value) pure returns(uint256)
func (*EchoSession) SetTime ¶
func (_Echo *EchoSession) SetTime(epoch *big.Int) (*types.Transaction, error)
SetTime is a paid mutator transaction binding the contract method 0x3beb26c4.
Solidity: function setTime(uint256 epoch) returns()
func (*EchoSession) Timestamps ¶
Timestamps is a free data retrieval call binding the contract method 0x8bc33af3.
Solidity: function timestamps(uint256 ) view returns(uint256)
type EchoTransactor ¶
type EchoTransactor struct {
// contains filtered or unexported fields
}
EchoTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewEchoTransactor ¶
func NewEchoTransactor(address common.Address, transactor bind.ContractTransactor) (*EchoTransactor, error)
NewEchoTransactor creates a new write-only instance of Echo, bound to a specific deployed contract.
func (*EchoTransactor) SetTime ¶
func (_Echo *EchoTransactor) SetTime(opts *bind.TransactOpts, epoch *big.Int) (*types.Transaction, error)
SetTime is a paid mutator transaction binding the contract method 0x3beb26c4.
Solidity: function setTime(uint256 epoch) returns()
type EchoTransactorRaw ¶
type EchoTransactorRaw struct {
Contract *EchoTransactor // Generic write-only contract binding to access the raw methods on
}
EchoTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*EchoTransactorRaw) Transact ¶
func (_Echo *EchoTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*EchoTransactorRaw) Transfer ¶
func (_Echo *EchoTransactorRaw) 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 EchoTransactorSession ¶
type EchoTransactorSession struct { Contract *EchoTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
EchoTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*EchoTransactorSession) SetTime ¶
func (_Echo *EchoTransactorSession) SetTime(epoch *big.Int) (*types.Transaction, error)
SetTime is a paid mutator transaction binding the contract method 0x3beb26c4.
Solidity: function setTime(uint256 epoch) returns()