Files
pezkuwi-subquery/pezkuwi.yaml
T
pezkuwichain 9922e8ba89 Fix query service schema and set startBlock for pruned RPC
- Change query service --name=app to --name=project to match node schema
- Set startBlock to 185900 (RPC endpoints are pruned, no archive available)
2026-02-13 02:51:44 +03:00

94 lines
2.7 KiB
YAML

specVersion: 1.0.0
name: subquery-pezkuwi-staking
version: 1.0.0
runner:
node:
name: "@subql/node"
version: ">=4.6.6"
query:
name: "@subql/query"
version: "*"
description: Pezkuwi Staking SubQuery - Indexes staking rewards, slashes, era data for PezWallet
repository: https://github.com/pezkuwichain/pezkuwi-subquery
schema:
file: ./schema.graphql
network:
chainId: "0xbb4a61ab0c4b8c12f5eab71d0c86c482e03a275ecdafee678dea712474d33d75"
endpoint:
- wss://rpc.pezkuwichain.io
- wss://mainnet.pezkuwichain.io
chaintypes:
file: ./chainTypes/pezkuwi.json
dataSources:
- name: main
kind: substrate/Runtime
startBlock: 185900
mapping:
file: ./dist/index.js
handlers:
# Signed extrinsics for history
- handler: handleHistoryElement
kind: substrate/CallHandler
filter:
isSigned: true
# Staking rewards (old format)
- handler: handleReward
kind: substrate/EventHandler
filter:
module: staking
method: Reward
# Staking rewards (new format - Polkadot 2.0)
- handler: handleRewarded
kind: substrate/EventHandler
filter:
module: staking
method: Rewarded
# Nomination Pools rewards
- handler: handlePoolReward
kind: substrate/EventHandler
filter:
module: nominationPools
method: PaidOut
# Slashing (old format)
- handler: handleSlash
kind: substrate/EventHandler
filter:
module: staking
method: Slash
# Slashing (new format)
- handler: handleSlashed
kind: substrate/EventHandler
filter:
module: staking
method: Slashed
# Pool bonded slash
- handler: handlePoolBondedSlash
kind: substrate/EventHandler
filter:
module: nominationPools
method: PoolSlashed
# Pool unbonding slash
- handler: handlePoolUnbondingSlash
kind: substrate/EventHandler
filter:
module: nominationPools
method: UnbondingPoolSlashed
# Transfers
- handler: handleTransfer
kind: substrate/EventHandler
filter:
module: balances
method: Transfer
# Era changes (old format)
- handler: handleNewEra
kind: substrate/EventHandler
filter:
module: staking
method: StakingElection
# Era changes (new format - Polkadot 2.0)
- handler: handleStakersElected
kind: substrate/EventHandler
filter:
module: staking
method: StakersElected