AeraV2Factory
AeraV2Factory
Inherits: IAeraV2Factory, Sweepable
Used to create new vaults and deploy modules.
Only one instance of the factory will be required per chain.
State Variables
wrappedNativeToken
The address of wrapped native token.
parameters
STORAGE ///
Vault parameters for vault deployment.
Functions
constructor
FUNCTIONS ///
Initialize the factory contract.
Parameters
create
Create V2 vault.
Parameters
Returns
computeVaultAddress
Calculate deployment address of V2 vault.
Parameters
_deployAssetRegistry
INTERNAL FUNCTIONS ///
Deploy asset registry.
Parameters
Returns
_deployHooks
Deploy hooks.
Parameters
Returns
_deployVault
Deploy V2 vault.
Parameters
Returns
_computeVaultAddress
Calculate deployment address of V2 vault.
Parameters
Returns
_calculateSalt
Calculate salt from vault parameters.
Parameters
Events
VaultCreated
EVENTS ///
Emitted when the vault is created.
Errors
Aera__DescriptionIsEmpty
ERRORS ///
Aera__WrappedNativeTokenIsZeroAddress
Aera__InvalidWrappedNativeToken
Aera__VaultAddressMismatch
Aera__GuardianIsAssetRegistryOwner
Aera__GuardianIsHooksOwner
Last updated