import { ChainCallDTO } from "@gala-chain/api"; import { GalaChainContext } from "@gala-chain/chaincode"; import { DexFeeConfig, GetAddLiquidityEstimationDto, GetAddLiquidityEstimationResDto, GetLiquidityResDto, GetPoolDto, Pool, Slot0ResDto } from "../../api/"; /** * @dev The getPoolData function retrieves and returns all publicly available state information of a Decentralized exchange pool within the GalaChain ecosystem. It provides insights into the pool's tick map, liquidity positions, and other essential details. * @param ctx GalaChainContext – The execution context providing access to the GalaChain environment. * @param dto GetPoolDto – A data transfer object containing: - Class keys for the tokens – Identifiers for the token pair in the pool. * @returns Pool */ export declare function getPoolData(ctx: GalaChainContext, dto: GetPoolDto): Promise; /** * @dev The slot0 function retrieves essential state variables from a Decentralized exchange pool within the GalaChain ecosystem. It provides core details such as the current square root price, tick, and liquidity. * @param ctx GalaChainContext – The execution context providing access to the GalaChain environment. * @param dto GetPoolDto – A data transfer object containing: - Pool identifiers – Class keys or token details needed to fetch the pool data. * @returns Slot0ResDto */ export declare function getSlot0(ctx: GalaChainContext, dto: GetPoolDto): Promise; /** * @dev The liquidity function retrieves the total available liquidity for a specific Decentralized exchange pool within the GalaChain ecosystem. * @param ctx GalaChainContext – The execution context providing access to the GalaChain environment. * @param dto GetPoolDto – A data transfer object containing: - Pool identifiers – Class keys or token details required to identify the pool. * @returns string */ export declare function getLiquidity(ctx: GalaChainContext, dto: GetPoolDto): Promise; /** * @dev The getAddLiquidityEstimation function estimates the required token amounts and liquidity when adding liquidity to a Decentralized exchange pool within the GalaChain ecosystem. * @param ctx GalaChainContext – The execution context providing access to the GalaChain environment. * @param dto GetAddLiquidityEstimationDto – A data transfer object containing: token0 – The first token of the pool. or token1 – The second token of the pool. Liquidity parameters – Details related to the amount of liquidity to be added. * @returns Promise – An array containing: - Estimated token0 amount required for the liquidity addition. - Estimated token1 amount required for the liquidity addition. - Liquidity amount that will be received in return. */ export declare function getAddLiquidityEstimation(ctx: GalaChainContext, dto: GetAddLiquidityEstimationDto): Promise; /** * * @param ctx GalaChainContext – The execution context providing access to the GalaChain environment. * @param dto ChainCallDTO Empty call to verify signature * @returns DexFeeConfig */ export declare function getDexFeesConfigration(ctx: GalaChainContext, dto: ChainCallDTO): Promise; //# sourceMappingURL=getFunctions.d.ts.map