Skip to content

Commit fe5f5aa

Browse files
Merge pull request #761 from opentensor/feat/root-weights-proxy
Feat/root weights proxy
2 parents 0f13241 + 5929fae commit fe5f5aa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

runtime/src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
142142
// `spec_version`, and `authoring_version` are the same between Wasm and native.
143143
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
144144
// the compatible custom types.
145-
spec_version: 195,
145+
spec_version: 196,
146146
impl_version: 1,
147147
apis: RUNTIME_API_VERSIONS,
148148
transaction_version: 1,
@@ -629,6 +629,7 @@ pub enum ProxyType {
629629
Registration,
630630
Transfer,
631631
SmallTransfer,
632+
RootWeights,
632633
}
633634
// Transfers below SMALL_TRANSFER_LIMIT are considered small transfers
634635
pub const SMALL_TRANSFER_LIMIT: Balance = 500_000_000; // 0.5 TAO
@@ -673,6 +674,7 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
673674
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::root_register { .. })
674675
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::burned_register { .. })
675676
| RuntimeCall::Triumvirate(..)
677+
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_root_weights { .. })
676678
),
677679
ProxyType::Triumvirate => matches!(
678680
c,
@@ -695,6 +697,10 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
695697
RuntimeCall::SubtensorModule(pallet_subtensor::Call::burned_register { .. })
696698
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::register { .. })
697699
),
700+
ProxyType::RootWeights => matches!(
701+
c,
702+
RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_root_weights { .. })
703+
),
698704
}
699705
}
700706
fn is_superset(&self, o: &Self) -> bool {

0 commit comments

Comments
 (0)