๐Ÿ”คTypes

Complete TypeScript interface reference for the August Digital SDK. All types are exported from the main package.

Core Types

IAddress

Ethereum address type.

type IAddress = `0x${string}`;

Example:

const vaultAddress: IAddress = '0x1234567890abcdef1234567890abcdef12345678';

IChainId

Chain identifier type.

type IChainId = number;

Common Chain IDs:

  • 1: Ethereum Mainnet

  • 42161: Arbitrum One

  • 8453: Base

  • 56: BSC

  • 43114: Avalanche

  • -1: Solana Mainnet

  • -2: Solana Devnet

INormalizedNumber

Number representation with both normalized and raw values.

Example:

IEnv

Environment mode for logging.

Vault Types

IVault

Complete vault information interface.

Example:

IVaultVersion

Vault contract version.

  • evm-0: Legacy EVM vault v1.0

  • evm-1: Legacy EVM vault v1.5

  • evm-2: Current EVM vault with separate receipt tokens

  • sol-0: Solana program-based vault

IVaultApy

APY breakdown for a vault.

Example:

IVaultStrategist

Vault strategist information.

Position Types

IVaultPosition

User's position in a vault.

Example:

IVaultAvailableRedemption

Redemption request that can be claimed.

Example:

Loan Types

IVaultLoan

Active loan deployed from a vault.

Example:

Allocation Types

IVaultAllocations

Vault asset allocations across different categories.

Example:

IExposurePerCategory

Exposure breakdown by category.

IVaultExposureItem

Individual exposure item.

Reward Types

IVaultRewards

Vault rewards information.

Example:

Historical Types

IVaultUserHistoryItem

User's historical transaction.

Example:

IVaultHistoricalParams

Parameters for historical data queries.

Example:

IVaultRedemptionHistoryItem

Historical redemption record.

Web3 Types

IChainObj

Chain information object.

Example:

IProvidersConfig

RPC provider configuration.

Example:

ISolanaNetwork

Solana network type.

Last updated