An instance of the Premia SDK.
Readonly premiaThe Premia SDK instance.
Protected streamThe current index of quote streams. Used to cancel stale streams.
Casts votes.
An array of Vote instances representing the votes to be cast.
Optional provider: ProviderThe custom provider to use for this call.
Unstakes early.
The amount to be unstaked.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to cast votes.
An array of Vote instances representing the votes to be cast.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to cast votes.
An array of Vote instances representing the votes to be cast.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to unstake early.
The amount to be unstaked.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to unstake early.
The amount to be unstaked.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to harvest.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to harvest and stake.
The options for the operation.
The allowance target address.
The minimum amount out.
The callee address.
The data for the operation.
The refund address.
The stake period.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to harvest and stake.
The options for the operation.
The allowance target address.
The minimum amount out.
The callee address.
The data for the operation.
The refund address.
The stake period.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to harvest.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to bridge vxPREMIA tokens to the destination chain.
The address from which the tokens will be sent.
The id of the destination chain.
The address to which the tokens will be sent.
The amount of tokens to be sent.
The address to which the tokens will be refunded in case of failure.
The address to which the ZRO payment will be sent.
The adapter params.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to bridge vxPREMIA tokens to the destination chain.
The address from which the tokens will be sent.
The id of the destination chain.
The address to which the tokens will be sent.
The amount of tokens to be sent.
The address to which the tokens will be refunded in case of failure.
The address to which the ZRO payment will be sent.
The adapter params.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to stake.
The amount to be staked.
The staking period.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to stake.
The amount to be staked.
The staking period.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to stake using IERC2612 permit.
The amount of xPremia to stake.
The lockup period (in seconds).
The deadline after which permit will fail.
The signature for the transaction.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to stake using IERC2612 permit.
The amount of xPremia to stake.
The lockup period (in seconds).
The deadline after which permit will fail.
The signature for the transaction.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to start a withdrawal.
The amount to be withdrawn.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to start a withdrawal.
The amount to be withdrawn.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to update the lock period.
The lock period.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to update the lock period.
The lock period.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to withdraw.
Optional provider: ProviderThe custom provider to use for this call.
Encodes a transaction to withdraw.
Optional provider: ProviderThe custom provider to use for this call.
Estimates the fee for bridging vxPREMIA to the destination chain.
The id of the destination chain.
The address to which the tokens will be sent.
The amount of tokens to be sent.
Whether to use ZRO or not.
The adapter params.
Optional provider: ProviderThe custom provider to use for this call.
Retrieves all the last vault votes.
The field to order the results by.
The order direction ('ASC' or 'DESC').
Optional limit: number = 100The maximum number of records to retrieve.
Optional skip: number = 0The number of records to skip.
A promise that resolves to an array of vault votes.
Retrieves the total amount of available rewards.
provider - The custom provider to use for this call.
Optional provider: ProviderGets the fee percentage a user would have to pay to unstake early. (fee percentage * lock amount = fee amount)
The address of the user.
Optional provider: ProviderThe custom provider to use for this call.
Retrieves the last user stake from a given timestamp.
The timestamp for retrieving the stake.
The user's address.
A promise that resolves to an array of user stakes.
Calculates the total amount of rewards that are pending distribution.
provider - The custom provider to use for this call.
Optional provider: ProviderRetrieves the amount of rewards that are pending for a specific user.
The address of the user.
Optional provider: ProviderThe custom provider to use for this call.
Retrieves the information of a pending withdrawal of a user.
The address of the user.
Optional provider: ProviderThe custom provider to use for this call.
Retrieves stake histories for a given start time.
The start time for retrieving stake histories.
Optional limit: number = 100The maximum number of records to retrieve.
Optional skip: number = 0The number of records to skip.
A promise that resolves to an array of stake histories.
Retrieves stake history for a given id.
The id of the stake.
A promise that resolves to the stake history.
Gets the stake levels.
Optional provider: ProviderThe custom provider to use for this call.
Gets the stake period multiplier.
The duration (in seconds) for which tokens are locked
Optional provider: ProviderThe custom provider to use for this call.
Gets the information of a user.
The address of the user.
Optional provider: ProviderThe custom provider to use for this call.
Retrieves user stakes for a given start time.
The start time for retrieving stakes.
The user's address.
Optional limit: number = 100The maximum number of records to retrieve.
Optional skip: number = 0The number of records to skip.
A promise that resolves to an array of user stakes.
Retrieves vault votes for a given user and timestamp range.
The user's address.
The start timestamp for the range.
The end timestamp for the range.
Optional limit: number = 100The maximum number of records to retrieve.
Optional skip: number = 0The number of records to skip.
A promise that resolves to an array of vault votes.
Retrieves all votes a particular user has cast.
The address of the user.
Optional provider: ProviderThe custom provider to use for this call.
Retrieves vault votes for a given user.
The user's address.
Optional limit: number = 100The maximum number of records to retrieve.
Optional skip: number = 0The number of records to skip.
A promise that resolves to an array of vault votes.
Retrieves vote history for a given id.
The id of the vote.
A promise that resolves to the vote history.
Retrieves the total number of votes associated with a specific vault.
The Ethereum address of the vault.
Optional provider: ProviderThe custom provider to use for this call.
Harvests.
Optional provider: ProviderThe custom provider to use for this call.
Harvests and stakes.
The options for the operation.
The allowance target address.
The minimum amount out.
The callee address.
The data for the operation.
The refund address.
The stake period.
Optional provider: ProviderThe custom provider to use for this call.
Bridges vxPREMIA tokens to the destination chain.
The address from which the tokens will be sent.
The id of the destination chain.
The address to which the tokens will be sent.
The amount of tokens to be sent.
The address to which the tokens will be refunded in case of failure.
The address to which the ZRO payment will be sent.
The adapter params.
Optional provider: ProviderThe custom provider to use for this call.
Stakes an amount for a certain period.
The amount to be staked.
The staking period.
Optional provider: ProviderThe custom provider to use for this call.
Stake using IERC2612 permit.
The amount of xPremia to stake.
The lockup period (in seconds).
The deadline after which permit will fail.
The signature for the transaction.
Optional provider: ProviderThe custom provider to use for this call.
Starts a withdrawal.
The amount to be withdrawn.
Optional provider: ProviderThe custom provider to use for this call.
Updates the lock period.
The lock period.
Optional provider: ProviderThe custom provider to use for this call.
Withdraws.
Optional provider: ProviderThe custom provider to use for this call.
Generated using TypeDoc
Construct a new BaseAPI object.