UNPKG

@orca-so/whirlpools-sdk

Version:

Typescript SDK to interact with Orca's Whirlpool program.

24 lines (23 loc) 885 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 InitPoolWithAdaptiveFeeParams = { initSqrtPrice: BN; tradeEnableTimestamp?: BN; whirlpoolsConfig: PublicKey; whirlpoolPda: PDA; oraclePda: PDA; tokenMintA: PublicKey; tokenMintB: PublicKey; tokenBadgeA: PublicKey; tokenBadgeB: PublicKey; tokenProgramA: PublicKey; tokenProgramB: PublicKey; tokenVaultAKeypair: Keypair; tokenVaultBKeypair: Keypair; adaptiveFeeTierKey: PublicKey; initializePoolAuthority: PublicKey; funder: PublicKey; }; export declare function initializePoolWithAdaptiveFeeIx(program: Program<Whirlpool>, params: InitPoolWithAdaptiveFeeParams): Instruction;