From 84ea4f042a7dcb4f6408508a3b83ff883cdd3507 Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Wed, 22 Apr 2026 16:33:53 +0300 Subject: [PATCH] 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. --- pezcumulus/teyrchains/pezpallets/welati/src/lib.rs | 4 ++-- pezkuwi/pezpallets/validator-pool/src/benchmarking.rs | 7 ++++++- pezkuwi/pezpallets/validator-pool/src/lib.rs | 7 ++++++- pezkuwi/pezpallets/validator-pool/src/mock.rs | 7 ++++++- pezkuwi/pezpallets/validator-pool/src/tests.rs | 7 ++++++- pezkuwi/pezpallets/validator-pool/src/types.rs | 7 ++++++- 6 files changed, 32 insertions(+), 7 deletions(-) diff --git a/pezcumulus/teyrchains/pezpallets/welati/src/lib.rs b/pezcumulus/teyrchains/pezpallets/welati/src/lib.rs index 6550c320..3fe11348 100644 --- a/pezcumulus/teyrchains/pezpallets/welati/src/lib.rs +++ b/pezcumulus/teyrchains/pezpallets/welati/src/lib.rs @@ -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. diff --git a/pezkuwi/pezpallets/validator-pool/src/benchmarking.rs b/pezkuwi/pezpallets/validator-pool/src/benchmarking.rs index 43a6089e..aa615f03 100644 --- a/pezkuwi/pezpallets/validator-pool/src/benchmarking.rs +++ b/pezkuwi/pezpallets/validator-pool/src/benchmarking.rs @@ -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); -} +} \ No newline at end of file diff --git a/pezkuwi/pezpallets/validator-pool/src/lib.rs b/pezkuwi/pezpallets/validator-pool/src/lib.rs index 5088b0e6..92d057ec 100644 --- a/pezkuwi/pezpallets/validator-pool/src/lib.rs +++ b/pezkuwi/pezpallets/validator-pool/src/lib.rs @@ -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 { ); } } -} +} \ No newline at end of file diff --git a/pezkuwi/pezpallets/validator-pool/src/mock.rs b/pezkuwi/pezpallets/validator-pool/src/mock.rs index 0f79907c..1575ee06 100644 --- a/pezkuwi/pezpallets/validator-pool/src/mock.rs +++ b/pezkuwi/pezpallets/validator-pool/src/mock.rs @@ -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, } -} +} \ No newline at end of file diff --git a/pezkuwi/pezpallets/validator-pool/src/tests.rs b/pezkuwi/pezpallets/validator-pool/src/tests.rs index 9413fd73..c9af9afb 100644 --- a/pezkuwi/pezpallets/validator-pool/src/tests.rs +++ b/pezkuwi/pezpallets/validator-pool/src/tests.rs @@ -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); }); -} +} \ No newline at end of file diff --git a/pezkuwi/pezpallets/validator-pool/src/types.rs b/pezkuwi/pezpallets/validator-pool/src/types.rs index 76999a57..2e65136d 100644 --- a/pezkuwi/pezpallets/validator-pool/src/types.rs +++ b/pezkuwi/pezpallets/validator-pool/src/types.rs @@ -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, -} +} \ No newline at end of file