Documentation ¶
Index ¶
- Constants
- Variables
- func CreateFund(client *ethclient.Client, factoryAddress common.Address, ...)
- func EventsListen(client *ethclient.Client, factoryAddress common.Address)
- func EventsQuery(client *ethclient.Client, factoryAddress common.Address)
- func FundListCount(client *ethclient.Client, factoryAddress common.Address)
- func QueryFund(client *ethclient.Client, factoryAddress common.Address, ...)
- func QueryFundIndex(client *ethclient.Client, factoryAddress common.Address, index *big.Int)
- type Factory
- func Deploy(client *ethclient.Client, privateKeyHex string, gasLimit uint64) (common.Address, *Factory)
- func DeployFactory(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Factory, error)
- func NewFactory(address common.Address, backend bind.ContractBackend) (*Factory, error)
- type FactoryCaller
- func (_Factory *FactoryCaller) FundList(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
- func (_Factory *FactoryCaller) FundListLength(opts *bind.CallOpts) (*big.Int, error)
- func (_Factory *FactoryCaller) GetFund(opts *bind.CallOpts, arg0 common.Address, arg1 string) (common.Address, error)
- type FactoryCallerRaw
- type FactoryCallerSession
- type FactoryFilterer
- func (_Factory *FactoryFilterer) FilterFundCreated(opts *bind.FilterOpts, manager []common.Address) (*FactoryFundCreatedIterator, error)
- func (_Factory *FactoryFilterer) FilterFundCreated0(opts *bind.FilterOpts, manager []common.Address) (*FactoryFundCreated0Iterator, error)
- func (_Factory *FactoryFilterer) ParseFundCreated(log types.Log) (*FactoryFundCreated, error)
- func (_Factory *FactoryFilterer) ParseFundCreated0(log types.Log) (*FactoryFundCreated0, error)
- func (_Factory *FactoryFilterer) WatchFundCreated(opts *bind.WatchOpts, sink chan<- *FactoryFundCreated, ...) (event.Subscription, error)
- func (_Factory *FactoryFilterer) WatchFundCreated0(opts *bind.WatchOpts, sink chan<- *FactoryFundCreated0, ...) (event.Subscription, error)
- type FactoryFundCreated
- type FactoryFundCreated0
- type FactoryFundCreated0Iterator
- type FactoryFundCreatedIterator
- type FactoryRaw
- func (_Factory *FactoryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Factory *FactoryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Factory *FactoryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type FactorySession
- func (_Factory *FactorySession) CreateFund(manager common.Address, title string, oracleAddress common.Address) (*types.Transaction, error)
- func (_Factory *FactorySession) FundList(arg0 *big.Int) (common.Address, error)
- func (_Factory *FactorySession) FundListLength() (*big.Int, error)
- func (_Factory *FactorySession) GetFund(arg0 common.Address, arg1 string) (common.Address, error)
- type FactoryTransactor
- type FactoryTransactorRaw
- type FactoryTransactorSession
Constants ¶
const FactoryABI = "" /* 1877-byte string literal not displayed */
FactoryABI is the input ABI used to generate the binding from.
Variables ¶
var FactoryBin = "" /* 17636-byte string literal not displayed */
FactoryBin is the compiled bytecode used for deploying new contracts.
Functions ¶
func CreateFund ¶
Types ¶
type Factory ¶
type Factory struct { FactoryCaller // Read-only binding to the contract FactoryTransactor // Write-only binding to the contract FactoryFilterer // Log filterer for contract events }
Factory is an auto generated Go binding around an Ethereum contract.
func DeployFactory ¶
func DeployFactory(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Factory, error)
DeployFactory deploys a new Ethereum contract, binding an instance of Factory to it.
func NewFactory ¶
NewFactory creates a new instance of Factory, bound to a specific deployed contract.
type FactoryCaller ¶
type FactoryCaller struct {
// contains filtered or unexported fields
}
FactoryCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewFactoryCaller ¶
func NewFactoryCaller(address common.Address, caller bind.ContractCaller) (*FactoryCaller, error)
NewFactoryCaller creates a new read-only instance of Factory, bound to a specific deployed contract.
func (*FactoryCaller) FundList ¶
FundList is a free data retrieval call binding the contract method 0x0b262d02.
Solidity: function fundList(uint256 ) view returns(address)
func (*FactoryCaller) FundListLength ¶
FundListLength is a free data retrieval call binding the contract method 0x6bcc4f09.
Solidity: function fundListLength() view returns(uint256)
type FactoryCallerRaw ¶
type FactoryCallerRaw struct {
Contract *FactoryCaller // Generic read-only contract binding to access the raw methods on
}
FactoryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*FactoryCallerRaw) Call ¶
func (_Factory *FactoryCallerRaw) 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 FactoryCallerSession ¶
type FactoryCallerSession struct { Contract *FactoryCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
FactoryCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*FactoryCallerSession) FundList ¶
FundList is a free data retrieval call binding the contract method 0x0b262d02.
Solidity: function fundList(uint256 ) view returns(address)
func (*FactoryCallerSession) FundListLength ¶
func (_Factory *FactoryCallerSession) FundListLength() (*big.Int, error)
FundListLength is a free data retrieval call binding the contract method 0x6bcc4f09.
Solidity: function fundListLength() view returns(uint256)
type FactoryFilterer ¶
type FactoryFilterer struct {
// contains filtered or unexported fields
}
FactoryFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewFactoryFilterer ¶
func NewFactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*FactoryFilterer, error)
NewFactoryFilterer creates a new log filterer instance of Factory, bound to a specific deployed contract.
func (*FactoryFilterer) FilterFundCreated ¶
func (_Factory *FactoryFilterer) FilterFundCreated(opts *bind.FilterOpts, manager []common.Address) (*FactoryFundCreatedIterator, error)
FilterFundCreated is a free log retrieval operation binding the contract event 0x88b91b282690ac7f7f776c9c8ac1986d5a923994d35a501adf869afbf16a739b.
Solidity: event FundCreated(address indexed manager, string title, address fund, uint256 arg3)
func (*FactoryFilterer) FilterFundCreated0 ¶
func (_Factory *FactoryFilterer) FilterFundCreated0(opts *bind.FilterOpts, manager []common.Address) (*FactoryFundCreated0Iterator, error)
FilterFundCreated0 is a free log retrieval operation binding the contract event 0x70890af59a1c61d7489da8e3724463160e14d24e026267fbcce52c5d03b0b03b.
Solidity: event FundCreated(address indexed manager, address fund, uint256 arg2)
func (*FactoryFilterer) ParseFundCreated ¶
func (_Factory *FactoryFilterer) ParseFundCreated(log types.Log) (*FactoryFundCreated, error)
ParseFundCreated is a log parse operation binding the contract event 0x88b91b282690ac7f7f776c9c8ac1986d5a923994d35a501adf869afbf16a739b.
Solidity: event FundCreated(address indexed manager, string title, address fund, uint256 arg3)
func (*FactoryFilterer) ParseFundCreated0 ¶
func (_Factory *FactoryFilterer) ParseFundCreated0(log types.Log) (*FactoryFundCreated0, error)
ParseFundCreated0 is a log parse operation binding the contract event 0x70890af59a1c61d7489da8e3724463160e14d24e026267fbcce52c5d03b0b03b.
Solidity: event FundCreated(address indexed manager, address fund, uint256 arg2)
func (*FactoryFilterer) WatchFundCreated ¶
func (_Factory *FactoryFilterer) WatchFundCreated(opts *bind.WatchOpts, sink chan<- *FactoryFundCreated, manager []common.Address) (event.Subscription, error)
WatchFundCreated is a free log subscription operation binding the contract event 0x88b91b282690ac7f7f776c9c8ac1986d5a923994d35a501adf869afbf16a739b.
Solidity: event FundCreated(address indexed manager, string title, address fund, uint256 arg3)
func (*FactoryFilterer) WatchFundCreated0 ¶
func (_Factory *FactoryFilterer) WatchFundCreated0(opts *bind.WatchOpts, sink chan<- *FactoryFundCreated0, manager []common.Address) (event.Subscription, error)
WatchFundCreated0 is a free log subscription operation binding the contract event 0x70890af59a1c61d7489da8e3724463160e14d24e026267fbcce52c5d03b0b03b.
Solidity: event FundCreated(address indexed manager, address fund, uint256 arg2)
type FactoryFundCreated ¶
type FactoryFundCreated struct { Manager common.Address Title string Fund common.Address Arg3 *big.Int Raw types.Log // Blockchain specific contextual infos }
FactoryFundCreated represents a FundCreated event raised by the Factory contract.
type FactoryFundCreated0 ¶
type FactoryFundCreated0 struct { Manager common.Address Fund common.Address Arg2 *big.Int Raw types.Log // Blockchain specific contextual infos }
FactoryFundCreated0 represents a FundCreated0 event raised by the Factory contract.
type FactoryFundCreated0Iterator ¶
type FactoryFundCreated0Iterator struct { Event *FactoryFundCreated0 // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FactoryFundCreated0Iterator is returned from FilterFundCreated0 and is used to iterate over the raw logs and unpacked data for FundCreated0 events raised by the Factory contract.
func (*FactoryFundCreated0Iterator) Close ¶
func (it *FactoryFundCreated0Iterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FactoryFundCreated0Iterator) Error ¶
func (it *FactoryFundCreated0Iterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FactoryFundCreated0Iterator) Next ¶
func (it *FactoryFundCreated0Iterator) 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 FactoryFundCreatedIterator ¶
type FactoryFundCreatedIterator struct { Event *FactoryFundCreated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FactoryFundCreatedIterator is returned from FilterFundCreated and is used to iterate over the raw logs and unpacked data for FundCreated events raised by the Factory contract.
func (*FactoryFundCreatedIterator) Close ¶
func (it *FactoryFundCreatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FactoryFundCreatedIterator) Error ¶
func (it *FactoryFundCreatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FactoryFundCreatedIterator) Next ¶
func (it *FactoryFundCreatedIterator) 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 FactoryRaw ¶
type FactoryRaw struct {
Contract *Factory // Generic contract binding to access the raw methods on
}
FactoryRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*FactoryRaw) Call ¶
func (_Factory *FactoryRaw) 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 (*FactoryRaw) Transact ¶
func (_Factory *FactoryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*FactoryRaw) Transfer ¶
func (_Factory *FactoryRaw) 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 FactorySession ¶
type FactorySession struct { Contract *Factory // 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 }
FactorySession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*FactorySession) CreateFund ¶
func (_Factory *FactorySession) CreateFund(manager common.Address, title string, oracleAddress common.Address) (*types.Transaction, error)
CreateFund is a paid mutator transaction binding the contract method 0x9549ed99.
Solidity: function createFund(address manager, string title, address oracleAddress) returns(address fund)
func (*FactorySession) FundList ¶
FundList is a free data retrieval call binding the contract method 0x0b262d02.
Solidity: function fundList(uint256 ) view returns(address)
func (*FactorySession) FundListLength ¶
func (_Factory *FactorySession) FundListLength() (*big.Int, error)
FundListLength is a free data retrieval call binding the contract method 0x6bcc4f09.
Solidity: function fundListLength() view returns(uint256)
type FactoryTransactor ¶
type FactoryTransactor struct {
// contains filtered or unexported fields
}
FactoryTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewFactoryTransactor ¶
func NewFactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*FactoryTransactor, error)
NewFactoryTransactor creates a new write-only instance of Factory, bound to a specific deployed contract.
func (*FactoryTransactor) CreateFund ¶
func (_Factory *FactoryTransactor) CreateFund(opts *bind.TransactOpts, manager common.Address, title string, oracleAddress common.Address) (*types.Transaction, error)
CreateFund is a paid mutator transaction binding the contract method 0x9549ed99.
Solidity: function createFund(address manager, string title, address oracleAddress) returns(address fund)
type FactoryTransactorRaw ¶
type FactoryTransactorRaw struct {
Contract *FactoryTransactor // Generic write-only contract binding to access the raw methods on
}
FactoryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*FactoryTransactorRaw) Transact ¶
func (_Factory *FactoryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*FactoryTransactorRaw) Transfer ¶
func (_Factory *FactoryTransactorRaw) 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 FactoryTransactorSession ¶
type FactoryTransactorSession struct { Contract *FactoryTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
FactoryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*FactoryTransactorSession) CreateFund ¶
func (_Factory *FactoryTransactorSession) CreateFund(manager common.Address, title string, oracleAddress common.Address) (*types.Transaction, error)
CreateFund is a paid mutator transaction binding the contract method 0x9549ed99.
Solidity: function createFund(address manager, string title, address oracleAddress) returns(address fund)