@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
25 lines • 920 B
TypeScript
import { Address, IAccountMeta, IInstruction, TransactionSigner } from "@solana/kit";
import BN from "bn.js";
export interface SwapArgs {
amount: BN;
otherAmountThreshold: BN;
sqrtPriceLimit: BN;
amountSpecifiedIsInput: boolean;
aToB: boolean;
}
export interface SwapAccounts {
tokenProgram: Address;
tokenAuthority: TransactionSigner;
whirlpool: Address;
tokenOwnerAccountA: Address;
tokenVaultA: Address;
tokenOwnerAccountB: Address;
tokenVaultB: Address;
tickArray0: Address;
tickArray1: Address;
tickArray2: Address;
oracle: 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