Remove relay staking handlers after pallet removal (spec 1_020_006)

Staking pallet (index 9), FastUnstake (15), and VoterBagsList (100)
were removed from the relay chain. The relay indexer now only tracks
transfers and signed extrinsics. Added safety try-catch to staking
queries in case handlers are accidentally re-enabled.
This commit is contained in:
2026-02-21 01:40:34 +03:00
parent 8a5681db33
commit 3cc7a7b245
3 changed files with 43 additions and 62 deletions
+1 -58
View File
@@ -8,7 +8,7 @@ runner:
query:
name: "@subql/query"
version: "*"
description: Pezkuwi Staking SubQuery - Indexes staking rewards, slashes, era data for PezWallet
description: Pezkuwi Relay SubQuery - Indexes transfer history and governance-related data
repository: https://github.com/pezkuwichain/pezkuwi-subquery
schema:
file: ./schema.graphql
@@ -26,71 +26,14 @@ dataSources:
mapping:
file: ./dist/index.js
handlers:
# Block handler: initialize active relay stakers from chain state
- handler: handleRelayBlock
kind: substrate/BlockHandler
# 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