mirror of
https://gitlab.com/pezkuwichain/pezkuwi-sdk.git
synced 2026-10-20 18:56:23 +00:00
fix(ci): remove unused imports in welati pallet, add license headers to validator-pool
welati/src/lib.rs: Currency and SaturatedConversion were unused (clippy -D warnings). pezkuwi/pezpallets/validator-pool/src/*.rs: 5 files missing Apache-2.0 SPDX headers.
This commit is contained in:
1 parent
d98dfafc49
commit
84ea4f042a
6 files changed
+32
-7
No files matched your search
@@ -197,7 +197,7 @@ impl WeightInfo for () {
|
||||
use pezframe_support::{
|
||||
dispatch::{GetDispatchInfo, PostDispatchInfo},
|
||||
pezpallet_prelude::*,
|
||||
traits::{Currency, EnsureOrigin, Get, Randomness, ReservableCurrency},
|
||||
traits::{EnsureOrigin, Get, Randomness, ReservableCurrency},
|
||||
weights::Weight,
|
||||
};
|
||||
use pezframe_system::pezpallet_prelude::*;
|
||||
@@ -206,7 +206,7 @@ use pezpallet_identity_kyc::types::KycLevel;
|
||||
use pezpallet_identity_kyc::types::KycStatus;
|
||||
use pezpallet_tiki::{Tiki, TikiScoreProvider};
|
||||
use pezpallet_trust::TrustScoreProvider;
|
||||
use pezsp_runtime::{traits::Dispatchable, SaturatedConversion};
|
||||
use pezsp_runtime::traits::Dispatchable;
|
||||
use pezsp_std::{boxed::Box, vec, vec::Vec};
|
||||
|
||||
/// Interface for getting citizenship information from other pallets.
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
// This file is part of PezkuwiChain.
|
||||
|
||||
// Copyright (C) Dijital Kurdistan Tech Institute
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
//! Benchmarking setup for pezpallet-validator-pool
|
||||
|
||||
use super::*;
|
||||
@@ -139,4 +144,4 @@ mod benchmarks {
|
||||
}
|
||||
|
||||
impl_benchmark_test_suite!(Pezpallet, crate::mock::new_test_ext(), crate::mock::Test);
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,8 @@
|
||||
// This file is part of PezkuwiChain.
|
||||
|
||||
// Copyright (C) Dijital Kurdistan Tech Institute
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
//! # Validator Pool Pezpallet
|
||||
@@ -1159,4 +1164,4 @@ pub mod pezpallet {
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,8 @@
|
||||
// This file is part of PezkuwiChain.
|
||||
|
||||
// Copyright (C) Dijital Kurdistan Tech Institute
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
use super::*;
|
||||
use crate::{self as pezpallet_validator_pool, types::*};
|
||||
use pezframe_support::{
|
||||
@@ -271,4 +276,4 @@ pub fn merit_validator_category() -> ValidatorPoolCategory {
|
||||
special_tikis: vec![1u8].try_into().unwrap(), // Mock tiki type
|
||||
community_threshold: 500,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,8 @@
|
||||
// This file is part of PezkuwiChain.
|
||||
|
||||
// Copyright (C) Dijital Kurdistan Tech Institute
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
use super::*;
|
||||
use crate::{mock::*, types::OperationMode};
|
||||
use pezframe_support::{assert_noop, assert_ok};
|
||||
@@ -798,4 +803,4 @@ fn shadow_mode_tracks_activation_block() {
|
||||
assert!(since.is_some());
|
||||
assert_eq!(since.unwrap(), 100);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,8 @@
|
||||
// This file is part of PezkuwiChain.
|
||||
|
||||
// Copyright (C) Dijital Kurdistan Tech Institute
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
@@ -302,4 +307,4 @@ pub struct CategoryDistribution {
|
||||
pub target_parliamentary: u8,
|
||||
/// Target merit count
|
||||
pub target_merit: u8,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user