store

package
v0.0.0-...-eb4623f Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StoreABI = StoreMetaData.ABI

StoreABI is the input ABI used to generate the binding from. Deprecated: Use StoreMetaData.ABI instead.

View Source
var StoreBin = StoreMetaData.Bin

StoreBin is the compiled bytecode used for deploying new contracts. Deprecated: Use StoreMetaData.Bin instead.

View Source
var StoreMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_version\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"}],\"name\":\"ItemSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"}],\"name\":\"getItem\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"items\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"}],\"name\":\"setItem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x60806040523480156200001157600080fd5b5060405162000f2238038062000f228339818101604052810190620000379190620001e3565b80600090816200004891906200047f565b505062000566565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620000b9826200006e565b810181811067ffffffffffffffff82111715620000db57620000da6200007f565b5b80604052505050565b6000620000f062000050565b9050620000fe8282620000ae565b919050565b600067ffffffffffffffff8211156200012157620001206200007f565b5b6200012c826200006e565b9050602081019050919050565b60005b83811015620001595780820151818401526020810190506200013c565b60008484015250505050565b60006200017c620001768462000103565b620000e4565b9050828152602081018484840111156200019b576200019a62000069565b5b620001a884828562000139565b509392505050565b600082601f830112620001c857620001c762000064565b5b8151620001da84826020860162000165565b91505092915050565b600060208284031215620001fc57620001fb6200005a565b5b600082015167ffffffffffffffff8111156200021d576200021c6200005f565b5b6200022b84828501620001b0565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200028757607f821691505b6020821081036200029d576200029c6200023f565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620003077fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620002c8565b620003138683620002c8565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620003606200035a62000354846200032b565b62000335565b6200032b565b9050919050565b6000819050919050565b6200037c836200033f565b620003946200038b8262000367565b848454620002d5565b825550505050565b600090565b620003ab6200039c565b620003b881848462000371565b505050565b5b81811015620003e057620003d4600082620003a1565b600181019050620003be565b5050565b601f8211156200042f57620003f981620002a3565b6200040484620002b8565b8101602085101562000414578190505b6200042c6200042385620002b8565b830182620003bd565b50505b505050565b600082821c905092915050565b6000620004546000198460080262000434565b1980831691505092915050565b60006200046f838362000441565b9150826002028217905092915050565b6200048a8262000234565b67ffffffffffffffff811115620004a657620004a56200007f565b5b620004b282546200026e565b620004bf828285620003e4565b600060209050601f831160018114620004f75760008415620004e2578287015190505b620004ee858262000461565b8655506200055e565b601f1984166200050786620002a3565b60005b8281101562000531578489015182556001820191506020850194506020810190506200050a565b868310156200055157848901516200054d601f89168262000441565b8355505b6001600288020188555050505b505050505050565b6109ac80620005766000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80634909b29b1461005157806354fd4d50146100815780637a4c982e1461009f578063b6010fcd146100bb575b600080fd5b61006b600480360381019061006691906104a2565b6100eb565b604051610078919061056a565b60405180910390f35b6100896101a1565b604051610096919061056a565b60405180910390f35b6100b960048036038101906100b4919061058c565b61022f565b005b6100d560048036038101906100d091906104a2565b610298565b6040516100e2919061056a565b60405180910390f35b600181805160208101820180518482526020830160208501208183528095505050505050600091509050805461012090610633565b80601f016020809104026020016040519081016040528092919081815260200182805461014c90610633565b80156101995780601f1061016e57610100808354040283529160200191610199565b820191906000526020600020905b81548152906001019060200180831161017c57829003601f168201915b505050505081565b600080546101ae90610633565b80601f01602080910402602001604051908101604052809291908181526020018280546101da90610633565b80156102275780601f106101fc57610100808354040283529160200191610227565b820191906000526020600020905b81548152906001019060200180831161020a57829003601f168201915b505050505081565b8060018360405161024091906106a0565b9081526020016040518091039020908161025a919061086d565b507f523139e7aa4a7267d8d1b859cba73a73993683d42bc00a7a06770e7b6ca57ef3828260405161028c92919061093f565b60405180910390a15050565b60606001826040516102aa91906106a0565b908152602001604051809103902080546102c390610633565b80601f01602080910402602001604051908101604052809291908181526020018280546102ef90610633565b801561033c5780601f106103115761010080835404028352916020019161033c565b820191906000526020600020905b81548152906001019060200180831161031f57829003601f168201915b50505050509050919050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6103af82610366565b810181811067ffffffffffffffff821117156103ce576103cd610377565b5b80604052505050565b60006103e1610348565b90506103ed82826103a6565b919050565b600067ffffffffffffffff82111561040d5761040c610377565b5b61041682610366565b9050602081019050919050565b82818337600083830152505050565b6000610445610440846103f2565b6103d7565b90508281526020810184848401111561046157610460610361565b5b61046c848285610423565b509392505050565b600082601f8301126104895761048861035c565b5b8135610499848260208601610432565b91505092915050565b6000602082840312156104b8576104b7610352565b5b600082013567ffffffffffffffff8111156104d6576104d5610357565b5b6104e284828501610474565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561052557808201518184015260208101905061050a565b60008484015250505050565b600061053c826104eb565b61054681856104f6565b9350610556818560208601610507565b61055f81610366565b840191505092915050565b600060208201905081810360008301526105848184610531565b905092915050565b600080604083850312156105a3576105a2610352565b5b600083013567ffffffffffffffff8111156105c1576105c0610357565b5b6105cd85828601610474565b925050602083013567ffffffffffffffff8111156105ee576105ed610357565b5b6105fa85828601610474565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061064b57607f821691505b60208210810361065e5761065d610604565b5b50919050565b600081905092915050565b600061067a826104eb565b6106848185610664565b9350610694818560208601610507565b80840191505092915050565b60006106ac828461066f565b915081905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026107197fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826106dc565b61072386836106dc565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600061076a6107656107608461073b565b610745565b61073b565b9050919050565b6000819050919050565b6107848361074f565b61079861079082610771565b8484546106e9565b825550505050565b600090565b6107ad6107a0565b6107b881848461077b565b505050565b5b818110156107dc576107d16000826107a5565b6001810190506107be565b5050565b601f821115610821576107f2816106b7565b6107fb846106cc565b8101602085101561080a578190505b61081e610816856106cc565b8301826107bd565b50505b505050565b600082821c905092915050565b600061084460001984600802610826565b1980831691505092915050565b600061085d8383610833565b9150826002028217905092915050565b610876826104eb565b67ffffffffffffffff81111561088f5761088e610377565b5b6108998254610633565b6108a48282856107e0565b600060209050601f8311600181146108d757600084156108c5578287015190505b6108cf8582610851565b865550610937565b601f1984166108e5866106b7565b60005b8281101561090d578489015182556001820191506020850194506020810190506108e8565b8683101561092a5784890151610926601f891682610833565b8355505b6001600288020188555050505b505050505050565b600060408201905081810360008301526109598185610531565b9050818103602083015261096d8184610531565b9050939250505056fea2646970667358221220ba67dc29214e296ae4b9a7efda1e9d35a792dcae6485079fd3eec1f8bcbd3e3c64736f6c63430008100033",
}

StoreMetaData contains all meta data concerning the Store contract.

Functions

This section is empty.

Types

type Store

type Store struct {
	StoreCaller     // Read-only binding to the contract
	StoreTransactor // Write-only binding to the contract
	StoreFilterer   // Log filterer for contract events
}

Store is an auto generated Go binding around an coqchain contract.

func DeployStore

func DeployStore(auth *bind.TransactOpts, backend bind.ContractBackend, _version string) (common.Address, *types.Transaction, *Store, error)

DeployStore deploys a new coqchain contract, binding an instance of Store to it.

func NewStore

func NewStore(address common.Address, backend bind.ContractBackend) (*Store, error)

NewStore creates a new instance of Store, bound to a specific deployed contract.

type StoreCaller

type StoreCaller struct {
	// contains filtered or unexported fields
}

StoreCaller is an auto generated read-only Go binding around an coqchain contract.

func NewStoreCaller

func NewStoreCaller(address common.Address, caller bind.ContractCaller) (*StoreCaller, error)

NewStoreCaller creates a new read-only instance of Store, bound to a specific deployed contract.

func (*StoreCaller) GetItem

func (_Store *StoreCaller) GetItem(opts *bind.CallOpts, key string) (string, error)

GetItem is a free data retrieval call binding the contract method 0xb6010fcd.

Solidity: function getItem(string key) view returns(string)

func (*StoreCaller) Items

func (_Store *StoreCaller) Items(opts *bind.CallOpts, arg0 string) (string, error)

Items is a free data retrieval call binding the contract method 0x4909b29b.

Solidity: function items(string ) view returns(string)

func (*StoreCaller) Version

func (_Store *StoreCaller) Version(opts *bind.CallOpts) (string, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(string)

type StoreCallerRaw

type StoreCallerRaw struct {
	Contract *StoreCaller // Generic read-only contract binding to access the raw methods on
}

StoreCallerRaw is an auto generated low-level read-only Go binding around an coqchain contract.

func (*StoreCallerRaw) Call

func (_Store *StoreCallerRaw) 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 StoreCallerSession

type StoreCallerSession struct {
	Contract *StoreCaller  // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

StoreCallerSession is an auto generated read-only Go binding around an coqchain contract, with pre-set call options.

func (*StoreCallerSession) GetItem

func (_Store *StoreCallerSession) GetItem(key string) (string, error)

GetItem is a free data retrieval call binding the contract method 0xb6010fcd.

Solidity: function getItem(string key) view returns(string)

func (*StoreCallerSession) Items

func (_Store *StoreCallerSession) Items(arg0 string) (string, error)

Items is a free data retrieval call binding the contract method 0x4909b29b.

Solidity: function items(string ) view returns(string)

func (*StoreCallerSession) Version

func (_Store *StoreCallerSession) Version() (string, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(string)

type StoreFilterer

type StoreFilterer struct {
	// contains filtered or unexported fields
}

StoreFilterer is an auto generated log filtering Go binding around an coqchain contract events.

func NewStoreFilterer

func NewStoreFilterer(address common.Address, filterer bind.ContractFilterer) (*StoreFilterer, error)

NewStoreFilterer creates a new log filterer instance of Store, bound to a specific deployed contract.

func (*StoreFilterer) FilterItemSet

func (_Store *StoreFilterer) FilterItemSet(opts *bind.FilterOpts) (*StoreItemSetIterator, error)

FilterItemSet is a free log retrieval operation binding the contract event 0x523139e7aa4a7267d8d1b859cba73a73993683d42bc00a7a06770e7b6ca57ef3.

Solidity: event ItemSet(string key, string value)

func (*StoreFilterer) ParseItemSet

func (_Store *StoreFilterer) ParseItemSet(log types.Log) (*StoreItemSet, error)

ParseItemSet is a log parse operation binding the contract event 0x523139e7aa4a7267d8d1b859cba73a73993683d42bc00a7a06770e7b6ca57ef3.

Solidity: event ItemSet(string key, string value)

func (*StoreFilterer) WatchItemSet

func (_Store *StoreFilterer) WatchItemSet(opts *bind.WatchOpts, sink chan<- *StoreItemSet) (event.Subscription, error)

WatchItemSet is a free log subscription operation binding the contract event 0x523139e7aa4a7267d8d1b859cba73a73993683d42bc00a7a06770e7b6ca57ef3.

Solidity: event ItemSet(string key, string value)

type StoreItemSet

type StoreItemSet struct {
	Key   string
	Value string
	Raw   types.Log // Blockchain specific contextual infos
}

StoreItemSet represents a ItemSet event raised by the Store contract.

type StoreItemSetIterator

type StoreItemSetIterator struct {
	Event *StoreItemSet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

StoreItemSetIterator is returned from FilterItemSet and is used to iterate over the raw logs and unpacked data for ItemSet events raised by the Store contract.

func (*StoreItemSetIterator) Close

func (it *StoreItemSetIterator) Close() error

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

func (*StoreItemSetIterator) Error

func (it *StoreItemSetIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StoreItemSetIterator) Next

func (it *StoreItemSetIterator) 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 StoreRaw

type StoreRaw struct {
	Contract *Store // Generic contract binding to access the raw methods on
}

StoreRaw is an auto generated low-level Go binding around an coqchain contract.

func (*StoreRaw) Call

func (_Store *StoreRaw) 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 (*StoreRaw) Transact

func (_Store *StoreRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*StoreRaw) Transfer

func (_Store *StoreRaw) 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 StoreSession

type StoreSession struct {
	Contract     *Store            // 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
}

StoreSession is an auto generated Go binding around an coqchain contract, with pre-set call and transact options.

func (*StoreSession) GetItem

func (_Store *StoreSession) GetItem(key string) (string, error)

GetItem is a free data retrieval call binding the contract method 0xb6010fcd.

Solidity: function getItem(string key) view returns(string)

func (*StoreSession) Items

func (_Store *StoreSession) Items(arg0 string) (string, error)

Items is a free data retrieval call binding the contract method 0x4909b29b.

Solidity: function items(string ) view returns(string)

func (*StoreSession) SetItem

func (_Store *StoreSession) SetItem(key string, value string) (*types.Transaction, error)

SetItem is a paid mutator transaction binding the contract method 0x7a4c982e.

Solidity: function setItem(string key, string value) returns()

func (*StoreSession) Version

func (_Store *StoreSession) Version() (string, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(string)

type StoreTransactor

type StoreTransactor struct {
	// contains filtered or unexported fields
}

StoreTransactor is an auto generated write-only Go binding around an coqchain contract.

func NewStoreTransactor

func NewStoreTransactor(address common.Address, transactor bind.ContractTransactor) (*StoreTransactor, error)

NewStoreTransactor creates a new write-only instance of Store, bound to a specific deployed contract.

func (*StoreTransactor) SetItem

func (_Store *StoreTransactor) SetItem(opts *bind.TransactOpts, key string, value string) (*types.Transaction, error)

SetItem is a paid mutator transaction binding the contract method 0x7a4c982e.

Solidity: function setItem(string key, string value) returns()

type StoreTransactorRaw

type StoreTransactorRaw struct {
	Contract *StoreTransactor // Generic write-only contract binding to access the raw methods on
}

StoreTransactorRaw is an auto generated low-level write-only Go binding around an coqchain contract.

func (*StoreTransactorRaw) Transact

func (_Store *StoreTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*StoreTransactorRaw) Transfer

func (_Store *StoreTransactorRaw) 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 StoreTransactorSession

type StoreTransactorSession struct {
	Contract     *StoreTransactor  // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

StoreTransactorSession is an auto generated write-only Go binding around an coqchain contract, with pre-set transact options.

func (*StoreTransactorSession) SetItem

func (_Store *StoreTransactorSession) SetItem(key string, value string) (*types.Transaction, error)

SetItem is a paid mutator transaction binding the contract method 0x7a4c982e.

Solidity: function setItem(string key, string value) returns()

Jump to

Keyboard shortcuts

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