@marinade.finance/kamino-sdk
Version:
27 lines (26 loc) • 803 B
TypeScript
import { TransactionInstruction, PublicKey } from "@solana/web3.js";
import BN from "bn.js";
export interface OrcaSwapArgs {
amount: BN;
otherAmountThreshold: BN;
sqrtPriceLimit: BN;
amountSpecifiedIsInput: boolean;
aToB: boolean;
}
export interface OrcaSwapAccounts {
funder: PublicKey;
tokenProgram: PublicKey;
tokenAuthority: PublicKey;
whirlpool: PublicKey;
tokenOwnerAccountA: PublicKey;
tokenVaultA: PublicKey;
tokenOwnerAccountB: PublicKey;
tokenVaultB: PublicKey;
tickArray0: PublicKey;
tickArray1: PublicKey;
tickArray2: PublicKey;
oracle: PublicKey;
whirlpoolProgram: PublicKey;
}
export declare const layout: any;
export declare function orcaSwap(args: OrcaSwapArgs, accounts: OrcaSwapAccounts): TransactionInstruction;