EthMetaVaultFactory
Inherits: Ownable2Step ↗, IEthMetaVaultFactory
Factory for deploying Ethereum meta Vaults.
Events
MetaVaultCreated
Event emitted on a MetaVault creation
event MetaVaultCreated(address indexed caller, address indexed admin, address indexed vault, bytes params);
Parameters
| Name | Type | Description |
|---|---|---|
caller | address | The address of the factory caller |
admin | address | The address of the Vault admin |
vault | address | The address of the created Vault |
params | bytes | The encoded parameters for initializing the Vault contract |
Functions
implementation
The address of the Vault implementation contract used for proxy creation
function implementation() external view returns (address);
Returns
| Name | Type | Description |
|---|---|---|
<none> | address | The address of the Vault implementation contract |
vaultAdmin
The address of the Vault admin used for Vault creation
function vaultAdmin() external view returns (address);
Returns
| Name | Type | Description |
|---|---|---|
<none> | address | The address of the Vault admin |
createVault
Create Vault. Must transfer security deposit together with a call.
function createVault(address admin, bytes calldata params)
external
payable
override
onlyOwner
returns (address vault);
Parameters
| Name | Type | Description |
|---|---|---|
admin | address | The address of the Vault admin |
params | bytes | The encoded parameters for initializing the Vault contract |