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 declare type V1Beta1MsgCancelAllOrdersResponse = object; /** * MsgCancelOrderResponse defines the Msg/CancelOrder response type. */ export declare type V1Beta1MsgCancelOrderResponse = object; export declare type V1Beta1MsgCreatePairResponse = object; /** * MsgCreatePoolResponse defines the Msg/CreatePool response type. */ export declare type V1Beta1MsgCreatePoolResponse = object; /** * MsgDepositResponse defines the Msg/Deposit response type. */ export declare type V1Beta1MsgDepositResponse = object; /** * MsgLimitOrderResponse defines the Msg/LimitOrder response type. */ export declare type V1Beta1MsgLimitOrderResponse = object; /** * MsgMarketOrderResponse defines the Msg/MarketOrder response type. */ export declare type V1Beta1MsgMarketOrderResponse = object; /** * MsgWithdrawResponse defines the Msg/Withdraw response type. */ export declare 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 declare 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 declare 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 declare 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 declare type QueryParamsType = Record; export declare 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 declare type RequestParams = Omit; export interface ApiConfig { baseUrl?: string; baseApiParams?: Omit; securityWorker?: (securityData: SecurityDataType) => RequestParams | void; } export interface HttpResponse extends Response { data: D; error: E; } declare type CancelToken = Symbol | string | number; export declare enum ContentType { Json = "application/json", FormData = "multipart/form-data", UrlEncoded = "application/x-www-form-urlencoded" } export declare class HttpClient { baseUrl: string; private securityData; private securityWorker; private abortControllers; private baseApiParams; constructor(apiConfig?: ApiConfig); setSecurityData: (data: SecurityDataType) => void; private addQueryParam; protected toQueryString(rawQuery?: QueryParamsType): string; protected addQueryParams(rawQuery?: QueryParamsType): string; private contentFormatters; private mergeRequestParams; private createAbortSignal; abortRequest: (cancelToken: CancelToken) => void; request: ({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise>; } /** * @title crescent/liquidity/v1beta1/genesis.proto * @version version not set */ export declare 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) => Promise>; /** * 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) => Promise>; /** * No description * * @tags Query * @name QueryPair * @summary Pair returns the specific pair. * @request GET:/crescent/liquidity/v1beta1/pairs/{pairId} */ queryPair: (pairId: string, params?: RequestParams) => Promise>; /** * 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) => Promise>; /** * 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) => Promise>; /** * No description * * @tags Query * @name QueryParams * @summary Params returns parameters of the module. * @request GET:/crescent/liquidity/v1beta1/params */ queryParams: (params?: RequestParams) => Promise>; /** * 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) => Promise>; /** * 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) => Promise>; /** * 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) => Promise>; /** * 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) => Promise>; /** * 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) => Promise>; /** * 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) => Promise>; /** * 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) => Promise>; /** * 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) => Promise>; } export {};