Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add key swaps & set_children to proxies #912

Merged
merged 6 commits into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,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: 207,
spec_version: 208,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down 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 { .. })
JohnReedV marked this conversation as resolved.
Show resolved Hide resolved
| 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
Loading