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

Name
Type
Description

user

address

The address of the user

token

address

The address of the token

Returns

Name
Type
Description

<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

Name
Type
Description

<none>

uint256

expirationTime The expiration time of the vault

getFundReceiver

Returns the address of the fund receiver

Returns

Name
Type
Description

<none>

address

fundReceiver The address of the fund receiver

getTotalDeposited

Returns the total deposited amount of a token

Parameters

Name
Type
Description

token

address

The address of the token

Returns

Name
Type
Description

<none>

uint256

totalDeposited The total deposited amount of the token

getUsdcContractAddress

Returns the address of the USDC contract

Returns

Name
Type
Description

<none>

address

usdcContractAddress The address of the USDC contract

getState

Returns the state of the vault

Returns

Name
Type
Description

<none>

FundraiseState

state The state of the vault

merkleRoot

Returns the current Merkle root.

getClaimDeadline

Returns the claim deadline

Returns

Name
Type
Description

<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

Name
Type
Description

<none>

address

fractionalTokenReceiver The address of the fractional token receiver

getFractionalToken

Returns the address of the fractional token (0 if not fractionalized)

Returns

Name
Type
Description

<none>

address

fractionalToken The address of the fractional token

getFractionalTokenClaimed

Parameters

Name
Type
Description

usdc

address

The address of the USDC contract

user

address

The address of the user

Returns

Name
Type
Description

<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

Name
Type
Description

user

address

The address of the user

Returns

Name
Type
Description

<none>

bool

claimed Whether the fractional token has been claimed for user for whitelist

getFractionalTokenName

Returns the name of the fractional token

Returns

Name
Type
Description

<none>

string

fractionalTokenName The name of the fractional token

getFractionalTokenSymbol

Returns the symbol of the fractional token

Returns

Name
Type
Description

<none>

string

fractionalTokenSymbol The symbol of the fractional token

getIpId

Returns the ID of the IP (0 if not registered)

Returns

Name
Type
Description

<none>

address

ipId The ID of the IP

getLegal

Returns the address of the legal contract

Returns

Name
Type
Description

<none>

address

legal The address of the legal contract

getStoryAddrs

Returns the story addresses

Returns

Name
Type
Description

<none>

StoryAddrs

storyAddrs The story addresses

getTimelockData

Returns the timelock data for the fractional token mint

Returns

Name
Type
Description

<none>

AriaIPRWAVaultStorage.MintTimelock

timelockData The timelock data for the fractional token mint

getTotalSupplyOfFractionalToken

Returns the total supply of the fractional token

Returns

Name
Type
Description

<none>

uint256

totalSupplyOfFractionalToken The total supply of the fractional token

getVaultType

Returns the type of the vault

Returns

Name
Type
Description

<none>

VaultType

vaultType The type of the vault