mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-10-20 18:56:24 +00:00
2937263461c4bb0ac97cf3981a01d3806131e74f
Both images ran `npm install` with version ranges and ignored any lockfile, so what production ran depended on the day the image was built. The live containers, built on 2026-10-03, run @pezkuwi/wasm-crypto 7.5.17, whose ed25519, ecdsa and mnemonic generation are stubs that throw. Both bots sign with sr25519 only, which is why they kept working. Each bot now has a package.json and package-lock.json (@pezkuwi/api 16.5.37, keyring, util and util-crypto 14.0.26, wasm-crypto 7.5.20) and its image installs exactly that with `npm ci`. Node 20 is past its end of life; the images move to node:24-alpine. CI gains a `bots` job that builds each image and runs inside it: scripts/bot-smoke.mjs checks the installed versions against the lockfile and signs and verifies with sr25519, ed25519 and ecdsa, and the bot itself must load and stop at the mnemonic it is not given. Against the previous lockfile the smoke check fails on mnemonic generation, ed25519 and ecdsa.
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
Languages
TypeScript
49.7%
JavaScript
43.5%
Shell
6%
Dockerfile
0.8%