kamino-sdk-beta
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
25 lines • 784 B
TypeScript
import { TransactionInstruction, PublicKey } from "@solana/web3.js";
import BN from "bn.js";
export interface SwapArgs {
amount: BN;
otherAmountThreshold: BN;
sqrtPriceLimit: BN;
amountSpecifiedIsInput: boolean;
aToB: boolean;
}
export interface SwapAccounts {
tokenProgram: PublicKey;
tokenAuthority: PublicKey;
whirlpool: PublicKey;
tokenOwnerAccountA: PublicKey;
tokenVaultA: PublicKey;
tokenOwnerAccountB: PublicKey;
tokenVaultB: PublicKey;
tickArray0: PublicKey;
tickArray1: PublicKey;
tickArray2: PublicKey;
oracle: PublicKey;
}
export declare const layout: any;
export declare function swap(args: SwapArgs, accounts: SwapAccounts, programId?: PublicKey): TransactionInstruction;
//# sourceMappingURL=swap.d.ts.map