mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-04-22 03:07:57 +00:00
feat: track nomination pool members as active stakers
Add handlePoolBonded/handlePoolUnbonded handlers to Asset Hub SubQuery. When a user bonds to a nomination pool, they are saved as an ActiveStaker with networkId=AssetHub and stakingType=nomination-pool. This fixes the wallet showing INACTIVE for HEZ stakers.
This commit is contained in:
@@ -34,6 +34,18 @@ dataSources:
|
||||
filter:
|
||||
module: nominationPools
|
||||
method: PaidOut
|
||||
# Pool member bonded (track active stakers)
|
||||
- handler: handlePoolBonded
|
||||
kind: substrate/EventHandler
|
||||
filter:
|
||||
module: nominationPools
|
||||
method: Bonded
|
||||
# Pool member unbonded (cleanup active stakers)
|
||||
- handler: handlePoolUnbonded
|
||||
kind: substrate/EventHandler
|
||||
filter:
|
||||
module: nominationPools
|
||||
method: Unbonded
|
||||
# Pool bonded slash
|
||||
- handler: handlePoolBondedSlash
|
||||
kind: substrate/EventHandler
|
||||
|
||||
Reference in New Issue
Block a user