From 403e2b6a87c0c6ffda6f008e352204687f88cf6c Mon Sep 17 00:00:00 2001 From: Adel Golghalyani Date: Fri, 17 Jan 2025 09:35:25 +0100 Subject: [PATCH] fix: benchmarks --- runtimes/peregrine/src/weights/pallet_bonded_assets.rs | 3 +++ runtimes/peregrine/src/weights/pallet_dot_names.rs | 3 +++ .../src/weights/pallet_technical_committee_collective.rs | 3 +++ runtimes/peregrine/src/weights/pallet_technical_membership.rs | 3 +++ runtimes/peregrine/src/weights/pallet_unique_linking.rs | 3 +++ runtimes/spiritnet/src/weights/pallet_dot_names.rs | 3 +++ .../src/weights/pallet_technical_committee_collective.rs | 3 +++ runtimes/spiritnet/src/weights/pallet_technical_membership.rs | 3 +++ runtimes/spiritnet/src/weights/pallet_unique_linking.rs | 3 +++ 9 files changed, 27 insertions(+) diff --git a/runtimes/peregrine/src/weights/pallet_bonded_assets.rs b/runtimes/peregrine/src/weights/pallet_bonded_assets.rs index d6fb7cd1a..9aced41ea 100644 --- a/runtimes/peregrine/src/weights/pallet_bonded_assets.rs +++ b/runtimes/peregrine/src/weights/pallet_bonded_assets.rs @@ -43,6 +43,9 @@ use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; +// TODO: Remove once the benchmarking stuff fully supports pallet instances. +use pallet_assets as pallet_bonded_assets; + /// Weight functions for `pallet_bonded_assets`. pub struct WeightInfo(PhantomData); impl pallet_bonded_assets::WeightInfo for WeightInfo { diff --git a/runtimes/peregrine/src/weights/pallet_dot_names.rs b/runtimes/peregrine/src/weights/pallet_dot_names.rs index 45696dd78..95ef54502 100644 --- a/runtimes/peregrine/src/weights/pallet_dot_names.rs +++ b/runtimes/peregrine/src/weights/pallet_dot_names.rs @@ -43,6 +43,9 @@ use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; +// TODO: Remove once the benchmarking stuff fully supports pallet instances. +use pallet_web3_names as pallet_dot_names; + /// Weight functions for `pallet_dot_names`. pub struct WeightInfo(PhantomData); impl pallet_dot_names::WeightInfo for WeightInfo { diff --git a/runtimes/peregrine/src/weights/pallet_technical_committee_collective.rs b/runtimes/peregrine/src/weights/pallet_technical_committee_collective.rs index 0c10c5695..05667de0d 100644 --- a/runtimes/peregrine/src/weights/pallet_technical_committee_collective.rs +++ b/runtimes/peregrine/src/weights/pallet_technical_committee_collective.rs @@ -43,6 +43,9 @@ use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; +// TODO: Remove once the benchmarking stuff fully supports pallet instances. +use pallet_collective as pallet_technical_committee_collective; + /// Weight functions for `pallet_technical_committee_collective`. pub struct WeightInfo(PhantomData); impl pallet_technical_committee_collective::WeightInfo for WeightInfo { diff --git a/runtimes/peregrine/src/weights/pallet_technical_membership.rs b/runtimes/peregrine/src/weights/pallet_technical_membership.rs index ba5bb5fb1..891c4aa6f 100644 --- a/runtimes/peregrine/src/weights/pallet_technical_membership.rs +++ b/runtimes/peregrine/src/weights/pallet_technical_membership.rs @@ -43,6 +43,9 @@ use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; +// TODO: Remove once the benchmarking stuff fully supports pallet instances. +use pallet_membership as pallet_technical_membership; + /// Weight functions for `pallet_technical_membership`. pub struct WeightInfo(PhantomData); impl pallet_technical_membership::WeightInfo for WeightInfo { diff --git a/runtimes/peregrine/src/weights/pallet_unique_linking.rs b/runtimes/peregrine/src/weights/pallet_unique_linking.rs index 0b1b7b3a1..731a3f663 100644 --- a/runtimes/peregrine/src/weights/pallet_unique_linking.rs +++ b/runtimes/peregrine/src/weights/pallet_unique_linking.rs @@ -43,6 +43,9 @@ use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; +// TODO: Remove once the benchmarking stuff fully supports pallet instances. +use pallet_did_lookup as pallet_unique_linking; + /// Weight functions for `pallet_unique_linking`. pub struct WeightInfo(PhantomData); impl pallet_unique_linking::WeightInfo for WeightInfo { diff --git a/runtimes/spiritnet/src/weights/pallet_dot_names.rs b/runtimes/spiritnet/src/weights/pallet_dot_names.rs index 4b1c5b637..57caa3ecc 100644 --- a/runtimes/spiritnet/src/weights/pallet_dot_names.rs +++ b/runtimes/spiritnet/src/weights/pallet_dot_names.rs @@ -43,6 +43,9 @@ use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; +// TODO: Remove once the benchmarking stuff fully supports pallet instances. +use pallet_web3_names as pallet_dot_names; + /// Weight functions for `pallet_dot_names`. pub struct WeightInfo(PhantomData); impl pallet_dot_names::WeightInfo for WeightInfo { diff --git a/runtimes/spiritnet/src/weights/pallet_technical_committee_collective.rs b/runtimes/spiritnet/src/weights/pallet_technical_committee_collective.rs index e35f0e197..86a2fa393 100644 --- a/runtimes/spiritnet/src/weights/pallet_technical_committee_collective.rs +++ b/runtimes/spiritnet/src/weights/pallet_technical_committee_collective.rs @@ -43,6 +43,9 @@ use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; +// TODO: Remove once the benchmarking stuff fully supports pallet instances. +use pallet_collective as pallet_technical_committee_collective; + /// Weight functions for `pallet_technical_committee_collective`. pub struct WeightInfo(PhantomData); impl pallet_technical_committee_collective::WeightInfo for WeightInfo { diff --git a/runtimes/spiritnet/src/weights/pallet_technical_membership.rs b/runtimes/spiritnet/src/weights/pallet_technical_membership.rs index 64c3aa2e5..7280e3b7a 100644 --- a/runtimes/spiritnet/src/weights/pallet_technical_membership.rs +++ b/runtimes/spiritnet/src/weights/pallet_technical_membership.rs @@ -43,6 +43,9 @@ use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; +// TODO: Remove once the benchmarking stuff fully supports pallet instances. +use pallet_membership as pallet_technical_membership; + /// Weight functions for `pallet_technical_membership`. pub struct WeightInfo(PhantomData); impl pallet_technical_membership::WeightInfo for WeightInfo { diff --git a/runtimes/spiritnet/src/weights/pallet_unique_linking.rs b/runtimes/spiritnet/src/weights/pallet_unique_linking.rs index f002e30b7..5633f70b7 100644 --- a/runtimes/spiritnet/src/weights/pallet_unique_linking.rs +++ b/runtimes/spiritnet/src/weights/pallet_unique_linking.rs @@ -43,6 +43,9 @@ use frame_support::{traits::Get, weights::Weight}; use sp_std::marker::PhantomData; +// TODO: Remove once the benchmarking stuff fully supports pallet instances. +use pallet_did_lookup as pallet_unique_linking; + /// Weight functions for `pallet_unique_linking`. pub struct WeightInfo(PhantomData); impl pallet_unique_linking::WeightInfo for WeightInfo {