Skip to content

Commit

Permalink
add SetCode proxy type
Browse files Browse the repository at this point in the history
  • Loading branch information
camfairchild committed Nov 6, 2024
1 parent c05342a commit a78f33c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 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,
SetCode,
}
// Transfers below SMALL_TRANSFER_LIMIT are considered small transfers
pub const SMALL_TRANSFER_LIMIT: Balance = 500_000_000; // 0.5 TAO
Expand Down Expand Up @@ -688,6 +689,7 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::burned_register { .. })
| RuntimeCall::Triumvirate(..)
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_root_weights { .. })
| RuntimeCall::Sudo(..)
),
ProxyType::Triumvirate => matches!(
c,
Expand All @@ -714,6 +716,9 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
c,
RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_root_weights { .. })
),
ProxyType::SetCode => {
matches!(c, RuntimeCall::System(frame_system::Call::set_code { .. }))
}
}
}
fn is_superset(&self, o: &Self) -> bool {
Expand Down

0 comments on commit a78f33c

Please sign in to comment.