Inherits: IAriaIPRWAVaultFactory, UUPSUpgradeable, AccessControl
This contract is used to deploy new AriaIPRWAVault instances
State Variables
AriaIPRWAVaultFactoryStorageLocation
bytes32 public constant AriaIPRWAVaultFactoryStorageLocation =
0x7921dd9d2a27003607aeccbdc5d8b1cb6480ee25e74a8450b0073a735a571f00;
Note: oz-upgrades-unsafe-allow: constructor
Initializes the factory
function initialize(StoryAddrs memory storyAddrs, address admin_, address vaultTemplate_) external initializer;
Parameters
The address of AriaIPRWAVault
deployFundraiseIpVault
Deploys a new fundraise IP vault
zero address checks skipped: they are checked in the AriaIPRWAVault initializer
Parameters
AriaIPRWAVaultStorage.FractionalTokenDetails
The details of the fractional token
VaultFundraiseStorage.Setup
The setup of the fundraise
withdrawalTimelockDuration
The timelock duration (in seconds) for admin fractional token withdrawals.
The deadline for the users to claim the fractional token.
The address of the legal contract that checks blacklist and license.
Returns
The address of the deployed IP Vault
deployWhitelistIpVault
Deploys a new whitelist IP vault
zero address checks skipped: they are checked in the AriaIPRWAVault initializer
Parameters
AriaIPRWAVaultStorage.FractionalTokenDetails
The details of the fractional token
The merkle root of the whitelist
withdrawalTimelockDuration
The timelock duration (in seconds) for admin fractional token withdrawals.
The deadline for the users to claim the fractional token.
The address of the legal contract that checks blacklist and license.
Returns
The address of the deployed IP Vault
setVaultTemplate
Sets the vault template
Parameters
The address of the new vault template
Returns
True if the caller is the admin
getVaultTemplate
Returns the address of the vault template
Returns
vaultTemplate The address of the vault template
_authorizeUpgrade
Hook to authorize the upgrade according to UUPSUpgradeable
Enforced to be only callable by the protocol admin in governance.
Parameters
The address of the new implementation
_deployInitProxy
_getAriaIPRWAVaultFactoryStorage
Returns the storage struct of AriaIPRWAVaultFactory.
VaultTemplateUpdated
AriaIPRWAVaultFactoryStorage
Storage structure for the AriaIPRWAVaultFactory
Note: storage-location: erc7201:aria-protocol.AriaIPRWAVaultFactory