/** * 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 Assets, type AssetsArgs, type FundingRateState, type FundingRateStateArgs, type OracleParams, type OracleParamsArgs, type Permissions, type PermissionsArgs, type PricingParams, type PricingParamsArgs } from "../types"; export declare const CUSTODY_DISCRIMINATOR: Uint8Array; export declare function getCustodyDiscriminatorBytes(): ReadonlyUint8Array; export type Custody = { discriminator: ReadonlyUint8Array; pool: Address; mint: Address; tokenAccount: Address; decimals: number; isStable: boolean; oracle: OracleParams; pricing: PricingParams; permissions: Permissions; targetRatioBps: bigint; assets: Assets; fundingRateState: FundingRateState; bump: number; tokenAccountBump: number; }; export type CustodyArgs = { pool: Address; mint: Address; tokenAccount: Address; decimals: number; isStable: boolean; oracle: OracleParamsArgs; pricing: PricingParamsArgs; permissions: PermissionsArgs; targetRatioBps: number | bigint; assets: AssetsArgs; fundingRateState: FundingRateStateArgs; bump: number; tokenAccountBump: number; }; /** Gets the encoder for {@link CustodyArgs} account data. */ export declare function getCustodyEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link Custody} account data. */ export declare function getCustodyDecoder(): FixedSizeDecoder; /** Gets the codec for {@link Custody} account data. */ export declare function getCustodyCodec(): FixedSizeCodec; export declare function decodeCustody(encodedAccount: EncodedAccount): Account; export declare function decodeCustody(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchCustody(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybeCustody(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllCustody(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybeCustody(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function getCustodySize(): number; //# sourceMappingURL=custody.d.ts.map