mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-07-22 05:15:42 +00:00
24fe8b6b6f765393419b395e19dd988b76fa642d
hasDataChanged() only compared fresh data against CachedStakingDetails - which stays empty until a submission matures and gets finalized. For any account whose real stake was genuinely stable, every 5-minute scan still saw "changed from empty cache", resubmitted, and reset submitted_at to the current block. Confirmed live: Serok's and QaziM's real, correctly-computed stake (490,000 / 100,000 HEZ) never once reached CachedStakingDetails/ TrustScores despite multiple successful submissions - each new scan arrived before the previous one's 300-block dispute window elapsed and overwrote it with a fresh timer, a self-perpetuating loop. getPendingData() now reads PendingStakingDetails first; hasDataChanged() compares against that when present, only falling back to the cache once nothing is pending. Applied to both the AssetHub and legacy RelayChain-clear comparisons. Also reordered main()'s cycle to finalizeMaturedPending() before fullScan(), so anything that matured this cycle gets promoted before a new scan pass runs at all.
Pezkuwi SubQuery
SubQuery indexer for Pezkuwi blockchain - provides staking rewards, NominationPools, transfers and era validator data for PezWallet.
Projects
- pezkuwi.yaml - Pezkuwi Relay Chain staking indexer
- pezkuwi-assethub.yaml - Pezkuwi Asset Hub NominationPools and transfers indexer
Features
- Staking rewards (Reward/Rewarded events)
- Nomination Pool rewards (PaidOut events)
- Slashing events (Slash/Slashed, PoolSlashed, UnbondingPoolSlashed)
- Native transfers (balances.Transfer)
- Asset transfers (assets.Transferred) - Asset Hub only
- Era validator information (StakersElected/StakingElection)
- Full transaction history (signed extrinsics)
Get Started
Install dependencies
yarn install
Build
yarn build
Local Development
sh local-runner.sh pezkuwi.yaml
Deploy to SubQuery Network
./node_modules/.bin/subql publish -f pezkuwi.yaml
./node_modules/.bin/subql publish -f pezkuwi-assethub.yaml
Endpoints
- Pezkuwi Relay: wss://rpc.pezkuwichain.io
- Pezkuwi Asset Hub: wss://asset-hub-rpc.pezkuwichain.io
License
Apache 2.0 - Based on Nova SubQuery implementation
Description
Languages
TypeScript
53.1%
JavaScript
26.7%
Python
15.8%
Shell
4%
Dockerfile
0.4%