Skip to content

Commit 7d4208a

Browse files
authored
Support topic filters in event handlers (#1598)
* Allow 3 topics in event handlers * Add changeset
1 parent f256475 commit 7d4208a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/green-trees-vanish.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': minor
3+
---
4+
5+
Allow topic filters in event handlers

packages/cli/src/protocols/ethereum/manifest.graphql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ type CallHandler {
9595
type ContractEventHandler {
9696
event: String!
9797
topic0: String
98+
topic1: [String]
99+
topic2: [String]
100+
topic3: [String]
98101
handler: String!
99102
receipt: Boolean
100103
}

0 commit comments

Comments
 (0)