/** * @name perps/adrena/adrena-builder-liquidity * @description Liquidity and swap builders for the Adrena perps protocol. * * Contains builders for adding liquidity, removing liquidity, and swapping tokens. * * @module perps/adrena/adrena-builder-liquidity */ import { PublicKey, Connection } from '@solana/web3.js'; import { type AdrenaPool, type UnsignedTransactionResult } from './adrena-builder-core.js'; /** * @name buildAddLiquidity * @description Build an unsigned transaction to add liquidity to an Adrena pool. * * @param connection — Solana RPC connection. * @param owner — Liquidity provider and fee payer. * @param collateralToken — Collateral token to deposit. * @param amountIn — Amount in human-readable units. * @param minLpAmountOut — Minimum LP tokens to receive (0 for no slippage protection). * @param poolName — Pool to add liquidity to. * @returns Unsigned transaction result. */ export declare function buildAddLiquidity(connection: Connection, owner: PublicKey, collateralToken: string, amountIn: number, minLpAmountOut?: bigint, poolName?: AdrenaPool): Promise; /** * @name buildRemoveLiquidity * @description Build an unsigned transaction to remove liquidity from an Adrena pool. * * @param connection — Solana RPC connection. * @param owner — Liquidity provider and fee payer. * @param collateralToken — Collateral token to receive. * @param lpAmountIn — LP tokens to burn (raw, 6 decimals). * @param minAmountOut — Minimum collateral to receive (raw, 0 for no slippage protection). * @param poolName — Pool to remove liquidity from. * @returns Unsigned transaction result. */ export declare function buildRemoveLiquidity(connection: Connection, owner: PublicKey, collateralToken: string, lpAmountIn: bigint, minAmountOut?: bigint, poolName?: AdrenaPool): Promise; /** * @name buildSwap * @description Build an unsigned transaction to swap tokens through an Adrena pool. * * @param connection — Solana RPC connection. * @param owner — Swapper and fee payer. * @param fromToken — Token to swap from. * @param toToken — Token to swap to. * @param amountIn — Amount in human-readable units. * @param minAmountOut — Minimum amount to receive (raw, 0 for no slippage protection). * @returns Unsigned transaction result. */ export declare function buildSwap(connection: Connection, owner: PublicKey, fromToken: string, toToken: string, amountIn: number, minAmountOut?: bigint): Promise; //# sourceMappingURL=adrena-builder-liquidity.d.ts.map