diff --git a/packages/neutron-sdk/src/bindings/dex/query.rs b/packages/neutron-sdk/src/bindings/dex/query.rs index 5b50f752..f7caf7e6 100644 --- a/packages/neutron-sdk/src/bindings/dex/query.rs +++ b/packages/neutron-sdk/src/bindings/dex/query.rs @@ -1,8 +1,8 @@ use crate::bindings::dex::types::{ - DepositRecord, LimitOrderTranche, LimitOrderTrancheUser, LimitOrderType, MsgCancelLimitOrder, - MsgCancelLimitOrderResponse, MsgDeposit, MsgDepositResponse, MsgMultiHopSwap, - MsgMultiHopSwapResponse, MsgPlaceLimitOrder, MsgPlaceLimitOrderResponse, - MsgWithdrawFilledLimitOrder, MsgWithdrawFilledLimitOrderResponse, MsgWithdrawal, + DepositRecord, LimitOrderTranche, LimitOrderTrancheUser, LimitOrderType, + MsgCancelLimitOrderResponse, MsgDepositResponse, + MsgMultiHopSwapResponse, MsgPlaceLimitOrderResponse, + MsgWithdrawFilledLimitOrderResponse, MsgWithdrawalResponse, MultiHopRoute, Params, Pool, PoolMetadata, PoolReserves, PrecDec, TickLiquidity, }; @@ -110,18 +110,6 @@ pub enum DexQuery { PoolMetadata { id: u64 }, /// Queries a list of PoolMetadata items. PoolMetadataAll { pagination: Option }, - /// Simulates MsgDeposit - SimulateDeposit { msg: MsgDeposit }, - /// Simulates MsgWithdrawal - SimulateWithdrawal { msg: MsgWithdrawal }, - /// Simulates MsgPlaceLimitOrder - SimulatePlaceLimitOrder { msg: MsgPlaceLimitOrder }, - /// Simulates MsgWithdrawFilledLimitOrder - SimulateWithdrawFilledLimitOrder { msg: MsgWithdrawFilledLimitOrder }, - /// Simulates MsgCancelLimitOrder - SimulateCancelLimitOrder { msg: MsgCancelLimitOrder }, - /// Simulates MsgMultiHopSwap - SimulateMultiHopSwap { msg: MsgMultiHopSwap }, } #[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] @@ -245,39 +233,3 @@ pub struct AllPoolMetadataResponse { pub pool_metadata: Vec, pub pagination: Option, } - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct SimulateDepositResponse { - resp: MsgDepositResponse, -} - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct SimulateWithdrawalResponse { - resp: MsgWithdrawalResponse, -} - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct SimulatePlaceLimitOrderResponse { - resp: MsgPlaceLimitOrderResponse, -} - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct SimulateWithdrawFilledLimitOrderResponse { - resp: MsgWithdrawFilledLimitOrderResponse, -} - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct SimulateCancelLimitOrderResponse { - resp: MsgCancelLimitOrderResponse, -} - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct SimulateMultiHopSwapResponse { - resp: MsgMultiHopSwapResponse, -} diff --git a/packages/neutron-sdk/src/bindings/dex/types.rs b/packages/neutron-sdk/src/bindings/dex/types.rs index c41cba40..7c2786f2 100644 --- a/packages/neutron-sdk/src/bindings/dex/types.rs +++ b/packages/neutron-sdk/src/bindings/dex/types.rs @@ -1,4 +1,4 @@ -use cosmwasm_std::{Coin, Int128, Uint128}; +use cosmwasm_std::{Int128}; use schemars::JsonSchema; use serde::{Deserialize, Serialize}; @@ -197,111 +197,3 @@ pub struct PoolReservesKey { pub tick_index_taker_to_maker: i64, pub fee: Option, } - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct MsgDeposit { - pub token_a: String, - pub token_b: String, - pub amounts_a: Vec, - pub amounts_b: Vec, - pub tick_indexes_a_to_b: Vec, - pub fees: Vec, - pub options: Vec, -} - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct MsgDepositResponse { - pub reserve0_deposited: Vec, - pub reserve1_deposited: Vec, - pub failed_deposits: Option>, - pub shares_issued: Vec, -} - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct MsgWithdrawal { - pub creator: String, - pub receiver: String, - pub token_a: String, - pub token_b: String, - pub shares_to_remove: Vec, - pub tick_indexes_a_to_b: Vec, - pub fees: Vec, -} - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct MsgWithdrawalResponse { - pub reserve0_withdrawn: Option, - pub reserve1_withdrawn: Option, - pub shares_burned: Vec, -} - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct MsgPlaceLimitOrder { - pub token_in: String, - pub token_out: String, - pub tick_index_in_to_out: i64, - pub amount_in: Uint128, - pub order_type: LimitOrderType, - pub expiration_time: Option, - pub max_amount_out: Option, - pub limit_sell_price: PrecDec, -} - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct MsgPlaceLimitOrderResponse { - pub tranche_key: Option, - pub coin_in: Coin, - pub taker_coin_out: Option, - pub taker_coin_in: Option, -} - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct MsgWithdrawFilledLimitOrder { - pub creator: String, - pub tranche_key: String, -} - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct MsgWithdrawFilledLimitOrderResponse { - pub taker_coin_out: Option, - pub maker_coin_out: Option, -} - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct MsgCancelLimitOrder { - pub creator: String, - pub tranche_key: String, -} - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct MsgCancelLimitOrderResponse { - pub taker_coin_out: Option, - pub maker_coin_out: Option, -} - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct MsgMultiHopSwap { - pub routes: Vec, - pub amount_in: Uint128, - pub exit_limit_price: PrecDec, - pub pick_best_route: bool, -} - -#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] -#[serde(rename_all = "snake_case")] -pub struct MsgMultiHopSwapResponse { - pub coin_out: Coin, - pub route: MultiHopRoute, - pub dust: Option>, -}