Skip to content

Commit

Permalink
Merge pull request #32 from maticnetwork/new-delegator-unbond-events
Browse files Browse the repository at this point in the history
Update Commission rate event to be handled from the EventsHub abi.
  • Loading branch information
reddyismav authored Mar 24, 2021
2 parents 3b1b1bd + e34ef0f commit 15ee08f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion root/src/mappings/staking-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ import {
UnJailed,
UnstakeInit,
Unstaked,
UpdateCommissionRate,
StartAuction,
ConfirmAuction,
} from '../../generated/StakingInfo/StakingInfo'
import {
DelegatorUnstakeWithId,
ShareBurnedWithId,
UpdateCommissionRate,
} from '../../generated/EventsHub/EventsHub'
// using network address from config file
// to be passed to client when creating instance
Expand Down
4 changes: 2 additions & 2 deletions root/subgraph.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ dataSources:
handler: handleUnstakeInit
- event: Unstaked(indexed address,indexed uint256,uint256,uint256)
handler: handleUnstaked
- event: UpdateCommissionRate(indexed uint256,indexed uint256,indexed uint256)
handler: handleUpdateCommissionRate
- event: StartAuction(indexed uint256,indexed uint256,indexed uint256)
handler: handleStartAuction
- event: ConfirmAuction(indexed uint256,indexed uint256,indexed uint256)
Expand Down Expand Up @@ -240,4 +238,6 @@ dataSources:
handler: handleDelegatorUnstakeWithId
- event: ShareBurnedWithId(indexed uint256,indexed address,indexed uint256,uint256,uint256)
handler: handleShareBurnedWithId
- event: UpdateCommissionRate(indexed uint256,indexed uint256,indexed uint256)
handler: handleUpdateCommissionRate
file: ./src/mappings/staking-info.ts

0 comments on commit 15ee08f

Please sign in to comment.