Skip to content

Commit ffc762b

Browse files
committed
add root weights proxy
1 parent 8c17cfd commit ffc762b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

runtime/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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::RootWeights(..)
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)