mirror of
https://gitlab.com/pezkuwichain/pezkuwi-sdk.git
synced 2026-10-20 18:56:23 +00:00
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
This commit is contained in:
1 parent
857b63130d
commit
99be20ba05
54 files changed
+314
-57
No files matched your search
@@ -7,6 +7,7 @@ exclude = [
|
|||||||
"**/zombienet/**",
|
"**/zombienet/**",
|
||||||
"**/zombienet_tests/**",
|
"**/zombienet_tests/**",
|
||||||
"target/**",
|
"target/**",
|
||||||
|
".cargo/**",
|
||||||
]
|
]
|
||||||
|
|
||||||
# global rules
|
# global rules
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ check-zepter:
|
|||||||
script:
|
script:
|
||||||
- cargo metadata --format-version=1 --locked > /dev/null
|
- cargo metadata --format-version=1 --locked > /dev/null
|
||||||
- cargo install zepter@1.82.1 --force
|
- cargo install zepter@1.82.1 --force
|
||||||
|
- export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
- zepter --version
|
- zepter --version
|
||||||
- zepter run check
|
- zepter run check
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
[graph]
|
[graph]
|
||||||
targets = [
|
targets = [
|
||||||
{ triple = "wasm32-unknown-unknown" },
|
{ triple = "wasm32-unknown-unknown" },
|
||||||
{ triple = "x86_64-unknown-linux-gnu" },
|
{ triple = "x86_64-unknown-linux-gnu" },
|
||||||
{ triple = "x86_64-unknown-linux-musl" },
|
{ triple = "x86_64-unknown-linux-musl" },
|
||||||
]
|
]
|
||||||
# all-features prevents krates 0.20+ from panicking with "unable to locate std"
|
# 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.
|
# 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.
|
# Track via quarterly review instead of blocking CI.
|
||||||
unmaintained = "none"
|
unmaintained = "none"
|
||||||
ignore = [
|
ignore = [
|
||||||
# ── wasmtime ──────────────────────────────────────────────────────────────
|
# ── wasmtime ──────────────────────────────────────────────────────────────
|
||||||
# Fix requires wasmtime 42.0.2+ → cranelift-assembler-x64 0.129+ → rustc 1.91.0+
|
# 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.
|
# Toolchain pinned to 1.88.0. Unblock when toolchain upgrades.
|
||||||
# We do NOT use Winch backend, Component Model, or 64-bit tables;
|
# We do NOT use Winch backend, Component Model, or 64-bit tables;
|
||||||
# most CVEs below only affect those code paths.
|
# most CVEs below only affect those code paths.
|
||||||
"RUSTSEC-2026-0006", # wasmtime: segfault with f64.copysign on x86-64
|
"RUSTSEC-2026-0006", # wasmtime: segfault with f64.copysign on x86-64
|
||||||
"RUSTSEC-2026-0020", # wasmtime: WASI guest-controlled resource exhaustion
|
"RUSTSEC-2026-0020", # wasmtime: WASI guest-controlled resource exhaustion
|
||||||
"RUSTSEC-2026-0021", # wasmtime: panic in wasi:http/types.fields
|
"RUSTSEC-2026-0021", # wasmtime: panic in wasi:http/types.fields
|
||||||
"RUSTSEC-2026-0085", # wasmtime: panic lifting flags component value
|
"RUSTSEC-2026-0085", # wasmtime: panic lifting flags component value
|
||||||
"RUSTSEC-2026-0086", # wasmtime: host data leakage 64-bit tables + Winch
|
"RUSTSEC-2026-0086", # wasmtime: host data leakage 64-bit tables + Winch
|
||||||
"RUSTSEC-2026-0087", # wasmtime: segfault f64x2.splat on Cranelift x86-64
|
"RUSTSEC-2026-0087", # wasmtime: segfault f64x2.splat on Cranelift x86-64
|
||||||
"RUSTSEC-2026-0088", # wasmtime: data leakage pooling allocator instances
|
"RUSTSEC-2026-0088", # wasmtime: data leakage pooling allocator instances
|
||||||
"RUSTSEC-2026-0089", # wasmtime: host panic table.fill with Winch
|
"RUSTSEC-2026-0089", # wasmtime: host panic table.fill with Winch
|
||||||
"RUSTSEC-2026-0091", # wasmtime: OOB write transcoding component model strings
|
"RUSTSEC-2026-0091", # wasmtime: OOB write transcoding component model strings
|
||||||
"RUSTSEC-2026-0092", # wasmtime: panic transcoding misaligned UTF-16 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-0093", # wasmtime: heap OOB read UTF-16 to latin1+utf16
|
||||||
"RUSTSEC-2026-0094", # wasmtime: masked return value table.grow Winch
|
"RUSTSEC-2026-0094", # wasmtime: masked return value table.grow Winch
|
||||||
"RUSTSEC-2026-0095", # wasmtime: Winch sandbox-escaping memory access
|
"RUSTSEC-2026-0095", # wasmtime: Winch sandbox-escaping memory access
|
||||||
"RUSTSEC-2026-0096", # wasmtime: miscompiled guest heap aarch64 Cranelift
|
"RUSTSEC-2026-0096", # wasmtime: miscompiled guest heap aarch64 Cranelift
|
||||||
|
|
||||||
# ── rand 0.9.2 ────────────────────────────────────────────────────────────
|
# ── rand 0.9.2 ────────────────────────────────────────────────────────────
|
||||||
# Unsound only when a custom Rust logger calls rand::rng() during init.
|
# Unsound only when a custom Rust logger calls rand::rng() during init.
|
||||||
# No custom logger in our stack. No fixed version available yet.
|
# No custom logger in our stack. No fixed version available yet.
|
||||||
"RUSTSEC-2026-0097", # rand: unsound with custom logger using rand::rng()
|
"RUSTSEC-2026-0097", # rand: unsound with custom logger using rand::rng()
|
||||||
|
|
||||||
# ── webpki ────────────────────────────────────────────────────────────────
|
# ── webpki ────────────────────────────────────────────────────────────────
|
||||||
# Name-constraints validation bugs in transitive webpki dep.
|
# Name-constraints validation bugs in transitive webpki dep.
|
||||||
# We do not rely on certificate name constraints in our P2P/RPC stack.
|
# We do not rely on certificate name constraints in our P2P/RPC stack.
|
||||||
"RUSTSEC-2026-0098", # webpki: URI name constraints incorrectly accepted
|
"RUSTSEC-2026-0098", # webpki: URI name constraints incorrectly accepted
|
||||||
"RUSTSEC-2026-0099", # webpki: wildcard name constraints incorrectly accepted
|
"RUSTSEC-2026-0099", # webpki: wildcard name constraints incorrectly accepted
|
||||||
]
|
]
|
||||||
|
|
||||||
# License compliance
|
# License compliance
|
||||||
@@ -58,31 +58,31 @@ ignore = [
|
|||||||
[licenses]
|
[licenses]
|
||||||
confidence-threshold = 0.8
|
confidence-threshold = 0.8
|
||||||
allow = [
|
allow = [
|
||||||
"Apache-2.0 WITH LLVM-exception",
|
"Apache-2.0 WITH LLVM-exception",
|
||||||
"Apache-2.0",
|
"Apache-2.0",
|
||||||
"BSD-2-Clause",
|
"BSD-2-Clause",
|
||||||
"BSD-3-Clause",
|
"BSD-3-Clause",
|
||||||
"BSL-1.0",
|
"BSL-1.0",
|
||||||
"CC0-1.0",
|
"CC0-1.0",
|
||||||
"CDLA-Permissive-2.0",
|
"CDLA-Permissive-2.0",
|
||||||
"GPL-3.0-only WITH Classpath-exception-2.0",
|
"GPL-3.0-only WITH Classpath-exception-2.0",
|
||||||
"GPL-3.0-only",
|
"GPL-3.0-only",
|
||||||
"GPL-3.0-or-later WITH Classpath-exception-2.0",
|
"GPL-3.0-or-later WITH Classpath-exception-2.0",
|
||||||
"GPL-3.0-or-later",
|
"GPL-3.0-or-later",
|
||||||
"ISC",
|
"ISC",
|
||||||
"MIT",
|
"MIT",
|
||||||
"MIT-0",
|
"MIT-0",
|
||||||
"MPL-2.0",
|
"MPL-2.0",
|
||||||
"NCSA",
|
"NCSA",
|
||||||
"OpenSSL",
|
"OpenSSL",
|
||||||
"Unicode-3.0",
|
"Unicode-3.0",
|
||||||
"Unicode-DFS-2016",
|
"Unicode-DFS-2016",
|
||||||
"Unlicense",
|
"Unlicense",
|
||||||
"Zlib",
|
"Zlib",
|
||||||
]
|
]
|
||||||
exceptions = [
|
exceptions = [
|
||||||
# ring uses a custom ISC-style license
|
# ring uses a custom ISC-style license
|
||||||
{ allow = ["OpenSSL"], name = "ring" },
|
{ allow = ["OpenSSL"], name = "ring" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[licenses.private]
|
[licenses.private]
|
||||||
@@ -103,6 +103,6 @@ unknown-registry = "warn"
|
|||||||
unknown-git = "warn"
|
unknown-git = "warn"
|
||||||
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
|
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
|
||||||
allow-git = [
|
allow-git = [
|
||||||
# Our serde fork with wasm32v1-none target fix (pending upstream merge)
|
# Our serde fork with wasm32v1-none target fix (pending upstream merge)
|
||||||
"https://github.com/pezkuwichain/serde.git",
|
"https://github.com/pezkuwichain/serde.git",
|
||||||
]
|
]
|
||||||
@@ -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
|
//! Benchmarking setup for pezpallet-identity-kyc
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|||||||
@@ -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)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
|
|
||||||
//! # Identity & KYC Pezpallet - TRUSTLESS MODEL
|
//! # 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
|
// Identity hash must be unique - no other account can use the same hash
|
||||||
ensure!(
|
ensure!(
|
||||||
!IdentityHashToAccount::<T>::contains_key(&identity_hash),
|
!IdentityHashToAccount::<T>::contains_key(identity_hash),
|
||||||
Error::<T>::IdentityHashAlreadyUsed
|
Error::<T>::IdentityHashAlreadyUsed
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -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 crate as pezpallet_identity_kyc;
|
||||||
use pezframe_support::{construct_runtime, derive_impl, parameter_types, traits::ConstU128};
|
use pezframe_support::{construct_runtime, derive_impl, parameter_types, traits::ConstU128};
|
||||||
use pezframe_system::EnsureRoot;
|
use pezframe_system::EnsureRoot;
|
||||||
|
|||||||
@@ -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 crate::{mock::*, types::KycLevel, Error, Event};
|
||||||
use pezframe_support::{assert_noop, assert_ok, traits::Currency};
|
use pezframe_support::{assert_noop, assert_ok, traits::Currency};
|
||||||
use pezsp_core::H256;
|
use pezsp_core::H256;
|
||||||
|
|||||||
@@ -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
|
//! Benchmarking setup for pezpallet-messaging
|
||||||
//!
|
//!
|
||||||
//! Run benchmarks with:
|
//! Run benchmarks with:
|
||||||
|
|||||||
@@ -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 crate as pezpallet_messaging;
|
||||||
use pezframe_support::{
|
use pezframe_support::{
|
||||||
derive_impl,
|
derive_impl,
|
||||||
|
|||||||
@@ -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 crate::{mock::*, Error, Event, *};
|
||||||
use pezframe_support::{assert_noop, assert_ok};
|
use pezframe_support::{assert_noop, assert_ok};
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
//! Benchmarking setup for pezpallet-perwerde
|
||||||
|
|
||||||
use super::{Pezpallet as Perwerde, *};
|
use super::{Pezpallet as Perwerde, *};
|
||||||
|
|||||||
@@ -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)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
|
|
||||||
//! # Perwerde (Education) Pezpallet
|
//! # Perwerde (Education) Pezpallet
|
||||||
|
|||||||
@@ -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 crate as pezpallet_perwerde;
|
||||||
use pezframe_support::{
|
use pezframe_support::{
|
||||||
construct_runtime, parameter_types,
|
construct_runtime, parameter_types,
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
// This file is part of PezkuwiChain.
|
||||||
|
|
||||||
|
// Copyright (C) Dijital Kurdistan Tech Institute
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
mock::{new_test_ext, Perwerde as PerwerdePallet, RuntimeOrigin, System, Test},
|
mock::{new_test_ext, Perwerde as PerwerdePallet, RuntimeOrigin, System, Test},
|
||||||
Event,
|
Event,
|
||||||
|
|||||||
@@ -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
|
// pezkuwi/pallets/pez-rewards/src/benchmarking.rs
|
||||||
|
|
||||||
use super::{BalanceOf, Call, Config};
|
use super::{BalanceOf, Call, Config};
|
||||||
|
|||||||
@@ -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)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
|
|
||||||
//! # PEZ Rewards Pezpallet
|
//! # PEZ Rewards Pezpallet
|
||||||
|
|||||||
@@ -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)
|
// pezkuwi/pallets/pez-rewards/src/mock.rs (v1.0 - dev_accounts FIXED)
|
||||||
|
|
||||||
use crate as pezpallet_pez_rewards;
|
use crate as pezpallet_pez_rewards;
|
||||||
|
|||||||
@@ -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)
|
// tests.rs (v11 - Final Bug Fixes)
|
||||||
|
|
||||||
use crate::{mock::*, EpochState, Error, Event};
|
use crate::{mock::*, EpochState, Error, Event};
|
||||||
|
|||||||
@@ -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
|
// pezkuwi/pallets/pez-treasury/src/benchmarking.rs
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|||||||
@@ -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)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
|
|
||||||
//! # PEZ Treasury Pezpallet
|
//! # PEZ Treasury Pezpallet
|
||||||
|
|||||||
@@ -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
|
//! Storage migrations for pezpallet-pez-treasury
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|||||||
@@ -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
|
// pezkuwi/pallets/pez-treasury/src/mock.rs
|
||||||
// VERSION 3: AccountId tipi H256 yapıldı (u64 yerine)
|
// VERSION 3: AccountId tipi H256 yapıldı (u64 yerine)
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
// pezkuwi/pallets/pez-treasury/src/tests.rs
|
||||||
|
|
||||||
use crate::{mock::*, Error, Event};
|
use crate::{mock::*, Error, Event};
|
||||||
|
|||||||
@@ -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`
|
//! Autogenerated weights for `pezpallet_pez_treasury`
|
||||||
//!
|
//!
|
||||||
|
|||||||
@@ -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
|
//! Benchmarking setup for pezpallet-presale
|
||||||
//!
|
//!
|
||||||
//! Complete benchmarks for all presale operations including:
|
//! Complete benchmarks for all presale operations including:
|
||||||
|
|||||||
@@ -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 crate as pezpallet_presale;
|
||||||
use pezframe_support::{
|
use pezframe_support::{
|
||||||
parameter_types,
|
parameter_types,
|
||||||
|
|||||||
@@ -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
|
//! Benchmarking setup for pezpallet-referral
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|||||||
@@ -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)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
|
|
||||||
//! # Referral Pezpallet
|
//! # Referral Pezpallet
|
||||||
|
|||||||
@@ -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)
|
// pezkuwi/pallets/referral/src/mock.rs (Updated for new trustless model)
|
||||||
|
|
||||||
use crate as pezpallet_referral;
|
use crate as pezpallet_referral;
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
// This file is part of PezkuwiChain.
|
||||||
|
|
||||||
|
// Copyright (C) Dijital Kurdistan Tech Institute
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
mock::*, Error, Event, PendingReferrals, ReferralCount, Referrals, ReferrerStatsStorage,
|
mock::*, Error, Event, PendingReferrals, ReferralCount, Referrals, ReferrerStatsStorage,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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 codec::{Decode, Encode, MaxEncodedLen};
|
||||||
use pezframe_support::pezpallet_prelude::RuntimeDebug;
|
use pezframe_support::pezpallet_prelude::RuntimeDebug;
|
||||||
use scale_info::TypeInfo;
|
use scale_info::TypeInfo;
|
||||||
|
|||||||
@@ -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
|
//! Benchmarking setup for pezpallet-staking-score
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|||||||
@@ -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.
|
//! Simplified mock runtime for pezpallet-staking-score.
|
||||||
//! No real staking pallet - all data comes via CachedStakingDetails.
|
//! No real staking pallet - all data comes via CachedStakingDetails.
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
//! Tests for pezpallet-staking-score.
|
||||||
//! All tests use receive_staking_details to populate CachedStakingDetails,
|
//! All tests use receive_staking_details to populate CachedStakingDetails,
|
||||||
//! mirroring the real People Chain architecture.
|
//! mirroring the real People Chain architecture.
|
||||||
|
|||||||
@@ -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
|
//! Benchmarking setup for pezpallet-tiki
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
//! Custom Origin verification mechanisms based on Tiki ownership.
|
||||||
//!
|
//!
|
||||||
//! This module provides `EnsureOrigin` implementations that verify
|
//! This module provides `EnsureOrigin` implementations that verify
|
||||||
|
|||||||
@@ -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)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
|
|
||||||
//! # Tiki (Role) Pezpallet
|
//! # Tiki (Role) Pezpallet
|
||||||
|
|||||||
@@ -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
|
//! Storage migrations for pezpallet-tiki
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|||||||
@@ -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 as pezpallet_tiki;
|
||||||
use crate::Tiki as TikiEnum;
|
use crate::Tiki as TikiEnum;
|
||||||
use pezframe_support::{
|
use pezframe_support::{
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
// This file is part of PezkuwiChain.
|
||||||
|
|
||||||
|
// Copyright (C) Dijital Kurdistan Tech Institute
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
mock::*, Error, Event, RoleAssignmentType, Tiki as TikiEnum, TikiProvider, TikiScoreProvider,
|
mock::*, Error, Event, RoleAssignmentType, Tiki as TikiEnum, TikiProvider, TikiScoreProvider,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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
|
//! Benchmarking setup for pezpallet-token-wrapper
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|||||||
@@ -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)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
|
|
||||||
//! # Token Wrapper Pezpallet
|
//! # Token Wrapper Pezpallet
|
||||||
|
|||||||
@@ -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 crate as pezpallet_token_wrapper;
|
||||||
use pezframe_support::{
|
use pezframe_support::{
|
||||||
construct_runtime, parameter_types,
|
construct_runtime, parameter_types,
|
||||||
|
|||||||
@@ -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 super::*;
|
||||||
use crate::mock::*;
|
use crate::mock::*;
|
||||||
use pezframe_support::{assert_noop, assert_ok};
|
use pezframe_support::{assert_noop, assert_ok};
|
||||||
|
|||||||
@@ -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
|
//! Benchmarking setup for pezpallet-trust
|
||||||
//!
|
//!
|
||||||
//! These benchmarks measure the performance of trust score operations.
|
//! These benchmarks measure the performance of trust score operations.
|
||||||
|
|||||||
@@ -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)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
|
|
||||||
//! # Trust Score Pezpallet
|
//! # Trust Score Pezpallet
|
||||||
|
|||||||
@@ -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 crate as pezpallet_trust;
|
||||||
use pezframe_support::{
|
use pezframe_support::{
|
||||||
derive_impl, parameter_types,
|
derive_impl, parameter_types,
|
||||||
|
|||||||
@@ -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 crate::{mock::*, Error, Event};
|
||||||
use pezframe_support::{assert_noop, assert_ok};
|
use pezframe_support::{assert_noop, assert_ok};
|
||||||
use pezsp_runtime::traits::BadOrigin;
|
use pezsp_runtime::traits::BadOrigin;
|
||||||
|
|||||||
@@ -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 super::*;
|
||||||
use crate::types::*;
|
use crate::types::*;
|
||||||
use pezframe_benchmarking::v2::*;
|
use pezframe_benchmarking::v2::*;
|
||||||
|
|||||||
@@ -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)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
|
|
||||||
//! # Welati (Governance) Pezpallet
|
//! # Welati (Governance) Pezpallet
|
||||||
|
|||||||
@@ -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)
|
//! Storage migrations for pezpallet-welati (Governance)
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|||||||
@@ -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 crate::{self as pezpallet_welati, *};
|
||||||
use pezframe_support::{
|
use pezframe_support::{
|
||||||
assert_ok, construct_runtime, derive_impl, parameter_types,
|
assert_ok, construct_runtime, derive_impl, parameter_types,
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
// This file is part of PezkuwiChain.
|
||||||
|
|
||||||
|
// Copyright (C) Dijital Kurdistan Tech Institute
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
mock::{
|
mock::{
|
||||||
add_parliament_member, last_event, run_to_block, ExtBuilder, RuntimeEvent, RuntimeOrigin,
|
add_parliament_member, last_event, run_to_block, ExtBuilder, RuntimeEvent, RuntimeOrigin,
|
||||||
|
|||||||
@@ -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 codec::{Decode, Encode, MaxEncodedLen};
|
||||||
use pezframe_support::pezpallet_prelude::*;
|
use pezframe_support::pezpallet_prelude::*;
|
||||||
use pezframe_system::{pezpallet_prelude::BlockNumberFor, Config as SystemConfig};
|
use pezframe_system::{pezpallet_prelude::BlockNumberFor, Config as SystemConfig};
|
||||||
|
|||||||
Reference in new issue
Block a user