feat: Rebrand Polkadot/Substrate references to PezkuwiChain
This commit systematically rebrands various references from Parity Technologies' Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk. Key changes include: - Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks. - Modified internal documentation and code comments to reflect PezkuwiChain naming and structure. - Replaced direct references to with or specific paths within the for XCM, Pezkuwi, and other modules. - Cleaned up deprecated issue and PR references in various and files, particularly in and modules. - Adjusted image and logo URLs in documentation to point to PezkuwiChain assets. - Removed or rephrased comments related to external Polkadot/Substrate PRs and issues. This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "pallet-validator-pool"
|
||||
name = "pezpallet-validator-pool"
|
||||
version = "1.0.0"
|
||||
description = "Dynamic Validator Pool System for PezkuwiChain"
|
||||
authors.workspace = true
|
||||
@@ -22,62 +22,62 @@ scale-info = { default-features = false, features = [
|
||||
], workspace = true }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
|
||||
frame-benchmarking = { optional = true, workspace = true }
|
||||
frame-support = { default-features = false, workspace = true }
|
||||
frame-system = { default-features = false, workspace = true }
|
||||
pezframe-benchmarking = { optional = true, workspace = true }
|
||||
pezframe-support = { default-features = false, workspace = true }
|
||||
pezframe-system = { default-features = false, workspace = true }
|
||||
log = { default-features = false, workspace = true }
|
||||
sp-core = { workspace = true, default-features = false, optional = true }
|
||||
sp-io = { workspace = true, default-features = false, optional = true }
|
||||
sp-runtime = { default-features = false, workspace = true }
|
||||
sp-std = { default-features = false, workspace = true }
|
||||
pezsp-core = { workspace = true, default-features = false, optional = true }
|
||||
pezsp-io = { workspace = true, default-features = false, optional = true }
|
||||
pezsp-runtime = { default-features = false, workspace = true }
|
||||
pezsp-std = { default-features = false, workspace = true }
|
||||
|
||||
pallet-session = { default-features = false, workspace = true }
|
||||
pezpallet-session = { default-features = false, workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
pallet-balances = { workspace = true }
|
||||
pallet-timestamp = { workspace = true }
|
||||
pezpallet-balances = { workspace = true }
|
||||
pezpallet-timestamp = { workspace = true }
|
||||
serde = { version = "1.0" }
|
||||
sp-core = { workspace = true }
|
||||
sp-io = { workspace = true }
|
||||
sp-staking = { workspace = true, default-features = false }
|
||||
pezsp-core = { workspace = true }
|
||||
pezsp-io = { workspace = true }
|
||||
pezsp-staking = { workspace = true, default-features = false }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"frame-benchmarking?/std",
|
||||
"frame-support/std",
|
||||
"frame-system/std",
|
||||
"pezframe-benchmarking?/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system/std",
|
||||
"log/std",
|
||||
"pallet-balances/std",
|
||||
"pallet-session/std",
|
||||
"pallet-timestamp/std",
|
||||
"pezpallet-balances/std",
|
||||
"pezpallet-session/std",
|
||||
"pezpallet-timestamp/std",
|
||||
"scale-info/std",
|
||||
"serde/std",
|
||||
"sp-core?/std",
|
||||
"sp-io?/std",
|
||||
"sp-runtime/std",
|
||||
"sp-staking/std",
|
||||
"sp-std/std",
|
||||
"pezsp-core?/std",
|
||||
"pezsp-io?/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-staking/std",
|
||||
"pezsp-std/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"frame-benchmarking/runtime-benchmarks",
|
||||
"frame-support/runtime-benchmarks",
|
||||
"frame-system/runtime-benchmarks",
|
||||
"pallet-balances/runtime-benchmarks",
|
||||
"pallet-session/runtime-benchmarks",
|
||||
"pallet-timestamp/runtime-benchmarks",
|
||||
"sp-core",
|
||||
"sp-io",
|
||||
"sp-io?/runtime-benchmarks",
|
||||
"sp-runtime/runtime-benchmarks",
|
||||
"sp-staking/runtime-benchmarks",
|
||||
"pezframe-benchmarking/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezpallet-balances/runtime-benchmarks",
|
||||
"pezpallet-session/runtime-benchmarks",
|
||||
"pezpallet-timestamp/runtime-benchmarks",
|
||||
"pezsp-core",
|
||||
"pezsp-io",
|
||||
"pezsp-io?/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezsp-staking/runtime-benchmarks",
|
||||
]
|
||||
try-runtime = [
|
||||
"frame-support/try-runtime",
|
||||
"frame-system/try-runtime",
|
||||
"pallet-balances/try-runtime",
|
||||
"pallet-session/try-runtime",
|
||||
"pallet-timestamp/try-runtime",
|
||||
"sp-runtime/try-runtime",
|
||||
"pezframe-support/try-runtime",
|
||||
"pezframe-system/try-runtime",
|
||||
"pezpallet-balances/try-runtime",
|
||||
"pezpallet-session/try-runtime",
|
||||
"pezpallet-timestamp/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
]
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
//! Benchmarking setup for pallet-validator-pool
|
||||
//! Benchmarking setup for pezpallet-validator-pool
|
||||
|
||||
use super::*;
|
||||
use frame_benchmarking::v2::*;
|
||||
use frame_system::{pallet_prelude::BlockNumberFor, RawOrigin};
|
||||
use sp_std::vec;
|
||||
use pezframe_benchmarking::v2::*;
|
||||
use pezframe_system::{pezpallet_prelude::BlockNumberFor, RawOrigin};
|
||||
use pezsp_std::vec;
|
||||
|
||||
#[benchmarks]
|
||||
mod benchmarks {
|
||||
|
||||
@@ -49,17 +49,17 @@
|
||||
//! ### Dependencies
|
||||
//!
|
||||
//! This pallet requires integration with:
|
||||
//! - `pallet-trust` - Trust score provider
|
||||
//! - `pallet-tiki` - Tiki score provider
|
||||
//! - `pallet-referral` - Referral system provider
|
||||
//! - `pallet-perwerde` - Perwerde score provider
|
||||
//! - `pezpallet-trust` - Trust score provider
|
||||
//! - `pezpallet-tiki` - Tiki score provider
|
||||
//! - `pezpallet-referral` - Referral system provider
|
||||
//! - `pezpallet-perwerde` - Perwerde score provider
|
||||
//!
|
||||
//! ### Runtime Integration Example
|
||||
//!
|
||||
//! ```ignore
|
||||
//! impl pallet_validator_pool::Config for Runtime {
|
||||
//! impl pezpallet_validator_pool::Config for Runtime {
|
||||
//! type RuntimeEvent = RuntimeEvent;
|
||||
//! type WeightInfo = pallet_validator_pool::weights::SubstrateWeight<Runtime>;
|
||||
//! type WeightInfo = pezpallet_validator_pool::weights::BizinikiwiWeight<Runtime>;
|
||||
//! type Randomness = RandomnessCollectiveFlip;
|
||||
//! type TrustSource = Trust;
|
||||
//! type TikiSource = Tiki;
|
||||
@@ -87,14 +87,14 @@ mod tests;
|
||||
|
||||
use crate::types::*;
|
||||
use alloc::vec::Vec;
|
||||
use frame_support::{
|
||||
use pezframe_support::{
|
||||
dispatch::DispatchResult,
|
||||
pallet_prelude::*,
|
||||
pezpallet_prelude::*,
|
||||
traits::{Get, Randomness},
|
||||
weights::Weight,
|
||||
};
|
||||
use frame_system::pallet_prelude::*;
|
||||
use sp_runtime::traits::Zero;
|
||||
use pezframe_system::pezpallet_prelude::*;
|
||||
use pezsp_runtime::traits::Zero;
|
||||
|
||||
/// Trust score provider trait
|
||||
pub trait TrustScoreProvider<AccountId> {
|
||||
@@ -116,7 +116,7 @@ pub trait WeightInfo {
|
||||
fn set_pool_parameters() -> Weight;
|
||||
}
|
||||
|
||||
#[frame_support::pallet]
|
||||
#[pezframe_support::pallet]
|
||||
pub mod pallet {
|
||||
use super::*;
|
||||
|
||||
@@ -124,7 +124,7 @@ pub mod pallet {
|
||||
pub struct Pallet<T>(_);
|
||||
|
||||
#[pallet::config]
|
||||
pub trait Config: frame_system::Config<RuntimeEvent: From<Event<Self>>> {
|
||||
pub trait Config: pezframe_system::Config<RuntimeEvent: From<Event<Self>>> {
|
||||
type WeightInfo: crate::WeightInfo;
|
||||
type Randomness: Randomness<Self::Hash, BlockNumberFor<Self>>;
|
||||
|
||||
@@ -543,7 +543,7 @@ pub mod pallet {
|
||||
_ => {},
|
||||
}
|
||||
|
||||
let current_block = frame_system::Pallet::<T>::block_number();
|
||||
let current_block = pezframe_system::Pallet::<T>::block_number();
|
||||
|
||||
// Update mode
|
||||
CurrentOperationMode::<T>::put(new_mode);
|
||||
@@ -690,7 +690,7 @@ pub mod pallet {
|
||||
|
||||
// Update storage
|
||||
CurrentEra::<T>::put(new_era);
|
||||
EraStart::<T>::put(frame_system::Pallet::<T>::block_number());
|
||||
EraStart::<T>::put(pezframe_system::Pallet::<T>::block_number());
|
||||
CurrentValidatorSet::<T>::put(&new_validator_set);
|
||||
|
||||
// Update selection history for selected validators
|
||||
@@ -863,7 +863,7 @@ pub mod pallet {
|
||||
LatestShadowComparison::<T>::put(&comparison);
|
||||
|
||||
// Record era analysis
|
||||
let block_number = frame_system::Pallet::<T>::block_number();
|
||||
let block_number = pezframe_system::Pallet::<T>::block_number();
|
||||
let era_analysis = EraAnalysis {
|
||||
era_index,
|
||||
recorded_at_block: block_number.try_into().unwrap_or(0u32),
|
||||
@@ -1022,7 +1022,7 @@ pub mod pallet {
|
||||
// SESSION MANAGER IMPLEMENTATION
|
||||
// ============================================================================
|
||||
|
||||
impl<T: Config> pallet_session::SessionManager<T::AccountId> for Pallet<T> {
|
||||
impl<T: Config> pezpallet_session::SessionManager<T::AccountId> for Pallet<T> {
|
||||
fn new_session(new_index: u32) -> Option<Vec<T::AccountId>> {
|
||||
// Behavior depends on operation mode
|
||||
match Self::operation_mode() {
|
||||
@@ -1038,7 +1038,7 @@ pub mod pallet {
|
||||
new_index
|
||||
);
|
||||
|
||||
// Return None - let pallet-staking/NPoS provide validators
|
||||
// Return None - let pezpallet-staking/NPoS provide validators
|
||||
None
|
||||
},
|
||||
OperationMode::Active => {
|
||||
@@ -1094,7 +1094,7 @@ pub mod pallet {
|
||||
// ============================================================================
|
||||
|
||||
#[pallet::genesis_config]
|
||||
#[derive(frame_support::DefaultNoBound)]
|
||||
#[derive(pezframe_support::DefaultNoBound)]
|
||||
pub struct GenesisConfig<T: Config> {
|
||||
/// Initial operation mode
|
||||
pub operation_mode: OperationMode,
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
use super::*;
|
||||
use crate::{self as pallet_validator_pool, types::*};
|
||||
use frame_support::{
|
||||
use crate::{self as pezpallet_validator_pool, types::*};
|
||||
use pezframe_support::{
|
||||
construct_runtime, parameter_types,
|
||||
traits::{ConstU32, Everything},
|
||||
};
|
||||
use frame_system as system;
|
||||
use sp_core::H256;
|
||||
use sp_runtime::{
|
||||
use pezframe_system as system;
|
||||
use pezsp_core::H256;
|
||||
use pezsp_runtime::{
|
||||
traits::{BlakeTwo256, IdentityLookup},
|
||||
BuildStorage,
|
||||
};
|
||||
@@ -16,13 +16,13 @@ pub type Balance = u128;
|
||||
pub type BlockNumber = u64;
|
||||
|
||||
// Configure a mock runtime to test the pallet.
|
||||
// Note: We don't include pallet_session here because it requires complex Currency setup.
|
||||
// Note: We don't include pezpallet_session here because it requires complex Currency setup.
|
||||
// We can test SessionManager trait implementation directly.
|
||||
construct_runtime!(
|
||||
pub enum Test {
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
ValidatorPool: pallet_validator_pool,
|
||||
System: pezframe_system,
|
||||
Balances: pezpallet_balances,
|
||||
ValidatorPool: pezpallet_validator_pool,
|
||||
}
|
||||
);
|
||||
|
||||
@@ -44,12 +44,12 @@ impl system::Config for Test {
|
||||
type Hashing = BlakeTwo256;
|
||||
type AccountId = AccountId;
|
||||
type Lookup = IdentityLookup<Self::AccountId>;
|
||||
type Block = frame_system::mocking::MockBlock<Test>;
|
||||
type Block = pezframe_system::mocking::MockBlock<Test>;
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type BlockHashCount = BlockHashCount;
|
||||
type Version = ();
|
||||
type PalletInfo = PalletInfo;
|
||||
type AccountData = pallet_balances::AccountData<Balance>;
|
||||
type AccountData = pezpallet_balances::AccountData<Balance>;
|
||||
type OnNewAccount = ();
|
||||
type OnKilledAccount = ();
|
||||
type SystemWeightInfo = ();
|
||||
@@ -70,7 +70,7 @@ parameter_types! {
|
||||
pub const MaxReserves: u32 = 50;
|
||||
}
|
||||
|
||||
impl pallet_balances::Config for Test {
|
||||
impl pezpallet_balances::Config for Test {
|
||||
type MaxLocks = MaxLocks;
|
||||
type MaxReserves = MaxReserves;
|
||||
type ReserveIdentifier = [u8; 8];
|
||||
@@ -150,28 +150,28 @@ parameter_types! {
|
||||
// Mock WeightInfo implementation
|
||||
pub struct MockWeightInfo;
|
||||
impl crate::WeightInfo for MockWeightInfo {
|
||||
fn join_validator_pool() -> frame_support::weights::Weight {
|
||||
frame_support::weights::Weight::from_parts(10_000, 0)
|
||||
fn join_validator_pool() -> pezframe_support::weights::Weight {
|
||||
pezframe_support::weights::Weight::from_parts(10_000, 0)
|
||||
}
|
||||
|
||||
fn leave_validator_pool() -> frame_support::weights::Weight {
|
||||
frame_support::weights::Weight::from_parts(10_000, 0)
|
||||
fn leave_validator_pool() -> pezframe_support::weights::Weight {
|
||||
pezframe_support::weights::Weight::from_parts(10_000, 0)
|
||||
}
|
||||
|
||||
fn update_performance_metrics() -> frame_support::weights::Weight {
|
||||
frame_support::weights::Weight::from_parts(10_000, 0)
|
||||
fn update_performance_metrics() -> pezframe_support::weights::Weight {
|
||||
pezframe_support::weights::Weight::from_parts(10_000, 0)
|
||||
}
|
||||
|
||||
fn force_new_era() -> frame_support::weights::Weight {
|
||||
frame_support::weights::Weight::from_parts(50_000, 0)
|
||||
fn force_new_era() -> pezframe_support::weights::Weight {
|
||||
pezframe_support::weights::Weight::from_parts(50_000, 0)
|
||||
}
|
||||
|
||||
fn update_category() -> frame_support::weights::Weight {
|
||||
frame_support::weights::Weight::from_parts(10_000, 0)
|
||||
fn update_category() -> pezframe_support::weights::Weight {
|
||||
pezframe_support::weights::Weight::from_parts(10_000, 0)
|
||||
}
|
||||
|
||||
fn set_pool_parameters() -> frame_support::weights::Weight {
|
||||
frame_support::weights::Weight::from_parts(10_000, 0)
|
||||
fn set_pool_parameters() -> pezframe_support::weights::Weight {
|
||||
pezframe_support::weights::Weight::from_parts(10_000, 0)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -183,23 +183,23 @@ impl Config for Test {
|
||||
type TikiSource = TestTikiProvider;
|
||||
type ReferralSource = TestReferralProvider;
|
||||
type PerwerdeSource = TestPerwerdeProvider;
|
||||
type PoolManagerOrigin = frame_system::EnsureRoot<AccountId>;
|
||||
type PoolManagerOrigin = pezframe_system::EnsureRoot<AccountId>;
|
||||
type MaxValidators = MaxValidators;
|
||||
type MaxPoolSize = MaxPoolSize;
|
||||
type MinStakeAmount = MinStakeAmount;
|
||||
}
|
||||
|
||||
// Build genesis storage according to the mock runtime.
|
||||
pub fn new_test_ext() -> sp_io::TestExternalities {
|
||||
pub fn new_test_ext() -> pezsp_io::TestExternalities {
|
||||
new_test_ext_with_mode(OperationMode::Active)
|
||||
}
|
||||
|
||||
// Build genesis storage with specific operation mode
|
||||
pub fn new_test_ext_with_mode(mode: OperationMode) -> sp_io::TestExternalities {
|
||||
pub fn new_test_ext_with_mode(mode: OperationMode) -> pezsp_io::TestExternalities {
|
||||
let mut storage = system::GenesisConfig::<Test>::default().build_storage().unwrap();
|
||||
|
||||
// Initialize balances - Fixed genesis config with correct type
|
||||
pallet_balances::GenesisConfig::<Test> {
|
||||
pezpallet_balances::GenesisConfig::<Test> {
|
||||
balances: vec![
|
||||
(1, 10000),
|
||||
(2, 8000),
|
||||
@@ -218,7 +218,7 @@ pub fn new_test_ext_with_mode(mode: OperationMode) -> sp_io::TestExternalities {
|
||||
.unwrap();
|
||||
|
||||
// Initialize validator pool with genesis config
|
||||
pallet_validator_pool::GenesisConfig::<Test> {
|
||||
pezpallet_validator_pool::GenesisConfig::<Test> {
|
||||
operation_mode: mode,
|
||||
era_length: 100,
|
||||
initial_pool_members: vec![],
|
||||
@@ -226,7 +226,7 @@ pub fn new_test_ext_with_mode(mode: OperationMode) -> sp_io::TestExternalities {
|
||||
.assimilate_storage(&mut storage)
|
||||
.unwrap();
|
||||
|
||||
let mut ext = sp_io::TestExternalities::new(storage);
|
||||
let mut ext = pezsp_io::TestExternalities::new(storage);
|
||||
ext.execute_with(|| {
|
||||
System::set_block_number(1);
|
||||
});
|
||||
@@ -234,7 +234,7 @@ pub fn new_test_ext_with_mode(mode: OperationMode) -> sp_io::TestExternalities {
|
||||
}
|
||||
|
||||
// Build genesis storage for shadow mode testing
|
||||
pub fn new_test_ext_shadow_mode() -> sp_io::TestExternalities {
|
||||
pub fn new_test_ext_shadow_mode() -> pezsp_io::TestExternalities {
|
||||
new_test_ext_with_mode(OperationMode::Shadow)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
use super::*;
|
||||
use crate::{mock::*, types::OperationMode};
|
||||
use frame_support::{assert_noop, assert_ok};
|
||||
use pezframe_support::{assert_noop, assert_ok};
|
||||
// Import SessionManager trait for testing
|
||||
use pallet_session::SessionManager;
|
||||
use pezpallet_session::SessionManager;
|
||||
|
||||
#[test]
|
||||
fn join_validator_pool_works() {
|
||||
@@ -346,7 +346,7 @@ fn set_pool_parameters_works() {
|
||||
new_test_ext().execute_with(|| {
|
||||
assert_noop!(
|
||||
ValidatorPool::set_pool_parameters(RuntimeOrigin::signed(1), 200),
|
||||
sp_runtime::DispatchError::BadOrigin
|
||||
pezsp_runtime::DispatchError::BadOrigin
|
||||
);
|
||||
assert_ok!(ValidatorPool::set_pool_parameters(RuntimeOrigin::root(), 200));
|
||||
assert_eq!(ValidatorPool::era_length(), 200);
|
||||
@@ -531,7 +531,7 @@ fn set_operation_mode_requires_root() {
|
||||
new_test_ext().execute_with(|| {
|
||||
assert_noop!(
|
||||
ValidatorPool::set_operation_mode(RuntimeOrigin::signed(1), OperationMode::Shadow),
|
||||
sp_runtime::DispatchError::BadOrigin
|
||||
pezsp_runtime::DispatchError::BadOrigin
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2,9 +2,9 @@ extern crate alloc;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use frame_support::{traits::ConstU32, BoundedVec};
|
||||
use pezframe_support::{traits::ConstU32, BoundedVec};
|
||||
use scale_info::TypeInfo;
|
||||
use sp_runtime::RuntimeDebug;
|
||||
use pezsp_runtime::RuntimeDebug;
|
||||
|
||||
/// Types of validators in the pool
|
||||
#[derive(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This file is part of Substrate.
|
||||
// This file is part of Bizinikiwi.
|
||||
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
@@ -16,9 +16,9 @@
|
||||
// limitations under the License.
|
||||
|
||||
|
||||
//! Autogenerated weights for `pallet_validator_pool`
|
||||
//! Autogenerated weights for `pezpallet_validator_pool`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-11-30, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `MamostePC`, CPU: `11th Gen Intel(R) Core(TM) i9-11950H @ 2.60GHz`
|
||||
@@ -29,12 +29,12 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --pallet=pallet_validator_pool
|
||||
// --pallet=pezpallet_validator_pool
|
||||
// --extrinsic=*
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --output=/home/mamostehp/Pezkuwi-SDK/pezkuwi/pallets/validator-pool/src/weights.rs
|
||||
// --template=/home/mamostehp/Pezkuwi-SDK/substrate/.maintain/frame-weight-template.hbs
|
||||
// --template=/home/mamostehp/Pezkuwi-SDK/bizinikiwi/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -42,13 +42,13 @@
|
||||
#![allow(missing_docs)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use pezframe_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
use crate::WeightInfo;
|
||||
|
||||
/// Weights for `pallet_validator_pool` using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Weights for `pezpallet_validator_pool` using the Bizinikiwi node and recommended hardware.
|
||||
pub struct BizinikiwiWeight<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> WeightInfo for BizinikiwiWeight<T> {
|
||||
/// Storage: `ValidatorPool::PoolMembers` (r:1 w:1)
|
||||
/// Proof: `ValidatorPool::PoolMembers` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
|
||||
/// Storage: `ValidatorPool::PoolSize` (r:1 w:1)
|
||||
|
||||
Reference in New Issue
Block a user