@renec-foundation/redex-sdk
Version:
Typescript SDK to interact with Orca's Whirlpool program.
9 lines (8 loc) • 550 B
TypeScript
import { Instruction } from "@orca-so/common-sdk";
import { PublicKey } from "@solana/web3.js";
import BN from "bn.js";
export declare function isNativeMint(mint: PublicKey): boolean;
export declare function getAssociatedTokenAddressSync(mint: string, owner: string, programId?: PublicKey, associatedTokenProgramId?: PublicKey): PublicKey;
export declare function createWSOLAccountInstructions(owner: PublicKey, amountToWrap: BN, accountExemption: number, payer?: PublicKey, unwrapDestination?: PublicKey): {
address: PublicKey;
} & Instruction;