UNPKG

@orca-so/whirlpools-sdk

Version:

Typescript SDK to interact with Orca's Whirlpool program.

22 lines (21 loc) 772 B
import type { BN, Program } from "@coral-xyz/anchor"; import type { Instruction, PDA } from "@orca-so/common-sdk"; import type { Keypair, PublicKey } from "@solana/web3.js"; import type { Whirlpool } from "../../artifacts/whirlpool"; export type InitPoolV2Params = { initSqrtPrice: BN; whirlpoolsConfig: PublicKey; whirlpoolPda: PDA; tokenMintA: PublicKey; tokenMintB: PublicKey; tokenBadgeA: PublicKey; tokenBadgeB: PublicKey; tokenProgramA: PublicKey; tokenProgramB: PublicKey; tokenVaultAKeypair: Keypair; tokenVaultBKeypair: Keypair; feeTierKey: PublicKey; tickSpacing: number; funder: PublicKey; }; export declare function initializePoolV2Ix(program: Program<Whirlpool>, params: InitPoolV2Params): Instruction;