mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-10-20 18:56:24 +00:00
c4f2bd943badd39009c8124f648d5958094c8932
The indexer image installed @subql/node and the @polkadot -> @pezkuwi aliases with an unlocked npm install, and the build cache kept the layer from the day it was first built: the indexers ran @pezkuwi/wasm-crypto 7.5.17/7.5.18, the build whose ed25519 and secp256k1 are stubs, plus vm2 3.9.19 (the mapping sandbox, 54 advisories). No lockfile meant Dependabot never saw that tree. - docker/indexer holds the image's package.json and package-lock.json: @subql/node 6.4.6 as today, @pezkuwi 16.5.39 / 14.0.26 / 7.5.21, overrides for vm2 3.12.2, uuid 11 and package-json 7 (got 11). The Dockerfile runs npm ci on Node 24 (Node 20 is out of support). - The pruned-state patch stops the build when a pattern matches nothing, instead of reporting success with the fallback missing. - CI builds the indexer image and runs the crypto smoke test inside it through the @polkadot aliases, the way subql-node loads them. - The root yarn.lock, which the host installs as root on every deploy to run subql codegen/build, moves the advisory ranges forward with targeted resolutions and @pezkuwi/braces. Left: elliptic (low, via ethers 5 in @subql/cli) and sprintf-js (moderate, via jest's argparse 1); neither has a fixed release.
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%