Skip to content

Commit

Permalink
Merge pull request #63 from maticnetwork/0xkrishna/pos-357
Browse files Browse the repository at this point in the history
Add rawData to state-sync event
  • Loading branch information
0xKrishna authored May 3, 2022
2 parents 35b8b8a + 2422d32 commit 1de6784
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions root/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type StateSync @entity {
depositorOrRootToken: String!
depositedTokenOrChildToken: String!
data: String!
rawData: String!
logIndex: String!
transactionHash: Bytes!
timestamp: BigInt!
Expand Down
1 change: 1 addition & 0 deletions root/src/mappings/state-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export function handleStateSynced(event: StateSynced): void {
entity.depositorOrRootToken = decoded.value1.toHex()
entity.depositedTokenOrChildToken = decoded.value2.toHex()
entity.data = decoded.value3.toHexString()
entity.rawData = event.params.data.toHexString()

// save entity
entity.save()
Expand Down

0 comments on commit 1de6784

Please sign in to comment.