import { GalaChainContext } from "@gala-chain/chaincode"; import { SwapDto, SwapResDto } from "../../api/"; /** * @dev The swap function executes a token swap in a Dex liquidity pool within the GalaChain ecosystem. * @param ctx GalaChainContext – The execution context providing access to the GalaChain environment. * @param dto SwapDto – A data transfer object containing: - tokenIn – The input token being swapped. - amountIn – The amount of tokenIn provided for the swap. - amountInMaximum – The amount of tokenIn provided for the swap. - tokenOut – The token the user wants to receive. - amountOutMinimum- pool amount token user want to receive Minimum; - zeroForOne - Boolean value for swap direction - Pool Identifiers – Identifier for the liquidity pool facilitating the swap. - sqrtPriceLimit – The square root price limit to protect against excessive price impact. * @returns */ export declare function swap(ctx: GalaChainContext, dto: SwapDto): Promise; //# sourceMappingURL=swap.d.ts.map