Skip to content

Commit

Permalink
Merge pull request #912 from opentensor/spiigot/update-proxies
Browse files Browse the repository at this point in the history
Add key swaps & set_children to proxies
  • Loading branch information
sam0x17 authored Nov 12, 2024
2 parents 47d3b45 + 4550edd commit 82664af
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ pub enum ProxyType {
Transfer,
SmallTransfer,
RootWeights,
ChildKeys,
SudoUncheckedSetCode,
}
// Transfers below SMALL_TRANSFER_LIMIT are considered small transfers
Expand All @@ -664,6 +665,10 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::remove_stake { .. })
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::burned_register { .. })
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::root_register { .. })
| RuntimeCall::SubtensorModule(
pallet_subtensor::Call::schedule_swap_coldkey { .. }
)
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::swap_hotkey { .. })
),
ProxyType::Transfer => matches!(
c,
Expand Down Expand Up @@ -716,6 +721,13 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
c,
RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_root_weights { .. })
),
ProxyType::ChildKeys => matches!(
c,
RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_children { .. })
| RuntimeCall::SubtensorModule(
pallet_subtensor::Call::set_childkey_take { .. }
)
),
ProxyType::SudoUncheckedSetCode => match c {
RuntimeCall::Sudo(pallet_sudo::Call::sudo_unchecked_weight { call, weight: _ }) => {
let inner_call: RuntimeCall = *call.clone();
Expand Down

0 comments on commit 82664af

Please sign in to comment.