IVaultView
Interface for the read-only functions of the Aria IP Vault
Functions
getDepositedAmount
Returns the deposited amount of a user for a token
function getDepositedAmount(address user, address token) external view returns (uint256);Parameters
user
address
The address of the user
token
address
The address of the token
Returns
<none>
uint256
amount The deposited amount of the user for the token
getExpirationTime
Returns the expiration time of the vault
function getExpirationTime() external view returns (uint256);Returns
<none>
uint256
expirationTime The expiration time of the vault
getFundReceiver
Returns the address of the fund receiver
Returns
<none>
address
fundReceiver The address of the fund receiver
getTotalDeposited
Returns the total deposited amount of a token
Parameters
token
address
The address of the token
Returns
<none>
uint256
totalDeposited The total deposited amount of the token
getUsdcContractAddress
Returns the address of the USDC contract
Returns
<none>
address
usdcContractAddress The address of the USDC contract
getState
Returns the state of the vault
Returns
<none>
FundraiseState
state The state of the vault
merkleRoot
Returns the current Merkle root.
getClaimDeadline
Returns the claim deadline
Returns
<none>
uint256
claimDeadline The claim deadline
getFractionalTokenReceiver
Returns the address of the fractional token receiver - usually staking contract, to collect royalties and distributed to stakers.
Returns
<none>
address
fractionalTokenReceiver The address of the fractional token receiver
getFractionalToken
Returns the address of the fractional token (0 if not fractionalized)
Returns
<none>
address
fractionalToken The address of the fractional token
getFractionalTokenClaimed
Parameters
usdc
address
The address of the USDC contract
user
address
The address of the user
Returns
<none>
bool
claimed Whether the fractional token has been claimed for user for usdc
getFractionalTokenClaimedWhitelist
For whitelist, there is a workaround. Always use _USDC_WHITELIST as usdc as users have not deposited USDC.
Parameters
user
address
The address of the user
Returns
<none>
bool
claimed Whether the fractional token has been claimed for user for whitelist
getFractionalTokenName
Returns the name of the fractional token
Returns
<none>
string
fractionalTokenName The name of the fractional token
getFractionalTokenSymbol
Returns the symbol of the fractional token
Returns
<none>
string
fractionalTokenSymbol The symbol of the fractional token
getIpId
Returns the ID of the IP (0 if not registered)
Returns
<none>
address
ipId The ID of the IP
getLegal
Returns the address of the legal contract
Returns
<none>
address
legal The address of the legal contract
getStoryAddrs
Returns the story addresses
Returns
<none>
StoryAddrs
storyAddrs The story addresses
getTimelockData
Returns the timelock data for the fractional token mint
Returns
<none>
AriaIPRWAVaultStorage.MintTimelock
timelockData The timelock data for the fractional token mint
getTotalSupplyOfFractionalToken
Returns the total supply of the fractional token
Returns
<none>
uint256
totalSupplyOfFractionalToken The total supply of the fractional token
getVaultType
Returns the type of the vault
Returns
<none>
VaultType
vaultType The type of the vault