Documentation
¶
Index ¶
- Constants
- Variables
- func AsyncDeployStore(auth *bind.TransactOpts, handler func(*types.Receipt, error), ...) (*types.Transaction, error)
- type BCOSChain
- type Config
- type Store
- type StoreCaller
- type StoreCallerRaw
- type StoreCallerSession
- type StoreFilterer
- type StoreRaw
- func (_Store *StoreRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Store *StoreRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)
- func (_Store *StoreRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)
- type StoreSession
- type StoreSet
- type StoreSetIterator
- type StoreTransactor
- type StoreTransactorRaw
- type StoreTransactorSession
Constants ¶
const ( Prefix = "bcos" ConfigFile = "config_file" StoreContractAddr = "store_contract_addr" )
const StoreABI = "" /* 648-byte string literal not displayed */
StoreABI is the input ABI used to generate the binding from.
Variables ¶
var StoreBin = "" /* 2114-byte string literal not displayed */
StoreBin is the compiled bytecode used for deploying new contracts.
Functions ¶
func AsyncDeployStore ¶
func AsyncDeployStore(auth *bind.TransactOpts, handler func(*types.Receipt, error), backend bind.ContractBackend) (*types.Transaction, error)
Types ¶
type BCOSChain ¶
type BCOSChain struct { Client *bcosclient.Client StoreAddr string // store contract address StoreSession *StoreSession // store contract session }
BCOSChain defines the BCOS chain
func MakeBCOSChain ¶
MakeBCOSChain builds a BCOS chain from the given config
func NewBCOSChain ¶
NewBCOSChain constructs a new BCOSChain instance
func (BCOSChain) WaitForReceipt ¶
WaitForReceipt waits for the receipt of the given tx
type Config ¶
type Config struct { ConfigFile string `yaml:"config_file"` StoreContractAddr string `yaml:"store_contract_addr"` }
Config represents the BCOS chain config
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 a Solidity contract.
func DeployStore ¶
func DeployStore(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Store, error)
DeployStore deploys a new contract, binding an instance of Store to it.
type StoreCaller ¶
type StoreCaller struct {
// contains filtered or unexported fields
}
StoreCaller is an auto generated read-only Go binding around a Solidity 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.
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 a Solidity 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 a Solidity contract, with pre-set call options.
type StoreFilterer ¶
type StoreFilterer struct {
// contains filtered or unexported fields
}
StoreFilterer is an auto generated log filtering Go binding around a Solidity 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) FilterSet ¶
func (_Store *StoreFilterer) FilterSet(opts *bind.FilterOpts) (*StoreSetIterator, error)
FilterSet is a free log retrieval operation binding the contract event 0x00000000000000000000000000000000000000000000000000000000db95fb27.
Solidity: event Set(bytes32 key, string value)
func (*StoreFilterer) ParseSet ¶
func (_Store *StoreFilterer) ParseSet(log types.Log) (*StoreSet, error)
ParseSet is a log parse operation binding the contract event 0x00000000000000000000000000000000000000000000000000000000db95fb27.
Solidity: event Set(bytes32 key, string value)
func (*StoreFilterer) WatchSet ¶
func (_Store *StoreFilterer) WatchSet(opts *bind.WatchOpts, sink chan<- *StoreSet) (event.Subscription, error)
WatchSet is a free log subscription operation binding the contract event 0x00000000000000000000000000000000000000000000000000000000db95fb27.
Solidity: event Set(bytes32 key, string value)
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 a Solidity 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, *types.Receipt, error)
Transact invokes the (paid) contract method with params as input values.
func (*StoreRaw) Transfer ¶
func (_Store *StoreRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, 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 a Solidity contract, with pre-set call and transact options.
func (*StoreSession) AsyncSet ¶
func (_Store *StoreSession) AsyncSet(handler func(*types.Receipt, error), value string) (*types.Transaction, error)
func (*StoreSession) Set ¶
func (_Store *StoreSession) Set(value string) (*types.Transaction, *types.Receipt, error)
Set is a paid mutator transaction binding the contract method 0x3590b49f.
Solidity: function set(string value) returns()
type StoreSet ¶
type StoreSet struct { Key [32]byte Value string Raw types.Log // Blockchain specific contextual infos }
StoreSet represents a Set event raised by the Store contract.
type StoreSetIterator ¶
type StoreSetIterator struct { Event *StoreSet // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StoreSetIterator is returned from FilterSet and is used to iterate over the raw logs and unpacked data for Set events raised by the Store contract.
func (*StoreSetIterator) Close ¶
func (it *StoreSetIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StoreSetIterator) Error ¶
func (it *StoreSetIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StoreSetIterator) Next ¶
func (it *StoreSetIterator) 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 StoreTransactor ¶
type StoreTransactor struct {
// contains filtered or unexported fields
}
StoreTransactor is an auto generated write-only Go binding around a Solidity 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) AsyncSet ¶
func (_Store *StoreTransactor) AsyncSet(handler func(*types.Receipt, error), opts *bind.TransactOpts, value string) (*types.Transaction, error)
func (*StoreTransactor) Set ¶
func (_Store *StoreTransactor) Set(opts *bind.TransactOpts, value string) (*types.Transaction, *types.Receipt, error)
Set is a paid mutator transaction binding the contract method 0x3590b49f.
Solidity: function set(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 a Solidity contract.
func (*StoreTransactorRaw) Transact ¶
func (_Store *StoreTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)
Transact invokes the (paid) contract method with params as input values.
func (*StoreTransactorRaw) Transfer ¶
func (_Store *StoreTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, 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 a Solidity contract, with pre-set transact options.
func (*StoreTransactorSession) AsyncSet ¶
func (_Store *StoreTransactorSession) AsyncSet(handler func(*types.Receipt, error), value string) (*types.Transaction, error)
func (*StoreTransactorSession) Set ¶
func (_Store *StoreTransactorSession) Set(value string) (*types.Transaction, *types.Receipt, error)
Set is a paid mutator transaction binding the contract method 0x3590b49f.
Solidity: function set(string value) returns()