Documentation ¶
Index ¶
- Variables
- type Counter
- type CounterCaller
- type CounterCallerRaw
- type CounterCallerSession
- type CounterFilterer
- func (_Counter *CounterFilterer) FilterPrintConfirmation(opts *bind.FilterOpts) (*CounterPrintConfirmationIterator, error)
- func (_Counter *CounterFilterer) FilterPrintValue(opts *bind.FilterOpts) (*CounterPrintValueIterator, error)
- func (_Counter *CounterFilterer) ParsePrintConfirmation(log types.Log) (*CounterPrintConfirmation, error)
- func (_Counter *CounterFilterer) ParsePrintValue(log types.Log) (*CounterPrintValue, error)
- func (_Counter *CounterFilterer) WatchPrintConfirmation(opts *bind.WatchOpts, sink chan<- *CounterPrintConfirmation) (event.Subscription, error)
- func (_Counter *CounterFilterer) WatchPrintValue(opts *bind.WatchOpts, sink chan<- *CounterPrintValue) (event.Subscription, error)
- type CounterPrintConfirmation
- type CounterPrintConfirmationIterator
- type CounterPrintValue
- type CounterPrintValueIterator
- 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) Decrement(value *big.Int, id string) (*types.Transaction, error)
- func (_Counter *CounterSession) GetCounter() (*types.Transaction, error)
- func (_Counter *CounterSession) Increment(value *big.Int, id string) (*types.Transaction, error)
- func (_Counter *CounterSession) Set(value *big.Int, id string) (*types.Transaction, error)
- type CounterTransactor
- func (_Counter *CounterTransactor) Decrement(opts *bind.TransactOpts, value *big.Int, id string) (*types.Transaction, error)
- func (_Counter *CounterTransactor) GetCounter(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Counter *CounterTransactor) Increment(opts *bind.TransactOpts, value *big.Int, id string) (*types.Transaction, error)
- func (_Counter *CounterTransactor) Set(opts *bind.TransactOpts, value *big.Int, id string) (*types.Transaction, error)
- type CounterTransactorRaw
- type CounterTransactorSession
- func (_Counter *CounterTransactorSession) Decrement(value *big.Int, id string) (*types.Transaction, error)
- func (_Counter *CounterTransactorSession) GetCounter() (*types.Transaction, error)
- func (_Counter *CounterTransactorSession) Increment(value *big.Int, id string) (*types.Transaction, error)
- func (_Counter *CounterTransactorSession) Set(value *big.Int, id string) (*types.Transaction, error)
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 CounterFuncSigs = CounterMetaData.Sigs
Deprecated: Use CounterMetaData.Sigs instead. CounterFuncSigs maps the 4-byte function signature to its string representation.
var CounterMetaData = &bind.MetaData{ ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"PrintConfirmation\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"PrintValue\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"id\",\"type\":\"string\"}],\"name\":\"decrement\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCounter\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"id\",\"type\":\"string\"}],\"name\":\"increment\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"id\",\"type\":\"string\"}],\"name\":\"set\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "0af00bc5": "decrement(uint256,string)", "8ada066e": "getCounter()", "c87b285a": "increment(uint256,string)", "64371977": "set(uint256,string)", }, Bin: "0x60806040526000805534801561001457600080fd5b506102bc806100246000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80630af00bc51461005157806364371977146100665780638ada066e14610079578063c87b285a14610093575b600080fd5b61006461005f36600461018c565b6100a6565b005b61006461007436600461018c565b6100fe565b610081610137565b60405190815260200160405180910390f35b6100646100a136600461018c565b61017b565b826000808282546100b7919061021e565b90915550506000546040517fa5b236924ed143061aeda12329df0e5b7ecf459631fbbf10a8f604cc18787811916100f19185918591610235565b60405180910390a1505050565b60008390556040517fa5b236924ed143061aeda12329df0e5b7ecf459631fbbf10a8f604cc18787811906100f190849084908790610235565b60007f25576b06e88ffd030b5861892e5f7f6a72701cd1692179c1acf2f89914204f5f60005460405161016c91815260200190565b60405180910390a15060005490565b826000808282546100b7919061026e565b6000806000604084860312156101a157600080fd5b83359250602084013567ffffffffffffffff808211156101c057600080fd5b818601915086601f8301126101d457600080fd5b8135818111156101e357600080fd5b8760208285010111156101f557600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052601160045260246000fd5b60008282101561023057610230610208565b500390565b604081528260408201528284606083013760006060848301015260006060601f19601f8601168301019050826020830152949350505050565b6000821982111561028157610281610208565b50019056fea2646970667358221220e9f01cd347fe8cdf1074b8ebcae77691a79e4ab196ea84063b4d49da3022219f64736f6c63430008090033", }
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) (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.
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.
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) FilterPrintConfirmation ¶
func (_Counter *CounterFilterer) FilterPrintConfirmation(opts *bind.FilterOpts) (*CounterPrintConfirmationIterator, error)
FilterPrintConfirmation is a free log retrieval operation binding the contract event 0xa5b236924ed143061aeda12329df0e5b7ecf459631fbbf10a8f604cc18787811.
Solidity: event PrintConfirmation(string arg0, uint256 arg1)
func (*CounterFilterer) FilterPrintValue ¶
func (_Counter *CounterFilterer) FilterPrintValue(opts *bind.FilterOpts) (*CounterPrintValueIterator, error)
FilterPrintValue is a free log retrieval operation binding the contract event 0x25576b06e88ffd030b5861892e5f7f6a72701cd1692179c1acf2f89914204f5f.
Solidity: event PrintValue(uint256 arg0)
func (*CounterFilterer) ParsePrintConfirmation ¶
func (_Counter *CounterFilterer) ParsePrintConfirmation(log types.Log) (*CounterPrintConfirmation, error)
ParsePrintConfirmation is a log parse operation binding the contract event 0xa5b236924ed143061aeda12329df0e5b7ecf459631fbbf10a8f604cc18787811.
Solidity: event PrintConfirmation(string arg0, uint256 arg1)
func (*CounterFilterer) ParsePrintValue ¶
func (_Counter *CounterFilterer) ParsePrintValue(log types.Log) (*CounterPrintValue, error)
ParsePrintValue is a log parse operation binding the contract event 0x25576b06e88ffd030b5861892e5f7f6a72701cd1692179c1acf2f89914204f5f.
Solidity: event PrintValue(uint256 arg0)
func (*CounterFilterer) WatchPrintConfirmation ¶
func (_Counter *CounterFilterer) WatchPrintConfirmation(opts *bind.WatchOpts, sink chan<- *CounterPrintConfirmation) (event.Subscription, error)
WatchPrintConfirmation is a free log subscription operation binding the contract event 0xa5b236924ed143061aeda12329df0e5b7ecf459631fbbf10a8f604cc18787811.
Solidity: event PrintConfirmation(string arg0, uint256 arg1)
func (*CounterFilterer) WatchPrintValue ¶
func (_Counter *CounterFilterer) WatchPrintValue(opts *bind.WatchOpts, sink chan<- *CounterPrintValue) (event.Subscription, error)
WatchPrintValue is a free log subscription operation binding the contract event 0x25576b06e88ffd030b5861892e5f7f6a72701cd1692179c1acf2f89914204f5f.
Solidity: event PrintValue(uint256 arg0)
type CounterPrintConfirmation ¶
type CounterPrintConfirmation struct { Arg0 string Arg1 *big.Int Raw types.Log // Blockchain specific contextual infos }
CounterPrintConfirmation represents a PrintConfirmation event raised by the Counter contract.
type CounterPrintConfirmationIterator ¶
type CounterPrintConfirmationIterator struct { Event *CounterPrintConfirmation // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CounterPrintConfirmationIterator is returned from FilterPrintConfirmation and is used to iterate over the raw logs and unpacked data for PrintConfirmation events raised by the Counter contract.
func (*CounterPrintConfirmationIterator) Close ¶
func (it *CounterPrintConfirmationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CounterPrintConfirmationIterator) Error ¶
func (it *CounterPrintConfirmationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CounterPrintConfirmationIterator) Next ¶
func (it *CounterPrintConfirmationIterator) 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 CounterPrintValue ¶
type CounterPrintValue struct { Arg0 *big.Int Raw types.Log // Blockchain specific contextual infos }
CounterPrintValue represents a PrintValue event raised by the Counter contract.
type CounterPrintValueIterator ¶
type CounterPrintValueIterator struct { Event *CounterPrintValue // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CounterPrintValueIterator is returned from FilterPrintValue and is used to iterate over the raw logs and unpacked data for PrintValue events raised by the Counter contract.
func (*CounterPrintValueIterator) Close ¶
func (it *CounterPrintValueIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CounterPrintValueIterator) Error ¶
func (it *CounterPrintValueIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CounterPrintValueIterator) Next ¶
func (it *CounterPrintValueIterator) 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) Decrement ¶
func (_Counter *CounterSession) Decrement(value *big.Int, id string) (*types.Transaction, error)
Decrement is a paid mutator transaction binding the contract method 0x0af00bc5.
Solidity: function decrement(uint256 value, string id) returns()
func (*CounterSession) GetCounter ¶
func (_Counter *CounterSession) GetCounter() (*types.Transaction, error)
GetCounter is a paid mutator transaction binding the contract method 0x8ada066e.
Solidity: function getCounter() returns(uint256)
func (*CounterSession) Increment ¶
func (_Counter *CounterSession) Increment(value *big.Int, id string) (*types.Transaction, error)
Increment is a paid mutator transaction binding the contract method 0xc87b285a.
Solidity: function increment(uint256 value, string id) returns()
func (*CounterSession) Set ¶
func (_Counter *CounterSession) Set(value *big.Int, id string) (*types.Transaction, error)
Set is a paid mutator transaction binding the contract method 0x64371977.
Solidity: function set(uint256 value, string id) 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) Decrement ¶
func (_Counter *CounterTransactor) Decrement(opts *bind.TransactOpts, value *big.Int, id string) (*types.Transaction, error)
Decrement is a paid mutator transaction binding the contract method 0x0af00bc5.
Solidity: function decrement(uint256 value, string id) returns()
func (*CounterTransactor) GetCounter ¶
func (_Counter *CounterTransactor) GetCounter(opts *bind.TransactOpts) (*types.Transaction, error)
GetCounter is a paid mutator transaction binding the contract method 0x8ada066e.
Solidity: function getCounter() returns(uint256)
func (*CounterTransactor) Increment ¶
func (_Counter *CounterTransactor) Increment(opts *bind.TransactOpts, value *big.Int, id string) (*types.Transaction, error)
Increment is a paid mutator transaction binding the contract method 0xc87b285a.
Solidity: function increment(uint256 value, string id) returns()
func (*CounterTransactor) Set ¶
func (_Counter *CounterTransactor) Set(opts *bind.TransactOpts, value *big.Int, id string) (*types.Transaction, error)
Set is a paid mutator transaction binding the contract method 0x64371977.
Solidity: function set(uint256 value, string id) 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) Decrement ¶
func (_Counter *CounterTransactorSession) Decrement(value *big.Int, id string) (*types.Transaction, error)
Decrement is a paid mutator transaction binding the contract method 0x0af00bc5.
Solidity: function decrement(uint256 value, string id) returns()
func (*CounterTransactorSession) GetCounter ¶
func (_Counter *CounterTransactorSession) GetCounter() (*types.Transaction, error)
GetCounter is a paid mutator transaction binding the contract method 0x8ada066e.
Solidity: function getCounter() returns(uint256)
func (*CounterTransactorSession) Increment ¶
func (_Counter *CounterTransactorSession) Increment(value *big.Int, id string) (*types.Transaction, error)
Increment is a paid mutator transaction binding the contract method 0xc87b285a.
Solidity: function increment(uint256 value, string id) returns()
func (*CounterTransactorSession) Set ¶
func (_Counter *CounterTransactorSession) Set(value *big.Int, id string) (*types.Transaction, error)
Set is a paid mutator transaction binding the contract method 0x64371977.
Solidity: function set(uint256 value, string id) returns()