From e5d7d3d51a919009cd7e1a9fbbbbdae3931aef38 Mon Sep 17 00:00:00 2001 From: swelf Date: Thu, 16 Nov 2023 15:04:40 +0300 Subject: [PATCH] wip --- artifacts/checksums.txt | 2 +- artifacts/checksums_intermediate.txt | 2 +- contracts/dex/src/contract.rs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/artifacts/checksums.txt b/artifacts/checksums.txt index 100eb74..47c2581 100644 --- a/artifacts/checksums.txt +++ b/artifacts/checksums.txt @@ -1,6 +1,6 @@ 0087fdbcf7ee06a49fbda882ce83c75a0001edbb801e26500b894c8e6627010a before_send_hook_test-x86_64.wasm 37038e0be3b11d0d9995623cabdc1ff4631fe51de0255582bd5034a8b87439d0 client_updater-x86_64.wasm -3b8eba37d63f3177b9ea8ccee67ed4d8cf5a5abc53f56d578508a1188fbc99d1 dex-x86_64.wasm +a0cbe0c48d5bc6d6881019ad86c945ac4ece7d44f8e56509aea7b9b1b39441d0 dex-x86_64.wasm d72be13a225ce00c97392784f0b6f3b505cb8133a83808b53a95c5e9ed98b3ed echo-x86_64.wasm f65741a936b596696a29fc9bdf9ec4567cad3722a15f75a0d659f2b3a9ab1d64 ibc_transfer-x86_64.wasm fac774830d6242494b8fd530052d8ed4365498220541e137284aefbf64337b24 msg_receiver-x86_64.wasm diff --git a/artifacts/checksums_intermediate.txt b/artifacts/checksums_intermediate.txt index f6382a4..22c4cd6 100644 --- a/artifacts/checksums_intermediate.txt +++ b/artifacts/checksums_intermediate.txt @@ -1,6 +1,6 @@ 8c7004b7d8d23d9ec193b4f603bb0370a2962fd362a2c06f6ef634f5f86c4f3a before_send_hook_test.wasm 82e05994b5ccfb6d06d29ccc2e2965b8c6c4805b6a2699eb857096608a2eec0a client_updater.wasm -77a84e60ff062eb4131310d59882b76f1381e66c36311fa8e2cb0bef3edbb09d dex.wasm +926a4f2911bcbd8f0a82335c92e22bf21aeb2373827f810184feefb67f24e481 dex.wasm f39a345f49d72c01ef99afff01fa259085f2301f0643b27721446633b462e16e echo.wasm 9940322a86da6f2512d526dd28c5f4057eae77119153763853e211082f76f750 ibc_transfer.wasm 43bdbfcd7c6015b557e1798e93f13fdc15cd4e662faffc714d2e78e5e0a8e3e5 msg_receiver.wasm diff --git a/contracts/dex/src/contract.rs b/contracts/dex/src/contract.rs index e00b7d8..136f494 100644 --- a/contracts/dex/src/contract.rs +++ b/contracts/dex/src/contract.rs @@ -19,7 +19,7 @@ use neutron_sdk::{ EstimateMultiHopSwapResponse, EstimatePlaceLimitOrderResponse, InactiveLimitOrderTrancheResponse, LimitOrderTrancheResponse, LimitOrderTrancheUserResponse, NeutronQuery, ParamsResponse, PoolMetadataResponse, - PoolReservesResponse, PoolResponse, + PoolReservesResponse, PoolResponse, AllUserLimitOrdersResponse, }, }, sudo::msg::SudoMsg, @@ -91,7 +91,7 @@ fn query_dex(deps: Deps, _env: Env, msg: DexQuery) -> StdResult { - let query_response: AllLimitOrderTrancheUserResponse = + let query_response: AllUserLimitOrdersResponse = deps.querier.query(&msg.into())?; return to_binary(&query_response); } @@ -125,7 +125,7 @@ fn query_dex(deps: Deps, _env: Env, msg: DexQuery) -> StdResult { + DexQuery::PoolReserves { .. } => { let query_response: PoolReservesResponse = deps.querier.query(&msg.into())?; return to_binary(&query_response); }