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:
@@ -27,12 +27,13 @@ serde = { version = "1.0.197", default-features = false, features = [
|
||||
# PezkuwiChain primitives
|
||||
pezkuwi-primitives = { workspace = true, default-features = false }
|
||||
|
||||
# dev / test dependencies (also used as optional for feature propagation)
|
||||
pezpallet-balances = { workspace = true, default-features = false, optional = true }
|
||||
pezsp-io = { workspace = true, default-features = false, optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
pezframe-support = { workspace = true, features = ["std"] }
|
||||
pezframe-system = { workspace = true, features = ["std"] }
|
||||
pezpallet-balances = { workspace = true, features = ["std"] }
|
||||
pezsp-io = { workspace = true, features = ["std"] }
|
||||
pezsp-runtime = { workspace = true, features = ["std"] }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
@@ -41,7 +42,9 @@ std = [
|
||||
"pezframe-benchmarking?/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system/std",
|
||||
"pezpallet-balances?/std",
|
||||
"pezkuwi-primitives/std",
|
||||
"pezsp-io?/std",
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-std/std",
|
||||
"scale-info/std",
|
||||
@@ -53,6 +56,8 @@ runtime-benchmarks = [
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
"pezkuwi-primitives/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"pezpallet-balances/runtime-benchmarks",
|
||||
"pezsp-io/runtime-benchmarks",
|
||||
]
|
||||
try-runtime = [
|
||||
"pezframe-benchmarking?/try-runtime",
|
||||
@@ -60,6 +65,7 @@ try-runtime = [
|
||||
"pezframe-system/try-runtime",
|
||||
"pezkuwi-primitives/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
"pezpallet-balances?/try-runtime"
|
||||
]
|
||||
serde = [
|
||||
"codec/serde",
|
||||
|
||||
@@ -282,25 +282,12 @@ impl pezpallet_identity_kyc::Config for Test {
|
||||
type DefaultReferrer = DefaultReferrerKyc;
|
||||
}
|
||||
|
||||
// Mock StakingInfo provider - SADECE BİR KEZ TANIMLA
|
||||
pub struct MockStakingInfo;
|
||||
impl pezpallet_staking_score::StakingInfoProvider<AccountId, Balance> for MockStakingInfo {
|
||||
fn get_staking_details(
|
||||
_account: &AccountId,
|
||||
) -> Option<pezpallet_staking_score::StakingDetails<Balance>> {
|
||||
Some(pezpallet_staking_score::StakingDetails {
|
||||
staked_amount: 1000u128,
|
||||
nominations_count: 0,
|
||||
unlocking_chunks_count: 0,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Staking Score Configuration
|
||||
impl pezpallet_staking_score::Config for Test {
|
||||
type WeightInfo = ();
|
||||
type Balance = Balance;
|
||||
type StakingInfo = MockStakingInfo;
|
||||
type OnStakingUpdate = ();
|
||||
type WeightInfo = ();
|
||||
type NoterChecker = ();
|
||||
}
|
||||
|
||||
// Referral Configuration
|
||||
|
||||
Reference in New Issue
Block a user