UNPKG

@kamino-finance/kliquidity-sdk

Version:

Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol

36 lines 1.31 kB
import { Address, IAccountMeta, IInstruction, TransactionSigner } from "@solana/kit"; import BN from "bn.js"; export interface EmergencySwapArgs { aToB: boolean; targetLimitBps: BN; } export interface EmergencySwapAccounts { adminAuthority: TransactionSigner; strategy: Address; globalConfig: Address; tokenAMint: Address; tokenBMint: Address; tokenAVault: Address; tokenBVault: Address; baseVaultAuthority: Address; pool: Address; position: Address; poolTokenVaultA: Address; poolTokenVaultB: Address; /** Payer must send this correctly. */ tickArray0: Address; /** Payer must send this correctly. */ tickArray1: Address; /** Payer must send this correctly. */ tickArray2: Address; oracle: Address; poolProgram: Address; scopePrices: Address; tokenInfos: Address; tokenATokenProgram: Address; tokenBTokenProgram: Address; memoProgram: Address; } export declare const layout: import("buffer-layout").Layout<unknown>; export declare function emergencySwap(args: EmergencySwapArgs, accounts: EmergencySwapAccounts, programAddress?: Address): IInstruction<string, readonly (IAccountMeta<string> | import("@solana/kit").IAccountLookupMeta<string, string>)[]>; //# sourceMappingURL=emergencySwap.d.ts.map