d6444076c3
- Rewrite pezpallet-staking-score: StorageDoubleMap (AccountId x StakingSource), remove StakingInfoProvider trait, all data via receive_staking_details() - Add StakingSource enum (RelayChain / AssetHub) for multi-source aggregation - Add OnStakingDataUpdate callback trait for trust pallet integration - Trust pallet: on_initialize hook for periodic batch updates, OnStakingDataUpdate impl triggers immediate score recalculation - People Chain runtime: remove noop StakingInfoProvider, wire OnStakingUpdate = Trust - Update weights for both pallets (conservative estimates incl. callback cost) - spec_version 1_020_005 -> 1_020_006 - 57 tests passing (25 staking-score + 32 trust)
73 lines
2.0 KiB
TOML
73 lines
2.0 KiB
TOML
[package]
|
|
name = "pezpallet-staking-score"
|
|
version = "1.0.0"
|
|
description = "PezkuwiChain Staking Score Calculation Pallet"
|
|
authors.workspace = true
|
|
homepage.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
repository.workspace = true
|
|
documentation.workspace = true
|
|
|
|
[dependencies]
|
|
codec = { workspace = true, default-features = false, features = ["derive"] }
|
|
pezframe-benchmarking = { workspace = true, optional = true }
|
|
pezframe-support = { default-features = false, workspace = true }
|
|
pezframe-system = { default-features = false, workspace = true }
|
|
pezsp-runtime = { default-features = false, workspace = true }
|
|
pezsp-std = { default-features = false, workspace = true }
|
|
scale-info = { default-features = false, features = [
|
|
"derive",
|
|
], workspace = true }
|
|
serde = { version = "1.0.197", default-features = false, features = [
|
|
"derive",
|
|
], optional = true }
|
|
|
|
# PezkuwiChain primitives
|
|
pezkuwi-primitives = { workspace = true, default-features = false }
|
|
|
|
[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"]
|
|
std = [
|
|
"codec/std",
|
|
"pezframe-benchmarking?/std",
|
|
"pezframe-support/std",
|
|
"pezframe-system/std",
|
|
"pezkuwi-primitives/std",
|
|
"pezsp-runtime/std",
|
|
"pezsp-std/std",
|
|
"scale-info/std",
|
|
"serde?/std",
|
|
]
|
|
runtime-benchmarks = [
|
|
"pezframe-benchmarking/runtime-benchmarks",
|
|
"pezframe-support/runtime-benchmarks",
|
|
"pezframe-system/runtime-benchmarks",
|
|
"pezkuwi-primitives/runtime-benchmarks",
|
|
"pezsp-runtime/runtime-benchmarks",
|
|
]
|
|
try-runtime = [
|
|
"pezframe-benchmarking?/try-runtime",
|
|
"pezframe-support/try-runtime",
|
|
"pezframe-system/try-runtime",
|
|
"pezkuwi-primitives/try-runtime",
|
|
"pezsp-runtime/try-runtime",
|
|
]
|
|
serde = [
|
|
"codec/serde",
|
|
"dep:serde",
|
|
"pezsp-runtime/serde",
|
|
"scale-info/serde",
|
|
]
|
|
experimental = []
|
|
with-tracing = []
|
|
tuples-96 = []
|