From 1746fc98d636c81abf5e50be94803b0036ab86f0 Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Wed, 25 Sep 2024 14:44:29 +0300 Subject: [PATCH] swagger --- docs/static/swagger.yaml | 3962 ++++++++++++++++++++++++-------------- 1 file changed, 2563 insertions(+), 1399 deletions(-) diff --git a/docs/static/swagger.yaml b/docs/static/swagger.yaml index 96816efe0..cfc211971 100644 --- a/docs/static/swagger.yaml +++ b/docs/static/swagger.yaml @@ -15476,6 +15476,39 @@ definitions: format: uint64 type: string type: object + neutron.contractmanager.QueryFailureResponse: + description: QueryFailureResponse is response type for the Query/Failure RPC method. + properties: + failure: + properties: + address: + title: Address of the failed contract + type: string + error: + title: >- + Redacted error response of the sudo call. Full error is emitted as + an event + type: string + id: + format: uint64 + title: Id of the failure under specific address + type: string + sudo_payload: + format: byte + title: Serialized MessageSudoCallback with Packet and Ack(if exists) + type: string + title: >- + Failure message contains information about ACK failures and can be + used to + + replay ACK in case of requirement. + + Note that Failure means that sudo handler to cosmwasm contract failed + for + + some reason + type: object + type: object neutron.contractmanager.QueryFailuresResponse: description: QueryFailuresResponse is response type for the Query/Failures RPC method. properties: @@ -15548,17 +15581,28 @@ definitions: type: string type: object type: object + neutron.cron.ExecutionStage: + default: EXECUTION_STAGE_END_BLOCKER + description: |- + - EXECUTION_STAGE_END_BLOCKER: Execution at the end of the block + - EXECUTION_STAGE_BEGIN_BLOCKER: Execution at the beginning of the block + enum: + - EXECUTION_STAGE_END_BLOCKER + - EXECUTION_STAGE_BEGIN_BLOCKER + title: Defines when messages will be executed in the block + type: string neutron.cron.MsgExecuteContract: properties: contract: - title: Contract is the address of the smart contract + title: The address of the smart contract type: string msg: - title: Msg is json encoded message to be passed to the contract + title: JSON encoded message to be passed to the contract type: string + title: Defines the contract and the message to pass type: object neutron.cron.Params: - description: Params defines the parameters for the module. + description: Defines the parameters for the module. properties: limit: format: uint64 @@ -15569,9 +15613,20 @@ definitions: type: string type: object neutron.cron.QueryGetScheduleResponse: + description: The response type for the Query/Params RPC method. properties: schedule: properties: + execution_stage: + title: Stage when messages will be executed + default: EXECUTION_STAGE_END_BLOCKER + description: |- + - EXECUTION_STAGE_END_BLOCKER: Execution at the end of the block + - EXECUTION_STAGE_BEGIN_BLOCKER: Execution at the beginning of the block + enum: + - EXECUTION_STAGE_END_BLOCKER + - EXECUTION_STAGE_BEGIN_BLOCKER + type: string last_execute_height: format: uint64 title: Last execution's block height @@ -15580,13 +15635,16 @@ definitions: items: properties: contract: - title: Contract is the address of the smart contract + title: The address of the smart contract type: string msg: - title: Msg is json encoded message to be passed to the contract + title: JSON encoded message to be passed to the contract type: string + title: Defines the contract and the message to pass type: object - title: Msgs that will be executed every period amount of time + title: >- + Msgs that will be executed every certain number of blocks, + specified in the `period` field type: array name: title: Name of schedule @@ -15595,9 +15653,11 @@ definitions: format: uint64 title: Period in blocks type: string + title: Defines the schedule for execution type: object type: object neutron.cron.QueryParamsResponse: + description: The response type for the Query/Params RPC method. properties: params: description: params holds all the parameters of this module. @@ -15612,6 +15672,7 @@ definitions: type: object type: object neutron.cron.QuerySchedulesResponse: + description: The response type for the Query/Params RPC method. properties: pagination: description: |- @@ -15642,6 +15703,16 @@ definitions: schedules: items: properties: + execution_stage: + title: Stage when messages will be executed + default: EXECUTION_STAGE_END_BLOCKER + description: |- + - EXECUTION_STAGE_END_BLOCKER: Execution at the end of the block + - EXECUTION_STAGE_BEGIN_BLOCKER: Execution at the beginning of the block + enum: + - EXECUTION_STAGE_END_BLOCKER + - EXECUTION_STAGE_BEGIN_BLOCKER + type: string last_execute_height: format: uint64 title: Last execution's block height @@ -15650,13 +15721,16 @@ definitions: items: properties: contract: - title: Contract is the address of the smart contract + title: The address of the smart contract type: string msg: - title: Msg is json encoded message to be passed to the contract + title: JSON encoded message to be passed to the contract type: string + title: Defines the contract and the message to pass type: object - title: Msgs that will be executed every period amount of time + title: >- + Msgs that will be executed every certain number of blocks, + specified in the `period` field type: array name: title: Name of schedule @@ -15665,11 +15739,22 @@ definitions: format: uint64 title: Period in blocks type: string + title: Defines the schedule for execution type: object type: array type: object neutron.cron.Schedule: properties: + execution_stage: + title: Stage when messages will be executed + default: EXECUTION_STAGE_END_BLOCKER + description: |- + - EXECUTION_STAGE_END_BLOCKER: Execution at the end of the block + - EXECUTION_STAGE_BEGIN_BLOCKER: Execution at the beginning of the block + enum: + - EXECUTION_STAGE_END_BLOCKER + - EXECUTION_STAGE_BEGIN_BLOCKER + type: string last_execute_height: format: uint64 title: Last execution's block height @@ -15678,13 +15763,16 @@ definitions: items: properties: contract: - title: Contract is the address of the smart contract + title: The address of the smart contract type: string msg: - title: Msg is json encoded message to be passed to the contract + title: JSON encoded message to be passed to the contract type: string + title: Defines the contract and the message to pass type: object - title: Msgs that will be executed every period amount of time + title: >- + Msgs that will be executed every certain number of blocks, specified + in the `period` field type: array name: title: Name of schedule @@ -15693,6 +15781,14 @@ definitions: format: uint64 title: Period in blocks type: string + title: Defines the schedule for execution + type: object + neutron.dex.DepositOptions: + properties: + disable_autoswap: + type: boolean + fail_tx_on_bel: + type: boolean type: object neutron.dex.DepositRecord: properties: @@ -15776,6 +15872,14 @@ definitions: format: int64 type: string type: object + neutron.dex.FailedDeposit: + properties: + deposit_idx: + format: uint64 + type: string + error: + type: string + type: object neutron.dex.LimitOrderTranche: properties: expiration_time: @@ -15873,161 +15977,509 @@ definitions: - JUST_IN_TIME - GOOD_TIL_TIME type: string - neutron.dex.MultiHopRoute: - properties: - hops: - items: - type: string - type: array - type: object - neutron.dex.PairID: - properties: - token0: - type: string - token1: - type: string - type: object - neutron.dex.Params: - description: Params defines the parameters for the module. + neutron.dex.MsgCancelLimitOrder: properties: - fee_tiers: - items: - format: uint64 - type: string - type: array - good_til_purge_allowance: - format: uint64 + creator: type: string - max_jits_per_block: - format: uint64 + tranche_key: type: string - paused: - type: boolean type: object - neutron.dex.Pool: + neutron.dex.MsgCancelLimitOrderResponse: properties: - id: - format: uint64 - type: string - lower_tick0: + maker_coin_out: + description: |- + 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. properties: - key: - properties: - fee: - format: uint64 - type: string - tick_index_taker_to_maker: - format: int64 - type: string - trade_pair_id: - properties: - maker_denom: - type: string - taker_denom: - type: string - type: object - type: object - price_opposite_taker_to_maker: - type: string - price_taker_to_maker: + amount: type: string - reserves_maker_denom: + denom: type: string type: object - upper_tick1: + title: Total amount of maker reserves that were canceled + taker_coin_out: + description: |- + 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. properties: - key: - properties: - fee: - format: uint64 - type: string - tick_index_taker_to_maker: - format: int64 - type: string - trade_pair_id: - properties: - maker_denom: - type: string - taker_denom: - type: string - type: object - type: object - price_opposite_taker_to_maker: - type: string - price_taker_to_maker: + amount: type: string - reserves_maker_denom: + denom: type: string type: object + title: Total amount of taker reserves that were withdrawn type: object - neutron.dex.PoolMetadata: + neutron.dex.MsgDeposit: properties: - fee: - format: uint64 + amounts_a: + items: + type: string + type: array + amounts_b: + items: + type: string + type: array + creator: type: string - id: - format: uint64 + fees: + items: + format: uint64 + type: string + type: array + options: + items: + properties: + disable_autoswap: + type: boolean + fail_tx_on_bel: + type: boolean + type: object + type: array + receiver: type: string - pair_id: - properties: - token0: - type: string - token1: - type: string - type: object - tick: - format: int64 + tick_indexes_a_to_b: + items: + format: int64 + type: string + type: array + token_a: + type: string + token_b: type: string type: object - neutron.dex.PoolReserves: + neutron.dex.MsgDepositResponse: properties: - key: - properties: - fee: - format: uint64 - type: string - tick_index_taker_to_maker: - format: int64 - type: string - trade_pair_id: - properties: - maker_denom: - type: string - taker_denom: - type: string - type: object - type: object - price_opposite_taker_to_maker: + failed_deposits: + items: + properties: + deposit_idx: + format: uint64 + type: string + error: + type: string + type: object + type: array + reserve0_deposited: + items: + type: string + type: array + reserve1_deposited: + items: + type: string + type: array + shares_issued: + items: + description: |- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + type: array + type: object + neutron.dex.MsgMultiHopSwap: + properties: + amount_in: type: string - price_taker_to_maker: + creator: type: string - reserves_maker_denom: + exit_limit_price: + type: string + pick_best_route: + description: >- + If pickBestRoute == true then all routes are run and the route with + the + + best price is chosen otherwise, the first succesful route is used. + type: boolean + receiver: type: string + routes: + items: + properties: + hops: + items: + type: string + type: array + type: object + type: array type: object - neutron.dex.PoolReservesKey: + neutron.dex.MsgMultiHopSwapResponse: properties: - fee: - format: uint64 - type: string - tick_index_taker_to_maker: - format: int64 - type: string - trade_pair_id: + coin_out: + description: |- + 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. properties: - maker_denom: + amount: type: string - taker_denom: + denom: type: string type: object - type: object - neutron.dex.QueryAllInactiveLimitOrderTrancheResponse: - properties: - inactive_limit_order_tranche: + dust: items: - properties: - expiration_time: - format: date-time - title: >- + description: |- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + type: array + route: + properties: + hops: + items: + type: string + type: array + type: object + type: object + neutron.dex.MsgPlaceLimitOrder: + properties: + amount_in: + type: string + creator: + type: string + expiration_time: + description: expirationTime is only valid iff orderType == GOOD_TIL_TIME. + format: date-time + type: string + limit_sell_price: + type: string + max_amount_out: + type: string + order_type: + default: GOOD_TIL_CANCELLED + enum: + - GOOD_TIL_CANCELLED + - FILL_OR_KILL + - IMMEDIATE_OR_CANCEL + - JUST_IN_TIME + - GOOD_TIL_TIME + type: string + receiver: + type: string + tick_index_in_to_out: + description: >- + DEPRECATED: tick_index_in_to_out will be removed in future release; + limit_sell_price should be used instead. + format: int64 + type: string + token_in: + type: string + token_out: + type: string + type: object + neutron.dex.MsgPlaceLimitOrderResponse: + properties: + coin_in: + description: |- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + title: Total amount of coin used for the limit order + taker_coin_in: + description: |- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + title: >- + Total amount of the token in that was immediately swapped for + takerOutCoin + taker_coin_out: + description: |- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + title: >- + Total amount of coin received from the taker portion of the limit + order + + This is the amount of coin immediately available in the users account + after + + executing the limit order. It does not include any future proceeds + from the + + maker portion which will have withdrawn in the future + trancheKey: + type: string + type: object + neutron.dex.MsgWithdrawFilledLimitOrder: + properties: + creator: + type: string + tranche_key: + type: string + type: object + neutron.dex.MsgWithdrawFilledLimitOrderResponse: + properties: + maker_coin_out: + description: |- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + title: >- + Total amount of maker reserves that were withdrawn --only applies to + inactive LimitOrders + taker_coin_out: + description: |- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + title: Total amount of taker reserves that were withdrawn + type: object + neutron.dex.MsgWithdrawal: + properties: + creator: + type: string + fees: + items: + format: uint64 + type: string + type: array + receiver: + type: string + shares_to_remove: + items: + type: string + type: array + tick_indexes_a_to_b: + items: + format: int64 + type: string + type: array + token_a: + type: string + token_b: + type: string + type: object + neutron.dex.MsgWithdrawalResponse: + properties: + reserve0_withdrawn: + type: string + reserve1_withdrawn: + type: string + shares_burned: + items: + description: |- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + type: array + type: object + neutron.dex.MultiHopRoute: + properties: + hops: + items: + type: string + type: array + type: object + neutron.dex.PairID: + properties: + token0: + type: string + token1: + type: string + type: object + neutron.dex.Params: + description: Params defines the parameters for the module. + properties: + fee_tiers: + items: + format: uint64 + type: string + type: array + good_til_purge_allowance: + format: uint64 + type: string + max_jits_per_block: + format: uint64 + type: string + paused: + type: boolean + type: object + neutron.dex.Pool: + properties: + id: + format: uint64 + type: string + lower_tick0: + properties: + key: + properties: + fee: + format: uint64 + type: string + tick_index_taker_to_maker: + format: int64 + type: string + trade_pair_id: + properties: + maker_denom: + type: string + taker_denom: + type: string + type: object + type: object + price_opposite_taker_to_maker: + type: string + price_taker_to_maker: + type: string + reserves_maker_denom: + type: string + type: object + upper_tick1: + properties: + key: + properties: + fee: + format: uint64 + type: string + tick_index_taker_to_maker: + format: int64 + type: string + trade_pair_id: + properties: + maker_denom: + type: string + taker_denom: + type: string + type: object + type: object + price_opposite_taker_to_maker: + type: string + price_taker_to_maker: + type: string + reserves_maker_denom: + type: string + type: object + type: object + neutron.dex.PoolMetadata: + properties: + fee: + format: uint64 + type: string + id: + format: uint64 + type: string + pair_id: + properties: + token0: + type: string + token1: + type: string + type: object + tick: + format: int64 + type: string + type: object + neutron.dex.PoolReserves: + properties: + key: + properties: + fee: + format: uint64 + type: string + tick_index_taker_to_maker: + format: int64 + type: string + trade_pair_id: + properties: + maker_denom: + type: string + taker_denom: + type: string + type: object + type: object + price_opposite_taker_to_maker: + type: string + price_taker_to_maker: + type: string + reserves_maker_denom: + type: string + type: object + neutron.dex.PoolReservesKey: + properties: + fee: + format: uint64 + type: string + tick_index_taker_to_maker: + format: int64 + type: string + trade_pair_id: + properties: + maker_denom: + type: string + taker_denom: + type: string + type: object + type: object + neutron.dex.QueryAllInactiveLimitOrderTrancheResponse: + properties: + inactive_limit_order_tranche: + items: + properties: + expiration_time: + format: date-time + title: >- JIT orders also use expiration_time to handle deletion but represent a special case @@ -16871,67 +17323,326 @@ definitions: max_jits_per_block: format: uint64 type: string - paused: - type: boolean + paused: + type: boolean + type: object + type: object + neutron.dex.QueryPoolResponse: + properties: + pool: + properties: + id: + format: uint64 + type: string + lower_tick0: + properties: + key: + properties: + fee: + format: uint64 + type: string + tick_index_taker_to_maker: + format: int64 + type: string + trade_pair_id: + properties: + maker_denom: + type: string + taker_denom: + type: string + type: object + type: object + price_opposite_taker_to_maker: + type: string + price_taker_to_maker: + type: string + reserves_maker_denom: + type: string + type: object + upper_tick1: + properties: + key: + properties: + fee: + format: uint64 + type: string + tick_index_taker_to_maker: + format: int64 + type: string + trade_pair_id: + properties: + maker_denom: + type: string + taker_denom: + type: string + type: object + type: object + price_opposite_taker_to_maker: + type: string + price_taker_to_maker: + type: string + reserves_maker_denom: + type: string + type: object + type: object + type: object + neutron.dex.QuerySimulateCancelLimitOrderResponse: + properties: + resp: + properties: + maker_coin_out: + description: >- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + title: Total amount of maker reserves that were canceled + taker_coin_out: + description: >- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + title: Total amount of taker reserves that were withdrawn + type: object + type: object + neutron.dex.QuerySimulateDepositResponse: + properties: + resp: + properties: + failed_deposits: + items: + properties: + deposit_idx: + format: uint64 + type: string + error: + type: string + type: object + type: array + reserve0_deposited: + items: + type: string + type: array + reserve1_deposited: + items: + type: string + type: array + shares_issued: + items: + description: >- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + type: array + type: object + type: object + neutron.dex.QuerySimulateMultiHopSwapResponse: + properties: + resp: + properties: + coin_out: + description: >- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + dust: + items: + description: >- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + type: array + route: + properties: + hops: + items: + type: string + type: array + type: object + type: object + type: object + neutron.dex.QuerySimulatePlaceLimitOrderResponse: + properties: + resp: + properties: + coin_in: + description: >- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + title: Total amount of coin used for the limit order + taker_coin_in: + description: >- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + title: >- + Total amount of the token in that was immediately swapped for + takerOutCoin + taker_coin_out: + description: >- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + title: >- + Total amount of coin received from the taker portion of the limit + order + + This is the amount of coin immediately available in the users + account after + + executing the limit order. It does not include any future proceeds + from the + + maker portion which will have withdrawn in the future + trancheKey: + type: string type: object type: object - neutron.dex.QueryPoolResponse: + neutron.dex.QuerySimulateWithdrawFilledLimitOrderResponse: properties: - pool: + resp: properties: - id: - format: uint64 - type: string - lower_tick0: + maker_coin_out: + description: >- + 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. properties: - key: - properties: - fee: - format: uint64 - type: string - tick_index_taker_to_maker: - format: int64 - type: string - trade_pair_id: - properties: - maker_denom: - type: string - taker_denom: - type: string - type: object - type: object - price_opposite_taker_to_maker: - type: string - price_taker_to_maker: + amount: type: string - reserves_maker_denom: + denom: type: string type: object - upper_tick1: + title: >- + Total amount of maker reserves that were withdrawn --only applies + to inactive LimitOrders + taker_coin_out: + description: >- + 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. properties: - key: - properties: - fee: - format: uint64 - type: string - tick_index_taker_to_maker: - format: int64 - type: string - trade_pair_id: - properties: - maker_denom: - type: string - taker_denom: - type: string - type: object - type: object - price_opposite_taker_to_maker: - type: string - price_taker_to_maker: + amount: type: string - reserves_maker_denom: + denom: type: string type: object + title: Total amount of taker reserves that were withdrawn + type: object + type: object + neutron.dex.QuerySimulateWithdrawalResponse: + properties: + resp: + properties: + reserve0_withdrawn: + type: string + reserve1_withdrawn: + type: string + shares_burned: + items: + description: >- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + type: array type: object type: object neutron.dex.TickLiquidity: @@ -17636,6 +18347,16 @@ definitions: neutron.interchainqueries.Params: description: Params defines the parameters for the module. properties: + max_kv_query_keys_count: + format: uint64 + title: Maximum amount of keys in a registered key value query + type: string + max_transactions_filters: + format: uint64 + title: >- + max_transactions_filters defines maximum allowed amount of tx filters + in msgRegisterInterchainQuery + type: string query_deposit: description: Amount of coins deposited for the query. items: @@ -17681,6 +18402,16 @@ definitions: params: description: params holds all the parameters of this module. properties: + max_kv_query_keys_count: + format: uint64 + title: Maximum amount of keys in a registered key value query + type: string + max_transactions_filters: + format: uint64 + title: >- + max_transactions_filters defines maximum allowed amount of tx + filters in msgRegisterInterchainQuery + type: string query_deposit: description: Amount of coins deposited for the query. items: @@ -23461,7 +24192,7 @@ definitions: type: object info: title: Neutron - version: v4 + version: v5 paths: /block-sdk/auction/v1/params: get: @@ -39200,41 +39931,201 @@ paths: amount. - NOTE: The amount field is an Int which implements - the custom method + NOTE: The amount field is an Int which implements + the custom method + + signatures required by gogoproto. + properties: + amount: + type: string + denom: + type: string + type: object + title: the packet receive fee + type: array + timeout_fee: + items: + description: >- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + title: the packet timeout fee + type: array + title: >- + Fee defines the ICS29 receive, acknowledgement and timeout + fees + type: object + type: object + type: object + default: + description: An unexpected error response. + schema: + properties: + code: + format: int32 + type: integer + details: + items: + properties: + type_url: + type: string + value: + format: byte + type: string + type: object + type: array + error: + type: string + message: + type: string + type: object + summary: Parameters queries the parameters of the module. + tags: + - Query + /neutron/contractmanager/failures: + get: + operationId: Failures + parameters: + - description: address of the contract which Sudo call failed. + in: query + name: address + required: false + type: string + - description: |- + 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 + in: query + name: pagination.key + required: false + type: string + - description: >- + 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 + in: query + name: pagination.offset + required: false + type: string + - description: >- + 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 + in: query + name: pagination.limit + required: false + type: string + - description: >- + 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. + in: query + name: pagination.count_total + required: false + type: boolean + - description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + name: pagination.reverse + required: false + type: boolean + responses: + '200': + description: A successful response. + schema: + description: >- + QueryFailuresResponse is response type for the Query/Failures RPC + method. + properties: + failures: + items: + properties: + address: + title: Address of the failed contract + type: string + error: + title: >- + Redacted error response of the sudo call. Full error is + emitted as an event + type: string + id: + format: uint64 + title: Id of the failure under specific address + type: string + sudo_payload: + format: byte + title: >- + Serialized MessageSudoCallback with Packet and Ack(if + exists) + type: string + title: >- + Failure message contains information about ACK failures and + can be used to + + replay ACK in case of requirement. - signatures required by gogoproto. - properties: - amount: - type: string - denom: - type: string - type: object - title: the packet receive fee - type: array - timeout_fee: - items: - description: >- - Coin defines a token with a denomination and an - amount. + Note that Failure means that sudo handler to cosmwasm + contract failed for + some reason + type: object + type: array + pagination: + description: >- + PageResponse is to be embedded in gRPC response messages where + the - NOTE: The amount field is an Int which implements - the custom method + corresponding request message has used PageRequest. - signatures required by gogoproto. - properties: - amount: - type: string - denom: - type: string - type: object - title: the packet timeout fee - type: array + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + properties: + next_key: + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + format: byte + type: string + total: + format: uint64 title: >- - Fee defines the ICS29 receive, acknowledgement and timeout - fees - type: object + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + type: string type: object type: object default: @@ -39259,23 +40150,17 @@ paths: message: type: string type: object - summary: Parameters queries the parameters of the module. + summary: Queries a list of Failures occurred on the network. tags: - Query - /neutron/contractmanager/failures: + /neutron/contractmanager/failures/{address}: get: - operationId: Failures + operationId: AddressFailures parameters: - description: address of the contract which Sudo call failed. - in: query + in: path name: address - required: false - type: string - - description: ID of the failure for the given contract. - format: uint64 - in: query - name: failure_id - required: false + required: true type: string - description: |- key is a value returned in PageResponse.next_key to begin @@ -39425,24 +40310,183 @@ paths: message: type: string type: object - summary: Queries a list of Failures occurred on the network. + summary: Queries Failures by contract address. + tags: + - Query + /neutron/contractmanager/failures/{address}/{failure_id}: + get: + operationId: AddressFailure + parameters: + - description: address of the contract which Sudo call failed. + in: path + name: address + required: true + type: string + - description: ID of the failure for the given contract. + format: uint64 + in: path + name: failure_id + required: true + type: string + responses: + '200': + description: A successful response. + schema: + description: >- + QueryFailureResponse is response type for the Query/Failure RPC + method. + properties: + failure: + properties: + address: + title: Address of the failed contract + type: string + error: + title: >- + Redacted error response of the sudo call. Full error is + emitted as an event + type: string + id: + format: uint64 + title: Id of the failure under specific address + type: string + sudo_payload: + format: byte + title: >- + Serialized MessageSudoCallback with Packet and Ack(if + exists) + type: string + title: >- + Failure message contains information about ACK failures and + can be used to + + replay ACK in case of requirement. + + Note that Failure means that sudo handler to cosmwasm contract + failed for + + some reason + type: object + type: object + default: + description: An unexpected error response. + schema: + properties: + code: + format: int32 + type: integer + details: + items: + properties: + type_url: + type: string + value: + format: byte + type: string + type: object + type: array + error: + type: string + message: + type: string + type: object + summary: Queries a Failure by contract address and failure ID. + tags: + - Query + /neutron/contractmanager/params: + get: + operationId: Params + responses: + '200': + description: A successful response. + schema: + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + properties: + params: + description: params holds all the parameters of this module. + properties: + sudo_call_gas_limit: + format: uint64 + type: string + type: object + type: object + default: + description: An unexpected error response. + schema: + properties: + code: + format: int32 + type: integer + details: + items: + properties: + type_url: + type: string + value: + format: byte + type: string + type: object + type: array + error: + type: string + message: + type: string + type: object + summary: Parameters queries the parameters of the module. + tags: + - Query + /neutron/cron/params: + get: + operationId: Params + responses: + '200': + description: A successful response. + schema: + description: The response type for the Query/Params RPC method. + properties: + params: + description: params holds all the parameters of this module. + properties: + limit: + format: uint64 + title: Limit of schedules executed in one block + type: string + security_address: + title: Security address that can remove schedules + type: string + type: object + type: object + default: + description: An unexpected error response. + schema: + properties: + code: + format: int32 + type: integer + details: + items: + properties: + type_url: + type: string + value: + format: byte + type: string + type: object + type: array + error: + type: string + message: + type: string + type: object + summary: Queries the parameters of the module. tags: - Query - /neutron/contractmanager/failures/{address}: + /neutron/cron/schedule: get: - operationId: AddressFailures + operationId: Schedules parameters: - - description: address of the contract which Sudo call failed. - in: path - name: address - required: true - type: string - - description: ID of the failure for the given contract. - format: uint64 - in: query - name: failure_id - required: false - type: string - description: |- key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key @@ -39503,43 +40547,8 @@ paths: '200': description: A successful response. schema: - description: >- - QueryFailuresResponse is response type for the Query/Failures RPC - method. + description: The response type for the Query/Params RPC method. properties: - failures: - items: - properties: - address: - title: Address of the failed contract - type: string - error: - title: >- - Redacted error response of the sudo call. Full error is - emitted as an event - type: string - id: - format: uint64 - title: Id of the failure under specific address - type: string - sudo_payload: - format: byte - title: >- - Serialized MessageSudoCallback with Packet and Ack(if - exists) - type: string - title: >- - Failure message contains information about ACK failures and - can be used to - - replay ACK in case of requirement. - - Note that Failure means that sudo handler to cosmwasm - contract failed for - - some reason - type: object - type: array pagination: description: >- PageResponse is to be embedded in gRPC response messages where @@ -39568,6 +40577,49 @@ paths: was set, its value is undefined otherwise type: string type: object + schedules: + items: + properties: + execution_stage: + title: Stage when messages will be executed + default: EXECUTION_STAGE_END_BLOCKER + description: >- + - EXECUTION_STAGE_END_BLOCKER: Execution at the end of + the block + - EXECUTION_STAGE_BEGIN_BLOCKER: Execution at the beginning of the block + enum: + - EXECUTION_STAGE_END_BLOCKER + - EXECUTION_STAGE_BEGIN_BLOCKER + type: string + last_execute_height: + format: uint64 + title: Last execution's block height + type: string + msgs: + items: + properties: + contract: + title: The address of the smart contract + type: string + msg: + title: JSON encoded message to be passed to the contract + type: string + title: Defines the contract and the message to pass + type: object + title: >- + Msgs that will be executed every certain number of + blocks, specified in the `period` field + type: array + name: + title: Name of schedule + type: string + period: + format: uint64 + title: Period in blocks + type: string + title: Defines the schedule for execution + type: object + type: array type: object default: description: An unexpected error response. @@ -39591,148 +40643,63 @@ paths: message: type: string type: object - summary: Queries Failures by contract address. + summary: Queries a list of Schedule items. tags: - Query - /neutron/contractmanager/failures/{address}/{failure_id}: + /neutron/cron/schedule/{name}: get: - operationId: AddressFailure + operationId: Schedule parameters: - - description: address of the contract which Sudo call failed. - in: path - name: address - required: true - type: string - - description: ID of the failure for the given contract. - format: uint64 - in: path - name: failure_id + - in: path + name: name required: true type: string - - description: |- - 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 - in: query - name: pagination.key - required: false - type: string - - description: >- - 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 - in: query - name: pagination.offset - required: false - type: string - - description: >- - 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 - in: query - name: pagination.limit - required: false - type: string - - description: >- - 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. - in: query - name: pagination.count_total - required: false - type: boolean - - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - name: pagination.reverse - required: false - type: boolean responses: '200': description: A successful response. schema: - description: >- - QueryFailuresResponse is response type for the Query/Failures RPC - method. + description: The response type for the Query/Params RPC method. properties: - failures: - items: - properties: - address: - title: Address of the failed contract - type: string - error: - title: >- - Redacted error response of the sudo call. Full error is - emitted as an event - type: string - id: - format: uint64 - title: Id of the failure under specific address - type: string - sudo_payload: - format: byte - title: >- - Serialized MessageSudoCallback with Packet and Ack(if - exists) - type: string - title: >- - Failure message contains information about ACK failures and - can be used to - - replay ACK in case of requirement. - - Note that Failure means that sudo handler to cosmwasm - contract failed for - - some reason - type: object - type: array - pagination: - description: >- - 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; - } + schedule: properties: - next_key: - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - format: byte + execution_stage: + title: Stage when messages will be executed + default: EXECUTION_STAGE_END_BLOCKER + description: >- + - EXECUTION_STAGE_END_BLOCKER: Execution at the end of the + block + - EXECUTION_STAGE_BEGIN_BLOCKER: Execution at the beginning of the block + enum: + - EXECUTION_STAGE_END_BLOCKER + - EXECUTION_STAGE_BEGIN_BLOCKER type: string - total: + last_execute_height: format: uint64 + title: Last execution's block height + type: string + msgs: + items: + properties: + contract: + title: The address of the smart contract + type: string + msg: + title: JSON encoded message to be passed to the contract + type: string + title: Defines the contract and the message to pass + type: object title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise + Msgs that will be executed every certain number of blocks, + specified in the `period` field + type: array + name: + title: Name of schedule + type: string + period: + format: uint64 + title: Period in blocks type: string + title: Defines the schedule for execution type: object type: object default: @@ -39757,25 +40724,57 @@ paths: message: type: string type: object - summary: Queries a Failure by contract address and failure ID. + summary: Queries a Schedule by name. tags: - Query - /neutron/contractmanager/params: + /neutron/dex/estimate_multi_hop_swap: get: - operationId: Params + operationId: EstimateMultiHopSwap + parameters: + - description: 'DEPRECATED: Use QuerySimulateMultiHopSwap.' + in: query + name: creator + required: false + type: string + - in: query + name: receiver + required: false + type: string + - in: query + name: amount_in + required: false + type: string + - in: query + name: exit_limit_price + required: false + type: string + - description: >- + If pickBestRoute == true then all routes are run and the route with + the + + best price is chosen otherwise, the first succesful route is used. + in: query + name: pick_best_route + required: false + type: boolean responses: '200': description: A successful response. schema: - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. properties: - params: - description: params holds all the parameters of this module. + coin_out: + description: >- + 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. properties: - sudo_call_gas_limit: - format: uint64 + amount: + type: string + denom: type: string type: object type: object @@ -39801,28 +40800,131 @@ paths: message: type: string type: object - summary: Parameters queries the parameters of the module. + summary: DEPRECATED Queries the simulated result of a multihop swap tags: - Query - /neutron/cron/params: + /neutron/dex/estimate_place_limit_order: get: - operationId: Params + operationId: EstimatePlaceLimitOrder + parameters: + - description: 'DEPRECATED: Use QuerySimulatePlaceLimitOrder.' + in: query + name: creator + required: false + type: string + - in: query + name: receiver + required: false + type: string + - in: query + name: token_in + required: false + type: string + - in: query + name: token_out + required: false + type: string + - format: int64 + in: query + name: tick_index_in_to_out + required: false + type: string + - in: query + name: amount_in + required: false + type: string + - default: GOOD_TIL_CANCELLED + enum: + - GOOD_TIL_CANCELLED + - FILL_OR_KILL + - IMMEDIATE_OR_CANCEL + - JUST_IN_TIME + - GOOD_TIL_TIME + in: query + name: order_type + required: false + type: string + - description: expirationTime is only valid iff orderType == GOOD_TIL_TIME. + format: date-time + in: query + name: expiration_time + required: false + type: string + - in: query + name: maxAmount_out + required: false + type: string responses: '200': description: A successful response. schema: properties: - params: - description: params holds all the parameters of this module. + swap_in_coin: + description: >- + 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. properties: - limit: - format: uint64 - title: Limit of schedules executed in one block + amount: type: string - security_address: - title: Security address that can remove schedules + denom: + type: string + type: object + title: >- + Total amount of the token in that was immediately swapped for + swapOutCoin + swap_out_coin: + description: >- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + title: >- + Total amount of coin received from the taker portion of the + limit order + + This is the amount of coin immediately available in the users + account after + + executing the limit order. It does not include any future + proceeds from the + + maker portion which will have withdrawn in the future + total_in_coin: + description: >- + 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. + properties: + amount: + type: string + denom: type: string type: object + title: >- + Total amount of coin used for the limit order + + You can derive makerLimitInCoin using the equation: + totalInCoin = + + swapInCoin + makerLimitInCoin type: object default: description: An unexpected error response. @@ -39846,12 +40948,12 @@ paths: message: type: string type: object - summary: Queries the parameters of the module. + summary: DEPRECATED Queries the simulated result of a PlaceLimit order tags: - Query - /neutron/cron/schedule: + /neutron/dex/filled_limit_order_tranche: get: - operationId: Schedules + operationId: InactiveLimitOrderTrancheAll2 parameters: - description: |- key is a value returned in PageResponse.next_key to begin @@ -39914,6 +41016,48 @@ paths: description: A successful response. schema: properties: + inactive_limit_order_tranche: + items: + properties: + expiration_time: + format: date-time + title: >- + JIT orders also use expiration_time to handle deletion + but represent a special case + + All JIT orders have a expiration_time of 0 and an + exception is made to still treat these orders as live + + Order deletion still functions the same and the orders + will be deleted at the end of the block + type: string + key: + properties: + tick_index_taker_to_maker: + format: int64 + type: string + trade_pair_id: + properties: + maker_denom: + type: string + taker_denom: + type: string + type: object + tranche_key: + type: string + type: object + price_taker_to_maker: + type: string + reserves_maker_denom: + type: string + reserves_taker_denom: + type: string + total_maker_denom: + type: string + total_taker_denom: + type: string + type: object + type: array pagination: description: >- PageResponse is to be embedded in gRPC response messages where @@ -39942,36 +41086,6 @@ paths: was set, its value is undefined otherwise type: string type: object - schedules: - items: - properties: - last_execute_height: - format: uint64 - title: Last execution's block height - type: string - msgs: - items: - properties: - contract: - title: Contract is the address of the smart contract - type: string - msg: - title: >- - Msg is json encoded message to be passed to the - contract - type: string - type: object - title: Msgs that will be executed every period amount of time - type: array - name: - title: Name of schedule - type: string - period: - format: uint64 - title: Period in blocks - type: string - type: object - type: array type: object default: description: An unexpected error response. @@ -39995,15 +41109,28 @@ paths: message: type: string type: object - summary: Queries a list of Schedule items. + summary: Queries a list of InactiveLimitOrderTranche items. tags: - Query - /neutron/cron/schedule/{name}: + /neutron/dex/filled_limit_order_tranche/{pair_id}/{token_in}/{tick_index}/{tranche_key}: get: - operationId: Schedule + operationId: InactiveLimitOrderTranche2 parameters: - in: path - name: name + name: pair_id + required: true + type: string + - in: path + name: token_in + required: true + type: string + - format: int64 + in: path + name: tick_index + required: true + type: string + - in: path + name: tranche_key required: true type: string responses: @@ -40011,32 +41138,44 @@ paths: description: A successful response. schema: properties: - schedule: + inactive_limit_order_tranche: properties: - last_execute_height: - format: uint64 - title: Last execution's block height + expiration_time: + format: date-time + title: >- + JIT orders also use expiration_time to handle deletion but + represent a special case + + All JIT orders have a expiration_time of 0 and an + exception is made to still treat these orders as live + + Order deletion still functions the same and the orders + will be deleted at the end of the block type: string - msgs: - items: - properties: - contract: - title: Contract is the address of the smart contract - type: string - msg: - title: >- - Msg is json encoded message to be passed to the - contract - type: string - type: object - title: Msgs that will be executed every period amount of time - type: array - name: - title: Name of schedule + key: + properties: + tick_index_taker_to_maker: + format: int64 + type: string + trade_pair_id: + properties: + maker_denom: + type: string + taker_denom: + type: string + type: object + tranche_key: + type: string + type: object + price_taker_to_maker: type: string - period: - format: uint64 - title: Period in blocks + reserves_maker_denom: + type: string + reserves_taker_denom: + type: string + total_maker_denom: + type: string + total_taker_denom: type: string type: object type: object @@ -40062,36 +41201,67 @@ paths: message: type: string type: object - summary: Queries a Schedule by name. + summary: Queries a InactiveLimitOrderTranche by index. tags: - Query - /neutron/dex/estimate_multi_hop_swap: + /neutron/dex/inactive_limit_order_tranche: get: - operationId: EstimateMultiHopSwap + operationId: InactiveLimitOrderTrancheAll parameters: - - in: query - name: creator + - description: |- + 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 + in: query + name: pagination.key required: false type: string - - in: query - name: receiver + - description: >- + 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 + in: query + name: pagination.offset required: false type: string - - in: query - name: amount_in + - description: >- + 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 + in: query + name: pagination.limit required: false type: string - - in: query - name: exit_limit_price + - description: >- + 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. + in: query + name: pagination.count_total required: false - type: string + type: boolean - description: >- - If pickBestRoute == true then all routes are run and the route with - the + reverse is set to true if results are to be returned in the + descending order. - best price is chosen otherwise, the first succesful route is used. + + Since: cosmos-sdk 0.43 in: query - name: pick_best_route + name: pagination.reverse required: false type: boolean responses: @@ -40099,19 +41269,74 @@ paths: description: A successful response. schema: properties: - coin_out: - description: >- - Coin defines a token with a denomination and an amount. + inactive_limit_order_tranche: + items: + properties: + expiration_time: + format: date-time + title: >- + JIT orders also use expiration_time to handle deletion + but represent a special case + All JIT orders have a expiration_time of 0 and an + exception is made to still treat these orders as live - NOTE: The amount field is an Int which implements the custom - method + Order deletion still functions the same and the orders + will be deleted at the end of the block + type: string + key: + properties: + tick_index_taker_to_maker: + format: int64 + type: string + trade_pair_id: + properties: + maker_denom: + type: string + taker_denom: + type: string + type: object + tranche_key: + type: string + type: object + price_taker_to_maker: + type: string + reserves_maker_denom: + type: string + reserves_taker_denom: + type: string + total_maker_denom: + type: string + total_taker_denom: + type: string + type: object + type: array + pagination: + description: >- + PageResponse is to be embedded in gRPC response messages where + the - signatures required by gogoproto. + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } properties: - amount: + next_key: + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + format: byte type: string - denom: + total: + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise type: string type: object type: object @@ -40137,130 +41362,75 @@ paths: message: type: string type: object - summary: Queries the simulated result of a multihop swap + summary: Queries a list of InactiveLimitOrderTranche items. tags: - Query - /neutron/dex/estimate_place_limit_order: + /neutron/dex/inactive_limit_order_tranche/{pair_id}/{token_in}/{tick_index}/{tranche_key}: get: - operationId: EstimatePlaceLimitOrder + operationId: InactiveLimitOrderTranche parameters: - - in: query - name: creator - required: false - type: string - - in: query - name: receiver - required: false + - in: path + name: pair_id + required: true type: string - - in: query + - in: path name: token_in - required: false - type: string - - in: query - name: token_out - required: false + required: true type: string - format: int64 - in: query - name: tick_index_in_to_out - required: false - type: string - - in: query - name: amount_in - required: false - type: string - - default: GOOD_TIL_CANCELLED - enum: - - GOOD_TIL_CANCELLED - - FILL_OR_KILL - - IMMEDIATE_OR_CANCEL - - JUST_IN_TIME - - GOOD_TIL_TIME - in: query - name: order_type - required: false - type: string - - description: expirationTime is only valid iff orderType == GOOD_TIL_TIME. - format: date-time - in: query - name: expiration_time - required: false + in: path + name: tick_index + required: true type: string - - in: query - name: maxAmount_out - required: false + - in: path + name: tranche_key + required: true type: string responses: '200': description: A successful response. schema: properties: - swap_in_coin: - description: >- - 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. + inactive_limit_order_tranche: properties: - amount: - type: string - denom: - type: string - type: object - title: >- - Total amount of the token in that was immediately swapped for - swapOutCoin - swap_out_coin: - description: >- - Coin defines a token with a denomination and an amount. - + expiration_time: + format: date-time + title: >- + JIT orders also use expiration_time to handle deletion but + represent a special case - NOTE: The amount field is an Int which implements the custom - method + All JIT orders have a expiration_time of 0 and an + exception is made to still treat these orders as live - signatures required by gogoproto. - properties: - amount: + Order deletion still functions the same and the orders + will be deleted at the end of the block type: string - denom: + key: + properties: + tick_index_taker_to_maker: + format: int64 + type: string + trade_pair_id: + properties: + maker_denom: + type: string + taker_denom: + type: string + type: object + tranche_key: + type: string + type: object + price_taker_to_maker: type: string - type: object - title: >- - Total amount of coin received from the taker portion of the - limit order - - This is the amount of coin immediately available in the users - account after - - executing the limit order. It does not include any future - proceeds from the - - maker portion which will have withdrawn in the future - total_in_coin: - description: >- - 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. - properties: - amount: + reserves_maker_denom: type: string - denom: + reserves_taker_denom: + type: string + total_maker_denom: + type: string + total_taker_denom: type: string type: object - title: >- - Total amount of coin used for the limit order - - You can derive makerLimitInCoin using the equation: - totalInCoin = - - swapInCoin + makerLimitInCoin type: object default: description: An unexpected error response. @@ -40284,13 +41454,21 @@ paths: message: type: string type: object - summary: Queries the simulated result of a PlaceLimit order + summary: Queries a InactiveLimitOrderTranche by index. tags: - Query - /neutron/dex/filled_limit_order_tranche: + /neutron/dex/limit_order_tranche/{pair_id}/{token_in}: get: - operationId: InactiveLimitOrderTrancheAll2 + operationId: LimitOrderTrancheAll parameters: + - in: path + name: pair_id + required: true + type: string + - in: path + name: token_in + required: true + type: string - description: |- key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key @@ -40352,7 +41530,7 @@ paths: description: A successful response. schema: properties: - inactive_limit_order_tranche: + limit_order_tranche: items: properties: expiration_time: @@ -40445,12 +41623,14 @@ paths: message: type: string type: object - summary: Queries a list of InactiveLimitOrderTranche items. + summary: |- + Queries a list of LimitOrderTranche items for a given pairID / TokenIn + combination. tags: - Query - /neutron/dex/filled_limit_order_tranche/{pair_id}/{token_in}/{tick_index}/{tranche_key}: + /neutron/dex/limit_order_tranche/{pair_id}/{token_in}/{tick_index}/{tranche_key}: get: - operationId: InactiveLimitOrderTranche2 + operationId: LimitOrderTranche parameters: - in: path name: pair_id @@ -40474,7 +41654,7 @@ paths: description: A successful response. schema: properties: - inactive_limit_order_tranche: + limit_order_tranche: properties: expiration_time: format: date-time @@ -40537,12 +41717,12 @@ paths: message: type: string type: object - summary: Queries a InactiveLimitOrderTranche by index. + summary: Queries a LimitOrderTranche by index. tags: - Query - /neutron/dex/inactive_limit_order_tranche: + /neutron/dex/limit_order_tranche_user: get: - operationId: InactiveLimitOrderTrancheAll + operationId: LimitOrderTrancheUserAll parameters: - description: |- key is a value returned in PageResponse.next_key to begin @@ -40605,45 +41785,38 @@ paths: description: A successful response. schema: properties: - inactive_limit_order_tranche: + limit_order_tranche_user: items: properties: - expiration_time: - format: date-time - title: >- - JIT orders also use expiration_time to handle deletion - but represent a special case - - All JIT orders have a expiration_time of 0 and an - exception is made to still treat these orders as live - - Order deletion still functions the same and the orders - will be deleted at the end of the block + address: type: string - key: - properties: - tick_index_taker_to_maker: - format: int64 - type: string - trade_pair_id: - properties: - maker_denom: - type: string - taker_denom: - type: string - type: object - tranche_key: - type: string - type: object - price_taker_to_maker: + order_type: + default: GOOD_TIL_CANCELLED + enum: + - GOOD_TIL_CANCELLED + - FILL_OR_KILL + - IMMEDIATE_OR_CANCEL + - JUST_IN_TIME + - GOOD_TIL_TIME type: string - reserves_maker_denom: + shares_cancelled: + title: 'TODO: remove this in next release. It is no longer used' type: string - reserves_taker_denom: + shares_owned: type: string - total_maker_denom: + shares_withdrawn: type: string - total_taker_denom: + tick_index_taker_to_maker: + format: int64 + type: string + trade_pair_id: + properties: + maker_denom: + type: string + taker_denom: + type: string + type: object + tranche_key: type: string type: object type: array @@ -40698,74 +41871,118 @@ paths: message: type: string type: object - summary: Queries a list of InactiveLimitOrderTranche items. + summary: Queries a list of LimitOrderTranchUser items. tags: - Query - /neutron/dex/inactive_limit_order_tranche/{pair_id}/{token_in}/{tick_index}/{tranche_key}: + /neutron/dex/limit_order_tranche_user/{address}/{tranche_key}: get: - operationId: InactiveLimitOrderTranche + operationId: LimitOrderTrancheUser parameters: - in: path - name: pair_id - required: true - type: string - - in: path - name: token_in - required: true - type: string - - format: int64 - in: path - name: tick_index + name: address required: true type: string - in: path name: tranche_key required: true type: string + - in: query + name: calc_withdrawable_shares + required: false + type: boolean responses: '200': description: A successful response. schema: properties: - inactive_limit_order_tranche: + limit_order_tranche_user: properties: - expiration_time: - format: date-time - title: >- - JIT orders also use expiration_time to handle deletion but - represent a special case - - All JIT orders have a expiration_time of 0 and an - exception is made to still treat these orders as live - - Order deletion still functions the same and the orders - will be deleted at the end of the block + address: type: string - key: + order_type: + default: GOOD_TIL_CANCELLED + enum: + - GOOD_TIL_CANCELLED + - FILL_OR_KILL + - IMMEDIATE_OR_CANCEL + - JUST_IN_TIME + - GOOD_TIL_TIME + type: string + shares_cancelled: + title: 'TODO: remove this in next release. It is no longer used' + type: string + shares_owned: + type: string + shares_withdrawn: + type: string + tick_index_taker_to_maker: + format: int64 + type: string + trade_pair_id: properties: - tick_index_taker_to_maker: - format: int64 + maker_denom: type: string - trade_pair_id: - properties: - maker_denom: - type: string - taker_denom: - type: string - type: object - tranche_key: + taker_denom: type: string type: object - price_taker_to_maker: - type: string - reserves_maker_denom: - type: string - reserves_taker_denom: + tranche_key: type: string - total_maker_denom: + type: object + withdrawable_shares: + type: string + type: object + default: + description: An unexpected error response. + schema: + properties: + code: + format: int32 + type: integer + details: + items: + properties: + type_url: + type: string + value: + format: byte + type: string + type: object + type: array + error: + type: string + message: + type: string + type: object + summary: Queries a LimitOrderTrancheUser by index. + tags: + - Query + /neutron/dex/params: + get: + operationId: Params + responses: + '200': + description: A successful response. + schema: + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + properties: + params: + description: params holds all the parameters of this module. + properties: + fee_tiers: + items: + format: uint64 + type: string + type: array + good_til_purge_allowance: + format: uint64 type: string - total_taker_denom: + max_jits_per_block: + format: uint64 type: string + paused: + type: boolean type: object type: object default: @@ -40790,151 +42007,87 @@ paths: message: type: string type: object - summary: Queries a InactiveLimitOrderTranche by index. + summary: Parameters queries the parameters of the module. tags: - Query - /neutron/dex/limit_order_tranche/{pair_id}/{token_in}: + /neutron/dex/pool/{pair_id}/{tick_index}/{fee}: get: - operationId: LimitOrderTrancheAll + operationId: Pool parameters: - in: path name: pair_id required: true type: string - - in: path - name: token_in + - format: int64 + in: path + name: tick_index required: true type: string - - description: |- - 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 - in: query - name: pagination.key - required: false - type: string - - description: >- - 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 - in: query - name: pagination.offset - required: false - type: string - - description: >- - 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 - in: query - name: pagination.limit - required: false + - format: uint64 + in: path + name: fee + required: true type: string - - description: >- - 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. - in: query - name: pagination.count_total - required: false - type: boolean - - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - name: pagination.reverse - required: false - type: boolean responses: '200': description: A successful response. schema: properties: - limit_order_tranche: - items: - properties: - expiration_time: - format: date-time - title: >- - JIT orders also use expiration_time to handle deletion - but represent a special case - - All JIT orders have a expiration_time of 0 and an - exception is made to still treat these orders as live - - Order deletion still functions the same and the orders - will be deleted at the end of the block - type: string - key: - properties: - tick_index_taker_to_maker: - format: int64 - type: string - trade_pair_id: - properties: - maker_denom: - type: string - taker_denom: - type: string - type: object - tranche_key: - type: string - type: object - price_taker_to_maker: - type: string - reserves_maker_denom: - type: string - reserves_taker_denom: - type: string - total_maker_denom: - type: string - total_taker_denom: - type: string - type: object - type: array - pagination: - description: >- - 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; - } + pool: properties: - next_key: - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - format: byte - type: string - total: + id: format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise type: string + lower_tick0: + properties: + key: + properties: + fee: + format: uint64 + type: string + tick_index_taker_to_maker: + format: int64 + type: string + trade_pair_id: + properties: + maker_denom: + type: string + taker_denom: + type: string + type: object + type: object + price_opposite_taker_to_maker: + type: string + price_taker_to_maker: + type: string + reserves_maker_denom: + type: string + type: object + upper_tick1: + properties: + key: + properties: + fee: + format: uint64 + type: string + tick_index_taker_to_maker: + format: int64 + type: string + trade_pair_id: + properties: + maker_denom: + type: string + taker_denom: + type: string + type: object + type: object + price_opposite_taker_to_maker: + type: string + price_taker_to_maker: + type: string + reserves_maker_denom: + type: string + type: object type: object type: object default: @@ -40959,76 +42112,78 @@ paths: message: type: string type: object - summary: |- - Queries a list of LimitOrderTranche items for a given pairID / TokenIn - combination. + summary: Queries a pool by pair, tick and fee tags: - Query - /neutron/dex/limit_order_tranche/{pair_id}/{token_in}/{tick_index}/{tranche_key}: + /neutron/dex/pool/{pool_id}: get: - operationId: LimitOrderTranche + operationId: PoolByID parameters: - - in: path - name: pair_id - required: true - type: string - - in: path - name: token_in - required: true - type: string - - format: int64 + - format: uint64 in: path - name: tick_index - required: true - type: string - - in: path - name: tranche_key + name: pool_id required: true type: string responses: '200': description: A successful response. - schema: - properties: - limit_order_tranche: - properties: - expiration_time: - format: date-time - title: >- - JIT orders also use expiration_time to handle deletion but - represent a special case - - All JIT orders have a expiration_time of 0 and an - exception is made to still treat these orders as live - - Order deletion still functions the same and the orders - will be deleted at the end of the block + schema: + properties: + pool: + properties: + id: + format: uint64 type: string - key: + lower_tick0: properties: - tick_index_taker_to_maker: - format: int64 + key: + properties: + fee: + format: uint64 + type: string + tick_index_taker_to_maker: + format: int64 + type: string + trade_pair_id: + properties: + maker_denom: + type: string + taker_denom: + type: string + type: object + type: object + price_opposite_taker_to_maker: type: string - trade_pair_id: + price_taker_to_maker: + type: string + reserves_maker_denom: + type: string + type: object + upper_tick1: + properties: + key: properties: - maker_denom: + fee: + format: uint64 type: string - taker_denom: + tick_index_taker_to_maker: + format: int64 type: string + trade_pair_id: + properties: + maker_denom: + type: string + taker_denom: + type: string + type: object type: object - tranche_key: + price_opposite_taker_to_maker: + type: string + price_taker_to_maker: + type: string + reserves_maker_denom: type: string type: object - price_taker_to_maker: - type: string - reserves_maker_denom: - type: string - reserves_taker_denom: - type: string - total_maker_denom: - type: string - total_taker_denom: - type: string type: object type: object default: @@ -41053,67 +42208,36 @@ paths: message: type: string type: object - summary: Queries a LimitOrderTranche by index. + summary: Queries a pool by ID tags: - Query - /neutron/dex/limit_order_tranche_user: + /neutron/dex/pool_metadata: get: - operationId: LimitOrderTrancheUserAll + operationId: SimulateMultiHopSwap parameters: - - description: |- - 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 - in: query - name: pagination.key + - in: query + name: msg.creator required: false type: string - - description: >- - 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 - in: query - name: pagination.offset + - in: query + name: msg.receiver required: false type: string - - description: >- - 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 - in: query - name: pagination.limit + - in: query + name: msg.amount_in required: false type: string - - description: >- - 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. - in: query - name: pagination.count_total + - in: query + name: msg.exit_limit_price required: false - type: boolean + type: string - description: >- - reverse is set to true if results are to be returned in the - descending order. - + If pickBestRoute == true then all routes are run and the route with + the - Since: cosmos-sdk 0.43 + best price is chosen otherwise, the first succesful route is used. in: query - name: pagination.reverse + name: msg.pick_best_route required: false type: boolean responses: @@ -41121,68 +42245,47 @@ paths: description: A successful response. schema: properties: - limit_order_tranche_user: - items: - properties: - address: - type: string - order_type: - default: GOOD_TIL_CANCELLED - enum: - - GOOD_TIL_CANCELLED - - FILL_OR_KILL - - IMMEDIATE_OR_CANCEL - - JUST_IN_TIME - - GOOD_TIL_TIME - type: string - shares_cancelled: - title: 'TODO: remove this in next release. It is no longer used' - type: string - shares_owned: - type: string - shares_withdrawn: - type: string - tick_index_taker_to_maker: - format: int64 - type: string - trade_pair_id: + resp: + properties: + coin_out: + description: >- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + dust: + items: + description: >- + 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. properties: - maker_denom: + amount: type: string - taker_denom: + denom: type: string type: object - tranche_key: - type: string - type: object - type: array - pagination: - description: >- - 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; - } - properties: - next_key: - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - format: byte - type: string - total: - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - type: string + type: array + route: + properties: + hops: + items: + type: string + type: array + type: object type: object type: object default: @@ -41207,65 +42310,42 @@ paths: message: type: string type: object - summary: Queries a list of LimitOrderTranchUser items. + summary: Simulates MsgMultiHopSwap tags: - Query - /neutron/dex/limit_order_tranche_user/{address}/{tranche_key}: + /neutron/dex/pool_metadata/{id}: get: - operationId: LimitOrderTrancheUser + operationId: PoolMetadata parameters: - - in: path - name: address - required: true - type: string - - in: path - name: tranche_key + - format: uint64 + in: path + name: id required: true type: string - - in: query - name: calc_withdrawable_shares - required: false - type: boolean responses: '200': description: A successful response. schema: properties: - limit_order_tranche_user: + Pool_metadata: properties: - address: - type: string - order_type: - default: GOOD_TIL_CANCELLED - enum: - - GOOD_TIL_CANCELLED - - FILL_OR_KILL - - IMMEDIATE_OR_CANCEL - - JUST_IN_TIME - - GOOD_TIL_TIME - type: string - shares_cancelled: - title: 'TODO: remove this in next release. It is no longer used' - type: string - shares_owned: - type: string - shares_withdrawn: + fee: + format: uint64 type: string - tick_index_taker_to_maker: - format: int64 + id: + format: uint64 type: string - trade_pair_id: + pair_id: properties: - maker_denom: + token0: type: string - taker_denom: + token1: type: string type: object - tranche_key: + tick: + format: int64 type: string type: object - withdrawable_shares: - type: string type: object default: description: An unexpected error response. @@ -41289,37 +42369,137 @@ paths: message: type: string type: object - summary: Queries a LimitOrderTrancheUser by index. + summary: Queries a PoolMetadata by ID tags: - Query - /neutron/dex/params: + /neutron/dex/pool_reserves/{pair_id}/{token_in}: get: - operationId: Params + operationId: PoolReservesAll + parameters: + - in: path + name: pair_id + required: true + type: string + - in: path + name: token_in + required: true + type: string + - description: |- + 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 + in: query + name: pagination.key + required: false + type: string + - description: >- + 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 + in: query + name: pagination.offset + required: false + type: string + - description: >- + 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 + in: query + name: pagination.limit + required: false + type: string + - description: >- + 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. + in: query + name: pagination.count_total + required: false + type: boolean + - description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + name: pagination.reverse + required: false + type: boolean responses: '200': description: A successful response. schema: - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. properties: - params: - description: params holds all the parameters of this module. + pagination: + description: >- + 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; + } properties: - fee_tiers: - items: - format: uint64 - type: string - type: array - good_til_purge_allowance: - format: uint64 + next_key: + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + format: byte type: string - max_jits_per_block: + total: format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise type: string - paused: - type: boolean type: object + pool_reserves: + items: + properties: + key: + properties: + fee: + format: uint64 + type: string + tick_index_taker_to_maker: + format: int64 + type: string + trade_pair_id: + properties: + maker_denom: + type: string + taker_denom: + type: string + type: object + type: object + price_opposite_taker_to_maker: + type: string + price_taker_to_maker: + type: string + reserves_maker_denom: + type: string + type: object + type: array type: object default: description: An unexpected error response. @@ -41343,17 +42523,21 @@ paths: message: type: string type: object - summary: Parameters queries the parameters of the module. + summary: Queries a list of PoolReserves items. tags: - Query - /neutron/dex/pool/{pair_id}/{tick_index}/{fee}: + /neutron/dex/pool_reserves/{pair_id}/{token_in}/{tick_index}/{fee}: get: - operationId: Pool + operationId: PoolReserves parameters: - in: path name: pair_id required: true type: string + - in: path + name: token_in + required: true + type: string - format: int64 in: path name: tick_index @@ -41369,61 +42553,30 @@ paths: description: A successful response. schema: properties: - pool: + pool_reserves: properties: - id: - format: uint64 - type: string - lower_tick0: + key: properties: - key: - properties: - fee: - format: uint64 - type: string - tick_index_taker_to_maker: - format: int64 - type: string - trade_pair_id: - properties: - maker_denom: - type: string - taker_denom: - type: string - type: object - type: object - price_opposite_taker_to_maker: - type: string - price_taker_to_maker: + fee: + format: uint64 type: string - reserves_maker_denom: + tick_index_taker_to_maker: + format: int64 type: string - type: object - upper_tick1: - properties: - key: + trade_pair_id: properties: - fee: - format: uint64 + maker_denom: type: string - tick_index_taker_to_maker: - format: int64 + taker_denom: type: string - trade_pair_id: - properties: - maker_denom: - type: string - taker_denom: - type: string - type: object type: object - price_opposite_taker_to_maker: - type: string - price_taker_to_maker: - type: string - reserves_maker_denom: - type: string type: object + price_opposite_taker_to_maker: + type: string + price_taker_to_maker: + type: string + reserves_maker_denom: + type: string type: object type: object default: @@ -41448,78 +42601,60 @@ paths: message: type: string type: object - summary: Queries a pool by pair, tick and fee + summary: Queries a PoolReserve by index tags: - Query - /neutron/dex/pool/{pool_id}: + /neutron/dex/simulate_cancel_limit_order: get: - operationId: PoolByID + operationId: SimulateCancelLimitOrder parameters: - - format: uint64 - in: path - name: pool_id - required: true + - in: query + name: msg.creator + required: false + type: string + - in: query + name: msg.tranche_key + required: false type: string responses: '200': description: A successful response. schema: properties: - pool: + resp: properties: - id: - format: uint64 - type: string - lower_tick0: - properties: - key: - properties: - fee: - format: uint64 - type: string - tick_index_taker_to_maker: - format: int64 - type: string - trade_pair_id: - properties: - maker_denom: - type: string - taker_denom: - type: string - type: object - type: object - price_opposite_taker_to_maker: - type: string - price_taker_to_maker: + maker_coin_out: + description: >- + 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. + properties: + amount: type: string - reserves_maker_denom: + denom: type: string type: object - upper_tick1: + title: Total amount of maker reserves that were canceled + taker_coin_out: + description: >- + 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. properties: - key: - properties: - fee: - format: uint64 - type: string - tick_index_taker_to_maker: - format: int64 - type: string - trade_pair_id: - properties: - maker_denom: - type: string - taker_denom: - type: string - type: object - type: object - price_opposite_taker_to_maker: - type: string - price_taker_to_maker: + amount: type: string - reserves_maker_denom: + denom: type: string type: object + title: Total amount of taker reserves that were withdrawn type: object type: object default: @@ -41544,123 +42679,102 @@ paths: message: type: string type: object - summary: Queries a pool by ID + summary: Simulates MsgCancelLimitOrder tags: - Query - /neutron/dex/pool_metadata: + /neutron/dex/simulate_deposit: get: - operationId: PoolMetadataAll + operationId: SimulateDeposit parameters: - - description: |- - 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 - in: query - name: pagination.key + - in: query + name: msg.creator required: false type: string - - description: >- - 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 - in: query - name: pagination.offset + - in: query + name: msg.receiver required: false type: string - - description: >- - 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 - in: query - name: pagination.limit + - in: query + name: msg.token_a required: false type: string - - description: >- - 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. + - in: query + name: msg.token_b + required: false + type: string + - collectionFormat: multi in: query - name: pagination.count_total + items: + type: string + name: msg.amounts_a required: false - type: boolean - - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 + type: array + - collectionFormat: multi in: query - name: pagination.reverse + items: + type: string + name: msg.amounts_b required: false - type: boolean + type: array + - collectionFormat: multi + in: query + items: + format: int64 + type: string + name: msg.tick_indexes_a_to_b + required: false + type: array + - collectionFormat: multi + in: query + items: + format: uint64 + type: string + name: msg.fees + required: false + type: array responses: '200': description: A successful response. schema: properties: - pagination: - description: >- - 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; - } + resp: properties: - next_key: - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - format: byte - type: string - total: - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - type: string - type: object - pool_metadata: - items: - properties: - fee: - format: uint64 + failed_deposits: + items: + properties: + deposit_idx: + format: uint64 + type: string + error: + type: string + type: object + type: array + reserve0_deposited: + items: type: string - id: - format: uint64 + type: array + reserve1_deposited: + items: type: string - pair_id: + type: array + shares_issued: + items: + description: >- + 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. properties: - token0: + amount: type: string - token1: + denom: type: string type: object - tick: - format: int64 - type: string - type: object - type: array + type: array + type: object type: object default: description: An unexpected error response. @@ -41684,40 +42798,134 @@ paths: message: type: string type: object - summary: Queries a list of PoolMetadata items. + summary: Simulates MsgDeposit tags: - Query - /neutron/dex/pool_metadata/{id}: + /neutron/dex/simulate_place_limit_order: get: - operationId: PoolMetadata + operationId: SimulatePlaceLimitOrder parameters: - - format: uint64 - in: path - name: id - required: true + - in: query + name: msg.creator + required: false + type: string + - in: query + name: msg.receiver + required: false + type: string + - in: query + name: msg.token_in + required: false + type: string + - in: query + name: msg.token_out + required: false + type: string + - description: >- + DEPRECATED: tick_index_in_to_out will be removed in future release; + limit_sell_price should be used instead. + format: int64 + in: query + name: msg.tick_index_in_to_out + required: false + type: string + - in: query + name: msg.amount_in + required: false + type: string + - default: GOOD_TIL_CANCELLED + enum: + - GOOD_TIL_CANCELLED + - FILL_OR_KILL + - IMMEDIATE_OR_CANCEL + - JUST_IN_TIME + - GOOD_TIL_TIME + in: query + name: msg.order_type + required: false + type: string + - description: expirationTime is only valid iff orderType == GOOD_TIL_TIME. + format: date-time + in: query + name: msg.expiration_time + required: false + type: string + - in: query + name: msg.max_amount_out + required: false + type: string + - in: query + name: msg.limit_sell_price + required: false type: string responses: '200': description: A successful response. schema: properties: - Pool_metadata: + resp: properties: - fee: - format: uint64 - type: string - id: - format: uint64 - type: string - pair_id: + coin_in: + description: >- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + title: Total amount of coin used for the limit order + taker_coin_in: + description: >- + 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. properties: - token0: + amount: type: string - token1: + denom: type: string type: object - tick: - format: int64 + title: >- + Total amount of the token in that was immediately swapped + for takerOutCoin + taker_coin_out: + description: >- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + title: >- + Total amount of coin received from the taker portion of + the limit order + + This is the amount of coin immediately available in the + users account after + + executing the limit order. It does not include any future + proceeds from the + + maker portion which will have withdrawn in the future + trancheKey: type: string type: object type: object @@ -41743,137 +42951,63 @@ paths: message: type: string type: object - summary: Queries a PoolMetadata by ID + summary: Simulates MsgPlaceLimitOrder tags: - Query - /neutron/dex/pool_reserves/{pair_id}/{token_in}: + /neutron/dex/simulate_withdraw_filled_limit_order: get: - operationId: PoolReservesAll + operationId: SimulateWithdrawFilledLimitOrder parameters: - - in: path - name: pair_id - required: true - type: string - - in: path - name: token_in - required: true - type: string - - description: |- - 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 - in: query - name: pagination.key - required: false - type: string - - description: >- - 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 - in: query - name: pagination.offset + - in: query + name: msg.creator required: false type: string - - description: >- - 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 - in: query - name: pagination.limit + - in: query + name: msg.tranche_key required: false type: string - - description: >- - 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. - in: query - name: pagination.count_total - required: false - type: boolean - - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - name: pagination.reverse - required: false - type: boolean responses: '200': description: A successful response. schema: properties: - pagination: - description: >- - PageResponse is to be embedded in gRPC response messages where - the + resp: + properties: + maker_coin_out: + description: >- + Coin defines a token with a denomination and an amount. - corresponding request message has used PageRequest. - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - properties: - next_key: - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - format: byte - type: string - total: - format: uint64 + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + properties: + amount: + type: string + denom: + type: string + type: object title: >- - total is total number of results available if - PageRequest.count_total + Total amount of maker reserves that were withdrawn --only + applies to inactive LimitOrders + taker_coin_out: + description: >- + Coin defines a token with a denomination and an amount. - was set, its value is undefined otherwise - type: string + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. + properties: + amount: + type: string + denom: + type: string + type: object + title: Total amount of taker reserves that were withdrawn type: object - pool_reserves: - items: - properties: - key: - properties: - fee: - format: uint64 - type: string - tick_index_taker_to_maker: - format: int64 - type: string - trade_pair_id: - properties: - maker_denom: - type: string - taker_denom: - type: string - type: object - type: object - price_opposite_taker_to_maker: - type: string - price_taker_to_maker: - type: string - reserves_maker_denom: - type: string - type: object - type: array type: object default: description: An unexpected error response. @@ -41897,60 +43031,80 @@ paths: message: type: string type: object - summary: Queries a list of PoolReserves items. + summary: Simulates MsgWithdrawFilledLimitOrder tags: - Query - /neutron/dex/pool_reserves/{pair_id}/{token_in}/{tick_index}/{fee}: + /neutron/dex/simulate_withdrawal: get: - operationId: PoolReserves + operationId: SimulateWithdrawal parameters: - - in: path - name: pair_id - required: true + - in: query + name: msg.creator + required: false type: string - - in: path - name: token_in - required: true + - in: query + name: msg.receiver + required: false type: string - - format: int64 - in: path - name: tick_index - required: true + - in: query + name: msg.token_a + required: false type: string - - format: uint64 - in: path - name: fee - required: true + - in: query + name: msg.token_b + required: false type: string + - collectionFormat: multi + in: query + items: + type: string + name: msg.shares_to_remove + required: false + type: array + - collectionFormat: multi + in: query + items: + format: int64 + type: string + name: msg.tick_indexes_a_to_b + required: false + type: array + - collectionFormat: multi + in: query + items: + format: uint64 + type: string + name: msg.fees + required: false + type: array responses: '200': description: A successful response. schema: properties: - pool_reserves: + resp: properties: - key: - properties: - fee: - format: uint64 - type: string - tick_index_taker_to_maker: - format: int64 - type: string - trade_pair_id: - properties: - maker_denom: - type: string - taker_denom: - type: string - type: object - type: object - price_opposite_taker_to_maker: - type: string - price_taker_to_maker: + reserve0_withdrawn: type: string - reserves_maker_denom: + reserve1_withdrawn: type: string + shares_burned: + items: + description: >- + 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. + properties: + amount: + type: string + denom: + type: string + type: object + type: array type: object type: object default: @@ -41975,7 +43129,7 @@ paths: message: type: string type: object - summary: Queries a PoolReserve by index + summary: Simulates MsgWithdrawal tags: - Query /neutron/dex/tick_liquidity/{pair_id}/{token_in}: @@ -42739,6 +43893,16 @@ paths: params: description: params holds all the parameters of this module. properties: + max_kv_query_keys_count: + format: uint64 + title: Maximum amount of keys in a registered key value query + type: string + max_transactions_filters: + format: uint64 + title: >- + max_transactions_filters defines maximum allowed amount of + tx filters in msgRegisterInterchainQuery + type: string query_deposit: description: Amount of coins deposited for the query. items: