factory

package
v0.0.0-...-95d8916 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const FactoryABI = "" /* 1877-byte string literal not displayed */

FactoryABI is the input ABI used to generate the binding from.

Variables

View Source
var FactoryBin = "" /* 17636-byte string literal not displayed */

FactoryBin is the compiled bytecode used for deploying new contracts.

Functions

func CreateFund

func CreateFund(client *ethclient.Client, factoryAddress common.Address, oracleAddress common.Address, gasLimit uint64, privateKeyHex string, manager common.Address, title string)

func EventsListen

func EventsListen(client *ethclient.Client, factoryAddress common.Address)

func EventsQuery

func EventsQuery(client *ethclient.Client, factoryAddress common.Address)

func FundListCount

func FundListCount(client *ethclient.Client, factoryAddress common.Address)

func QueryFund

func QueryFund(client *ethclient.Client, factoryAddress common.Address, manager common.Address, title string)

func QueryFundIndex

func QueryFundIndex(client *ethclient.Client, factoryAddress common.Address, index *big.Int)

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 Deploy

func Deploy(client *ethclient.Client, privateKeyHex string, gasLimit uint64) (common.Address, *Factory)

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

func NewFactory(address common.Address, backend bind.ContractBackend) (*Factory, error)

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

func (_Factory *FactoryCaller) FundList(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

FundList is a free data retrieval call binding the contract method 0x0b262d02.

Solidity: function fundList(uint256 ) view returns(address)

func (*FactoryCaller) FundListLength

func (_Factory *FactoryCaller) FundListLength(opts *bind.CallOpts) (*big.Int, error)

FundListLength is a free data retrieval call binding the contract method 0x6bcc4f09.

Solidity: function fundListLength() view returns(uint256)

func (*FactoryCaller) GetFund

func (_Factory *FactoryCaller) GetFund(opts *bind.CallOpts, arg0 common.Address, arg1 string) (common.Address, error)

GetFund is a free data retrieval call binding the contract method 0x50a94e55.

Solidity: function getFund(address , string ) view returns(address)

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

func (_Factory *FactoryCallerSession) FundList(arg0 *big.Int) (common.Address, error)

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)

func (*FactoryCallerSession) GetFund

func (_Factory *FactoryCallerSession) GetFund(arg0 common.Address, arg1 string) (common.Address, error)

GetFund is a free data retrieval call binding the contract method 0x50a94e55.

Solidity: function getFund(address , string ) view returns(address)

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

func (_Factory *FactorySession) FundList(arg0 *big.Int) (common.Address, error)

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)

func (*FactorySession) GetFund

func (_Factory *FactorySession) GetFund(arg0 common.Address, arg1 string) (common.Address, error)

GetFund is a free data retrieval call binding the contract method 0x50a94e55.

Solidity: function getFund(address , string ) view returns(address)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL