Documentation ¶
Index ¶
- Variables
- type KVstore
- type KVstoreCaller
- type KVstoreCallerRaw
- type KVstoreCallerSession
- type KVstoreFilterer
- func (_KVstore *KVstoreFilterer) FilterPrintConfirmation(opts *bind.FilterOpts) (*KVstorePrintConfirmationIterator, error)
- func (_KVstore *KVstoreFilterer) FilterPrintInserts(opts *bind.FilterOpts) (*KVstorePrintInsertsIterator, error)
- func (_KVstore *KVstoreFilterer) FilterPrintKVAck(opts *bind.FilterOpts) (*KVstorePrintKVAckIterator, error)
- func (_KVstore *KVstoreFilterer) ParsePrintConfirmation(log types.Log) (*KVstorePrintConfirmation, error)
- func (_KVstore *KVstoreFilterer) ParsePrintInserts(log types.Log) (*KVstorePrintInserts, error)
- func (_KVstore *KVstoreFilterer) ParsePrintKVAck(log types.Log) (*KVstorePrintKVAck, error)
- func (_KVstore *KVstoreFilterer) WatchPrintConfirmation(opts *bind.WatchOpts, sink chan<- *KVstorePrintConfirmation) (event.Subscription, error)
- func (_KVstore *KVstoreFilterer) WatchPrintInserts(opts *bind.WatchOpts, sink chan<- *KVstorePrintInserts) (event.Subscription, error)
- func (_KVstore *KVstoreFilterer) WatchPrintKVAck(opts *bind.WatchOpts, sink chan<- *KVstorePrintKVAck) (event.Subscription, error)
- type KVstorePrintConfirmation
- type KVstorePrintConfirmationIterator
- type KVstorePrintInserts
- type KVstorePrintInsertsIterator
- type KVstorePrintKVAck
- type KVstorePrintKVAckIterator
- type KVstoreRaw
- func (_KVstore *KVstoreRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_KVstore *KVstoreRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_KVstore *KVstoreRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type KVstoreSession
- type KVstoreTransactor
- type KVstoreTransactorRaw
- type KVstoreTransactorSession
Constants ¶
This section is empty.
Variables ¶
var KVstoreABI = KVstoreMetaData.ABI
KVstoreABI is the input ABI used to generate the binding from. Deprecated: Use KVstoreMetaData.ABI instead.
var KVstoreBin = KVstoreMetaData.Bin
KVstoreBin is the compiled bytecode used for deploying new contracts. Deprecated: Use KVstoreMetaData.Bin instead.
var KVstoreFuncSigs = KVstoreMetaData.Sigs
Deprecated: Use KVstoreMetaData.Sigs instead. KVstoreFuncSigs maps the 4-byte function signature to its string representation.
var KVstoreMetaData = &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\":\"PrintInserts\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"PrintKVAck\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"PrintTotalInserts\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_key\",\"type\":\"string\"}],\"name\":\"get\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_key\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_value\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"id\",\"type\":\"string\"}],\"name\":\"set\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", Sigs: map[string]string{ "643e1fee": "PrintTotalInserts()", "693ec85e": "get(string)", "da465d74": "set(string,string,string)", }, Bin: "0x6080604052600060015534801561001557600080fd5b50610584806100256000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063643e1fee14610046578063693ec85e14610050578063da465d7414610079575b600080fd5b61004e61008c565b005b61006361005e366004610342565b6100c9565b60405161007091906103af565b60405180910390f35b61004e6100873660046103e2565b610179565b7f09fa0639e8315051b795e692c47314cab4d06c7baa13ae2a68d0669cea279a526001546040516100bf91815260200190565b60405180910390a1565b60606000826040516100db9190610498565b908152602001604051809103902080546100f4906104b4565b80601f0160208091040260200160405190810160405280929190818152602001828054610120906104b4565b801561016d5780601f106101425761010080835404028352916020019161016d565b820191906000526020600020905b81548152906001019060200180831161015057829003601f168201915b50505050509050919050565b8260008560405161018a9190610498565b908152602001604051809103902090805190602001906101ab929190610206565b5060018060008282546101be91906104ef565b90915550506001546040517fa5b236924ed143061aeda12329df0e5b7ecf459631fbbf10a8f604cc18787811916101f89185918591610515565b60405180910390a150505050565b828054610212906104b4565b90600052602060002090601f016020900481019282610234576000855561027a565b82601f1061024d57805160ff191683800117855561027a565b8280016001018555821561027a579182015b8281111561027a57825182559160200191906001019061025f565b5061028692915061028a565b5090565b5b80821115610286576000815560010161028b565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126102c657600080fd5b813567ffffffffffffffff808211156102e1576102e161029f565b604051601f8301601f19908116603f011681019082821181831017156103095761030961029f565b8160405283815286602085880101111561032257600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561035457600080fd5b813567ffffffffffffffff81111561036b57600080fd5b610377848285016102b5565b949350505050565b60005b8381101561039a578181015183820152602001610382565b838111156103a9576000848401525b50505050565b60208152600082518060208401526103ce81604085016020870161037f565b601f01601f19169190910160400192915050565b600080600080606085870312156103f857600080fd5b843567ffffffffffffffff8082111561041057600080fd5b61041c888389016102b5565b9550602087013591508082111561043257600080fd5b61043e888389016102b5565b9450604087013591508082111561045457600080fd5b818701915087601f83011261046857600080fd5b81358181111561047757600080fd5b88602082850101111561048957600080fd5b95989497505060200194505050565b600082516104aa81846020870161037f565b9190910192915050565b600181811c908216806104c857607f821691505b602082108114156104e957634e487b7160e01b600052602260045260246000fd5b50919050565b6000821982111561051057634e487b7160e01b600052601160045260246000fd5b500190565b604081528260408201528284606083013760006060848301015260006060601f19601f860116830101905082602083015294935050505056fea26469706673582212204c1c0b4379c104e6db788d63a2b6f92627dd5825feb0b86cd7e7a99ad5097dd664736f6c63430008090033", }
KVstoreMetaData contains all meta data concerning the KVstore contract.
Functions ¶
This section is empty.
Types ¶
type KVstore ¶
type KVstore struct { KVstoreCaller // Read-only binding to the contract KVstoreTransactor // Write-only binding to the contract KVstoreFilterer // Log filterer for contract events }
KVstore is an auto generated Go binding around an Ethereum contract.
func DeployKVstore ¶
func DeployKVstore(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *KVstore, error)
DeployKVstore deploys a new Ethereum contract, binding an instance of KVstore to it.
func NewKVstore ¶
NewKVstore creates a new instance of KVstore, bound to a specific deployed contract.
type KVstoreCaller ¶
type KVstoreCaller struct {
// contains filtered or unexported fields
}
KVstoreCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewKVstoreCaller ¶
func NewKVstoreCaller(address common.Address, caller bind.ContractCaller) (*KVstoreCaller, error)
NewKVstoreCaller creates a new read-only instance of KVstore, bound to a specific deployed contract.
type KVstoreCallerRaw ¶
type KVstoreCallerRaw struct {
Contract *KVstoreCaller // Generic read-only contract binding to access the raw methods on
}
KVstoreCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*KVstoreCallerRaw) Call ¶
func (_KVstore *KVstoreCallerRaw) 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 KVstoreCallerSession ¶
type KVstoreCallerSession struct { Contract *KVstoreCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
KVstoreCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type KVstoreFilterer ¶
type KVstoreFilterer struct {
// contains filtered or unexported fields
}
KVstoreFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewKVstoreFilterer ¶
func NewKVstoreFilterer(address common.Address, filterer bind.ContractFilterer) (*KVstoreFilterer, error)
NewKVstoreFilterer creates a new log filterer instance of KVstore, bound to a specific deployed contract.
func (*KVstoreFilterer) FilterPrintConfirmation ¶
func (_KVstore *KVstoreFilterer) FilterPrintConfirmation(opts *bind.FilterOpts) (*KVstorePrintConfirmationIterator, error)
FilterPrintConfirmation is a free log retrieval operation binding the contract event 0xa5b236924ed143061aeda12329df0e5b7ecf459631fbbf10a8f604cc18787811.
Solidity: event PrintConfirmation(string arg0, uint256 arg1)
func (*KVstoreFilterer) FilterPrintInserts ¶
func (_KVstore *KVstoreFilterer) FilterPrintInserts(opts *bind.FilterOpts) (*KVstorePrintInsertsIterator, error)
FilterPrintInserts is a free log retrieval operation binding the contract event 0x09fa0639e8315051b795e692c47314cab4d06c7baa13ae2a68d0669cea279a52.
Solidity: event PrintInserts(uint256 arg0)
func (*KVstoreFilterer) FilterPrintKVAck ¶
func (_KVstore *KVstoreFilterer) FilterPrintKVAck(opts *bind.FilterOpts) (*KVstorePrintKVAckIterator, error)
FilterPrintKVAck is a free log retrieval operation binding the contract event 0xdf4afc806a701f112b8f38868c22361c40e980b57f7c0d0506d26355a45a0c4e.
Solidity: event PrintKVAck(uint256 arg0, string arg1, string arg2)
func (*KVstoreFilterer) ParsePrintConfirmation ¶
func (_KVstore *KVstoreFilterer) ParsePrintConfirmation(log types.Log) (*KVstorePrintConfirmation, error)
ParsePrintConfirmation is a log parse operation binding the contract event 0xa5b236924ed143061aeda12329df0e5b7ecf459631fbbf10a8f604cc18787811.
Solidity: event PrintConfirmation(string arg0, uint256 arg1)
func (*KVstoreFilterer) ParsePrintInserts ¶
func (_KVstore *KVstoreFilterer) ParsePrintInserts(log types.Log) (*KVstorePrintInserts, error)
ParsePrintInserts is a log parse operation binding the contract event 0x09fa0639e8315051b795e692c47314cab4d06c7baa13ae2a68d0669cea279a52.
Solidity: event PrintInserts(uint256 arg0)
func (*KVstoreFilterer) ParsePrintKVAck ¶
func (_KVstore *KVstoreFilterer) ParsePrintKVAck(log types.Log) (*KVstorePrintKVAck, error)
ParsePrintKVAck is a log parse operation binding the contract event 0xdf4afc806a701f112b8f38868c22361c40e980b57f7c0d0506d26355a45a0c4e.
Solidity: event PrintKVAck(uint256 arg0, string arg1, string arg2)
func (*KVstoreFilterer) WatchPrintConfirmation ¶
func (_KVstore *KVstoreFilterer) WatchPrintConfirmation(opts *bind.WatchOpts, sink chan<- *KVstorePrintConfirmation) (event.Subscription, error)
WatchPrintConfirmation is a free log subscription operation binding the contract event 0xa5b236924ed143061aeda12329df0e5b7ecf459631fbbf10a8f604cc18787811.
Solidity: event PrintConfirmation(string arg0, uint256 arg1)
func (*KVstoreFilterer) WatchPrintInserts ¶
func (_KVstore *KVstoreFilterer) WatchPrintInserts(opts *bind.WatchOpts, sink chan<- *KVstorePrintInserts) (event.Subscription, error)
WatchPrintInserts is a free log subscription operation binding the contract event 0x09fa0639e8315051b795e692c47314cab4d06c7baa13ae2a68d0669cea279a52.
Solidity: event PrintInserts(uint256 arg0)
func (*KVstoreFilterer) WatchPrintKVAck ¶
func (_KVstore *KVstoreFilterer) WatchPrintKVAck(opts *bind.WatchOpts, sink chan<- *KVstorePrintKVAck) (event.Subscription, error)
WatchPrintKVAck is a free log subscription operation binding the contract event 0xdf4afc806a701f112b8f38868c22361c40e980b57f7c0d0506d26355a45a0c4e.
Solidity: event PrintKVAck(uint256 arg0, string arg1, string arg2)
type KVstorePrintConfirmation ¶
type KVstorePrintConfirmation struct { Arg0 string Arg1 *big.Int Raw types.Log // Blockchain specific contextual infos }
KVstorePrintConfirmation represents a PrintConfirmation event raised by the KVstore contract.
type KVstorePrintConfirmationIterator ¶
type KVstorePrintConfirmationIterator struct { Event *KVstorePrintConfirmation // Event containing the contract specifics and raw log // contains filtered or unexported fields }
KVstorePrintConfirmationIterator is returned from FilterPrintConfirmation and is used to iterate over the raw logs and unpacked data for PrintConfirmation events raised by the KVstore contract.
func (*KVstorePrintConfirmationIterator) Close ¶
func (it *KVstorePrintConfirmationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*KVstorePrintConfirmationIterator) Error ¶
func (it *KVstorePrintConfirmationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*KVstorePrintConfirmationIterator) Next ¶
func (it *KVstorePrintConfirmationIterator) 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 KVstorePrintInserts ¶
type KVstorePrintInserts struct { Arg0 *big.Int Raw types.Log // Blockchain specific contextual infos }
KVstorePrintInserts represents a PrintInserts event raised by the KVstore contract.
type KVstorePrintInsertsIterator ¶
type KVstorePrintInsertsIterator struct { Event *KVstorePrintInserts // Event containing the contract specifics and raw log // contains filtered or unexported fields }
KVstorePrintInsertsIterator is returned from FilterPrintInserts and is used to iterate over the raw logs and unpacked data for PrintInserts events raised by the KVstore contract.
func (*KVstorePrintInsertsIterator) Close ¶
func (it *KVstorePrintInsertsIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*KVstorePrintInsertsIterator) Error ¶
func (it *KVstorePrintInsertsIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*KVstorePrintInsertsIterator) Next ¶
func (it *KVstorePrintInsertsIterator) 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 KVstorePrintKVAck ¶
type KVstorePrintKVAck struct { Arg0 *big.Int Arg1 string Arg2 string Raw types.Log // Blockchain specific contextual infos }
KVstorePrintKVAck represents a PrintKVAck event raised by the KVstore contract.
type KVstorePrintKVAckIterator ¶
type KVstorePrintKVAckIterator struct { Event *KVstorePrintKVAck // Event containing the contract specifics and raw log // contains filtered or unexported fields }
KVstorePrintKVAckIterator is returned from FilterPrintKVAck and is used to iterate over the raw logs and unpacked data for PrintKVAck events raised by the KVstore contract.
func (*KVstorePrintKVAckIterator) Close ¶
func (it *KVstorePrintKVAckIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*KVstorePrintKVAckIterator) Error ¶
func (it *KVstorePrintKVAckIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*KVstorePrintKVAckIterator) Next ¶
func (it *KVstorePrintKVAckIterator) 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 KVstoreRaw ¶
type KVstoreRaw struct {
Contract *KVstore // Generic contract binding to access the raw methods on
}
KVstoreRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*KVstoreRaw) Call ¶
func (_KVstore *KVstoreRaw) 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 (*KVstoreRaw) Transact ¶
func (_KVstore *KVstoreRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*KVstoreRaw) Transfer ¶
func (_KVstore *KVstoreRaw) 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 KVstoreSession ¶
type KVstoreSession struct { Contract *KVstore // 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 }
KVstoreSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*KVstoreSession) Get ¶
func (_KVstore *KVstoreSession) Get(_key string) (string, error)
Get is a free data retrieval call binding the contract method 0x693ec85e.
Solidity: function get(string _key) view returns(string)
func (*KVstoreSession) PrintTotalInserts ¶
func (_KVstore *KVstoreSession) PrintTotalInserts() (*types.Transaction, error)
PrintTotalInserts is a paid mutator transaction binding the contract method 0x643e1fee.
Solidity: function PrintTotalInserts() returns()
func (*KVstoreSession) Set ¶
func (_KVstore *KVstoreSession) Set(_key string, _value string, id string) (*types.Transaction, error)
Set is a paid mutator transaction binding the contract method 0xda465d74.
Solidity: function set(string _key, string _value, string id) returns()
type KVstoreTransactor ¶
type KVstoreTransactor struct {
// contains filtered or unexported fields
}
KVstoreTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewKVstoreTransactor ¶
func NewKVstoreTransactor(address common.Address, transactor bind.ContractTransactor) (*KVstoreTransactor, error)
NewKVstoreTransactor creates a new write-only instance of KVstore, bound to a specific deployed contract.
func (*KVstoreTransactor) PrintTotalInserts ¶
func (_KVstore *KVstoreTransactor) PrintTotalInserts(opts *bind.TransactOpts) (*types.Transaction, error)
PrintTotalInserts is a paid mutator transaction binding the contract method 0x643e1fee.
Solidity: function PrintTotalInserts() returns()
func (*KVstoreTransactor) Set ¶
func (_KVstore *KVstoreTransactor) Set(opts *bind.TransactOpts, _key string, _value string, id string) (*types.Transaction, error)
Set is a paid mutator transaction binding the contract method 0xda465d74.
Solidity: function set(string _key, string _value, string id) returns()
type KVstoreTransactorRaw ¶
type KVstoreTransactorRaw struct {
Contract *KVstoreTransactor // Generic write-only contract binding to access the raw methods on
}
KVstoreTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*KVstoreTransactorRaw) Transact ¶
func (_KVstore *KVstoreTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*KVstoreTransactorRaw) Transfer ¶
func (_KVstore *KVstoreTransactorRaw) 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 KVstoreTransactorSession ¶
type KVstoreTransactorSession struct { Contract *KVstoreTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
KVstoreTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*KVstoreTransactorSession) PrintTotalInserts ¶
func (_KVstore *KVstoreTransactorSession) PrintTotalInserts() (*types.Transaction, error)
PrintTotalInserts is a paid mutator transaction binding the contract method 0x643e1fee.
Solidity: function PrintTotalInserts() returns()
func (*KVstoreTransactorSession) Set ¶
func (_KVstore *KVstoreTransactorSession) Set(_key string, _value string, id string) (*types.Transaction, error)
Set is a paid mutator transaction binding the contract method 0xda465d74.
Solidity: function set(string _key, string _value, string id) returns()