From 99be20ba05bc13687be7af4de3b026b73d4e256e Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Wed, 22 Apr 2026 04:52:25 +0300 Subject: [PATCH] fix(ci): fix check-toml-format, check-licenses-headers, check-zepter - taplo.toml: add .cargo/** to exclude list (prevents scanning cached registry files) - deny.toml: reformat with taplo (tab indentation, proper spacing) - pezpallets: add Apache-2.0 SPDX license header to 51 files missing headers (referral, trust, perwerde, pez-treasury, pez-rewards, welati, token-wrapper, messaging, staking-score, presale, identity-kyc) - ci: check-zepter: prepend $HOME/.cargo/bin to PATH after cargo install so newly installed 1.82.1 takes precedence over system 1.78.2 - identity-kyc: fix clippy::needless_borrows_for_generic_args at lib.rs:326 --- .config/taplo.toml | 1 + .gitlab-ci.yml | 1 + deny.toml | 112 +++++++++--------- .../identity-kyc/src/benchmarking.rs | 5 + .../pezpallets/identity-kyc/src/lib.rs | 7 +- .../pezpallets/identity-kyc/src/mock.rs | 5 + .../pezpallets/identity-kyc/src/tests.rs | 5 + .../pezpallets/messaging/src/benchmarking.rs | 5 + .../pezpallets/messaging/src/mock.rs | 5 + .../pezpallets/messaging/src/tests.rs | 5 + .../pezpallets/perwerde/src/benchmarking.rs | 5 + .../teyrchains/pezpallets/perwerde/src/lib.rs | 5 + .../pezpallets/perwerde/src/mock.rs | 5 + .../pezpallets/perwerde/src/tests.rs | 5 + .../pez-rewards/src/benchmarking.rs | 5 + .../pezpallets/pez-rewards/src/lib.rs | 5 + .../pezpallets/pez-rewards/src/mock.rs | 5 + .../pezpallets/pez-rewards/src/tests.rs | 5 + .../pez-treasury/src/benchmarking.rs | 5 + .../pezpallets/pez-treasury/src/lib.rs | 5 + .../pezpallets/pez-treasury/src/migrations.rs | 5 + .../pezpallets/pez-treasury/src/mock.rs | 5 + .../pezpallets/pez-treasury/src/tests.rs | 5 + .../pezpallets/pez-treasury/src/weights.rs | 5 + .../pezpallets/presale/src/benchmarking.rs | 5 + .../teyrchains/pezpallets/presale/src/mock.rs | 5 + .../pezpallets/referral/src/benchmarking.rs | 5 + .../teyrchains/pezpallets/referral/src/lib.rs | 5 + .../pezpallets/referral/src/mock.rs | 5 + .../pezpallets/referral/src/tests.rs | 5 + .../pezpallets/referral/src/types.rs | 5 + .../staking-score/src/benchmarking.rs | 5 + .../pezpallets/staking-score/src/mock.rs | 5 + .../pezpallets/staking-score/src/tests.rs | 5 + .../pezpallets/tiki/src/benchmarking.rs | 5 + .../teyrchains/pezpallets/tiki/src/ensure.rs | 5 + .../teyrchains/pezpallets/tiki/src/lib.rs | 5 + .../pezpallets/tiki/src/migrations.rs | 5 + .../teyrchains/pezpallets/tiki/src/mock.rs | 5 + .../teyrchains/pezpallets/tiki/src/tests.rs | 5 + .../token-wrapper/src/benchmarking.rs | 5 + .../pezpallets/token-wrapper/src/lib.rs | 5 + .../pezpallets/token-wrapper/src/mock.rs | 5 + .../pezpallets/token-wrapper/src/tests.rs | 5 + .../pezpallets/trust/src/benchmarking.rs | 5 + .../teyrchains/pezpallets/trust/src/lib.rs | 5 + .../teyrchains/pezpallets/trust/src/mock.rs | 5 + .../teyrchains/pezpallets/trust/src/tests.rs | 5 + .../pezpallets/welati/src/benchmarking.rs | 5 + .../teyrchains/pezpallets/welati/src/lib.rs | 5 + .../pezpallets/welati/src/migrations.rs | 5 + .../teyrchains/pezpallets/welati/src/mock.rs | 5 + .../teyrchains/pezpallets/welati/src/tests.rs | 5 + .../teyrchains/pezpallets/welati/src/types.rs | 5 + 54 files changed, 314 insertions(+), 57 deletions(-) diff --git a/.config/taplo.toml b/.config/taplo.toml index c71dd026..3070d61a 100644 --- a/.config/taplo.toml +++ b/.config/taplo.toml @@ -7,6 +7,7 @@ exclude = [ "**/zombienet/**", "**/zombienet_tests/**", "target/**", + ".cargo/**", ] # global rules diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cd0f8583..f0c5ac1b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -103,6 +103,7 @@ check-zepter: script: - cargo metadata --format-version=1 --locked > /dev/null - cargo install zepter@1.82.1 --force + - export PATH="$HOME/.cargo/bin:$PATH" - zepter --version - zepter run check diff --git a/deny.toml b/deny.toml index 7a17aab7..ef7c109e 100644 --- a/deny.toml +++ b/deny.toml @@ -3,9 +3,9 @@ [graph] targets = [ - { triple = "wasm32-unknown-unknown" }, - { triple = "x86_64-unknown-linux-gnu" }, - { triple = "x86_64-unknown-linux-musl" }, + { triple = "wasm32-unknown-unknown" }, + { triple = "x86_64-unknown-linux-gnu" }, + { triple = "x86_64-unknown-linux-musl" }, ] # all-features prevents krates 0.20+ from panicking with "unable to locate std" # on workspace crates that have a std feature but don't enable it by default. @@ -20,36 +20,36 @@ yanked = "warn" # Track via quarterly review instead of blocking CI. unmaintained = "none" ignore = [ - # ── wasmtime ────────────────────────────────────────────────────────────── - # Fix requires wasmtime 42.0.2+ → cranelift-assembler-x64 0.129+ → rustc 1.91.0+ - # Toolchain pinned to 1.88.0. Unblock when toolchain upgrades. - # We do NOT use Winch backend, Component Model, or 64-bit tables; - # most CVEs below only affect those code paths. - "RUSTSEC-2026-0006", # wasmtime: segfault with f64.copysign on x86-64 - "RUSTSEC-2026-0020", # wasmtime: WASI guest-controlled resource exhaustion - "RUSTSEC-2026-0021", # wasmtime: panic in wasi:http/types.fields - "RUSTSEC-2026-0085", # wasmtime: panic lifting flags component value - "RUSTSEC-2026-0086", # wasmtime: host data leakage 64-bit tables + Winch - "RUSTSEC-2026-0087", # wasmtime: segfault f64x2.splat on Cranelift x86-64 - "RUSTSEC-2026-0088", # wasmtime: data leakage pooling allocator instances - "RUSTSEC-2026-0089", # wasmtime: host panic table.fill with Winch - "RUSTSEC-2026-0091", # wasmtime: OOB write transcoding component model strings - "RUSTSEC-2026-0092", # wasmtime: panic transcoding misaligned UTF-16 strings - "RUSTSEC-2026-0093", # wasmtime: heap OOB read UTF-16 to latin1+utf16 - "RUSTSEC-2026-0094", # wasmtime: masked return value table.grow Winch - "RUSTSEC-2026-0095", # wasmtime: Winch sandbox-escaping memory access - "RUSTSEC-2026-0096", # wasmtime: miscompiled guest heap aarch64 Cranelift + # ── wasmtime ────────────────────────────────────────────────────────────── + # Fix requires wasmtime 42.0.2+ → cranelift-assembler-x64 0.129+ → rustc 1.91.0+ + # Toolchain pinned to 1.88.0. Unblock when toolchain upgrades. + # We do NOT use Winch backend, Component Model, or 64-bit tables; + # most CVEs below only affect those code paths. + "RUSTSEC-2026-0006", # wasmtime: segfault with f64.copysign on x86-64 + "RUSTSEC-2026-0020", # wasmtime: WASI guest-controlled resource exhaustion + "RUSTSEC-2026-0021", # wasmtime: panic in wasi:http/types.fields + "RUSTSEC-2026-0085", # wasmtime: panic lifting flags component value + "RUSTSEC-2026-0086", # wasmtime: host data leakage 64-bit tables + Winch + "RUSTSEC-2026-0087", # wasmtime: segfault f64x2.splat on Cranelift x86-64 + "RUSTSEC-2026-0088", # wasmtime: data leakage pooling allocator instances + "RUSTSEC-2026-0089", # wasmtime: host panic table.fill with Winch + "RUSTSEC-2026-0091", # wasmtime: OOB write transcoding component model strings + "RUSTSEC-2026-0092", # wasmtime: panic transcoding misaligned UTF-16 strings + "RUSTSEC-2026-0093", # wasmtime: heap OOB read UTF-16 to latin1+utf16 + "RUSTSEC-2026-0094", # wasmtime: masked return value table.grow Winch + "RUSTSEC-2026-0095", # wasmtime: Winch sandbox-escaping memory access + "RUSTSEC-2026-0096", # wasmtime: miscompiled guest heap aarch64 Cranelift - # ── rand 0.9.2 ──────────────────────────────────────────────────────────── - # Unsound only when a custom Rust logger calls rand::rng() during init. - # No custom logger in our stack. No fixed version available yet. - "RUSTSEC-2026-0097", # rand: unsound with custom logger using rand::rng() + # ── rand 0.9.2 ──────────────────────────────────────────────────────────── + # Unsound only when a custom Rust logger calls rand::rng() during init. + # No custom logger in our stack. No fixed version available yet. + "RUSTSEC-2026-0097", # rand: unsound with custom logger using rand::rng() - # ── webpki ──────────────────────────────────────────────────────────────── - # Name-constraints validation bugs in transitive webpki dep. - # We do not rely on certificate name constraints in our P2P/RPC stack. - "RUSTSEC-2026-0098", # webpki: URI name constraints incorrectly accepted - "RUSTSEC-2026-0099", # webpki: wildcard name constraints incorrectly accepted + # ── webpki ──────────────────────────────────────────────────────────────── + # Name-constraints validation bugs in transitive webpki dep. + # We do not rely on certificate name constraints in our P2P/RPC stack. + "RUSTSEC-2026-0098", # webpki: URI name constraints incorrectly accepted + "RUSTSEC-2026-0099", # webpki: wildcard name constraints incorrectly accepted ] # License compliance @@ -58,31 +58,31 @@ ignore = [ [licenses] confidence-threshold = 0.8 allow = [ - "Apache-2.0 WITH LLVM-exception", - "Apache-2.0", - "BSD-2-Clause", - "BSD-3-Clause", - "BSL-1.0", - "CC0-1.0", - "CDLA-Permissive-2.0", - "GPL-3.0-only WITH Classpath-exception-2.0", - "GPL-3.0-only", - "GPL-3.0-or-later WITH Classpath-exception-2.0", - "GPL-3.0-or-later", - "ISC", - "MIT", - "MIT-0", - "MPL-2.0", - "NCSA", - "OpenSSL", - "Unicode-3.0", - "Unicode-DFS-2016", - "Unlicense", - "Zlib", + "Apache-2.0 WITH LLVM-exception", + "Apache-2.0", + "BSD-2-Clause", + "BSD-3-Clause", + "BSL-1.0", + "CC0-1.0", + "CDLA-Permissive-2.0", + "GPL-3.0-only WITH Classpath-exception-2.0", + "GPL-3.0-only", + "GPL-3.0-or-later WITH Classpath-exception-2.0", + "GPL-3.0-or-later", + "ISC", + "MIT", + "MIT-0", + "MPL-2.0", + "NCSA", + "OpenSSL", + "Unicode-3.0", + "Unicode-DFS-2016", + "Unlicense", + "Zlib", ] exceptions = [ - # ring uses a custom ISC-style license - { allow = ["OpenSSL"], name = "ring" }, + # ring uses a custom ISC-style license + { allow = ["OpenSSL"], name = "ring" }, ] [licenses.private] @@ -103,6 +103,6 @@ unknown-registry = "warn" unknown-git = "warn" allow-registry = ["https://github.com/rust-lang/crates.io-index"] allow-git = [ - # Our serde fork with wasm32v1-none target fix (pending upstream merge) - "https://github.com/pezkuwichain/serde.git", + # Our serde fork with wasm32v1-none target fix (pending upstream merge) + "https://github.com/pezkuwichain/serde.git", ] diff --git a/pezcumulus/teyrchains/pezpallets/identity-kyc/src/benchmarking.rs b/pezcumulus/teyrchains/pezpallets/identity-kyc/src/benchmarking.rs index bf2b7d7c..0a45f158 100644 --- a/pezcumulus/teyrchains/pezpallets/identity-kyc/src/benchmarking.rs +++ b/pezcumulus/teyrchains/pezpallets/identity-kyc/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-identity-kyc use super::*; diff --git a/pezcumulus/teyrchains/pezpallets/identity-kyc/src/lib.rs b/pezcumulus/teyrchains/pezpallets/identity-kyc/src/lib.rs index 3864d42b..3b5f6fdb 100644 --- a/pezcumulus/teyrchains/pezpallets/identity-kyc/src/lib.rs +++ b/pezcumulus/teyrchains/pezpallets/identity-kyc/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)] //! # Identity & KYC Pezpallet - TRUSTLESS MODEL @@ -323,7 +328,7 @@ pub mod pezpallet { // Identity hash must be unique - no other account can use the same hash ensure!( - !IdentityHashToAccount::::contains_key(&identity_hash), + !IdentityHashToAccount::::contains_key(identity_hash), Error::::IdentityHashAlreadyUsed ); diff --git a/pezcumulus/teyrchains/pezpallets/identity-kyc/src/mock.rs b/pezcumulus/teyrchains/pezpallets/identity-kyc/src/mock.rs index 17a15ac0..eda4f841 100644 --- a/pezcumulus/teyrchains/pezpallets/identity-kyc/src/mock.rs +++ b/pezcumulus/teyrchains/pezpallets/identity-kyc/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 crate as pezpallet_identity_kyc; use pezframe_support::{construct_runtime, derive_impl, parameter_types, traits::ConstU128}; use pezframe_system::EnsureRoot; diff --git a/pezcumulus/teyrchains/pezpallets/identity-kyc/src/tests.rs b/pezcumulus/teyrchains/pezpallets/identity-kyc/src/tests.rs index 2301c11d..3d4fa380 100644 --- a/pezcumulus/teyrchains/pezpallets/identity-kyc/src/tests.rs +++ b/pezcumulus/teyrchains/pezpallets/identity-kyc/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 crate::{mock::*, types::KycLevel, Error, Event}; use pezframe_support::{assert_noop, assert_ok, traits::Currency}; use pezsp_core::H256; diff --git a/pezcumulus/teyrchains/pezpallets/messaging/src/benchmarking.rs b/pezcumulus/teyrchains/pezpallets/messaging/src/benchmarking.rs index 14c4bd82..a9ff5bac 100644 --- a/pezcumulus/teyrchains/pezpallets/messaging/src/benchmarking.rs +++ b/pezcumulus/teyrchains/pezpallets/messaging/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-messaging //! //! Run benchmarks with: diff --git a/pezcumulus/teyrchains/pezpallets/messaging/src/mock.rs b/pezcumulus/teyrchains/pezpallets/messaging/src/mock.rs index 686a4e8c..8186ea9c 100644 --- a/pezcumulus/teyrchains/pezpallets/messaging/src/mock.rs +++ b/pezcumulus/teyrchains/pezpallets/messaging/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 crate as pezpallet_messaging; use pezframe_support::{ derive_impl, diff --git a/pezcumulus/teyrchains/pezpallets/messaging/src/tests.rs b/pezcumulus/teyrchains/pezpallets/messaging/src/tests.rs index e3bba1c4..225d0183 100644 --- a/pezcumulus/teyrchains/pezpallets/messaging/src/tests.rs +++ b/pezcumulus/teyrchains/pezpallets/messaging/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 crate::{mock::*, Error, Event, *}; use pezframe_support::{assert_noop, assert_ok}; diff --git a/pezcumulus/teyrchains/pezpallets/perwerde/src/benchmarking.rs b/pezcumulus/teyrchains/pezpallets/perwerde/src/benchmarking.rs index 16f570a8..754b2673 100644 --- a/pezcumulus/teyrchains/pezpallets/perwerde/src/benchmarking.rs +++ b/pezcumulus/teyrchains/pezpallets/perwerde/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-perwerde use super::{Pezpallet as Perwerde, *}; diff --git a/pezcumulus/teyrchains/pezpallets/perwerde/src/lib.rs b/pezcumulus/teyrchains/pezpallets/perwerde/src/lib.rs index 5617460c..ba525877 100644 --- a/pezcumulus/teyrchains/pezpallets/perwerde/src/lib.rs +++ b/pezcumulus/teyrchains/pezpallets/perwerde/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)] //! # Perwerde (Education) Pezpallet diff --git a/pezcumulus/teyrchains/pezpallets/perwerde/src/mock.rs b/pezcumulus/teyrchains/pezpallets/perwerde/src/mock.rs index 3584fffd..d2218641 100644 --- a/pezcumulus/teyrchains/pezpallets/perwerde/src/mock.rs +++ b/pezcumulus/teyrchains/pezpallets/perwerde/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 crate as pezpallet_perwerde; use pezframe_support::{ construct_runtime, parameter_types, diff --git a/pezcumulus/teyrchains/pezpallets/perwerde/src/tests.rs b/pezcumulus/teyrchains/pezpallets/perwerde/src/tests.rs index 19fb2550..1065276b 100644 --- a/pezcumulus/teyrchains/pezpallets/perwerde/src/tests.rs +++ b/pezcumulus/teyrchains/pezpallets/perwerde/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 crate::{ mock::{new_test_ext, Perwerde as PerwerdePallet, RuntimeOrigin, System, Test}, Event, diff --git a/pezcumulus/teyrchains/pezpallets/pez-rewards/src/benchmarking.rs b/pezcumulus/teyrchains/pezpallets/pez-rewards/src/benchmarking.rs index 8a7a89a7..b7b226e7 100644 --- a/pezcumulus/teyrchains/pezpallets/pez-rewards/src/benchmarking.rs +++ b/pezcumulus/teyrchains/pezpallets/pez-rewards/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 + // pezkuwi/pallets/pez-rewards/src/benchmarking.rs use super::{BalanceOf, Call, Config}; diff --git a/pezcumulus/teyrchains/pezpallets/pez-rewards/src/lib.rs b/pezcumulus/teyrchains/pezpallets/pez-rewards/src/lib.rs index 5388b412..7a0c8e9d 100644 --- a/pezcumulus/teyrchains/pezpallets/pez-rewards/src/lib.rs +++ b/pezcumulus/teyrchains/pezpallets/pez-rewards/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)] //! # PEZ Rewards Pezpallet diff --git a/pezcumulus/teyrchains/pezpallets/pez-rewards/src/mock.rs b/pezcumulus/teyrchains/pezpallets/pez-rewards/src/mock.rs index be172056..9da326cc 100644 --- a/pezcumulus/teyrchains/pezpallets/pez-rewards/src/mock.rs +++ b/pezcumulus/teyrchains/pezpallets/pez-rewards/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 + // pezkuwi/pallets/pez-rewards/src/mock.rs (v1.0 - dev_accounts FIXED) use crate as pezpallet_pez_rewards; diff --git a/pezcumulus/teyrchains/pezpallets/pez-rewards/src/tests.rs b/pezcumulus/teyrchains/pezpallets/pez-rewards/src/tests.rs index cb3b6371..55a1a8ee 100644 --- a/pezcumulus/teyrchains/pezpallets/pez-rewards/src/tests.rs +++ b/pezcumulus/teyrchains/pezpallets/pez-rewards/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 + // tests.rs (v11 - Final Bug Fixes) use crate::{mock::*, EpochState, Error, Event}; diff --git a/pezcumulus/teyrchains/pezpallets/pez-treasury/src/benchmarking.rs b/pezcumulus/teyrchains/pezpallets/pez-treasury/src/benchmarking.rs index 37aa39b0..a0aaf3c2 100644 --- a/pezcumulus/teyrchains/pezpallets/pez-treasury/src/benchmarking.rs +++ b/pezcumulus/teyrchains/pezpallets/pez-treasury/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 + // pezkuwi/pallets/pez-treasury/src/benchmarking.rs use super::*; diff --git a/pezcumulus/teyrchains/pezpallets/pez-treasury/src/lib.rs b/pezcumulus/teyrchains/pezpallets/pez-treasury/src/lib.rs index 3a040551..b490c5c3 100644 --- a/pezcumulus/teyrchains/pezpallets/pez-treasury/src/lib.rs +++ b/pezcumulus/teyrchains/pezpallets/pez-treasury/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)] //! # PEZ Treasury Pezpallet diff --git a/pezcumulus/teyrchains/pezpallets/pez-treasury/src/migrations.rs b/pezcumulus/teyrchains/pezpallets/pez-treasury/src/migrations.rs index 8bb82ab2..a4ae35c9 100644 --- a/pezcumulus/teyrchains/pezpallets/pez-treasury/src/migrations.rs +++ b/pezcumulus/teyrchains/pezpallets/pez-treasury/src/migrations.rs @@ -1,3 +1,8 @@ +// This file is part of PezkuwiChain. + +// Copyright (C) Dijital Kurdistan Tech Institute +// SPDX-License-Identifier: Apache-2.0 + //! Storage migrations for pezpallet-pez-treasury use super::*; diff --git a/pezcumulus/teyrchains/pezpallets/pez-treasury/src/mock.rs b/pezcumulus/teyrchains/pezpallets/pez-treasury/src/mock.rs index 17853268..bdaef749 100644 --- a/pezcumulus/teyrchains/pezpallets/pez-treasury/src/mock.rs +++ b/pezcumulus/teyrchains/pezpallets/pez-treasury/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 + // pezkuwi/pallets/pez-treasury/src/mock.rs // VERSION 3: AccountId tipi H256 yapıldı (u64 yerine) diff --git a/pezcumulus/teyrchains/pezpallets/pez-treasury/src/tests.rs b/pezcumulus/teyrchains/pezpallets/pez-treasury/src/tests.rs index 99e58388..f40ac27f 100644 --- a/pezcumulus/teyrchains/pezpallets/pez-treasury/src/tests.rs +++ b/pezcumulus/teyrchains/pezpallets/pez-treasury/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 + // pezkuwi/pallets/pez-treasury/src/tests.rs use crate::{mock::*, Error, Event}; diff --git a/pezcumulus/teyrchains/pezpallets/pez-treasury/src/weights.rs b/pezcumulus/teyrchains/pezpallets/pez-treasury/src/weights.rs index 2685a271..5883060a 100644 --- a/pezcumulus/teyrchains/pezpallets/pez-treasury/src/weights.rs +++ b/pezcumulus/teyrchains/pezpallets/pez-treasury/src/weights.rs @@ -1,3 +1,8 @@ +// This file is part of PezkuwiChain. + +// Copyright (C) Dijital Kurdistan Tech Institute +// SPDX-License-Identifier: Apache-2.0 + //! Autogenerated weights for `pezpallet_pez_treasury` //! diff --git a/pezcumulus/teyrchains/pezpallets/presale/src/benchmarking.rs b/pezcumulus/teyrchains/pezpallets/presale/src/benchmarking.rs index 46ca5821..470b6d8f 100644 --- a/pezcumulus/teyrchains/pezpallets/presale/src/benchmarking.rs +++ b/pezcumulus/teyrchains/pezpallets/presale/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-presale //! //! Complete benchmarks for all presale operations including: diff --git a/pezcumulus/teyrchains/pezpallets/presale/src/mock.rs b/pezcumulus/teyrchains/pezpallets/presale/src/mock.rs index 07636571..c6928192 100644 --- a/pezcumulus/teyrchains/pezpallets/presale/src/mock.rs +++ b/pezcumulus/teyrchains/pezpallets/presale/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 crate as pezpallet_presale; use pezframe_support::{ parameter_types, diff --git a/pezcumulus/teyrchains/pezpallets/referral/src/benchmarking.rs b/pezcumulus/teyrchains/pezpallets/referral/src/benchmarking.rs index 1e81c798..a1b3c748 100644 --- a/pezcumulus/teyrchains/pezpallets/referral/src/benchmarking.rs +++ b/pezcumulus/teyrchains/pezpallets/referral/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-referral use super::*; diff --git a/pezcumulus/teyrchains/pezpallets/referral/src/lib.rs b/pezcumulus/teyrchains/pezpallets/referral/src/lib.rs index 9574373a..282d4e35 100644 --- a/pezcumulus/teyrchains/pezpallets/referral/src/lib.rs +++ b/pezcumulus/teyrchains/pezpallets/referral/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)] //! # Referral Pezpallet diff --git a/pezcumulus/teyrchains/pezpallets/referral/src/mock.rs b/pezcumulus/teyrchains/pezpallets/referral/src/mock.rs index 1e39e5f7..ea7f3457 100644 --- a/pezcumulus/teyrchains/pezpallets/referral/src/mock.rs +++ b/pezcumulus/teyrchains/pezpallets/referral/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 + // pezkuwi/pallets/referral/src/mock.rs (Updated for new trustless model) use crate as pezpallet_referral; diff --git a/pezcumulus/teyrchains/pezpallets/referral/src/tests.rs b/pezcumulus/teyrchains/pezpallets/referral/src/tests.rs index 0cf21a90..7c4eb631 100644 --- a/pezcumulus/teyrchains/pezpallets/referral/src/tests.rs +++ b/pezcumulus/teyrchains/pezpallets/referral/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 crate::{ mock::*, Error, Event, PendingReferrals, ReferralCount, Referrals, ReferrerStatsStorage, }; diff --git a/pezcumulus/teyrchains/pezpallets/referral/src/types.rs b/pezcumulus/teyrchains/pezpallets/referral/src/types.rs index 4326a85d..907fbfea 100644 --- a/pezcumulus/teyrchains/pezpallets/referral/src/types.rs +++ b/pezcumulus/teyrchains/pezpallets/referral/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 + use codec::{Decode, Encode, MaxEncodedLen}; use pezframe_support::pezpallet_prelude::RuntimeDebug; use scale_info::TypeInfo; diff --git a/pezcumulus/teyrchains/pezpallets/staking-score/src/benchmarking.rs b/pezcumulus/teyrchains/pezpallets/staking-score/src/benchmarking.rs index 209f0eb7..a845d0fa 100644 --- a/pezcumulus/teyrchains/pezpallets/staking-score/src/benchmarking.rs +++ b/pezcumulus/teyrchains/pezpallets/staking-score/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-staking-score use crate::{ diff --git a/pezcumulus/teyrchains/pezpallets/staking-score/src/mock.rs b/pezcumulus/teyrchains/pezpallets/staking-score/src/mock.rs index e82d5379..3f4faa7a 100644 --- a/pezcumulus/teyrchains/pezpallets/staking-score/src/mock.rs +++ b/pezcumulus/teyrchains/pezpallets/staking-score/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 + //! Simplified mock runtime for pezpallet-staking-score. //! No real staking pallet - all data comes via CachedStakingDetails. diff --git a/pezcumulus/teyrchains/pezpallets/staking-score/src/tests.rs b/pezcumulus/teyrchains/pezpallets/staking-score/src/tests.rs index 83a755bb..e67e4331 100644 --- a/pezcumulus/teyrchains/pezpallets/staking-score/src/tests.rs +++ b/pezcumulus/teyrchains/pezpallets/staking-score/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 + //! Tests for pezpallet-staking-score. //! All tests use receive_staking_details to populate CachedStakingDetails, //! mirroring the real People Chain architecture. diff --git a/pezcumulus/teyrchains/pezpallets/tiki/src/benchmarking.rs b/pezcumulus/teyrchains/pezpallets/tiki/src/benchmarking.rs index fd0cf6cb..79226561 100644 --- a/pezcumulus/teyrchains/pezpallets/tiki/src/benchmarking.rs +++ b/pezcumulus/teyrchains/pezpallets/tiki/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-tiki use super::*; diff --git a/pezcumulus/teyrchains/pezpallets/tiki/src/ensure.rs b/pezcumulus/teyrchains/pezpallets/tiki/src/ensure.rs index 286ed62a..1aa1be27 100644 --- a/pezcumulus/teyrchains/pezpallets/tiki/src/ensure.rs +++ b/pezcumulus/teyrchains/pezpallets/tiki/src/ensure.rs @@ -1,3 +1,8 @@ +// This file is part of PezkuwiChain. + +// Copyright (C) Dijital Kurdistan Tech Institute +// SPDX-License-Identifier: Apache-2.0 + //! Custom Origin verification mechanisms based on Tiki ownership. //! //! This module provides `EnsureOrigin` implementations that verify diff --git a/pezcumulus/teyrchains/pezpallets/tiki/src/lib.rs b/pezcumulus/teyrchains/pezpallets/tiki/src/lib.rs index c72921e5..2a929577 100644 --- a/pezcumulus/teyrchains/pezpallets/tiki/src/lib.rs +++ b/pezcumulus/teyrchains/pezpallets/tiki/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)] //! # Tiki (Role) Pezpallet diff --git a/pezcumulus/teyrchains/pezpallets/tiki/src/migrations.rs b/pezcumulus/teyrchains/pezpallets/tiki/src/migrations.rs index 9b83e012..e818f564 100644 --- a/pezcumulus/teyrchains/pezpallets/tiki/src/migrations.rs +++ b/pezcumulus/teyrchains/pezpallets/tiki/src/migrations.rs @@ -1,3 +1,8 @@ +// This file is part of PezkuwiChain. + +// Copyright (C) Dijital Kurdistan Tech Institute +// SPDX-License-Identifier: Apache-2.0 + //! Storage migrations for pezpallet-tiki use super::*; diff --git a/pezcumulus/teyrchains/pezpallets/tiki/src/mock.rs b/pezcumulus/teyrchains/pezpallets/tiki/src/mock.rs index fc37c13d..1c33abd0 100644 --- a/pezcumulus/teyrchains/pezpallets/tiki/src/mock.rs +++ b/pezcumulus/teyrchains/pezpallets/tiki/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 crate as pezpallet_tiki; use crate::Tiki as TikiEnum; use pezframe_support::{ diff --git a/pezcumulus/teyrchains/pezpallets/tiki/src/tests.rs b/pezcumulus/teyrchains/pezpallets/tiki/src/tests.rs index ec99cf18..fe099a98 100644 --- a/pezcumulus/teyrchains/pezpallets/tiki/src/tests.rs +++ b/pezcumulus/teyrchains/pezpallets/tiki/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 crate::{ mock::*, Error, Event, RoleAssignmentType, Tiki as TikiEnum, TikiProvider, TikiScoreProvider, }; diff --git a/pezcumulus/teyrchains/pezpallets/token-wrapper/src/benchmarking.rs b/pezcumulus/teyrchains/pezpallets/token-wrapper/src/benchmarking.rs index 1f9c2989..0dbcf4d0 100644 --- a/pezcumulus/teyrchains/pezpallets/token-wrapper/src/benchmarking.rs +++ b/pezcumulus/teyrchains/pezpallets/token-wrapper/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-token-wrapper use super::*; diff --git a/pezcumulus/teyrchains/pezpallets/token-wrapper/src/lib.rs b/pezcumulus/teyrchains/pezpallets/token-wrapper/src/lib.rs index 9712bf84..690755ac 100644 --- a/pezcumulus/teyrchains/pezpallets/token-wrapper/src/lib.rs +++ b/pezcumulus/teyrchains/pezpallets/token-wrapper/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)] //! # Token Wrapper Pezpallet diff --git a/pezcumulus/teyrchains/pezpallets/token-wrapper/src/mock.rs b/pezcumulus/teyrchains/pezpallets/token-wrapper/src/mock.rs index 992bf541..75e17678 100644 --- a/pezcumulus/teyrchains/pezpallets/token-wrapper/src/mock.rs +++ b/pezcumulus/teyrchains/pezpallets/token-wrapper/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 crate as pezpallet_token_wrapper; use pezframe_support::{ construct_runtime, parameter_types, diff --git a/pezcumulus/teyrchains/pezpallets/token-wrapper/src/tests.rs b/pezcumulus/teyrchains/pezpallets/token-wrapper/src/tests.rs index 10389705..7ed89074 100644 --- a/pezcumulus/teyrchains/pezpallets/token-wrapper/src/tests.rs +++ b/pezcumulus/teyrchains/pezpallets/token-wrapper/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::*; use pezframe_support::{assert_noop, assert_ok}; diff --git a/pezcumulus/teyrchains/pezpallets/trust/src/benchmarking.rs b/pezcumulus/teyrchains/pezpallets/trust/src/benchmarking.rs index a5aef86c..4a1139f3 100644 --- a/pezcumulus/teyrchains/pezpallets/trust/src/benchmarking.rs +++ b/pezcumulus/teyrchains/pezpallets/trust/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-trust //! //! These benchmarks measure the performance of trust score operations. diff --git a/pezcumulus/teyrchains/pezpallets/trust/src/lib.rs b/pezcumulus/teyrchains/pezpallets/trust/src/lib.rs index 68ae13eb..e64e1dca 100644 --- a/pezcumulus/teyrchains/pezpallets/trust/src/lib.rs +++ b/pezcumulus/teyrchains/pezpallets/trust/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)] //! # Trust Score Pezpallet diff --git a/pezcumulus/teyrchains/pezpallets/trust/src/mock.rs b/pezcumulus/teyrchains/pezpallets/trust/src/mock.rs index abb6d9a6..32be8900 100644 --- a/pezcumulus/teyrchains/pezpallets/trust/src/mock.rs +++ b/pezcumulus/teyrchains/pezpallets/trust/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 crate as pezpallet_trust; use pezframe_support::{ derive_impl, parameter_types, diff --git a/pezcumulus/teyrchains/pezpallets/trust/src/tests.rs b/pezcumulus/teyrchains/pezpallets/trust/src/tests.rs index 7a4ad19b..05092bad 100644 --- a/pezcumulus/teyrchains/pezpallets/trust/src/tests.rs +++ b/pezcumulus/teyrchains/pezpallets/trust/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 crate::{mock::*, Error, Event}; use pezframe_support::{assert_noop, assert_ok}; use pezsp_runtime::traits::BadOrigin; diff --git a/pezcumulus/teyrchains/pezpallets/welati/src/benchmarking.rs b/pezcumulus/teyrchains/pezpallets/welati/src/benchmarking.rs index a55a47c5..0355f101 100644 --- a/pezcumulus/teyrchains/pezpallets/welati/src/benchmarking.rs +++ b/pezcumulus/teyrchains/pezpallets/welati/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 + use super::*; use crate::types::*; use pezframe_benchmarking::v2::*; diff --git a/pezcumulus/teyrchains/pezpallets/welati/src/lib.rs b/pezcumulus/teyrchains/pezpallets/welati/src/lib.rs index 43bca319..6550c320 100644 --- a/pezcumulus/teyrchains/pezpallets/welati/src/lib.rs +++ b/pezcumulus/teyrchains/pezpallets/welati/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)] //! # Welati (Governance) Pezpallet diff --git a/pezcumulus/teyrchains/pezpallets/welati/src/migrations.rs b/pezcumulus/teyrchains/pezpallets/welati/src/migrations.rs index e714b88f..816f862f 100644 --- a/pezcumulus/teyrchains/pezpallets/welati/src/migrations.rs +++ b/pezcumulus/teyrchains/pezpallets/welati/src/migrations.rs @@ -1,3 +1,8 @@ +// This file is part of PezkuwiChain. + +// Copyright (C) Dijital Kurdistan Tech Institute +// SPDX-License-Identifier: Apache-2.0 + //! Storage migrations for pezpallet-welati (Governance) use super::*; diff --git a/pezcumulus/teyrchains/pezpallets/welati/src/mock.rs b/pezcumulus/teyrchains/pezpallets/welati/src/mock.rs index 2d3c2b86..42be014f 100644 --- a/pezcumulus/teyrchains/pezpallets/welati/src/mock.rs +++ b/pezcumulus/teyrchains/pezpallets/welati/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 crate::{self as pezpallet_welati, *}; use pezframe_support::{ assert_ok, construct_runtime, derive_impl, parameter_types, diff --git a/pezcumulus/teyrchains/pezpallets/welati/src/tests.rs b/pezcumulus/teyrchains/pezpallets/welati/src/tests.rs index 51efa422..1a880c8f 100644 --- a/pezcumulus/teyrchains/pezpallets/welati/src/tests.rs +++ b/pezcumulus/teyrchains/pezpallets/welati/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 crate::{ mock::{ add_parliament_member, last_event, run_to_block, ExtBuilder, RuntimeEvent, RuntimeOrigin, diff --git a/pezcumulus/teyrchains/pezpallets/welati/src/types.rs b/pezcumulus/teyrchains/pezpallets/welati/src/types.rs index 53f76d15..cc2c34a6 100644 --- a/pezcumulus/teyrchains/pezpallets/welati/src/types.rs +++ b/pezcumulus/teyrchains/pezpallets/welati/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 + use codec::{Decode, Encode, MaxEncodedLen}; use pezframe_support::pezpallet_prelude::*; use pezframe_system::{pezpallet_prelude::BlockNumberFor, Config as SystemConfig};