/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from "@solana/kit"; import { type FeeConfiguration, type FeeConfigurationArgs, type FeeState, type FeeStateArgs, type FeeUpdate, type FeeUpdateArgs, type HighWaterMark, type HighWaterMarkArgs, type LockedProfitState, type LockedProfitStateArgs, type VaultAsset, type VaultAssetArgs, type VaultConfiguration, type VaultConfigurationArgs, type VaultLp, type VaultLpArgs } from "../types"; export declare const VAULT_DISCRIMINATOR: Uint8Array; export declare function getVaultDiscriminatorBytes(): ReadonlyUint8Array; export type Vault = { discriminator: ReadonlyUint8Array; /** The vault's name. */ name: ReadonlyUint8Array; /** A description or summary for this vault. */ description: ReadonlyUint8Array; /** The vault’s main asset configuration (inline nested struct). */ asset: VaultAsset; /** The vault’s LP (share) configuration (inline nested struct). */ lp: VaultLp; /** The pending admin for admin transfer. */ pendingAdmin: Address; /** The manager of this vault (has certain permissions). */ manager: Address; /** The admin of this vault (broader or fallback permissions). */ admin: Address; /** The vault fee, cap, and locked profit degradation duration configuration (inline nested struct). */ vaultConfiguration: VaultConfiguration; /** The vault fee and cap configuration (inline nested struct). */ feeConfiguration: FeeConfiguration; /** The fee update state of the vault. */ feeUpdate: FeeUpdate; /** The fee state of the vault. */ feeState: FeeState; /** The accumulated dead weight of the vault. */ deadWeight: bigint; highWaterMark: HighWaterMark; /** The last time (Unix timestamp) this vault data was updated. */ lastUpdatedTs: bigint; /** The version of the vault. */ version: number; /** Protocol-admin-controlled adaptor allowlist bypass. */ allowAnyAdaptor: number; /** Padding to keep `locked_profit_state` at its existing 8-byte-aligned offset. */ padding0: ReadonlyUint8Array; /** The locked profit state of the vault. */ lockedProfitState: LockedProfitState; /** Reserved bytes for future use. */ reserved: ReadonlyUint8Array; }; export type VaultArgs = { /** The vault's name. */ name: ReadonlyUint8Array; /** A description or summary for this vault. */ description: ReadonlyUint8Array; /** The vault’s main asset configuration (inline nested struct). */ asset: VaultAssetArgs; /** The vault’s LP (share) configuration (inline nested struct). */ lp: VaultLpArgs; /** The pending admin for admin transfer. */ pendingAdmin: Address; /** The manager of this vault (has certain permissions). */ manager: Address; /** The admin of this vault (broader or fallback permissions). */ admin: Address; /** The vault fee, cap, and locked profit degradation duration configuration (inline nested struct). */ vaultConfiguration: VaultConfigurationArgs; /** The vault fee and cap configuration (inline nested struct). */ feeConfiguration: FeeConfigurationArgs; /** The fee update state of the vault. */ feeUpdate: FeeUpdateArgs; /** The fee state of the vault. */ feeState: FeeStateArgs; /** The accumulated dead weight of the vault. */ deadWeight: number | bigint; highWaterMark: HighWaterMarkArgs; /** The last time (Unix timestamp) this vault data was updated. */ lastUpdatedTs: number | bigint; /** The version of the vault. */ version: number; /** Protocol-admin-controlled adaptor allowlist bypass. */ allowAnyAdaptor: number; /** Padding to keep `locked_profit_state` at its existing 8-byte-aligned offset. */ padding0: ReadonlyUint8Array; /** The locked profit state of the vault. */ lockedProfitState: LockedProfitStateArgs; /** Reserved bytes for future use. */ reserved: ReadonlyUint8Array; }; /** Gets the encoder for {@link VaultArgs} account data. */ export declare function getVaultEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link Vault} account data. */ export declare function getVaultDecoder(): FixedSizeDecoder; /** Gets the codec for {@link Vault} account data. */ export declare function getVaultCodec(): FixedSizeCodec; export declare function decodeVault(encodedAccount: EncodedAccount): Account; export declare function decodeVault(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchVault(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybeVault(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllVault(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybeVault(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function getVaultSize(): number; //# sourceMappingURL=vault.d.ts.map