kamino-sdk-beta
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
23 lines • 727 B
TypeScript
import { TransactionInstruction, PublicKey } from "@solana/web3.js";
import BN from "bn.js";
export interface SwapArgs {
amount: BN;
otherAmountThreshold: BN;
sqrtPriceLimitX64: BN;
isBaseInput: boolean;
}
export interface SwapAccounts {
payer: PublicKey;
ammConfig: PublicKey;
poolState: PublicKey;
inputTokenAccount: PublicKey;
outputTokenAccount: PublicKey;
inputVault: PublicKey;
outputVault: PublicKey;
observationState: PublicKey;
tokenProgram: PublicKey;
tickArray: PublicKey;
}
export declare const layout: any;
export declare function swap(args: SwapArgs, accounts: SwapAccounts, programId?: PublicKey): TransactionInstruction;
//# sourceMappingURL=swap.d.ts.map