SatoshiQaziMuhammed c5be7f62f8 noter: prove a stake from the hub's own state once the People chain takes proofs (#39)
The People chain is gaining `prove_stake` (pezkuwi-DKS #132): a stake is proven from the Asset
Hub's own state through a relay-anchored storage proof, instead of a noter reporting it and
re-confirming it every three days -- which does not fit at forty million.

When the People chain's metadata has `stakingScore.proveStake`, the bot:
- builds the proof (`prove.js`): the relay parent of People's best block, which People kept in
  `RelayRoots`; the relay proof of `Paras::Heads(1000)` there; the hub proof of the account's
  `Staking::Bonded`/`Ledger`/`Nominators`, `NominationPools::PoolMembers`, and for a member the
  pool and its bonded account;
- submits it when the hub's figure differs from the People chain's, or when what People holds
  was never proven; never re-confirms an unchanged, proven stake;
- watches the Asset Hub's finalized blocks for staking and pool events and proves the tracked
  accounts they touch as they happen; the periodic scan stays as a safety net.

Before the upgrade nothing changes: the noter path is used as today. The bot's own reading only
decides when to prove; what lands is what the proof says. `prove.test.mjs` pins the pool account
derivation against Zagros pool 10.
2026-10-29 04:21:56 +04:00

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

S
Description
No description provided
Readme Apache-2.0
19 MiB
1 Watchers 0 Forks
Languages
TypeScript 46.9%
JavaScript 46.7%
Shell 5.7%
Dockerfile 0.7%