/** * ABI Account Specifications * * Account ordering and specifications for Percolator instructions. * * @module abi/accounts */ import { PublicKey, AccountMeta } from "@solana/web3.js"; /** * Account spec for building instruction account metas. */ export interface AccountSpec { name: string; signer: boolean; writable: boolean; } export declare const ACCOUNTS_INIT_MARKET: readonly AccountSpec[]; export declare const ACCOUNTS_INIT_USER: readonly AccountSpec[]; export declare const ACCOUNTS_INIT_LP: readonly AccountSpec[]; export declare const ACCOUNTS_DEPOSIT_COLLATERAL: readonly AccountSpec[]; export declare const ACCOUNTS_WITHDRAW_COLLATERAL: readonly AccountSpec[]; export declare const ACCOUNTS_KEEPER_CRANK: readonly AccountSpec[]; export declare const ACCOUNTS_TRADE_NOCPI: readonly AccountSpec[]; export declare const ACCOUNTS_TRADE_CPI: readonly AccountSpec[]; export declare const ACCOUNTS_LIQUIDATE_AT_ORACLE: readonly AccountSpec[]; export declare const ACCOUNTS_CLOSE_ACCOUNT: readonly AccountSpec[]; export declare const ACCOUNTS_TOPUP_INSURANCE: readonly AccountSpec[]; export declare const ACCOUNTS_UPDATE_ADMIN: readonly AccountSpec[]; export declare const ACCOUNTS_CLOSE_SLAB: readonly AccountSpec[]; export declare const ACCOUNTS_UPDATE_CONFIG: readonly AccountSpec[]; export declare const ACCOUNTS_SET_ORACLE_AUTHORITY: readonly AccountSpec[]; export declare const ACCOUNTS_PUSH_ORACLE_PRICE: readonly AccountSpec[]; export declare const ACCOUNTS_RESOLVE_MARKET: readonly AccountSpec[]; export declare const ACCOUNTS_WITHDRAW_INSURANCE: readonly AccountSpec[]; /** * Build AccountMeta array from spec and provided pubkeys. */ export declare function buildAccountMetas(spec: readonly AccountSpec[], keys: PublicKey[]): AccountMeta[]; /** * Well-known program/sysvar keys */ export declare const WELL_KNOWN: { readonly tokenProgram: PublicKey; readonly clock: PublicKey; readonly rent: PublicKey; readonly systemProgram: PublicKey; }; //# sourceMappingURL=accounts.d.ts.map