import { Rpc } from "../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; import { QueryPoolsRequest, QueryPoolsResponse, QueryNumPoolsRequest, QueryNumPoolsResponse, QueryTotalLiquidityRequest, QueryTotalLiquidityResponse, QueryPoolsWithFilterRequest, QueryPoolsWithFilterResponse, QueryPoolRequest, QueryPoolResponse, QueryPoolTypeRequest, QueryPoolTypeResponse, QueryCalcJoinPoolNoSwapSharesRequest, QueryCalcJoinPoolNoSwapSharesResponse, QueryCalcJoinPoolSharesRequest, QueryCalcJoinPoolSharesResponse, QueryCalcExitPoolCoinsFromSharesRequest, QueryCalcExitPoolCoinsFromSharesResponse, QueryPoolParamsRequest, QueryPoolParamsResponse, QueryTotalPoolLiquidityRequest, QueryTotalPoolLiquidityResponse, QueryTotalSharesRequest, QueryTotalSharesResponse, QuerySpotPriceRequest, QuerySpotPriceResponse, QuerySwapExactAmountInRequest, QuerySwapExactAmountInResponse, QuerySwapExactAmountOutRequest, QuerySwapExactAmountOutResponse, QueryConcentratedPoolIdLinkFromCFMMRequest, QueryConcentratedPoolIdLinkFromCFMMResponse, QueryCFMMConcentratedPoolLinksRequest, QueryCFMMConcentratedPoolLinksResponse } from "./query"; export interface Query { pools(request?: QueryPoolsRequest): Promise; /** Deprecated: please use the alternative in x/poolmanager */ numPools(request?: QueryNumPoolsRequest): Promise; totalLiquidity(request?: QueryTotalLiquidityRequest): Promise; /** * PoolsWithFilter allows you to query specific pools with requested * parameters */ poolsWithFilter(request: QueryPoolsWithFilterRequest): Promise; /** Deprecated: please use the alternative in x/poolmanager */ pool(request: QueryPoolRequest): Promise; /** * PoolType returns the type of the pool. * Returns "Balancer" as a string literal when the pool is a balancer pool. * Errors if the pool is failed to be type caseted. */ poolType(request: QueryPoolTypeRequest): Promise; /** * Simulates joining pool without a swap. Returns the amount of shares you'd * get and tokens needed to provide */ calcJoinPoolNoSwapShares(request: QueryCalcJoinPoolNoSwapSharesRequest): Promise; calcJoinPoolShares(request: QueryCalcJoinPoolSharesRequest): Promise; calcExitPoolCoinsFromShares(request: QueryCalcExitPoolCoinsFromSharesRequest): Promise; poolParams(request: QueryPoolParamsRequest): Promise; /** Deprecated: please use the alternative in x/poolmanager */ totalPoolLiquidity(request: QueryTotalPoolLiquidityRequest): Promise; totalShares(request: QueryTotalSharesRequest): Promise; /** * SpotPrice defines a gRPC query handler that returns the spot price given * a base denomination and a quote denomination. */ spotPrice(request: QuerySpotPriceRequest): Promise; /** Deprecated: please use the alternative in x/poolmanager */ estimateSwapExactAmountIn(request: QuerySwapExactAmountInRequest): Promise; /** Deprecated: please use the alternative in x/poolmanager */ estimateSwapExactAmountOut(request: QuerySwapExactAmountOutRequest): Promise; /** * ConcentratedPoolIdLinkFromBalancer returns the pool id of the concentrated * pool that is linked with the given CFMM pool. */ concentratedPoolIdLinkFromCFMM(request: QueryConcentratedPoolIdLinkFromCFMMRequest): Promise; /** * CFMMConcentratedPoolLinks returns migration links between CFMM and * Concentrated pools. */ cFMMConcentratedPoolLinks(request?: QueryCFMMConcentratedPoolLinksRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: Rpc); pools(request?: QueryPoolsRequest): Promise; numPools(request?: QueryNumPoolsRequest): Promise; totalLiquidity(request?: QueryTotalLiquidityRequest): Promise; poolsWithFilter(request: QueryPoolsWithFilterRequest): Promise; pool(request: QueryPoolRequest): Promise; poolType(request: QueryPoolTypeRequest): Promise; calcJoinPoolNoSwapShares(request: QueryCalcJoinPoolNoSwapSharesRequest): Promise; calcJoinPoolShares(request: QueryCalcJoinPoolSharesRequest): Promise; calcExitPoolCoinsFromShares(request: QueryCalcExitPoolCoinsFromSharesRequest): Promise; poolParams(request: QueryPoolParamsRequest): Promise; totalPoolLiquidity(request: QueryTotalPoolLiquidityRequest): Promise; totalShares(request: QueryTotalSharesRequest): Promise; spotPrice(request: QuerySpotPriceRequest): Promise; estimateSwapExactAmountIn(request: QuerySwapExactAmountInRequest): Promise; estimateSwapExactAmountOut(request: QuerySwapExactAmountOutRequest): Promise; concentratedPoolIdLinkFromCFMM(request: QueryConcentratedPoolIdLinkFromCFMMRequest): Promise; cFMMConcentratedPoolLinks(request?: QueryCFMMConcentratedPoolLinksRequest): Promise; } export declare const createRpcQueryExtension: (base: QueryClient) => { pools(request?: QueryPoolsRequest): Promise; numPools(request?: QueryNumPoolsRequest): Promise; totalLiquidity(request?: QueryTotalLiquidityRequest): Promise; poolsWithFilter(request: QueryPoolsWithFilterRequest): Promise; pool(request: QueryPoolRequest): Promise; poolType(request: QueryPoolTypeRequest): Promise; calcJoinPoolNoSwapShares(request: QueryCalcJoinPoolNoSwapSharesRequest): Promise; calcJoinPoolShares(request: QueryCalcJoinPoolSharesRequest): Promise; calcExitPoolCoinsFromShares(request: QueryCalcExitPoolCoinsFromSharesRequest): Promise; poolParams(request: QueryPoolParamsRequest): Promise; totalPoolLiquidity(request: QueryTotalPoolLiquidityRequest): Promise; totalShares(request: QueryTotalSharesRequest): Promise; spotPrice(request: QuerySpotPriceRequest): Promise; estimateSwapExactAmountIn(request: QuerySwapExactAmountInRequest): Promise; estimateSwapExactAmountOut(request: QuerySwapExactAmountOutRequest): Promise; concentratedPoolIdLinkFromCFMM(request: QueryConcentratedPoolIdLinkFromCFMMRequest): Promise; cFMMConcentratedPoolLinks(request?: QueryCFMMConcentratedPoolLinksRequest): Promise; };