mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-08-12 20:51:36 +00:00
676f2f7474daa0ae9eb2ff3481835a3afaf4f565
The bot pointed at the block-producing nodes' RPC ports. Those bind to localhost, so once they stopped being exposed to the internet the bot lost every chain at once and has submitted nothing since. `staking_score` gates the entire trust score, so a noter that cannot reach the chains does not degrade the score — it zeroes it for every tracked account. Point it at the public endpoints instead, which is what an external client should use and what the code already defaulted to. They are TLS-terminated rather than plaintext ws:// across the internet, and this drops a hardcoded node address from the repository. Reaching the chains again is not enough on its own: the outage lasted three weeks because reconnecting forever looks identical to working. The bot now writes a heartbeat when a scan *completes*, a container healthcheck reads it, and a watchdog exits once it goes stale so the restart policy turns a silent stall into a visibly crash-looping container.
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
52.3%
JavaScript
27.9%
Python
15.5%
Shell
3.9%
Dockerfile
0.4%