From ffc762bf93a3bcb3da759073058579a2e3391a3a Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Tue, 27 Aug 2024 17:38:17 -0400 Subject: [PATCH 1/4] add root weights proxy --- runtime/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 9ad0624d0..8603ce6eb 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -629,6 +629,7 @@ pub enum ProxyType { Registration, Transfer, SmallTransfer, + RootWeights, } // Transfers below SMALL_TRANSFER_LIMIT are considered small transfers pub const SMALL_TRANSFER_LIMIT: Balance = 500_000_000; // 0.5 TAO @@ -673,6 +674,7 @@ impl InstanceFilter for ProxyType { | RuntimeCall::SubtensorModule(pallet_subtensor::Call::root_register { .. }) | RuntimeCall::SubtensorModule(pallet_subtensor::Call::burned_register { .. }) | RuntimeCall::Triumvirate(..) + | RuntimeCall::RootWeights(..) ), ProxyType::Triumvirate => matches!( c, @@ -695,6 +697,10 @@ impl InstanceFilter for ProxyType { RuntimeCall::SubtensorModule(pallet_subtensor::Call::burned_register { .. }) | RuntimeCall::SubtensorModule(pallet_subtensor::Call::register { .. }) ), + ProxyType::RootWeights => matches!( + c, + RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_root_weights { .. }) + ), } } fn is_superset(&self, o: &Self) -> bool { From 78f1d941b86340e90fa4d4cd3f3a6a3ff45967aa Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Tue, 27 Aug 2024 17:38:26 -0400 Subject: [PATCH 2/4] fmt --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 8603ce6eb..1f2c8a4eb 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -674,7 +674,7 @@ impl InstanceFilter for ProxyType { | RuntimeCall::SubtensorModule(pallet_subtensor::Call::root_register { .. }) | RuntimeCall::SubtensorModule(pallet_subtensor::Call::burned_register { .. }) | RuntimeCall::Triumvirate(..) - | RuntimeCall::RootWeights(..) + | RuntimeCall::RootWeights(..) ), ProxyType::Triumvirate => matches!( c, From a23860c87dcfd9be8a33a2089c200bfa74e13bc4 Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Tue, 27 Aug 2024 17:45:11 -0400 Subject: [PATCH 3/4] fix typo --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 1f2c8a4eb..77b9111f8 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -674,7 +674,7 @@ impl InstanceFilter for ProxyType { | RuntimeCall::SubtensorModule(pallet_subtensor::Call::root_register { .. }) | RuntimeCall::SubtensorModule(pallet_subtensor::Call::burned_register { .. }) | RuntimeCall::Triumvirate(..) - | RuntimeCall::RootWeights(..) + | RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_root_weights { .. }) ), ProxyType::Triumvirate => matches!( c, From ab0a240530a4ba7396119ddd80896bb3a3ae8c9d Mon Sep 17 00:00:00 2001 From: Samuel Dare Date: Mon, 2 Sep 2024 15:05:59 +0400 Subject: [PATCH 4/4] chore: bump spec version --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 77b9111f8..bc815f57b 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -142,7 +142,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 194, + spec_version: 196, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,