Documentation
¶
Index ¶
- Variables
- type Counter
- type CounterCaller
- func (_Counter *CounterCaller) Check(opts *bind.CallOpts, data []byte) (bool, []byte, error)
- func (_Counter *CounterCaller) Counter(opts *bind.CallOpts) (*big.Int, error)
- func (_Counter *CounterCaller) Eligible(opts *bind.CallOpts) (bool, error)
- func (_Counter *CounterCaller) InitialBlock(opts *bind.CallOpts) (*big.Int, error)
- func (_Counter *CounterCaller) Interval(opts *bind.CallOpts) (*big.Int, error)
- func (_Counter *CounterCaller) LastBlock(opts *bind.CallOpts) (*big.Int, error)
- func (_Counter *CounterCaller) PreviousPerformBlock(opts *bind.CallOpts) (*big.Int, error)
- func (_Counter *CounterCaller) TestRange(opts *bind.CallOpts) (*big.Int, error)
- type CounterCallerRaw
- type CounterCallerSession
- func (_Counter *CounterCallerSession) Check(data []byte) (bool, []byte, error)
- func (_Counter *CounterCallerSession) Counter() (*big.Int, error)
- func (_Counter *CounterCallerSession) Eligible() (bool, error)
- func (_Counter *CounterCallerSession) InitialBlock() (*big.Int, error)
- func (_Counter *CounterCallerSession) Interval() (*big.Int, error)
- func (_Counter *CounterCallerSession) LastBlock() (*big.Int, error)
- func (_Counter *CounterCallerSession) PreviousPerformBlock() (*big.Int, error)
- func (_Counter *CounterCallerSession) TestRange() (*big.Int, error)
- type CounterFilterer
- func (_Counter *CounterFilterer) FilterPerformed(opts *bind.FilterOpts, from []common.Address) (*CounterPerformedIterator, error)
- func (_Counter *CounterFilterer) FilterTriggerPerformance(opts *bind.FilterOpts) (*CounterTriggerPerformanceIterator, error)
- func (_Counter *CounterFilterer) ParsePerformed(log types.Log) (*CounterPerformed, error)
- func (_Counter *CounterFilterer) ParseTriggerPerformance(log types.Log) (*CounterTriggerPerformance, error)
- func (_Counter *CounterFilterer) WatchPerformed(opts *bind.WatchOpts, sink chan<- *CounterPerformed, from []common.Address) (event.Subscription, error)
- func (_Counter *CounterFilterer) WatchTriggerPerformance(opts *bind.WatchOpts, sink chan<- *CounterTriggerPerformance) (event.Subscription, error)
- type CounterPerformed
- type CounterPerformedIterator
- type CounterRaw
- func (_Counter *CounterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Counter *CounterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Counter *CounterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type CounterSession
- func (_Counter *CounterSession) Check(data []byte) (bool, []byte, error)
- func (_Counter *CounterSession) Counter() (*big.Int, error)
- func (_Counter *CounterSession) Eligible() (bool, error)
- func (_Counter *CounterSession) InitialBlock() (*big.Int, error)
- func (_Counter *CounterSession) Interval() (*big.Int, error)
- func (_Counter *CounterSession) LastBlock() (*big.Int, error)
- func (_Counter *CounterSession) Perform(performData []byte) (*types.Transaction, error)
- func (_Counter *CounterSession) PreviousPerformBlock() (*big.Int, error)
- func (_Counter *CounterSession) SetSpread(_testRange *big.Int, _interval *big.Int) (*types.Transaction, error)
- func (_Counter *CounterSession) TestRange() (*big.Int, error)
- func (_Counter *CounterSession) Trigger(data []byte, perform bool) (*types.Transaction, error)
- type CounterTransactor
- func (_Counter *CounterTransactor) Perform(opts *bind.TransactOpts, performData []byte) (*types.Transaction, error)
- func (_Counter *CounterTransactor) SetSpread(opts *bind.TransactOpts, _testRange *big.Int, _interval *big.Int) (*types.Transaction, error)
- func (_Counter *CounterTransactor) Trigger(opts *bind.TransactOpts, data []byte, perform bool) (*types.Transaction, error)
- type CounterTransactorRaw
- type CounterTransactorSession
- func (_Counter *CounterTransactorSession) Perform(performData []byte) (*types.Transaction, error)
- func (_Counter *CounterTransactorSession) SetSpread(_testRange *big.Int, _interval *big.Int) (*types.Transaction, error)
- func (_Counter *CounterTransactorSession) Trigger(data []byte, perform bool) (*types.Transaction, error)
- type CounterTriggerPerformance
- type CounterTriggerPerformanceIterator
Constants ¶
This section is empty.
Variables ¶
var CounterABI = CounterMetaData.ABI
CounterABI is the input ABI used to generate the binding from. Deprecated: Use CounterMetaData.ABI instead.
var CounterBin = CounterMetaData.Bin
CounterBin is the compiled bytecode used for deploying new contracts. Deprecated: Use CounterMetaData.Bin instead.
var CounterMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_testRange\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_interval\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"initialBlock\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lastBlock\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousBlock\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"counter\",\"type\":\"uint256\"}],\"name\":\"Performed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"perform\",\"type\":\"bool\"}],\"name\":\"TriggerPerformance\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"check\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"counter\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"eligible\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"interval\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"performData\",\"type\":\"bytes\"}],\"name\":\"perform\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"previousPerformBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_testRange\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_interval\",\"type\":\"uint256\"}],\"name\":\"setSpread\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"testRange\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"perform\",\"type\":\"bool\"}],\"name\":\"trigger\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x608060405234801561001057600080fd5b50604051610919380380610919833981810160405281019061003291906100a1565b81600081905550806001819055506000600381905550436002819055506000600481905550600060058190555050506100e1565b600080fd5b6000819050919050565b61007e8161006b565b811461008957600080fd5b50565b60008151905061009b81610075565b92915050565b600080604083850312156100b8576100b7610066565b5b60006100c68582860161008c565b92505060206100d78582860161008c565b9150509250929050565b610829806100f06000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063917d895f11610071578063917d895f14610142578063947a36fb14610160578063bb6ae2cb1461017e578063c64b3bb51461019a578063d832d92f146101cb578063f6c6d4da146101e9576100a9565b80632cb15864146100ae57806361bc221a146100cc5780636250a13a146100ea5780637f407edf14610108578063806b984f14610124575b600080fd5b6100b6610205565b6040516100c391906103e4565b60405180910390f35b6100d461020b565b6040516100e191906103e4565b60405180910390f35b6100f2610211565b6040516100ff91906103e4565b60405180910390f35b610122600480360381019061011d9190610435565b610217565b005b61012c610239565b60405161013991906103e4565b60405180910390f35b61014a61023f565b60405161015791906103e4565b60405180910390f35b610168610245565b60405161017591906103e4565b60405180910390f35b610198600480360381019061019391906104da565b61024b565b005b6101b460048036038101906101af91906104da565b6102e2565b6040516101c29291906105d2565b60405180910390f35b6101d3610344565b6040516101e09190610602565b60405180910390f35b61020360048036038101906101fe9190610649565b61038b565b005b60045481565b60055481565b60005481565b8160008190555080600181905550600060048190555060006005819055505050565b60025481565b60035481565b60015481565b60006004540361025d57436004819055505b43600281905550600160055461027391906106d8565b6005819055503273ffffffffffffffffffffffffffffffffffffffff167fb55f31fdba783b65883517a934423678c525f9b6a83225968ffe3d08399883626004546002546003546005546040516102cd949392919061070c565b60405180910390a26002546003819055505050565b600060606102ee610344565b848481818080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505090509050915091509250929050565b600080600454036103585760019050610388565b600054600454436103699190610751565b1080156103855750600154600254436103829190610751565b10155b90505b90565b7fe5fc199a02ad9a3a02003f2440f5ea46b15b0a069c607e4bbbcde0fa705118b48383836040516103be939291906107c1565b60405180910390a1505050565b6000819050919050565b6103de816103cb565b82525050565b60006020820190506103f960008301846103d5565b92915050565b600080fd5b600080fd5b610412816103cb565b811461041d57600080fd5b50565b60008135905061042f81610409565b92915050565b6000806040838503121561044c5761044b6103ff565b5b600061045a85828601610420565b925050602061046b85828601610420565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f84011261049a57610499610475565b5b8235905067ffffffffffffffff8111156104b7576104b661047a565b5b6020830191508360018202830111156104d3576104d261047f565b5b9250929050565b600080602083850312156104f1576104f06103ff565b5b600083013567ffffffffffffffff81111561050f5761050e610404565b5b61051b85828601610484565b92509250509250929050565b60008115159050919050565b61053c81610527565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561057c578082015181840152602081019050610561565b60008484015250505050565b6000601f19601f8301169050919050565b60006105a482610542565b6105ae818561054d565b93506105be81856020860161055e565b6105c781610588565b840191505092915050565b60006040820190506105e76000830185610533565b81810360208301526105f98184610599565b90509392505050565b60006020820190506106176000830184610533565b92915050565b61062681610527565b811461063157600080fd5b50565b6000813590506106438161061d565b92915050565b600080600060408486031215610662576106616103ff565b5b600084013567ffffffffffffffff8111156106805761067f610404565b5b61068c86828701610484565b9350935050602061069f86828701610634565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006106e3826103cb565b91506106ee836103cb565b9250828201905080821115610706576107056106a9565b5b92915050565b600060808201905061072160008301876103d5565b61072e60208301866103d5565b61073b60408301856103d5565b61074860608301846103d5565b95945050505050565b600061075c826103cb565b9150610767836103cb565b925082820390508181111561077f5761077e6106a9565b5b92915050565b82818337600083830152505050565b60006107a0838561054d565b93506107ad838584610785565b6107b683610588565b840190509392505050565b600060408201905081810360008301526107dc818587610794565b90506107eb6020830184610533565b94935050505056fea2646970667358221220628fde3a30c1cfef2e8ce143839a818c722637062d257f660a3f18b04a706e7d64736f6c63430008130033",
}
CounterMetaData contains all meta data concerning the Counter contract.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct { CounterCaller // Read-only binding to the contract CounterTransactor // Write-only binding to the contract CounterFilterer // Log filterer for contract events }
Counter is an auto generated Go binding around an Ethereum contract.
func DeployCounter ¶
func DeployCounter(auth *bind.TransactOpts, backend bind.ContractBackend, _testRange *big.Int, _interval *big.Int) (common.Address, *types.Transaction, *Counter, error)
DeployCounter deploys a new Ethereum contract, binding an instance of Counter to it.
func NewCounter ¶
NewCounter creates a new instance of Counter, bound to a specific deployed contract.
type CounterCaller ¶
type CounterCaller struct {
// contains filtered or unexported fields
}
CounterCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewCounterCaller ¶
func NewCounterCaller(address common.Address, caller bind.ContractCaller) (*CounterCaller, error)
NewCounterCaller creates a new read-only instance of Counter, bound to a specific deployed contract.
func (*CounterCaller) Check ¶
Check is a free data retrieval call binding the contract method 0xc64b3bb5.
Solidity: function check(bytes data) view returns(bool, bytes)
func (*CounterCaller) Counter ¶
Counter is a free data retrieval call binding the contract method 0x61bc221a.
Solidity: function counter() view returns(uint256)
func (*CounterCaller) Eligible ¶
func (_Counter *CounterCaller) Eligible(opts *bind.CallOpts) (bool, error)
Eligible is a free data retrieval call binding the contract method 0xd832d92f.
Solidity: function eligible() view returns(bool)
func (*CounterCaller) InitialBlock ¶
InitialBlock is a free data retrieval call binding the contract method 0x2cb15864.
Solidity: function initialBlock() view returns(uint256)
func (*CounterCaller) Interval ¶
Interval is a free data retrieval call binding the contract method 0x947a36fb.
Solidity: function interval() view returns(uint256)
func (*CounterCaller) LastBlock ¶
LastBlock is a free data retrieval call binding the contract method 0x806b984f.
Solidity: function lastBlock() view returns(uint256)
func (*CounterCaller) PreviousPerformBlock ¶
PreviousPerformBlock is a free data retrieval call binding the contract method 0x917d895f.
Solidity: function previousPerformBlock() view returns(uint256)
type CounterCallerRaw ¶
type CounterCallerRaw struct {
Contract *CounterCaller // Generic read-only contract binding to access the raw methods on
}
CounterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*CounterCallerRaw) Call ¶
func (_Counter *CounterCallerRaw) 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 CounterCallerSession ¶
type CounterCallerSession struct { Contract *CounterCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
CounterCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*CounterCallerSession) Check ¶
func (_Counter *CounterCallerSession) Check(data []byte) (bool, []byte, error)
Check is a free data retrieval call binding the contract method 0xc64b3bb5.
Solidity: function check(bytes data) view returns(bool, bytes)
func (*CounterCallerSession) Counter ¶
func (_Counter *CounterCallerSession) Counter() (*big.Int, error)
Counter is a free data retrieval call binding the contract method 0x61bc221a.
Solidity: function counter() view returns(uint256)
func (*CounterCallerSession) Eligible ¶
func (_Counter *CounterCallerSession) Eligible() (bool, error)
Eligible is a free data retrieval call binding the contract method 0xd832d92f.
Solidity: function eligible() view returns(bool)
func (*CounterCallerSession) InitialBlock ¶
func (_Counter *CounterCallerSession) InitialBlock() (*big.Int, error)
InitialBlock is a free data retrieval call binding the contract method 0x2cb15864.
Solidity: function initialBlock() view returns(uint256)
func (*CounterCallerSession) Interval ¶
func (_Counter *CounterCallerSession) Interval() (*big.Int, error)
Interval is a free data retrieval call binding the contract method 0x947a36fb.
Solidity: function interval() view returns(uint256)
func (*CounterCallerSession) LastBlock ¶
func (_Counter *CounterCallerSession) LastBlock() (*big.Int, error)
LastBlock is a free data retrieval call binding the contract method 0x806b984f.
Solidity: function lastBlock() view returns(uint256)
func (*CounterCallerSession) PreviousPerformBlock ¶
func (_Counter *CounterCallerSession) PreviousPerformBlock() (*big.Int, error)
PreviousPerformBlock is a free data retrieval call binding the contract method 0x917d895f.
Solidity: function previousPerformBlock() view returns(uint256)
type CounterFilterer ¶
type CounterFilterer struct {
// contains filtered or unexported fields
}
CounterFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewCounterFilterer ¶
func NewCounterFilterer(address common.Address, filterer bind.ContractFilterer) (*CounterFilterer, error)
NewCounterFilterer creates a new log filterer instance of Counter, bound to a specific deployed contract.
func (*CounterFilterer) FilterPerformed ¶
func (_Counter *CounterFilterer) FilterPerformed(opts *bind.FilterOpts, from []common.Address) (*CounterPerformedIterator, error)
FilterPerformed is a free log retrieval operation binding the contract event 0xb55f31fdba783b65883517a934423678c525f9b6a83225968ffe3d0839988362.
Solidity: event Performed(address indexed from, uint256 initialBlock, uint256 lastBlock, uint256 previousBlock, uint256 counter)
func (*CounterFilterer) FilterTriggerPerformance ¶
func (_Counter *CounterFilterer) FilterTriggerPerformance(opts *bind.FilterOpts) (*CounterTriggerPerformanceIterator, error)
FilterTriggerPerformance is a free log retrieval operation binding the contract event 0xe5fc199a02ad9a3a02003f2440f5ea46b15b0a069c607e4bbbcde0fa705118b4.
Solidity: event TriggerPerformance(bytes data, bool perform)
func (*CounterFilterer) ParsePerformed ¶
func (_Counter *CounterFilterer) ParsePerformed(log types.Log) (*CounterPerformed, error)
ParsePerformed is a log parse operation binding the contract event 0xb55f31fdba783b65883517a934423678c525f9b6a83225968ffe3d0839988362.
Solidity: event Performed(address indexed from, uint256 initialBlock, uint256 lastBlock, uint256 previousBlock, uint256 counter)
func (*CounterFilterer) ParseTriggerPerformance ¶
func (_Counter *CounterFilterer) ParseTriggerPerformance(log types.Log) (*CounterTriggerPerformance, error)
ParseTriggerPerformance is a log parse operation binding the contract event 0xe5fc199a02ad9a3a02003f2440f5ea46b15b0a069c607e4bbbcde0fa705118b4.
Solidity: event TriggerPerformance(bytes data, bool perform)
func (*CounterFilterer) WatchPerformed ¶
func (_Counter *CounterFilterer) WatchPerformed(opts *bind.WatchOpts, sink chan<- *CounterPerformed, from []common.Address) (event.Subscription, error)
WatchPerformed is a free log subscription operation binding the contract event 0xb55f31fdba783b65883517a934423678c525f9b6a83225968ffe3d0839988362.
Solidity: event Performed(address indexed from, uint256 initialBlock, uint256 lastBlock, uint256 previousBlock, uint256 counter)
func (*CounterFilterer) WatchTriggerPerformance ¶
func (_Counter *CounterFilterer) WatchTriggerPerformance(opts *bind.WatchOpts, sink chan<- *CounterTriggerPerformance) (event.Subscription, error)
WatchTriggerPerformance is a free log subscription operation binding the contract event 0xe5fc199a02ad9a3a02003f2440f5ea46b15b0a069c607e4bbbcde0fa705118b4.
Solidity: event TriggerPerformance(bytes data, bool perform)
type CounterPerformed ¶
type CounterPerformed struct { From common.Address InitialBlock *big.Int LastBlock *big.Int PreviousBlock *big.Int Counter *big.Int Raw types.Log // Blockchain specific contextual infos }
CounterPerformed represents a Performed event raised by the Counter contract.
type CounterPerformedIterator ¶
type CounterPerformedIterator struct { Event *CounterPerformed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CounterPerformedIterator is returned from FilterPerformed and is used to iterate over the raw logs and unpacked data for Performed events raised by the Counter contract.
func (*CounterPerformedIterator) Close ¶
func (it *CounterPerformedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CounterPerformedIterator) Error ¶
func (it *CounterPerformedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CounterPerformedIterator) Next ¶
func (it *CounterPerformedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type CounterRaw ¶
type CounterRaw struct {
Contract *Counter // Generic contract binding to access the raw methods on
}
CounterRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*CounterRaw) Call ¶
func (_Counter *CounterRaw) 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 (*CounterRaw) Transact ¶
func (_Counter *CounterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CounterRaw) Transfer ¶
func (_Counter *CounterRaw) 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 CounterSession ¶
type CounterSession struct { Contract *Counter // 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 }
CounterSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*CounterSession) Check ¶
func (_Counter *CounterSession) Check(data []byte) (bool, []byte, error)
Check is a free data retrieval call binding the contract method 0xc64b3bb5.
Solidity: function check(bytes data) view returns(bool, bytes)
func (*CounterSession) Counter ¶
func (_Counter *CounterSession) Counter() (*big.Int, error)
Counter is a free data retrieval call binding the contract method 0x61bc221a.
Solidity: function counter() view returns(uint256)
func (*CounterSession) Eligible ¶
func (_Counter *CounterSession) Eligible() (bool, error)
Eligible is a free data retrieval call binding the contract method 0xd832d92f.
Solidity: function eligible() view returns(bool)
func (*CounterSession) InitialBlock ¶
func (_Counter *CounterSession) InitialBlock() (*big.Int, error)
InitialBlock is a free data retrieval call binding the contract method 0x2cb15864.
Solidity: function initialBlock() view returns(uint256)
func (*CounterSession) Interval ¶
func (_Counter *CounterSession) Interval() (*big.Int, error)
Interval is a free data retrieval call binding the contract method 0x947a36fb.
Solidity: function interval() view returns(uint256)
func (*CounterSession) LastBlock ¶
func (_Counter *CounterSession) LastBlock() (*big.Int, error)
LastBlock is a free data retrieval call binding the contract method 0x806b984f.
Solidity: function lastBlock() view returns(uint256)
func (*CounterSession) Perform ¶
func (_Counter *CounterSession) Perform(performData []byte) (*types.Transaction, error)
Perform is a paid mutator transaction binding the contract method 0xbb6ae2cb.
Solidity: function perform(bytes performData) returns()
func (*CounterSession) PreviousPerformBlock ¶
func (_Counter *CounterSession) PreviousPerformBlock() (*big.Int, error)
PreviousPerformBlock is a free data retrieval call binding the contract method 0x917d895f.
Solidity: function previousPerformBlock() view returns(uint256)
func (*CounterSession) SetSpread ¶
func (_Counter *CounterSession) SetSpread(_testRange *big.Int, _interval *big.Int) (*types.Transaction, error)
SetSpread is a paid mutator transaction binding the contract method 0x7f407edf.
Solidity: function setSpread(uint256 _testRange, uint256 _interval) returns()
func (*CounterSession) TestRange ¶
func (_Counter *CounterSession) TestRange() (*big.Int, error)
TestRange is a free data retrieval call binding the contract method 0x6250a13a.
Solidity: function testRange() view returns(uint256)
func (*CounterSession) Trigger ¶
func (_Counter *CounterSession) Trigger(data []byte, perform bool) (*types.Transaction, error)
Trigger is a paid mutator transaction binding the contract method 0xf6c6d4da.
Solidity: function trigger(bytes data, bool perform) returns()
type CounterTransactor ¶
type CounterTransactor struct {
// contains filtered or unexported fields
}
CounterTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewCounterTransactor ¶
func NewCounterTransactor(address common.Address, transactor bind.ContractTransactor) (*CounterTransactor, error)
NewCounterTransactor creates a new write-only instance of Counter, bound to a specific deployed contract.
func (*CounterTransactor) Perform ¶
func (_Counter *CounterTransactor) Perform(opts *bind.TransactOpts, performData []byte) (*types.Transaction, error)
Perform is a paid mutator transaction binding the contract method 0xbb6ae2cb.
Solidity: function perform(bytes performData) returns()
func (*CounterTransactor) SetSpread ¶
func (_Counter *CounterTransactor) SetSpread(opts *bind.TransactOpts, _testRange *big.Int, _interval *big.Int) (*types.Transaction, error)
SetSpread is a paid mutator transaction binding the contract method 0x7f407edf.
Solidity: function setSpread(uint256 _testRange, uint256 _interval) returns()
func (*CounterTransactor) Trigger ¶
func (_Counter *CounterTransactor) Trigger(opts *bind.TransactOpts, data []byte, perform bool) (*types.Transaction, error)
Trigger is a paid mutator transaction binding the contract method 0xf6c6d4da.
Solidity: function trigger(bytes data, bool perform) returns()
type CounterTransactorRaw ¶
type CounterTransactorRaw struct {
Contract *CounterTransactor // Generic write-only contract binding to access the raw methods on
}
CounterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*CounterTransactorRaw) Transact ¶
func (_Counter *CounterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CounterTransactorRaw) Transfer ¶
func (_Counter *CounterTransactorRaw) 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 CounterTransactorSession ¶
type CounterTransactorSession struct { Contract *CounterTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
CounterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*CounterTransactorSession) Perform ¶
func (_Counter *CounterTransactorSession) Perform(performData []byte) (*types.Transaction, error)
Perform is a paid mutator transaction binding the contract method 0xbb6ae2cb.
Solidity: function perform(bytes performData) returns()
func (*CounterTransactorSession) SetSpread ¶
func (_Counter *CounterTransactorSession) SetSpread(_testRange *big.Int, _interval *big.Int) (*types.Transaction, error)
SetSpread is a paid mutator transaction binding the contract method 0x7f407edf.
Solidity: function setSpread(uint256 _testRange, uint256 _interval) returns()
func (*CounterTransactorSession) Trigger ¶
func (_Counter *CounterTransactorSession) Trigger(data []byte, perform bool) (*types.Transaction, error)
Trigger is a paid mutator transaction binding the contract method 0xf6c6d4da.
Solidity: function trigger(bytes data, bool perform) returns()
type CounterTriggerPerformance ¶
type CounterTriggerPerformance struct { Data []byte Perform bool Raw types.Log // Blockchain specific contextual infos }
CounterTriggerPerformance represents a TriggerPerformance event raised by the Counter contract.
type CounterTriggerPerformanceIterator ¶
type CounterTriggerPerformanceIterator struct { Event *CounterTriggerPerformance // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CounterTriggerPerformanceIterator is returned from FilterTriggerPerformance and is used to iterate over the raw logs and unpacked data for TriggerPerformance events raised by the Counter contract.
func (*CounterTriggerPerformanceIterator) Close ¶
func (it *CounterTriggerPerformanceIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CounterTriggerPerformanceIterator) Error ¶
func (it *CounterTriggerPerformanceIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CounterTriggerPerformanceIterator) Next ¶
func (it *CounterTriggerPerformanceIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.