Documentation ¶
Index ¶
- Variables
- func CheckFactoryAssetDeployed(rpc, assetKey string) (*big.Int, error)
- func GetFactoryAssetAddress(receiver, assetId, symbol, name string, holder string) common.Address
- func GetOrDeployFactoryAsset(ctx context.Context, rpc, key string, ...) error
- func InitFactoryContractAddress(addr string)
- func PackAssetArguments(symbol, name string) []byte
- type FactoryContract
- type FactoryContractAssetCreated
- type FactoryContractAssetCreatedIterator
- type FactoryContractCaller
- 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) (*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(_receiver common.Address, _id *big.Int, _holder string, _symbol string, ...) (*types.Transaction, 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: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"at\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"holder\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"key\",\"type\":\"uint256\"}],\"name\":\"AssetCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"code\",\"type\":\"bytes\"}],\"name\":\"FactoryConstructed\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"assets\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"contracts\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_holder\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"}],\"name\":\"deploy\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
FactoryContractMetaData contains all meta data concerning the FactoryContract contract.
Functions ¶
func GetFactoryAssetAddress ¶
func GetOrDeployFactoryAsset ¶
func InitFactoryContractAddress ¶ added in v0.9.3
func InitFactoryContractAddress(addr string)
func PackAssetArguments ¶ added in v0.13.0
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 Receiver 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.
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.
type FactoryContractFactoryConstructed ¶
type FactoryContractFactoryConstructed struct { 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 0x6712d4854fd77cd7702f970a478ae30ef46d8644066a010e9b14a63447a688ee.
Solidity: event AssetCreated(address indexed at, address receiver, uint256 id, string holder, uint256 key)
func (*FactoryContractFilterer) FilterFactoryConstructed ¶
func (_FactoryContract *FactoryContractFilterer) FilterFactoryConstructed(opts *bind.FilterOpts) (*FactoryContractFactoryConstructedIterator, error)
FilterFactoryConstructed is a free log retrieval operation binding the contract event 0xfbf94cf8da649b55e37797e65b2ec0ee3ebbadde87490a2352fa257d3590d073.
Solidity: event FactoryConstructed(bytes code)
func (*FactoryContractFilterer) ParseAssetCreated ¶
func (_FactoryContract *FactoryContractFilterer) ParseAssetCreated(log types.Log) (*FactoryContractAssetCreated, error)
ParseAssetCreated is a log parse operation binding the contract event 0x6712d4854fd77cd7702f970a478ae30ef46d8644066a010e9b14a63447a688ee.
Solidity: event AssetCreated(address indexed at, address receiver, 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 0xfbf94cf8da649b55e37797e65b2ec0ee3ebbadde87490a2352fa257d3590d073.
Solidity: event FactoryConstructed(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 0x6712d4854fd77cd7702f970a478ae30ef46d8644066a010e9b14a63447a688ee.
Solidity: event AssetCreated(address indexed at, address receiver, uint256 id, string holder, uint256 key)
func (*FactoryContractFilterer) WatchFactoryConstructed ¶
func (_FactoryContract *FactoryContractFilterer) WatchFactoryConstructed(opts *bind.WatchOpts, sink chan<- *FactoryContractFactoryConstructed) (event.Subscription, error)
WatchFactoryConstructed is a free log subscription operation binding the contract event 0xfbf94cf8da649b55e37797e65b2ec0ee3ebbadde87490a2352fa257d3590d073.
Solidity: event FactoryConstructed(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(_receiver common.Address, _id *big.Int, _holder string, _symbol string, _name string) (*types.Transaction, error)
Deploy is a paid mutator transaction binding the contract method 0xbac72406.
Solidity: function deploy(address _receiver, 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, _receiver common.Address, _id *big.Int, _holder string, _symbol string, _name string) (*types.Transaction, error)
Deploy is a paid mutator transaction binding the contract method 0xbac72406.
Solidity: function deploy(address _receiver, 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(_receiver common.Address, _id *big.Int, _holder string, _symbol string, _name string) (*types.Transaction, error)
Deploy is a paid mutator transaction binding the contract method 0xbac72406.
Solidity: function deploy(address _receiver, uint256 _id, string _holder, string _symbol, string _name) returns(address)