wrapper

package
v0.0.0-...-21d01d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CounterABI = CounterMetaData.ABI

CounterABI is the input ABI used to generate the binding from. Deprecated: Use CounterMetaData.ABI instead.

View Source
var CounterBin = CounterMetaData.Bin

CounterBin is the compiled bytecode used for deploying new contracts. Deprecated: Use CounterMetaData.Bin instead.

View Source
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: "0x608060405234801561001057600080fd5b506040516109463803806109468339818101604052810190610032919061007b565b81600081905550806001819055506000600381905550436002819055506000600481905550600060058190555050506100e1565b600081519050610075816100ca565b92915050565b60008060408385031215610092576100916100c5565b5b60006100a085828601610066565b92505060206100b185828601610066565b9150509250929050565b6000819050919050565b600080fd5b6100d3816100bb565b81146100de57600080fd5b50565b610856806100f06000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063917d895f11610071578063917d895f14610142578063947a36fb14610160578063bb6ae2cb1461017e578063c64b3bb51461019a578063d832d92f146101cb578063f6c6d4da146101e9576100a9565b80632cb15864146100ae57806361bc221a146100cc5780636250a13a146100ea5780637f407edf14610108578063806b984f14610124575b600080fd5b6100b6610205565b6040516100c3919061063b565b60405180910390f35b6100d461020b565b6040516100e1919061063b565b60405180910390f35b6100f2610211565b6040516100ff919061063b565b60405180910390f35b610122600480360381019061011d91906104fa565b610217565b005b61012c610239565b604051610139919061063b565b60405180910390f35b61014a61023f565b604051610157919061063b565b60405180910390f35b610168610245565b604051610175919061063b565b60405180910390f35b6101986004803603810190610193919061044d565b61024b565b005b6101b460048036038101906101af919061044d565b6102e3565b6040516101c29291906105d9565b60405180910390f35b6101d3610345565b6040516101e091906105be565b60405180910390f35b61020360048036038101906101fe919061049a565b61038d565b005b60045481565b60055481565b60005481565b8160008190555080600181905550600060048190555060006005819055505050565b60025481565b60035481565b60015481565b6000600454141561025e57436004819055505b43600281905550600160055461027491906106b7565b6005819055503273ffffffffffffffffffffffffffffffffffffffff167fb55f31fdba783b65883517a934423678c525f9b6a83225968ffe3d08399883626004546002546003546005546040516102ce9493929190610656565b60405180910390a26002546003819055505050565b600060606102ef610345565b848481818080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505090509050915091509250929050565b600080600454141561035a576001905061038a565b6000546004544361036b919061070d565b108015610387575060015460025443610384919061070d565b10155b90505b90565b7fe5fc199a02ad9a3a02003f2440f5ea46b15b0a069c607e4bbbcde0fa705118b48383836040516103c093929190610609565b60405180910390a1505050565b6000813590506103dc816107f2565b92915050565b60008083601f8401126103f8576103f76107cd565b5b8235905067ffffffffffffffff811115610415576104146107c8565b5b602083019150836001820283011115610431576104306107d2565b5b9250929050565b60008135905061044781610809565b92915050565b60008060208385031215610464576104636107dc565b5b600083013567ffffffffffffffff811115610482576104816107d7565b5b61048e858286016103e2565b92509250509250929050565b6000806000604084860312156104b3576104b26107dc565b5b600084013567ffffffffffffffff8111156104d1576104d06107d7565b5b6104dd868287016103e2565b935093505060206104f0868287016103cd565b9150509250925092565b60008060408385031215610511576105106107dc565b5b600061051f85828601610438565b925050602061053085828601610438565b9150509250929050565b61054381610741565b82525050565b600061055583856106a6565b9350610562838584610757565b61056b836107e1565b840190509392505050565b60006105818261069b565b61058b81856106a6565b935061059b818560208601610766565b6105a4816107e1565b840191505092915050565b6105b88161074d565b82525050565b60006020820190506105d3600083018461053a565b92915050565b60006040820190506105ee600083018561053a565b81810360208301526106008184610576565b90509392505050565b60006040820190508181036000830152610624818587610549565b9050610633602083018461053a565b949350505050565b600060208201905061065060008301846105af565b92915050565b600060808201905061066b60008301876105af565b61067860208301866105af565b61068560408301856105af565b61069260608301846105af565b95945050505050565b600081519050919050565b600082825260208201905092915050565b60006106c28261074d565b91506106cd8361074d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561070257610701610799565b5b828201905092915050565b60006107188261074d565b91506107238361074d565b92508282101561073657610735610799565b5b828203905092915050565b60008115159050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015610784578082015181840152602081019050610769565b83811115610793576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6107fb81610741565b811461080657600080fd5b50565b6108128161074d565b811461081d57600080fd5b5056fea2646970667358221220daeff7ba8c9153a413b430b106a069dc422d60593f866953658de95e441b6ba664736f6c63430008060033",
}

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

func NewCounter(address common.Address, backend bind.ContractBackend) (*Counter, error)

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

func (_Counter *CounterCaller) Check(opts *bind.CallOpts, 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 (*CounterCaller) Counter

func (_Counter *CounterCaller) Counter(opts *bind.CallOpts) (*big.Int, error)

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

func (_Counter *CounterCaller) InitialBlock(opts *bind.CallOpts) (*big.Int, error)

InitialBlock is a free data retrieval call binding the contract method 0x2cb15864.

Solidity: function initialBlock() view returns(uint256)

func (*CounterCaller) Interval

func (_Counter *CounterCaller) Interval(opts *bind.CallOpts) (*big.Int, error)

Interval is a free data retrieval call binding the contract method 0x947a36fb.

Solidity: function interval() view returns(uint256)

func (*CounterCaller) LastBlock

func (_Counter *CounterCaller) LastBlock(opts *bind.CallOpts) (*big.Int, error)

LastBlock is a free data retrieval call binding the contract method 0x806b984f.

Solidity: function lastBlock() view returns(uint256)

func (*CounterCaller) PreviousPerformBlock

func (_Counter *CounterCaller) PreviousPerformBlock(opts *bind.CallOpts) (*big.Int, error)

PreviousPerformBlock is a free data retrieval call binding the contract method 0x917d895f.

Solidity: function previousPerformBlock() view returns(uint256)

func (*CounterCaller) TestRange

func (_Counter *CounterCaller) TestRange(opts *bind.CallOpts) (*big.Int, error)

TestRange is a free data retrieval call binding the contract method 0x6250a13a.

Solidity: function testRange() 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)

func (*CounterCallerSession) TestRange

func (_Counter *CounterCallerSession) TestRange() (*big.Int, error)

TestRange is a free data retrieval call binding the contract method 0x6250a13a.

Solidity: function testRange() 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

Close terminates the iteration process, releasing any pending underlying resources.

func (*CounterTriggerPerformanceIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CounterTriggerPerformanceIterator) Next

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL