Documentation ¶
Overview ¶
Package basic is generated code for accessing the basic smart contract.
Index ¶
- Variables
- type Basic
- type BasicCaller
- type BasicCallerRaw
- type BasicCallerSession
- type BasicFilterer
- type BasicItemSet
- type BasicItemSetIterator
- type BasicRaw
- func (_Basic *BasicRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Basic *BasicRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Basic *BasicRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type BasicSession
- type BasicTransactor
- type BasicTransactorRaw
- type BasicTransactorSession
Constants ¶
This section is empty.
Variables ¶
var BasicABI = BasicMetaData.ABI
BasicABI is the input ABI used to generate the binding from. Deprecated: Use BasicMetaData.ABI instead.
var BasicBin = BasicMetaData.Bin
BasicBin is the compiled bytecode used for deploying new contracts. Deprecated: Use BasicMetaData.Bin instead.
var BasicMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"ItemSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"Items\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SetItem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
Bin: "0x608060405234801561000f575f80fd5b506040518060400160405280600381526020017f312e3100000000000000000000000000000000000000000000000000000000008152505f90816100539190610293565b50610362565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806100d457607f821691505b6020821081036100e7576100e6610090565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026101497fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261010e565b610153868361010e565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f61019761019261018d8461016b565b610174565b61016b565b9050919050565b5f819050919050565b6101b08361017d565b6101c46101bc8261019e565b84845461011a565b825550505050565b5f90565b6101d86101cc565b6101e38184846101a7565b505050565b5b81811015610206576101fb5f826101d0565b6001810190506101e9565b5050565b601f82111561024b5761021c816100ed565b610225846100ff565b81016020851015610234578190505b610248610240856100ff565b8301826101e8565b50505b505050565b5f82821c905092915050565b5f61026b5f1984600802610250565b1980831691505092915050565b5f610283838361025c565b9150826002028217905092915050565b61029c82610059565b67ffffffffffffffff8111156102b5576102b4610063565b5b6102bf82546100bd565b6102ca82828561020a565b5f60209050601f8311600181146102fb575f84156102e9578287015190505b6102f38582610278565b86555061035a565b601f198416610309866100ed565b5f5b828110156103305784890151825560018201915060208501945060208101905061030b565b8683101561034d5784890151610349601f89168261025c565b8355505b6001600288020188555050505b505050505050565b61059f8061036f5f395ff3fe608060405234801561000f575f80fd5b506004361061003f575f3560e01c80634547a6b3146100435780638c5cf3ed14610073578063bb62860d1461008f575b5f80fd5b61005d60048036038101906100589190610312565b6100ad565b60405161006a9190610371565b60405180910390f35b61008d600480360381019061008891906103b4565b6100da565b005b61009761013a565b6040516100a4919061046e565b60405180910390f35b6001818051602081018201805184825260208301602085012081835280955050505050505f915090505481565b806001836040516100eb91906104c8565b9081526020016040518091039020819055507f814c96094cf9633fd519eab4539bc5f26a8ab7965b7243057596bafd3318e60f828260405161012e9291906104de565b60405180910390a15050565b5f805461014690610539565b80601f016020809104026020016040519081016040528092919081815260200182805461017290610539565b80156101bd5780601f10610194576101008083540402835291602001916101bd565b820191905f5260205f20905b8154815290600101906020018083116101a057829003601f168201915b505050505081565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610224826101de565b810181811067ffffffffffffffff82111715610243576102426101ee565b5b80604052505050565b5f6102556101c5565b9050610261828261021b565b919050565b5f67ffffffffffffffff8211156102805761027f6101ee565b5b610289826101de565b9050602081019050919050565b828183375f83830152505050565b5f6102b66102b184610266565b61024c565b9050828152602081018484840111156102d2576102d16101da565b5b6102dd848285610296565b509392505050565b5f82601f8301126102f9576102f86101d6565b5b81356103098482602086016102a4565b91505092915050565b5f60208284031215610327576103266101ce565b5b5f82013567ffffffffffffffff811115610344576103436101d2565b5b610350848285016102e5565b91505092915050565b5f819050919050565b61036b81610359565b82525050565b5f6020820190506103845f830184610362565b92915050565b61039381610359565b811461039d575f80fd5b50565b5f813590506103ae8161038a565b92915050565b5f80604083850312156103ca576103c96101ce565b5b5f83013567ffffffffffffffff8111156103e7576103e66101d2565b5b6103f3858286016102e5565b9250506020610404858286016103a0565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f6104408261040e565b61044a8185610418565b935061045a818560208601610428565b610463816101de565b840191505092915050565b5f6020820190508181035f8301526104868184610436565b905092915050565b5f81905092915050565b5f6104a28261040e565b6104ac818561048e565b93506104bc818560208601610428565b80840191505092915050565b5f6104d38284610498565b915081905092915050565b5f6040820190508181035f8301526104f68185610436565b90506105056020830184610362565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061055057607f821691505b6020821081036105635761056261050c565b5b5091905056fea2646970667358221220b9106785631d9a2f249fcebd6c88396c3baae798fc3961a16ad0752ec71ce8fe64736f6c63430008190033",
}
BasicMetaData contains all meta data concerning the Basic contract.
Functions ¶
This section is empty.
Types ¶
type Basic ¶
type Basic struct { BasicCaller // Read-only binding to the contract BasicTransactor // Write-only binding to the contract BasicFilterer // Log filterer for contract events }
Basic is an auto generated Go binding around an Ethereum contract.
func DeployBasic ¶
func DeployBasic(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Basic, error)
DeployBasic deploys a new Ethereum contract, binding an instance of Basic to it.
type BasicCaller ¶
type BasicCaller struct {
// contains filtered or unexported fields
}
BasicCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewBasicCaller ¶
func NewBasicCaller(address common.Address, caller bind.ContractCaller) (*BasicCaller, error)
NewBasicCaller creates a new read-only instance of Basic, bound to a specific deployed contract.
type BasicCallerRaw ¶
type BasicCallerRaw struct {
Contract *BasicCaller // Generic read-only contract binding to access the raw methods on
}
BasicCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*BasicCallerRaw) Call ¶
func (_Basic *BasicCallerRaw) 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 BasicCallerSession ¶
type BasicCallerSession struct { Contract *BasicCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
BasicCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*BasicCallerSession) Items ¶
func (_Basic *BasicCallerSession) Items(arg0 string) (*big.Int, error)
Items is a free data retrieval call binding the contract method 0x4547a6b3.
Solidity: function Items(string ) view returns(uint256)
func (*BasicCallerSession) Version ¶
func (_Basic *BasicCallerSession) Version() (string, error)
Version is a free data retrieval call binding the contract method 0xbb62860d.
Solidity: function Version() view returns(string)
type BasicFilterer ¶
type BasicFilterer struct {
// contains filtered or unexported fields
}
BasicFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewBasicFilterer ¶
func NewBasicFilterer(address common.Address, filterer bind.ContractFilterer) (*BasicFilterer, error)
NewBasicFilterer creates a new log filterer instance of Basic, bound to a specific deployed contract.
func (*BasicFilterer) FilterItemSet ¶
func (_Basic *BasicFilterer) FilterItemSet(opts *bind.FilterOpts) (*BasicItemSetIterator, error)
FilterItemSet is a free log retrieval operation binding the contract event 0x814c96094cf9633fd519eab4539bc5f26a8ab7965b7243057596bafd3318e60f.
Solidity: event ItemSet(string key, uint256 value)
func (*BasicFilterer) ParseItemSet ¶
func (_Basic *BasicFilterer) ParseItemSet(log types.Log) (*BasicItemSet, error)
ParseItemSet is a log parse operation binding the contract event 0x814c96094cf9633fd519eab4539bc5f26a8ab7965b7243057596bafd3318e60f.
Solidity: event ItemSet(string key, uint256 value)
func (*BasicFilterer) WatchItemSet ¶
func (_Basic *BasicFilterer) WatchItemSet(opts *bind.WatchOpts, sink chan<- *BasicItemSet) (event.Subscription, error)
WatchItemSet is a free log subscription operation binding the contract event 0x814c96094cf9633fd519eab4539bc5f26a8ab7965b7243057596bafd3318e60f.
Solidity: event ItemSet(string key, uint256 value)
type BasicItemSet ¶
type BasicItemSet struct { Key string Value *big.Int Raw types.Log // Blockchain specific contextual infos }
BasicItemSet represents a ItemSet event raised by the Basic contract.
type BasicItemSetIterator ¶
type BasicItemSetIterator struct { Event *BasicItemSet // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BasicItemSetIterator is returned from FilterItemSet and is used to iterate over the raw logs and unpacked data for ItemSet events raised by the Basic contract.
func (*BasicItemSetIterator) Close ¶
func (it *BasicItemSetIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BasicItemSetIterator) Error ¶
func (it *BasicItemSetIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BasicItemSetIterator) Next ¶
func (it *BasicItemSetIterator) 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 BasicRaw ¶
type BasicRaw struct {
Contract *Basic // Generic contract binding to access the raw methods on
}
BasicRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*BasicRaw) Call ¶
func (_Basic *BasicRaw) 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 (*BasicRaw) Transact ¶
func (_Basic *BasicRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BasicRaw) Transfer ¶
func (_Basic *BasicRaw) 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 BasicSession ¶
type BasicSession struct { Contract *Basic // 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 }
BasicSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*BasicSession) Items ¶
func (_Basic *BasicSession) Items(arg0 string) (*big.Int, error)
Items is a free data retrieval call binding the contract method 0x4547a6b3.
Solidity: function Items(string ) view returns(uint256)
func (*BasicSession) SetItem ¶
func (_Basic *BasicSession) SetItem(key string, value *big.Int) (*types.Transaction, error)
SetItem is a paid mutator transaction binding the contract method 0x8c5cf3ed.
Solidity: function SetItem(string key, uint256 value) returns()
func (*BasicSession) Version ¶
func (_Basic *BasicSession) Version() (string, error)
Version is a free data retrieval call binding the contract method 0xbb62860d.
Solidity: function Version() view returns(string)
type BasicTransactor ¶
type BasicTransactor struct {
// contains filtered or unexported fields
}
BasicTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewBasicTransactor ¶
func NewBasicTransactor(address common.Address, transactor bind.ContractTransactor) (*BasicTransactor, error)
NewBasicTransactor creates a new write-only instance of Basic, bound to a specific deployed contract.
func (*BasicTransactor) SetItem ¶
func (_Basic *BasicTransactor) SetItem(opts *bind.TransactOpts, key string, value *big.Int) (*types.Transaction, error)
SetItem is a paid mutator transaction binding the contract method 0x8c5cf3ed.
Solidity: function SetItem(string key, uint256 value) returns()
type BasicTransactorRaw ¶
type BasicTransactorRaw struct {
Contract *BasicTransactor // Generic write-only contract binding to access the raw methods on
}
BasicTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*BasicTransactorRaw) Transact ¶
func (_Basic *BasicTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BasicTransactorRaw) Transfer ¶
func (_Basic *BasicTransactorRaw) 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 BasicTransactorSession ¶
type BasicTransactorSession struct { Contract *BasicTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
BasicTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*BasicTransactorSession) SetItem ¶
func (_Basic *BasicTransactorSession) SetItem(key string, value *big.Int) (*types.Transaction, error)
SetItem is a paid mutator transaction binding the contract method 0x8c5cf3ed.
Solidity: function SetItem(string key, uint256 value) returns()