factory

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FactoryABI = FactoryMetaData.ABI

FactoryABI is the input ABI used to generate the binding from. Deprecated: Use FactoryMetaData.ABI instead.

View Source
var FactoryMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"instantiation\",\"type\":\"address\"}],\"name\":\"ContractInstantiation\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"_changeAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newFee\",\"type\":\"uint256\"}],\"name\":\"_changeFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_required\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_dailyLimit\",\"type\":\"uint256\"}],\"name\":\"create\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"}],\"name\":\"getInstantiationCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"instantiations\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isInstantiation\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

FactoryMetaData contains all meta data concerning the Factory contract.

Functions

This section is empty.

Types

type Factory added in v0.0.4

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 NewFactory added in v0.0.4

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 added in v0.0.4

type FactoryCaller struct {
	// contains filtered or unexported fields
}

FactoryCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewFactoryCaller added in v0.0.4

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) GetInstantiationCount added in v0.0.4

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

GetInstantiationCount is a free data retrieval call binding the contract method 0x8f838478.

Solidity: function getInstantiationCount(address creator) view returns(uint256)

func (*FactoryCaller) Instantiations added in v0.0.4

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

Instantiations is a free data retrieval call binding the contract method 0x57183c82.

Solidity: function instantiations(address , uint256 ) view returns(address)

func (*FactoryCaller) IsInstantiation added in v0.0.4

func (_Factory *FactoryCaller) IsInstantiation(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsInstantiation is a free data retrieval call binding the contract method 0x2f4f3316.

Solidity: function isInstantiation(address ) view returns(bool)

type FactoryCallerRaw added in v0.0.4

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 added in v0.0.4

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 added in v0.0.4

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) GetInstantiationCount added in v0.0.4

func (_Factory *FactoryCallerSession) GetInstantiationCount(creator common.Address) (*big.Int, error)

GetInstantiationCount is a free data retrieval call binding the contract method 0x8f838478.

Solidity: function getInstantiationCount(address creator) view returns(uint256)

func (*FactoryCallerSession) Instantiations added in v0.0.4

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

Instantiations is a free data retrieval call binding the contract method 0x57183c82.

Solidity: function instantiations(address , uint256 ) view returns(address)

func (*FactoryCallerSession) IsInstantiation added in v0.0.4

func (_Factory *FactoryCallerSession) IsInstantiation(arg0 common.Address) (bool, error)

IsInstantiation is a free data retrieval call binding the contract method 0x2f4f3316.

Solidity: function isInstantiation(address ) view returns(bool)

type FactoryContractInstantiation added in v0.0.4

type FactoryContractInstantiation struct {
	Sender        common.Address
	Instantiation common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

FactoryContractInstantiation represents a ContractInstantiation event raised by the Factory contract.

type FactoryContractInstantiationIterator added in v0.0.4

type FactoryContractInstantiationIterator struct {
	Event *FactoryContractInstantiation // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

FactoryContractInstantiationIterator is returned from FilterContractInstantiation and is used to iterate over the raw logs and unpacked data for ContractInstantiation events raised by the Factory contract.

func (*FactoryContractInstantiationIterator) Close added in v0.0.4

Close terminates the iteration process, releasing any pending underlying resources.

func (*FactoryContractInstantiationIterator) Error added in v0.0.4

Error returns any retrieval or parsing error occurred during filtering.

func (*FactoryContractInstantiationIterator) Next added in v0.0.4

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 FactoryFilterer added in v0.0.4

type FactoryFilterer struct {
	// contains filtered or unexported fields
}

FactoryFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewFactoryFilterer added in v0.0.4

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) FilterContractInstantiation added in v0.0.4

func (_Factory *FactoryFilterer) FilterContractInstantiation(opts *bind.FilterOpts) (*FactoryContractInstantiationIterator, error)

FilterContractInstantiation is a free log retrieval operation binding the contract event 0x4fb057ad4a26ed17a57957fa69c306f11987596069b89521c511fc9a894e6161.

Solidity: event ContractInstantiation(address sender, address instantiation)

func (*FactoryFilterer) ParseContractInstantiation added in v0.0.4

func (_Factory *FactoryFilterer) ParseContractInstantiation(log types.Log) (*FactoryContractInstantiation, error)

ParseContractInstantiation is a log parse operation binding the contract event 0x4fb057ad4a26ed17a57957fa69c306f11987596069b89521c511fc9a894e6161.

Solidity: event ContractInstantiation(address sender, address instantiation)

func (*FactoryFilterer) WatchContractInstantiation added in v0.0.4

func (_Factory *FactoryFilterer) WatchContractInstantiation(opts *bind.WatchOpts, sink chan<- *FactoryContractInstantiation) (event.Subscription, error)

WatchContractInstantiation is a free log subscription operation binding the contract event 0x4fb057ad4a26ed17a57957fa69c306f11987596069b89521c511fc9a894e6161.

Solidity: event ContractInstantiation(address sender, address instantiation)

type FactoryRaw added in v0.0.4

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 added in v0.0.4

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 added in v0.0.4

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 added in v0.0.4

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 added in v0.0.4

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) ChangeAdmin added in v0.0.4

func (_Factory *FactorySession) ChangeAdmin(newAdmin common.Address) (*types.Transaction, error)

ChangeAdmin is a paid mutator transaction binding the contract method 0x353dfc01.

Solidity: function _changeAdmin(address newAdmin) returns()

func (*FactorySession) ChangeFee added in v0.0.4

func (_Factory *FactorySession) ChangeFee(newFee *big.Int) (*types.Transaction, error)

ChangeFee is a paid mutator transaction binding the contract method 0x753f58bc.

Solidity: function _changeFee(uint256 newFee) returns()

func (*FactorySession) Create added in v0.0.4

func (_Factory *FactorySession) Create(_owners []common.Address, _required *big.Int, _dailyLimit *big.Int) (*types.Transaction, error)

Create is a paid mutator transaction binding the contract method 0x53d9d910.

Solidity: function create(address[] _owners, uint256 _required, uint256 _dailyLimit) returns(address)

func (*FactorySession) GetInstantiationCount added in v0.0.4

func (_Factory *FactorySession) GetInstantiationCount(creator common.Address) (*big.Int, error)

GetInstantiationCount is a free data retrieval call binding the contract method 0x8f838478.

Solidity: function getInstantiationCount(address creator) view returns(uint256)

func (*FactorySession) Instantiations added in v0.0.4

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

Instantiations is a free data retrieval call binding the contract method 0x57183c82.

Solidity: function instantiations(address , uint256 ) view returns(address)

func (*FactorySession) IsInstantiation added in v0.0.4

func (_Factory *FactorySession) IsInstantiation(arg0 common.Address) (bool, error)

IsInstantiation is a free data retrieval call binding the contract method 0x2f4f3316.

Solidity: function isInstantiation(address ) view returns(bool)

type FactoryTransactor added in v0.0.4

type FactoryTransactor struct {
	// contains filtered or unexported fields
}

FactoryTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewFactoryTransactor added in v0.0.4

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) ChangeAdmin added in v0.0.4

func (_Factory *FactoryTransactor) ChangeAdmin(opts *bind.TransactOpts, newAdmin common.Address) (*types.Transaction, error)

ChangeAdmin is a paid mutator transaction binding the contract method 0x353dfc01.

Solidity: function _changeAdmin(address newAdmin) returns()

func (*FactoryTransactor) ChangeFee added in v0.0.4

func (_Factory *FactoryTransactor) ChangeFee(opts *bind.TransactOpts, newFee *big.Int) (*types.Transaction, error)

ChangeFee is a paid mutator transaction binding the contract method 0x753f58bc.

Solidity: function _changeFee(uint256 newFee) returns()

func (*FactoryTransactor) Create added in v0.0.4

func (_Factory *FactoryTransactor) Create(opts *bind.TransactOpts, _owners []common.Address, _required *big.Int, _dailyLimit *big.Int) (*types.Transaction, error)

Create is a paid mutator transaction binding the contract method 0x53d9d910.

Solidity: function create(address[] _owners, uint256 _required, uint256 _dailyLimit) returns(address)

type FactoryTransactorRaw added in v0.0.4

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 added in v0.0.4

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 added in v0.0.4

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 added in v0.0.4

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) ChangeAdmin added in v0.0.4

func (_Factory *FactoryTransactorSession) ChangeAdmin(newAdmin common.Address) (*types.Transaction, error)

ChangeAdmin is a paid mutator transaction binding the contract method 0x353dfc01.

Solidity: function _changeAdmin(address newAdmin) returns()

func (*FactoryTransactorSession) ChangeFee added in v0.0.4

func (_Factory *FactoryTransactorSession) ChangeFee(newFee *big.Int) (*types.Transaction, error)

ChangeFee is a paid mutator transaction binding the contract method 0x753f58bc.

Solidity: function _changeFee(uint256 newFee) returns()

func (*FactoryTransactorSession) Create added in v0.0.4

func (_Factory *FactoryTransactorSession) Create(_owners []common.Address, _required *big.Int, _dailyLimit *big.Int) (*types.Transaction, error)

Create is a paid mutator transaction binding the contract method 0x53d9d910.

Solidity: function create(address[] _owners, uint256 _required, uint256 _dailyLimit) returns(address)

Jump to

Keyboard shortcuts

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