Feature request: resolve event signature string (needed for indexers) #3765
Unanswered
PaulRBerg
asked this question in
Idea / Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Event Signature String
Feature request: provide a function that takes an
AbiEvent
input and generates an event signature string, e.g.Why?
Such a function would be incredibly helpful for generating indexer manifests, e.g., the YAML subgraph manifests used by The Graph.
Suggested Names
Instead of
signature
, we could also saysig
:deriveEventSignature
getEventSignature
resolveEventSignature
Demo Implementation
I've already written my own implementation:
https://github.com/sablier-labs/indexers/blob/98b1a83/src/codegen/graph-manifest/event-resolver.ts
For which I've also written some tests:
https://github.com/sablier-labs/indexers/blob/98b1a83/tests/event-resolver.test.ts
Beta Was this translation helpful? Give feedback.
All reactions