@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
23 lines • 865 B
TypeScript
import { Address, IAccountMeta, IInstruction, TransactionSigner } from "@solana/kit";
import BN from "bn.js";
export interface SwapArgs {
amount: BN;
otherAmountThreshold: BN;
sqrtPriceLimitX64: BN;
isBaseInput: boolean;
}
export interface SwapAccounts {
payer: TransactionSigner;
ammConfig: Address;
poolState: Address;
inputTokenAccount: Address;
outputTokenAccount: Address;
inputVault: Address;
outputVault: Address;
observationState: Address;
tokenProgram: Address;
tickArray: Address;
}
export declare const layout: import("buffer-layout").Layout<unknown>;
export declare function swap(args: SwapArgs, accounts: SwapAccounts, programAddress?: Address): IInstruction<string, readonly (IAccountMeta<string> | import("@solana/kit").IAccountLookupMeta<string, string>)[]>;
//# sourceMappingURL=swap.d.ts.map