mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-04-22 03:07:57 +00:00
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:
+1
-58
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user