identity-kyc (H1):
- Add IdentityHashToAccount reverse mapping to prevent same identity hash
being used by multiple accounts
- Check uniqueness in apply_for_citizenship, populate on confirm_citizenship,
clean up on renounce_citizenship
pez-rewards (H2):
- Add EpochTotalClaimed storage to track claimed amounts per epoch
- do_close_epoch now only claws back unclaimed rewards (total_allocated -
total_claimed), not the entire pot balance
tiki (H3):
- Replace custom "locked" attribute with pezpallet_nfts::disable_transfer()
which sets the system-level PalletAttributes::TransferDisabled attribute
that is actually enforced during transfers
tiki (H4):
- Fix EnsureTiki to check UserTikis storage for non-unique roles (Wezir,
Parlementer) instead of TikiHolder which only stores unique roles
perwerde (H5):
- Add MaxPointsPerCourse config constant (1000 in runtime)
- Validate points in complete_course against the max
- Use saturating_add in get_perwerde_score to prevent u32 overflow
welati (H6):
- Add NativeCurrency: ReservableCurrency to Config
- Actually reserve candidacy deposit from candidate's balance
welati (H7):
- Add MaxEndorsers config constant (1000 in runtime)
- Validate endorsers count at the start of register_candidate before
any storage reads
- Add GenesisConfig to pezpallet-tiki that creates NFT Collection 0 and mints
NFT #0 for the founding citizen at genesis, solving the chicken-egg problem
where Collection 0 must exist before any citizenship NFTs can be minted
- Wire founding_citizen parameter through all People Chain genesis presets
(genesis, local_testnet, dev)
- Add create_nft_collection.rs XCM script for creating Collection 0 on live
chain via sudo XCM Transact from Relay Chain
- Add comprehensive_test.rs for post-upgrade chain testing
- Fix clippy warnings (map().flatten() -> and_then()) and apply taplo formatting
- Add CachedStakingDetails storage and receive_staking_details extrinsic
to staking-score pallet for Asset Hub XCM data reception
- Add TrustScoreUpdater triggers to referral, tiki, and perwerde pallets
so component score changes propagate to trust pallet
- Wire runtime hooks (OnKycApproved, OnCitizenshipRevoked) to Referral
and CitizenNftProvider to Tiki in people.rs
- Fix PerwerdeScoreSource and ReferralScoreSource to read actual pallet data
- Fix EnsureOrigin trait feature unification issue by removing cfg gate
from try_successful_origin and adding default Err(()) implementation
- Fix workspace Cargo.toml default-features for pezkuwi-subxt dependencies
Storage migration v1->v2 scans all UserTikis entries and populates
TikiHolder for unique roles (Serok, SerokiMeclise, Xezinedar, Balyoz).
Fixes empty TikiHolder on live chain despite roles being assigned.
Includes try-runtime pre/post upgrade checks and unit tests.
- burn_citizen_nft now clears UserTikis and TikiHolder entries
- Removed on_initialize O(n) per-block scan (uses CitizenNftProvider hooks)
- Added Peseng role score (80 points)
- Removed catch-all match arm for compile-time safety on new roles
- Removed duplicate cfg benchmark/non-benchmark blocks in mint