fix: remove staking-score from relay chain, fix CI quick-checks

- Remove pezpallet_staking_score from relay chain runtime (noter model
  lives on People Chain only)
- Update welati mock to current staking-score Config trait
- Fix staking-score feature propagation (zepter: std, runtime-benchmarks)
- Format vendor subxt example files (rustfmt)
- Regenerate umbrella crate
- Update CRITICAL_STATE.md with noter delegation status
This commit is contained in:
2026-02-16 19:50:13 +03:00
parent d23daa8f67
commit da3a8f23c0
25 changed files with 652 additions and 741 deletions
-4
View File
@@ -111,7 +111,6 @@ pezkuwi-runtime-teyrchains = { workspace = true }
pezkuwi-teyrchain-primitives = { workspace = true }
# Custom Pezkuwi Pallets
pezpallet-staking-score = { workspace = true }
pezpallet-validator-pool = { workspace = true }
xcm = { workspace = true }
@@ -184,7 +183,6 @@ std = [
"pezpallet-session-benchmarking?/std",
"pezpallet-session/std",
"pezpallet-staking-runtime-api/std",
"pezpallet-staking-score/std",
"pezpallet-staking/std",
"pezpallet-state-trie-migration/std",
"pezpallet-sudo/std",
@@ -277,7 +275,6 @@ runtime-benchmarks = [
"pezpallet-session-benchmarking/runtime-benchmarks",
"pezpallet-session/runtime-benchmarks",
"pezpallet-staking-runtime-api/runtime-benchmarks",
"pezpallet-staking-score/runtime-benchmarks",
"pezpallet-staking/runtime-benchmarks",
"pezpallet-state-trie-migration/runtime-benchmarks",
"pezpallet-sudo/runtime-benchmarks",
@@ -360,7 +357,6 @@ try-runtime = [
"pezpallet-scheduler/try-runtime",
"pezpallet-session-benchmarking?/try-runtime",
"pezpallet-session/try-runtime",
"pezpallet-staking-score/try-runtime",
"pezpallet-staking/try-runtime",
"pezpallet-state-trie-migration/try-runtime",
"pezpallet-sudo/try-runtime",
-38
View File
@@ -565,40 +565,6 @@ impl pezpallet_staking::Config for Runtime {
type BenchmarkingConfig = PezkuwiStakingBenchmarkingConfig;
}
// =====================================================
// STAKING SCORE CONFIGURATION
// =====================================================
/// Relay Chain StakingInfoProvider - reads directly from pezpallet_staking
/// This is the REAL implementation that accesses actual staking data
pub struct RelayStakingInfoProvider;
impl pezpallet_staking_score::StakingInfoProvider<AccountId, Balance> for RelayStakingInfoProvider {
fn get_staking_details(
who: &AccountId,
) -> Option<pezpallet_staking_score::StakingDetails<Balance>> {
// Get staking ledger from pezpallet_staking
let ledger = pezpallet_staking::Ledger::<Runtime>::get(who)?;
// Get nominations if any
let nominations_count = pezpallet_staking::Nominators::<Runtime>::get(who)
.map(|n| n.targets.len() as u32)
.unwrap_or(0);
Some(pezpallet_staking_score::StakingDetails {
staked_amount: ledger.active,
nominations_count,
unlocking_chunks_count: ledger.unlocking.len() as u32,
})
}
}
impl pezpallet_staking_score::Config for Runtime {
type Balance = Balance;
type StakingInfo = RelayStakingInfoProvider;
type WeightInfo = pezpallet_staking_score::weights::BizinikiwiWeight<Runtime>;
}
// =====================================================
// FAST UNSTAKE CONFIGURATION
// =====================================================
@@ -1605,9 +1571,6 @@ construct_runtime! {
// TNPoS Validator Pool - Shadow Mode (runs parallel to NPoS)
ValidatorPool: pezpallet_validator_pool = 91,
// Staking Score - Time-weighted staking reputation score
StakingScore: pezpallet_staking_score = 92,
// Root testing pezpallet.
RootTesting: pezpallet_root_testing = 249,
@@ -1859,7 +1822,6 @@ mod benches {
[pezpallet_whitelist, Whitelist]
// Pezkuwichain Custom Pallets
[pezpallet_validator_pool, ValidatorPool]
[pezpallet_staking_score, StakingScore]
// XCM
[pezpallet_xcm, PalletXcmExtrinsicsBenchmark::<Runtime>]
[pezpallet_xcm_benchmarks::fungible, pezpallet_xcm_benchmarks::fungible::Pezpallet::<Runtime>]