From 40b3c025e5dc94f53f707917b1a13bff5ca5695d Mon Sep 17 00:00:00 2001 From: Malte Kliemann Date: Mon, 26 Feb 2024 13:35:56 +0100 Subject: [PATCH] Update proxy types (#1259) * Replace `Swaps` with `NeoSwaps` proxy types * Add `withdraw_fees` to liquidity-related proxies --- runtime/common/src/lib.rs | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/runtime/common/src/lib.rs b/runtime/common/src/lib.rs index f70ac5a37..42e58e15a 100644 --- a/runtime/common/src/lib.rs +++ b/runtime/common/src/lib.rs @@ -854,8 +854,10 @@ macro_rules! impl_config_traits { ), ProxyType::ProvideLiquidity => matches!( c, - RuntimeCall::Swaps(zrml_swaps::Call::pool_join { .. }) - | RuntimeCall::Swaps(zrml_swaps::Call::pool_exit { .. }) + RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::join { .. }) + | RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::exit { .. }) + | RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::deploy_pool { .. }) + | RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::withdraw_fees { .. }) ), ProxyType::BuySellCompleteSets => matches!( c, @@ -867,18 +869,20 @@ macro_rules! impl_config_traits { ), ProxyType::Trading => matches!( c, - RuntimeCall::Swaps(zrml_swaps::Call::swap_exact_amount_in { .. }) - | RuntimeCall::Swaps(zrml_swaps::Call::swap_exact_amount_out { .. }) + RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::buy { .. }) + | RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::sell { .. }) | RuntimeCall::Orderbook(zrml_orderbook::Call::place_order { .. }) | RuntimeCall::Orderbook(zrml_orderbook::Call::fill_order { .. }) | RuntimeCall::Orderbook(zrml_orderbook::Call::remove_order { .. }) ), ProxyType::HandleAssets => matches!( c, - RuntimeCall::Swaps(zrml_swaps::Call::pool_join { .. }) - | RuntimeCall::Swaps(zrml_swaps::Call::pool_exit { .. }) - | RuntimeCall::Swaps(zrml_swaps::Call::swap_exact_amount_in { .. }) - | RuntimeCall::Swaps(zrml_swaps::Call::swap_exact_amount_out { .. }) + RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::join { .. }) + | RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::exit { .. }) + | RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::buy { .. }) + | RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::sell { .. }) + | RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::deploy_pool { .. }) + | RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::withdraw_fees { .. }) | RuntimeCall::PredictionMarkets( zrml_prediction_markets::Call::buy_complete_set { .. } )