Documentation
¶
Index ¶
- Variables
- type StorageContract
- type StorageContractCaller
- type StorageContractCallerRaw
- type StorageContractCallerSession
- type StorageContractFilterer
- func (_StorageContract *StorageContractFilterer) FilterStoredNumber(opts *bind.FilterOpts, _from []common.Address, _oldNumber []*big.Int, ...) (*StorageContractStoredNumberIterator, error)
- func (_StorageContract *StorageContractFilterer) ParseStoredNumber(log types.Log) (*StorageContractStoredNumber, error)
- func (_StorageContract *StorageContractFilterer) WatchStoredNumber(opts *bind.WatchOpts, sink chan<- *StorageContractStoredNumber, ...) (event.Subscription, error)
- type StorageContractRaw
- func (_StorageContract *StorageContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_StorageContract *StorageContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_StorageContract *StorageContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type StorageContractSession
- type StorageContractStoredNumber
- type StorageContractStoredNumberIterator
- type StorageContractTransactor
- type StorageContractTransactorRaw
- type StorageContractTransactorSession
Constants ¶
This section is empty.
Variables ¶
var StorageContractABI = StorageContractMetaData.ABI
StorageContractABI is the input ABI used to generate the binding from. Deprecated: Use StorageContractMetaData.ABI instead.
var StorageContractBin = StorageContractMetaData.Bin
StorageContractBin is the compiled bytecode used for deploying new contracts. Deprecated: Use StorageContractMetaData.Bin instead.
var StorageContractMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_oldNumber\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_number\",\"type\":\"uint256\"}],\"name\":\"storedNumber\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"retrieve\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"num\",\"type\":\"uint256\"}],\"name\":\"store\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x608060405234801561001057600080fd5b5060bc8061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c80632e64cec11460375780636057361d14604c575b600080fd5b60005460405190815260200160405180910390f35b605b60573660046097565b605d565b005b6000805482825560405190918391839133917f87f16aa184eca14ea45e132328a5effbb79b9f921657bd03d83608f26d76f3cf9190a45050565b60006020828403121560a857600080fd5b503591905056fea164736f6c634300080f000a",
}
StorageContractMetaData contains all meta data concerning the StorageContract contract.
Functions ¶
This section is empty.
Types ¶
type StorageContract ¶
type StorageContract struct {
StorageContractCaller // Read-only binding to the contract
StorageContractTransactor // Write-only binding to the contract
StorageContractFilterer // Log filterer for contract events
}
StorageContract is an auto generated Go binding around an Ethereum contract.
func DeployStorageContract ¶
func DeployStorageContract(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *StorageContract, error)
DeployStorageContract deploys a new Ethereum contract, binding an instance of StorageContract to it.
func NewStorageContract ¶
func NewStorageContract(address common.Address, backend bind.ContractBackend) (*StorageContract, error)
NewStorageContract creates a new instance of StorageContract, bound to a specific deployed contract.
type StorageContractCaller ¶
type StorageContractCaller struct {
// contains filtered or unexported fields
}
StorageContractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewStorageContractCaller ¶
func NewStorageContractCaller(address common.Address, caller bind.ContractCaller) (*StorageContractCaller, error)
NewStorageContractCaller creates a new read-only instance of StorageContract, bound to a specific deployed contract.
type StorageContractCallerRaw ¶
type StorageContractCallerRaw struct {
Contract *StorageContractCaller // Generic read-only contract binding to access the raw methods on
}
StorageContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*StorageContractCallerRaw) Call ¶
func (_StorageContract *StorageContractCallerRaw) 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 StorageContractCallerSession ¶
type StorageContractCallerSession struct {
Contract *StorageContractCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
StorageContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type StorageContractFilterer ¶
type StorageContractFilterer struct {
// contains filtered or unexported fields
}
StorageContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewStorageContractFilterer ¶
func NewStorageContractFilterer(address common.Address, filterer bind.ContractFilterer) (*StorageContractFilterer, error)
NewStorageContractFilterer creates a new log filterer instance of StorageContract, bound to a specific deployed contract.
func (*StorageContractFilterer) FilterStoredNumber ¶
func (_StorageContract *StorageContractFilterer) FilterStoredNumber(opts *bind.FilterOpts, _from []common.Address, _oldNumber []*big.Int, _number []*big.Int) (*StorageContractStoredNumberIterator, error)
FilterStoredNumber is a free log retrieval operation binding the contract event 0x87f16aa184eca14ea45e132328a5effbb79b9f921657bd03d83608f26d76f3cf.
Solidity: event storedNumber(address indexed _from, uint256 indexed _oldNumber, uint256 indexed _number)
func (*StorageContractFilterer) ParseStoredNumber ¶
func (_StorageContract *StorageContractFilterer) ParseStoredNumber(log types.Log) (*StorageContractStoredNumber, error)
ParseStoredNumber is a log parse operation binding the contract event 0x87f16aa184eca14ea45e132328a5effbb79b9f921657bd03d83608f26d76f3cf.
Solidity: event storedNumber(address indexed _from, uint256 indexed _oldNumber, uint256 indexed _number)
func (*StorageContractFilterer) WatchStoredNumber ¶
func (_StorageContract *StorageContractFilterer) WatchStoredNumber(opts *bind.WatchOpts, sink chan<- *StorageContractStoredNumber, _from []common.Address, _oldNumber []*big.Int, _number []*big.Int) (event.Subscription, error)
WatchStoredNumber is a free log subscription operation binding the contract event 0x87f16aa184eca14ea45e132328a5effbb79b9f921657bd03d83608f26d76f3cf.
Solidity: event storedNumber(address indexed _from, uint256 indexed _oldNumber, uint256 indexed _number)
type StorageContractRaw ¶
type StorageContractRaw struct {
Contract *StorageContract // Generic contract binding to access the raw methods on
}
StorageContractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*StorageContractRaw) Call ¶
func (_StorageContract *StorageContractRaw) 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 (*StorageContractRaw) Transact ¶
func (_StorageContract *StorageContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StorageContractRaw) Transfer ¶
func (_StorageContract *StorageContractRaw) 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 StorageContractSession ¶
type StorageContractSession struct {
Contract *StorageContract // 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
}
StorageContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*StorageContractSession) Retrieve ¶
func (_StorageContract *StorageContractSession) Retrieve() (*big.Int, error)
Retrieve is a free data retrieval call binding the contract method 0x2e64cec1.
Solidity: function retrieve() view returns(uint256)
func (*StorageContractSession) Store ¶
func (_StorageContract *StorageContractSession) Store(num *big.Int) (*types.Transaction, error)
Store is a paid mutator transaction binding the contract method 0x6057361d.
Solidity: function store(uint256 num) returns()
type StorageContractStoredNumber ¶
type StorageContractStoredNumber struct {
From common.Address
OldNumber *big.Int
Number *big.Int
Raw types.Log // Blockchain specific contextual infos
}
StorageContractStoredNumber represents a StoredNumber event raised by the StorageContract contract.
type StorageContractStoredNumberIterator ¶
type StorageContractStoredNumberIterator struct {
Event *StorageContractStoredNumber // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
StorageContractStoredNumberIterator is returned from FilterStoredNumber and is used to iterate over the raw logs and unpacked data for StoredNumber events raised by the StorageContract contract.
func (*StorageContractStoredNumberIterator) Close ¶
func (it *StorageContractStoredNumberIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StorageContractStoredNumberIterator) Error ¶
func (it *StorageContractStoredNumberIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StorageContractStoredNumberIterator) Next ¶
func (it *StorageContractStoredNumberIterator) 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 StorageContractTransactor ¶
type StorageContractTransactor struct {
// contains filtered or unexported fields
}
StorageContractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewStorageContractTransactor ¶
func NewStorageContractTransactor(address common.Address, transactor bind.ContractTransactor) (*StorageContractTransactor, error)
NewStorageContractTransactor creates a new write-only instance of StorageContract, bound to a specific deployed contract.
func (*StorageContractTransactor) Store ¶
func (_StorageContract *StorageContractTransactor) Store(opts *bind.TransactOpts, num *big.Int) (*types.Transaction, error)
Store is a paid mutator transaction binding the contract method 0x6057361d.
Solidity: function store(uint256 num) returns()
type StorageContractTransactorRaw ¶
type StorageContractTransactorRaw struct {
Contract *StorageContractTransactor // Generic write-only contract binding to access the raw methods on
}
StorageContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*StorageContractTransactorRaw) Transact ¶
func (_StorageContract *StorageContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StorageContractTransactorRaw) Transfer ¶
func (_StorageContract *StorageContractTransactorRaw) 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 StorageContractTransactorSession ¶
type StorageContractTransactorSession struct {
Contract *StorageContractTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
StorageContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*StorageContractTransactorSession) Store ¶
func (_StorageContract *StorageContractTransactorSession) Store(num *big.Int) (*types.Transaction, error)
Store is a paid mutator transaction binding the contract method 0x6057361d.
Solidity: function store(uint256 num) returns()