/* eslint-disable */ /* tslint:disable */ /* * --------------------------------------------------------------- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## * ## ## * ## AUTHOR: acacode ## * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## * --------------------------------------------------------------- */ export interface ProtobufAny { "@type"?: string; } export interface RpcStatus { /** @format int32 */ code?: number; message?: string; details?: ProtobufAny[]; } /** * Coin defines a token with a denomination and an amount. NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. */ export interface V1Beta1Coin { denom?: string; amount?: string; } /** * DepositRequest defines a deposit request. */ export interface V1Beta1DepositRequest { /** @format uint64 */ id?: string; /** @format uint64 */ poolId?: string; /** @format int64 */ msgHeight?: string; depositor?: string; /** deposit_coins specifies the amount of coins to deposit. */ depositCoins?: V1Beta1Coin[]; /** accepted_coins specifies the amount of coins that are accepted. */ acceptedCoins?: V1Beta1Coin[]; /** * Coin defines a token with a denomination and an amount. * * NOTE: The amount field is an Int which implements the custom method * signatures required by gogoproto. */ mintedPoolCoin?: V1Beta1Coin; /** * RequestStatus enumerates request statuses. * * - REQUEST_STATUS_UNSPECIFIED: REQUEST_STATUS_UNSPECIFIED specifies unknown request status * - REQUEST_STATUS_NOT_EXECUTED: REQUEST_STATUS_NOT_EXECUTED indicates the request is not executed yet * - REQUEST_STATUS_SUCCEEDED: REQUEST_STATUS_SUCCEEDED indicates the request has been succeeded * - REQUEST_STATUS_FAILED: REQUEST_STATUS_FAILED indicates the request is failed */ status?: V1Beta1RequestStatus; } /** * MsgCancelAllOrdersResponse defines the Msg/CancelAllOrders response type. */ export type V1Beta1MsgCancelAllOrdersResponse = object; /** * MsgCancelOrderResponse defines the Msg/CancelOrder response type. */ export type V1Beta1MsgCancelOrderResponse = object; export type V1Beta1MsgCreatePairResponse = object; /** * MsgCreatePoolResponse defines the Msg/CreatePool response type. */ export type V1Beta1MsgCreatePoolResponse = object; /** * MsgDepositResponse defines the Msg/Deposit response type. */ export type V1Beta1MsgDepositResponse = object; /** * MsgLimitOrderResponse defines the Msg/LimitOrder response type. */ export type V1Beta1MsgLimitOrderResponse = object; /** * MsgMarketOrderResponse defines the Msg/MarketOrder response type. */ export type V1Beta1MsgMarketOrderResponse = object; /** * MsgWithdrawResponse defines the Msg/Withdraw response type. */ export type V1Beta1MsgWithdrawResponse = object; /** * Order defines an order. */ export interface V1Beta1Order { /** @format uint64 */ id?: string; /** @format uint64 */ pairId?: string; /** @format int64 */ msgHeight?: string; orderer?: string; /** * OrderDirection enumerates order directions. * * - ORDER_DIRECTION_UNSPECIFIED: ORDER_DIRECTION_UNSPECIFIED specifies unknown order direction * - ORDER_DIRECTION_BUY: ORDER_DIRECTION_BUY specifies buy(swap quote coin to base coin) order direction * - ORDER_DIRECTION_SELL: ORDER_DIRECTION_SELL specifies sell(swap base coin to quote coin) order direction */ direction?: V1Beta1OrderDirection; /** * Coin defines a token with a denomination and an amount. * * NOTE: The amount field is an Int which implements the custom method * signatures required by gogoproto. */ offerCoin?: V1Beta1Coin; /** * Coin defines a token with a denomination and an amount. * * NOTE: The amount field is an Int which implements the custom method * signatures required by gogoproto. */ remainingOfferCoin?: V1Beta1Coin; /** * Coin defines a token with a denomination and an amount. * * NOTE: The amount field is an Int which implements the custom method * signatures required by gogoproto. */ receivedCoin?: V1Beta1Coin; price?: string; amount?: string; openAmount?: string; /** @format uint64 */ batchId?: string; /** @format date-time */ expireAt?: string; /** * OrderStatus enumerates order statuses. * * - ORDER_STATUS_UNSPECIFIED: ORDER_STATUS_UNSPECIFIED specifies unknown order status * - ORDER_STATUS_NOT_EXECUTED: ORDER_STATUS_NOT_EXECUTED indicates the order has not been executed yet * - ORDER_STATUS_NOT_MATCHED: ORDER_STATUS_NOT_MATCHED indicates the order has been executed but has no match * - ORDER_STATUS_PARTIALLY_MATCHED: ORDER_STATUS_PARTIALLY_MATCHED indicates the order has been partially matched * - ORDER_STATUS_COMPLETED: ORDER_STATUS_COMPLETED indicates the order has been fully matched and completed * - ORDER_STATUS_CANCELED: ORDER_STATUS_CANCELED indicates the order has been canceled * - ORDER_STATUS_EXPIRED: ORDER_STATUS_EXPIRED indicates the order has been expired */ status?: V1Beta1OrderStatus; } /** * OrderDirection enumerates order directions. - ORDER_DIRECTION_UNSPECIFIED: ORDER_DIRECTION_UNSPECIFIED specifies unknown order direction - ORDER_DIRECTION_BUY: ORDER_DIRECTION_BUY specifies buy(swap quote coin to base coin) order direction - ORDER_DIRECTION_SELL: ORDER_DIRECTION_SELL specifies sell(swap base coin to quote coin) order direction */ export enum V1Beta1OrderDirection { ORDER_DIRECTION_UNSPECIFIED = "ORDER_DIRECTION_UNSPECIFIED", ORDER_DIRECTION_BUY = "ORDER_DIRECTION_BUY", ORDER_DIRECTION_SELL = "ORDER_DIRECTION_SELL", } /** * OrderStatus enumerates order statuses. - ORDER_STATUS_UNSPECIFIED: ORDER_STATUS_UNSPECIFIED specifies unknown order status - ORDER_STATUS_NOT_EXECUTED: ORDER_STATUS_NOT_EXECUTED indicates the order has not been executed yet - ORDER_STATUS_NOT_MATCHED: ORDER_STATUS_NOT_MATCHED indicates the order has been executed but has no match - ORDER_STATUS_PARTIALLY_MATCHED: ORDER_STATUS_PARTIALLY_MATCHED indicates the order has been partially matched - ORDER_STATUS_COMPLETED: ORDER_STATUS_COMPLETED indicates the order has been fully matched and completed - ORDER_STATUS_CANCELED: ORDER_STATUS_CANCELED indicates the order has been canceled - ORDER_STATUS_EXPIRED: ORDER_STATUS_EXPIRED indicates the order has been expired */ export enum V1Beta1OrderStatus { ORDER_STATUS_UNSPECIFIED = "ORDER_STATUS_UNSPECIFIED", ORDER_STATUS_NOT_EXECUTED = "ORDER_STATUS_NOT_EXECUTED", ORDER_STATUS_NOT_MATCHED = "ORDER_STATUS_NOT_MATCHED", ORDER_STATUS_PARTIALLY_MATCHED = "ORDER_STATUS_PARTIALLY_MATCHED", ORDER_STATUS_COMPLETED = "ORDER_STATUS_COMPLETED", ORDER_STATUS_CANCELED = "ORDER_STATUS_CANCELED", ORDER_STATUS_EXPIRED = "ORDER_STATUS_EXPIRED", } /** * message SomeRequest { Foo some_parameter = 1; PageRequest pagination = 2; } */ export interface V1Beta1PageRequest { /** * key is a value returned in PageResponse.next_key to begin * querying the next page most efficiently. Only one of offset or key * should be set. * @format byte */ key?: string; /** * offset is a numeric offset that can be used when key is unavailable. * It is less efficient than using key. Only one of offset or key should * be set. * @format uint64 */ offset?: string; /** * limit is the total number of results to be returned in the result page. * If left empty it will default to a value to be set by each app. * @format uint64 */ limit?: string; /** * count_total is set to true to indicate that the result set should include * a count of the total number of items available for pagination in UIs. * count_total is only respected when offset is used. It is ignored when key * is set. */ countTotal?: boolean; /** * reverse is set to true if results are to be returned in the descending * order. */ reverse?: boolean; } /** * PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest. message SomeResponse { repeated Bar results = 1; PageResponse page = 2; } */ export interface V1Beta1PageResponse { /** @format byte */ nextKey?: string; /** @format uint64 */ total?: string; } /** * Pair defines a coin pair. */ export interface V1Beta1Pair { /** @format uint64 */ id?: string; baseCoinDenom?: string; quoteCoinDenom?: string; escrowAddress?: string; /** @format uint64 */ lastOrderId?: string; lastPrice?: string; /** @format uint64 */ currentBatchId?: string; } /** * Params defines the parameters for the liquidity module. */ export interface V1Beta1Params { /** @format int64 */ batchSize?: number; /** @format int64 */ tickPrecision?: number; feeCollectorAddress?: string; dustCollectorAddress?: string; minInitialPoolCoinSupply?: string; pairCreationFee?: V1Beta1Coin[]; poolCreationFee?: V1Beta1Coin[]; minInitialDepositAmount?: string; maxPriceLimitRatio?: string; maxOrderLifespan?: string; swapFeeRate?: string; withdrawFeeRate?: string; /** @format uint64 */ depositExtraGas?: string; /** @format uint64 */ withdrawExtraGas?: string; /** @format uint64 */ orderExtraGas?: string; } /** * PoolResponse defines a custom pool response message. */ export interface V1Beta1PoolResponse { /** @format uint64 */ id?: string; /** @format uint64 */ pairId?: string; reserveAddress?: string; poolCoinDenom?: string; balances?: V1Beta1Coin[]; /** @format uint64 */ lastDepositRequestId?: string; /** @format uint64 */ lastWithdrawRequestId?: string; } /** * QueryDepositRequestResponse is response type for the Query/DepositRequest RPC method. */ export interface V1Beta1QueryDepositRequestResponse { /** DepositRequest defines a deposit request. */ depositRequest?: V1Beta1DepositRequest; } /** * QueryDepositRequestsResponse is response type for the Query/DepositRequests RPC method. */ export interface V1Beta1QueryDepositRequestsResponse { depositRequests?: V1Beta1DepositRequest[]; /** * PageResponse is to be embedded in gRPC response messages where the * corresponding request message has used PageRequest. * * message SomeResponse { * repeated Bar results = 1; * PageResponse page = 2; * } */ pagination?: V1Beta1PageResponse; } /** * QueryOrderResponse is response type for the Query/Order RPC method. */ export interface V1Beta1QueryOrderResponse { /** Order defines an order. */ order?: V1Beta1Order; } /** * QueryOrdersResponse is response type for the Query/Orders RPC method. */ export interface V1Beta1QueryOrdersResponse { orders?: V1Beta1Order[]; /** * PageResponse is to be embedded in gRPC response messages where the * corresponding request message has used PageRequest. * * message SomeResponse { * repeated Bar results = 1; * PageResponse page = 2; * } */ pagination?: V1Beta1PageResponse; } /** * QueryPairResponse is response type for the Query/Pair RPC method. */ export interface V1Beta1QueryPairResponse { /** Pair defines a coin pair. */ pair?: V1Beta1Pair; } /** * QueryPairsResponse is response type for the Query/Pairs RPC method. */ export interface V1Beta1QueryPairsResponse { pairs?: V1Beta1Pair[]; /** * PageResponse is to be embedded in gRPC response messages where the * corresponding request message has used PageRequest. * * message SomeResponse { * repeated Bar results = 1; * PageResponse page = 2; * } */ pagination?: V1Beta1PageResponse; } /** * QueryParamsResponse is response type for the Query/Params RPC method. */ export interface V1Beta1QueryParamsResponse { /** Params defines the parameters for the liquidity module. */ params?: V1Beta1Params; } /** * QueryPoolResponse is response type for the Query/Pool RPC method. */ export interface V1Beta1QueryPoolResponse { /** PoolResponse defines a custom pool response message. */ pool?: V1Beta1PoolResponse; } /** * QueryPoolsResponse is response type for the Query/Pools RPC method. */ export interface V1Beta1QueryPoolsResponse { pools?: V1Beta1PoolResponse[]; /** * PageResponse is to be embedded in gRPC response messages where the * corresponding request message has used PageRequest. * * message SomeResponse { * repeated Bar results = 1; * PageResponse page = 2; * } */ pagination?: V1Beta1PageResponse; } /** * QueryWithdrawRequestResponse is response type for the Query/WithdrawRequest RPC method. */ export interface V1Beta1QueryWithdrawRequestResponse { /** WithdrawRequest defines a withdraw request. */ withdrawRequest?: V1Beta1WithdrawRequest; } /** * QueryWithdrawRequestsResponse is response type for the Query/WithdrawRequests RPC method. */ export interface V1Beta1QueryWithdrawRequestsResponse { withdrawRequests?: V1Beta1WithdrawRequest[]; /** * PageResponse is to be embedded in gRPC response messages where the * corresponding request message has used PageRequest. * * message SomeResponse { * repeated Bar results = 1; * PageResponse page = 2; * } */ pagination?: V1Beta1PageResponse; } /** * RequestStatus enumerates request statuses. - REQUEST_STATUS_UNSPECIFIED: REQUEST_STATUS_UNSPECIFIED specifies unknown request status - REQUEST_STATUS_NOT_EXECUTED: REQUEST_STATUS_NOT_EXECUTED indicates the request is not executed yet - REQUEST_STATUS_SUCCEEDED: REQUEST_STATUS_SUCCEEDED indicates the request has been succeeded - REQUEST_STATUS_FAILED: REQUEST_STATUS_FAILED indicates the request is failed */ export enum V1Beta1RequestStatus { REQUEST_STATUS_UNSPECIFIED = "REQUEST_STATUS_UNSPECIFIED", REQUEST_STATUS_NOT_EXECUTED = "REQUEST_STATUS_NOT_EXECUTED", REQUEST_STATUS_SUCCEEDED = "REQUEST_STATUS_SUCCEEDED", REQUEST_STATUS_FAILED = "REQUEST_STATUS_FAILED", } /** * WithdrawRequest defines a withdraw request. */ export interface V1Beta1WithdrawRequest { /** @format uint64 */ id?: string; /** @format uint64 */ poolId?: string; /** @format int64 */ msgHeight?: string; withdrawer?: string; /** * Coin defines a token with a denomination and an amount. * * NOTE: The amount field is an Int which implements the custom method * signatures required by gogoproto. */ poolCoin?: V1Beta1Coin; /** withdrawn_coins specifies the amount of coins that are withdrawn. */ withdrawnCoins?: V1Beta1Coin[]; /** * RequestStatus enumerates request statuses. * * - REQUEST_STATUS_UNSPECIFIED: REQUEST_STATUS_UNSPECIFIED specifies unknown request status * - REQUEST_STATUS_NOT_EXECUTED: REQUEST_STATUS_NOT_EXECUTED indicates the request is not executed yet * - REQUEST_STATUS_SUCCEEDED: REQUEST_STATUS_SUCCEEDED indicates the request has been succeeded * - REQUEST_STATUS_FAILED: REQUEST_STATUS_FAILED indicates the request is failed */ status?: V1Beta1RequestStatus; } export type QueryParamsType = Record; export type ResponseFormat = keyof Omit; export interface FullRequestParams extends Omit { /** set parameter to `true` for call `securityWorker` for this request */ secure?: boolean; /** request path */ path: string; /** content type of request body */ type?: ContentType; /** query params */ query?: QueryParamsType; /** format of response (i.e. response.json() -> format: "json") */ format?: keyof Omit; /** request body */ body?: unknown; /** base url */ baseUrl?: string; /** request cancellation token */ cancelToken?: CancelToken; } export type RequestParams = Omit; export interface ApiConfig { baseUrl?: string; baseApiParams?: Omit; securityWorker?: (securityData: SecurityDataType) => RequestParams | void; } export interface HttpResponse extends Response { data: D; error: E; } type CancelToken = Symbol | string | number; export enum ContentType { Json = "application/json", FormData = "multipart/form-data", UrlEncoded = "application/x-www-form-urlencoded", } export class HttpClient { public baseUrl: string = ""; private securityData: SecurityDataType = null as any; private securityWorker: null | ApiConfig["securityWorker"] = null; private abortControllers = new Map(); private baseApiParams: RequestParams = { credentials: "same-origin", headers: {}, redirect: "follow", referrerPolicy: "no-referrer", }; constructor(apiConfig: ApiConfig = {}) { Object.assign(this, apiConfig); } public setSecurityData = (data: SecurityDataType) => { this.securityData = data; }; private addQueryParam(query: QueryParamsType, key: string) { const value = query[key]; return ( encodeURIComponent(key) + "=" + encodeURIComponent(Array.isArray(value) ? value.join(",") : typeof value === "number" ? value : `${value}`) ); } protected toQueryString(rawQuery?: QueryParamsType): string { const query = rawQuery || {}; const keys = Object.keys(query).filter((key) => "undefined" !== typeof query[key]); return keys .map((key) => typeof query[key] === "object" && !Array.isArray(query[key]) ? this.toQueryString(query[key] as QueryParamsType) : this.addQueryParam(query, key), ) .join("&"); } protected addQueryParams(rawQuery?: QueryParamsType): string { const queryString = this.toQueryString(rawQuery); return queryString ? `?${queryString}` : ""; } private contentFormatters: Record any> = { [ContentType.Json]: (input: any) => input !== null && (typeof input === "object" || typeof input === "string") ? JSON.stringify(input) : input, [ContentType.FormData]: (input: any) => Object.keys(input || {}).reduce((data, key) => { data.append(key, input[key]); return data; }, new FormData()), [ContentType.UrlEncoded]: (input: any) => this.toQueryString(input), }; private mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams { return { ...this.baseApiParams, ...params1, ...(params2 || {}), headers: { ...(this.baseApiParams.headers || {}), ...(params1.headers || {}), ...((params2 && params2.headers) || {}), }, }; } private createAbortSignal = (cancelToken: CancelToken): AbortSignal | undefined => { if (this.abortControllers.has(cancelToken)) { const abortController = this.abortControllers.get(cancelToken); if (abortController) { return abortController.signal; } return void 0; } const abortController = new AbortController(); this.abortControllers.set(cancelToken, abortController); return abortController.signal; }; public abortRequest = (cancelToken: CancelToken) => { const abortController = this.abortControllers.get(cancelToken); if (abortController) { abortController.abort(); this.abortControllers.delete(cancelToken); } }; public request = ({ body, secure, path, type, query, format = "json", baseUrl, cancelToken, ...params }: FullRequestParams): Promise> => { const secureParams = (secure && this.securityWorker && this.securityWorker(this.securityData)) || {}; const requestParams = this.mergeRequestParams(params, secureParams); const queryString = query && this.toQueryString(query); const payloadFormatter = this.contentFormatters[type || ContentType.Json]; return fetch(`${baseUrl || this.baseUrl || ""}${path}${queryString ? `?${queryString}` : ""}`, { ...requestParams, headers: { ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}), ...(requestParams.headers || {}), }, signal: cancelToken ? this.createAbortSignal(cancelToken) : void 0, body: typeof body === "undefined" || body === null ? null : payloadFormatter(body), }).then(async (response) => { const r = response as HttpResponse; r.data = (null as unknown) as T; r.error = (null as unknown) as E; const data = await response[format]() .then((data) => { if (r.ok) { r.data = data; } else { r.error = data; } return r; }) .catch((e) => { r.error = e; return r; }); if (cancelToken) { this.abortControllers.delete(cancelToken); } if (!response.ok) throw data; return data; }); }; } /** * @title crescent/liquidity/v1beta1/genesis.proto * @version version not set */ export class Api extends HttpClient { /** * No description * * @tags Query * @name QueryOrdersByOrderer * @summary OrdersByOrderer returns orders made by an orderer. * @request GET:/crescent/liquidity/v1beta1/orders/{orderer} */ queryOrdersByOrderer = ( orderer: string, query?: { pairId?: string; "pagination.key"?: string; "pagination.offset"?: string; "pagination.limit"?: string; "pagination.countTotal"?: boolean; "pagination.reverse"?: boolean; }, params: RequestParams = {}, ) => this.request({ path: `/crescent/liquidity/v1beta1/orders/${orderer}`, method: "GET", query: query, format: "json", ...params, }); /** * No description * * @tags Query * @name QueryPairs * @summary Pairs returns all liquidity pairs. * @request GET:/crescent/liquidity/v1beta1/pairs */ queryPairs = ( query?: { denoms?: string[]; "pagination.key"?: string; "pagination.offset"?: string; "pagination.limit"?: string; "pagination.countTotal"?: boolean; "pagination.reverse"?: boolean; }, params: RequestParams = {}, ) => this.request({ path: `/crescent/liquidity/v1beta1/pairs`, method: "GET", query: query, format: "json", ...params, }); /** * No description * * @tags Query * @name QueryPair * @summary Pair returns the specific pair. * @request GET:/crescent/liquidity/v1beta1/pairs/{pairId} */ queryPair = (pairId: string, params: RequestParams = {}) => this.request({ path: `/crescent/liquidity/v1beta1/pairs/${pairId}`, method: "GET", format: "json", ...params, }); /** * No description * * @tags Query * @name QueryOrders * @summary Orders returns all orders within the pair. * @request GET:/crescent/liquidity/v1beta1/pairs/{pairId}/orders */ queryOrders = ( pairId: string, query?: { "pagination.key"?: string; "pagination.offset"?: string; "pagination.limit"?: string; "pagination.countTotal"?: boolean; "pagination.reverse"?: boolean; }, params: RequestParams = {}, ) => this.request({ path: `/crescent/liquidity/v1beta1/pairs/${pairId}/orders`, method: "GET", query: query, format: "json", ...params, }); /** * No description * * @tags Query * @name QueryOrder * @summary Order returns the specific order. * @request GET:/crescent/liquidity/v1beta1/pairs/{pairId}/orders/{id} */ queryOrder = (pairId: string, id: string, params: RequestParams = {}) => this.request({ path: `/crescent/liquidity/v1beta1/pairs/${pairId}/orders/${id}`, method: "GET", format: "json", ...params, }); /** * No description * * @tags Query * @name QueryParams * @summary Params returns parameters of the module. * @request GET:/crescent/liquidity/v1beta1/params */ queryParams = (params: RequestParams = {}) => this.request({ path: `/crescent/liquidity/v1beta1/params`, method: "GET", format: "json", ...params, }); /** * No description * * @tags Query * @name QueryPools * @summary Pools returns all liquidity pools. * @request GET:/crescent/liquidity/v1beta1/pools */ queryPools = ( query?: { pairId?: string; disabled?: string; "pagination.key"?: string; "pagination.offset"?: string; "pagination.limit"?: string; "pagination.countTotal"?: boolean; "pagination.reverse"?: boolean; }, params: RequestParams = {}, ) => this.request({ path: `/crescent/liquidity/v1beta1/pools`, method: "GET", query: query, format: "json", ...params, }); /** * No description * * @tags Query * @name QueryPoolByPoolCoinDenom * @summary PoolByPoolCoinDenom returns all pools that correspond to the pool coin denom. * @request GET:/crescent/liquidity/v1beta1/pools/pool_coin_denom/{poolCoinDenom} */ queryPoolByPoolCoinDenom = (poolCoinDenom: string, params: RequestParams = {}) => this.request({ path: `/crescent/liquidity/v1beta1/pools/pool_coin_denom/${poolCoinDenom}`, method: "GET", format: "json", ...params, }); /** * No description * * @tags Query * @name QueryPoolByReserveAddress * @summary PoolByReserveAddress returns all pools that correspond to the reserve account. * @request GET:/crescent/liquidity/v1beta1/pools/reserve_address/{reserveAddress} */ queryPoolByReserveAddress = (reserveAddress: string, params: RequestParams = {}) => this.request({ path: `/crescent/liquidity/v1beta1/pools/reserve_address/${reserveAddress}`, method: "GET", format: "json", ...params, }); /** * No description * * @tags Query * @name QueryPool * @summary Pool returns the specific liquidity pool. * @request GET:/crescent/liquidity/v1beta1/pools/{poolId} */ queryPool = (poolId: string, params: RequestParams = {}) => this.request({ path: `/crescent/liquidity/v1beta1/pools/${poolId}`, method: "GET", format: "json", ...params, }); /** * No description * * @tags Query * @name QueryDepositRequests * @summary DepositRequests returns all deposit requests. * @request GET:/crescent/liquidity/v1beta1/pools/{poolId}/deposit_requests */ queryDepositRequests = ( poolId: string, query?: { "pagination.key"?: string; "pagination.offset"?: string; "pagination.limit"?: string; "pagination.countTotal"?: boolean; "pagination.reverse"?: boolean; }, params: RequestParams = {}, ) => this.request({ path: `/crescent/liquidity/v1beta1/pools/${poolId}/deposit_requests`, method: "GET", query: query, format: "json", ...params, }); /** * No description * * @tags Query * @name QueryDepositRequest * @summary DepositRequest returns the specific deposit request. * @request GET:/crescent/liquidity/v1beta1/pools/{poolId}/deposit_requests/{id} */ queryDepositRequest = (poolId: string, id: string, params: RequestParams = {}) => this.request({ path: `/crescent/liquidity/v1beta1/pools/${poolId}/deposit_requests/${id}`, method: "GET", format: "json", ...params, }); /** * No description * * @tags Query * @name QueryWithdrawRequests * @summary WithdrawRequests returns all withdraw requests. * @request GET:/crescent/liquidity/v1beta1/pools/{poolId}/withdraw_requests */ queryWithdrawRequests = ( poolId: string, query?: { "pagination.key"?: string; "pagination.offset"?: string; "pagination.limit"?: string; "pagination.countTotal"?: boolean; "pagination.reverse"?: boolean; }, params: RequestParams = {}, ) => this.request({ path: `/crescent/liquidity/v1beta1/pools/${poolId}/withdraw_requests`, method: "GET", query: query, format: "json", ...params, }); /** * No description * * @tags Query * @name QueryWithdrawRequest * @summary WithdrawRequest returns the specific withdraw request. * @request GET:/crescent/liquidity/v1beta1/pools/{poolId}/withdraw_requests/{id} */ queryWithdrawRequest = (poolId: string, id: string, params: RequestParams = {}) => this.request({ path: `/crescent/liquidity/v1beta1/pools/${poolId}/withdraw_requests/${id}`, method: "GET", format: "json", ...params, }); }