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:
Kurdistan Tech Ministry committed 2026-04-22 16:33:53 +03:00
1 parent d98dfafc49
commit 84ea4f042a
6 files changed
+32 -7

No files matched your search

@@ -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);
}
}
+6 -1
View File
@@ -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,
}
}