Documentation ¶
Index ¶
- Variables
- func CheckFactoryAssetDeployed(rpc, assetKey string) (*big.Int, error)
- func GetFactoryAssetAddress(assetId, symbol, name string, holder string) common.Address
- func GetOrDeployFactoryAsset(rpc, key string, assetId, symbol, name string, holder string) error
- type FactoryContract
- type FactoryContractAssetCreated
- type FactoryContractAssetCreatedIterator
- type FactoryContractCaller
- func (_FactoryContract *FactoryContractCaller) Assets(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_FactoryContract *FactoryContractCaller) Contracts(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
- func (_FactoryContract *FactoryContractCaller) OBSERVER(opts *bind.CallOpts) (common.Address, error)
- type FactoryContractCallerRaw
- type FactoryContractCallerSession
- type FactoryContractFactoryConstructed
- type FactoryContractFactoryConstructedIterator
- type FactoryContractFilterer
- func (_FactoryContract *FactoryContractFilterer) FilterAssetCreated(opts *bind.FilterOpts, at []common.Address) (*FactoryContractAssetCreatedIterator, error)
- func (_FactoryContract *FactoryContractFilterer) FilterFactoryConstructed(opts *bind.FilterOpts, observer []common.Address) (*FactoryContractFactoryConstructedIterator, error)
- func (_FactoryContract *FactoryContractFilterer) ParseAssetCreated(log types.Log) (*FactoryContractAssetCreated, error)
- func (_FactoryContract *FactoryContractFilterer) ParseFactoryConstructed(log types.Log) (*FactoryContractFactoryConstructed, error)
- func (_FactoryContract *FactoryContractFilterer) WatchAssetCreated(opts *bind.WatchOpts, sink chan<- *FactoryContractAssetCreated, ...) (event.Subscription, error)
- func (_FactoryContract *FactoryContractFilterer) WatchFactoryConstructed(opts *bind.WatchOpts, sink chan<- *FactoryContractFactoryConstructed, ...) (event.Subscription, error)
- type FactoryContractRaw
- func (_FactoryContract *FactoryContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_FactoryContract *FactoryContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_FactoryContract *FactoryContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type FactoryContractSession
- func (_FactoryContract *FactoryContractSession) Assets(arg0 common.Address) (*big.Int, error)
- func (_FactoryContract *FactoryContractSession) Contracts(arg0 *big.Int) (common.Address, error)
- func (_FactoryContract *FactoryContractSession) Deploy(_id *big.Int, _holder string, _symbol string, _name string) (*types.Transaction, error)
- func (_FactoryContract *FactoryContractSession) OBSERVER() (common.Address, error)
- type FactoryContractTransactor
- type FactoryContractTransactorRaw
- type FactoryContractTransactorSession
Constants ¶
This section is empty.
Variables ¶
var FactoryContractABI = FactoryContractMetaData.ABI
FactoryContractABI is the input ABI used to generate the binding from. Deprecated: Use FactoryContractMetaData.ABI instead.
var FactoryContractMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"type\":\"address\",\"name\":\"_observer\",\"internalType\":\"address\"}]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"address\",\"name\":\"\",\"internalType\":\"address\"}],\"name\":\"OBSERVER\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"\",\"internalType\":\"uint256\"}],\"name\":\"assets\",\"inputs\":[{\"type\":\"address\",\"name\":\"\",\"internalType\":\"address\"}]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"address\",\"name\":\"\",\"internalType\":\"address\"}],\"name\":\"contracts\",\"inputs\":[{\"type\":\"uint256\",\"name\":\"\",\"internalType\":\"uint256\"}]},{\"type\":\"function\",\"stateMutability\":\"nonpayable\",\"outputs\":[{\"type\":\"address\",\"name\":\"\",\"internalType\":\"address\"}],\"name\":\"deploy\",\"inputs\":[{\"type\":\"uint256\",\"name\":\"_id\",\"internalType\":\"uint256\"},{\"type\":\"string\",\"name\":\"_holder\",\"internalType\":\"string\"},{\"type\":\"string\",\"name\":\"_symbol\",\"internalType\":\"string\"},{\"type\":\"string\",\"name\":\"_name\",\"internalType\":\"string\"}]},{\"type\":\"event\",\"name\":\"AssetCreated\",\"inputs\":[{\"type\":\"address\",\"name\":\"at\",\"indexed\":true},{\"type\":\"uint256\",\"name\":\"id\",\"indexed\":false},{\"type\":\"string\",\"name\":\"holder\",\"indexed\":false},{\"type\":\"uint256\",\"name\":\"key\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"FactoryConstructed\",\"inputs\":[{\"type\":\"address\",\"name\":\"observer\",\"indexed\":true},{\"type\":\"bytes\",\"name\":\"code\",\"indexed\":false}],\"anonymous\":false}]",
}
FactoryContractMetaData contains all meta data concerning the FactoryContract contract.
Functions ¶
func GetFactoryAssetAddress ¶
Types ¶
type FactoryContract ¶
type FactoryContract struct { FactoryContractCaller // Read-only binding to the contract FactoryContractTransactor // Write-only binding to the contract FactoryContractFilterer // Log filterer for contract events }
FactoryContract is an auto generated Go binding around an Ethereum contract.
func NewFactoryContract ¶
func NewFactoryContract(address common.Address, backend bind.ContractBackend) (*FactoryContract, error)
NewFactoryContract creates a new instance of FactoryContract, bound to a specific deployed contract.
type FactoryContractAssetCreated ¶
type FactoryContractAssetCreated struct { At common.Address Id *big.Int Holder string Key *big.Int Raw types.Log // Blockchain specific contextual infos }
FactoryContractAssetCreated represents a AssetCreated event raised by the FactoryContract contract.
type FactoryContractAssetCreatedIterator ¶
type FactoryContractAssetCreatedIterator struct { Event *FactoryContractAssetCreated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FactoryContractAssetCreatedIterator is returned from FilterAssetCreated and is used to iterate over the raw logs and unpacked data for AssetCreated events raised by the FactoryContract contract.
func (*FactoryContractAssetCreatedIterator) Close ¶
func (it *FactoryContractAssetCreatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FactoryContractAssetCreatedIterator) Error ¶
func (it *FactoryContractAssetCreatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FactoryContractAssetCreatedIterator) Next ¶
func (it *FactoryContractAssetCreatedIterator) 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 FactoryContractCaller ¶
type FactoryContractCaller struct {
// contains filtered or unexported fields
}
FactoryContractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewFactoryContractCaller ¶
func NewFactoryContractCaller(address common.Address, caller bind.ContractCaller) (*FactoryContractCaller, error)
NewFactoryContractCaller creates a new read-only instance of FactoryContract, bound to a specific deployed contract.
func (*FactoryContractCaller) Assets ¶
func (_FactoryContract *FactoryContractCaller) Assets(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
Assets is a free data retrieval call binding the contract method 0xf11b8188.
Solidity: function assets(address ) view returns(uint256)
type FactoryContractCallerRaw ¶
type FactoryContractCallerRaw struct {
Contract *FactoryContractCaller // Generic read-only contract binding to access the raw methods on
}
FactoryContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*FactoryContractCallerRaw) Call ¶
func (_FactoryContract *FactoryContractCallerRaw) 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 FactoryContractCallerSession ¶
type FactoryContractCallerSession struct { Contract *FactoryContractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
FactoryContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*FactoryContractCallerSession) Assets ¶
Assets is a free data retrieval call binding the contract method 0xf11b8188.
Solidity: function assets(address ) view returns(uint256)
type FactoryContractFactoryConstructed ¶
type FactoryContractFactoryConstructed struct { Observer common.Address Code []byte Raw types.Log // Blockchain specific contextual infos }
FactoryContractFactoryConstructed represents a FactoryConstructed event raised by the FactoryContract contract.
type FactoryContractFactoryConstructedIterator ¶
type FactoryContractFactoryConstructedIterator struct { Event *FactoryContractFactoryConstructed // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FactoryContractFactoryConstructedIterator is returned from FilterFactoryConstructed and is used to iterate over the raw logs and unpacked data for FactoryConstructed events raised by the FactoryContract contract.
func (*FactoryContractFactoryConstructedIterator) Close ¶
func (it *FactoryContractFactoryConstructedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FactoryContractFactoryConstructedIterator) Error ¶
func (it *FactoryContractFactoryConstructedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FactoryContractFactoryConstructedIterator) Next ¶
func (it *FactoryContractFactoryConstructedIterator) 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 FactoryContractFilterer ¶
type FactoryContractFilterer struct {
// contains filtered or unexported fields
}
FactoryContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewFactoryContractFilterer ¶
func NewFactoryContractFilterer(address common.Address, filterer bind.ContractFilterer) (*FactoryContractFilterer, error)
NewFactoryContractFilterer creates a new log filterer instance of FactoryContract, bound to a specific deployed contract.
func (*FactoryContractFilterer) FilterAssetCreated ¶
func (_FactoryContract *FactoryContractFilterer) FilterAssetCreated(opts *bind.FilterOpts, at []common.Address) (*FactoryContractAssetCreatedIterator, error)
FilterAssetCreated is a free log retrieval operation binding the contract event 0x14c45da4d71a4586050d799014115b8dd6a89d4a15564040611e1e4495217a45.
Solidity: event AssetCreated(address indexed at, uint256 id, string holder, uint256 key)
func (*FactoryContractFilterer) FilterFactoryConstructed ¶
func (_FactoryContract *FactoryContractFilterer) FilterFactoryConstructed(opts *bind.FilterOpts, observer []common.Address) (*FactoryContractFactoryConstructedIterator, error)
FilterFactoryConstructed is a free log retrieval operation binding the contract event 0x39fa29dd5d5c2df805d73ccc2ba442e59f0d863b61f23c67f11bd09f5f543fca.
Solidity: event FactoryConstructed(address indexed observer, bytes code)
func (*FactoryContractFilterer) ParseAssetCreated ¶
func (_FactoryContract *FactoryContractFilterer) ParseAssetCreated(log types.Log) (*FactoryContractAssetCreated, error)
ParseAssetCreated is a log parse operation binding the contract event 0x14c45da4d71a4586050d799014115b8dd6a89d4a15564040611e1e4495217a45.
Solidity: event AssetCreated(address indexed at, uint256 id, string holder, uint256 key)
func (*FactoryContractFilterer) ParseFactoryConstructed ¶
func (_FactoryContract *FactoryContractFilterer) ParseFactoryConstructed(log types.Log) (*FactoryContractFactoryConstructed, error)
ParseFactoryConstructed is a log parse operation binding the contract event 0x39fa29dd5d5c2df805d73ccc2ba442e59f0d863b61f23c67f11bd09f5f543fca.
Solidity: event FactoryConstructed(address indexed observer, bytes code)
func (*FactoryContractFilterer) WatchAssetCreated ¶
func (_FactoryContract *FactoryContractFilterer) WatchAssetCreated(opts *bind.WatchOpts, sink chan<- *FactoryContractAssetCreated, at []common.Address) (event.Subscription, error)
WatchAssetCreated is a free log subscription operation binding the contract event 0x14c45da4d71a4586050d799014115b8dd6a89d4a15564040611e1e4495217a45.
Solidity: event AssetCreated(address indexed at, uint256 id, string holder, uint256 key)
func (*FactoryContractFilterer) WatchFactoryConstructed ¶
func (_FactoryContract *FactoryContractFilterer) WatchFactoryConstructed(opts *bind.WatchOpts, sink chan<- *FactoryContractFactoryConstructed, observer []common.Address) (event.Subscription, error)
WatchFactoryConstructed is a free log subscription operation binding the contract event 0x39fa29dd5d5c2df805d73ccc2ba442e59f0d863b61f23c67f11bd09f5f543fca.
Solidity: event FactoryConstructed(address indexed observer, bytes code)
type FactoryContractRaw ¶
type FactoryContractRaw struct {
Contract *FactoryContract // Generic contract binding to access the raw methods on
}
FactoryContractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*FactoryContractRaw) Call ¶
func (_FactoryContract *FactoryContractRaw) 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 (*FactoryContractRaw) Transact ¶
func (_FactoryContract *FactoryContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*FactoryContractRaw) Transfer ¶
func (_FactoryContract *FactoryContractRaw) 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 FactoryContractSession ¶
type FactoryContractSession struct { Contract *FactoryContract // 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 }
FactoryContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*FactoryContractSession) Assets ¶
Assets is a free data retrieval call binding the contract method 0xf11b8188.
Solidity: function assets(address ) view returns(uint256)
func (*FactoryContractSession) Contracts ¶
Contracts is a free data retrieval call binding the contract method 0x474da79a.
Solidity: function contracts(uint256 ) view returns(address)
func (*FactoryContractSession) Deploy ¶
func (_FactoryContract *FactoryContractSession) Deploy(_id *big.Int, _holder string, _symbol string, _name string) (*types.Transaction, error)
Deploy is a paid mutator transaction binding the contract method 0x71de55b4.
Solidity: function deploy(uint256 _id, string _holder, string _symbol, string _name) returns(address)
type FactoryContractTransactor ¶
type FactoryContractTransactor struct {
// contains filtered or unexported fields
}
FactoryContractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewFactoryContractTransactor ¶
func NewFactoryContractTransactor(address common.Address, transactor bind.ContractTransactor) (*FactoryContractTransactor, error)
NewFactoryContractTransactor creates a new write-only instance of FactoryContract, bound to a specific deployed contract.
func (*FactoryContractTransactor) Deploy ¶
func (_FactoryContract *FactoryContractTransactor) Deploy(opts *bind.TransactOpts, _id *big.Int, _holder string, _symbol string, _name string) (*types.Transaction, error)
Deploy is a paid mutator transaction binding the contract method 0x71de55b4.
Solidity: function deploy(uint256 _id, string _holder, string _symbol, string _name) returns(address)
type FactoryContractTransactorRaw ¶
type FactoryContractTransactorRaw struct {
Contract *FactoryContractTransactor // Generic write-only contract binding to access the raw methods on
}
FactoryContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*FactoryContractTransactorRaw) Transact ¶
func (_FactoryContract *FactoryContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*FactoryContractTransactorRaw) Transfer ¶
func (_FactoryContract *FactoryContractTransactorRaw) 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 FactoryContractTransactorSession ¶
type FactoryContractTransactorSession struct { Contract *FactoryContractTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
FactoryContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*FactoryContractTransactorSession) Deploy ¶
func (_FactoryContract *FactoryContractTransactorSession) Deploy(_id *big.Int, _holder string, _symbol string, _name string) (*types.Transaction, error)
Deploy is a paid mutator transaction binding the contract method 0x71de55b4.
Solidity: function deploy(uint256 _id, string _holder, string _symbol, string _name) returns(address)