Skip to content

Commit

Permalink
Merge pull request opentensor#761 from opentensor/feat/root-weights-p…
Browse files Browse the repository at this point in the history
…roxy

Feat/root weights proxy
  • Loading branch information
distributedstatemachine authored Sep 3, 2024
2 parents 0f13241 + 5929fae commit fe5f5aa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,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: 195,
spec_version: 196,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -629,6 +629,7 @@ pub enum ProxyType {
Registration,
Transfer,
SmallTransfer,
RootWeights,
}
// 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 @@ -673,6 +674,7 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::root_register { .. })
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::burned_register { .. })
| RuntimeCall::Triumvirate(..)
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_root_weights { .. })
),
ProxyType::Triumvirate => matches!(
c,
Expand All @@ -695,6 +697,10 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::SubtensorModule(pallet_subtensor::Call::burned_register { .. })
| RuntimeCall::SubtensorModule(pallet_subtensor::Call::register { .. })
),
ProxyType::RootWeights => matches!(
c,
RuntimeCall::SubtensorModule(pallet_subtensor::Call::set_root_weights { .. })
),
}
}
fn is_superset(&self, o: &Self) -> bool {
Expand Down

0 comments on commit fe5f5aa

Please sign in to comment.