You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation: As part of #19 we need a generic event subscription. It will then be used to build the generic reorg resistant event subscription.
Design: The current prototype implementation looks like this: uml.txt EventFactory is defined as func() EventType since otherwise i would need to use reflections to clone the EventType.
Possible extensions:
Gas bumper
Rebroadcasting
Receipt polling
Persistence
Usage: Subscribing to all ERC20Approval events of the token contract would look like this:
Testing: I already have a test to check that emitted events are received. This should be enough in combination with the additional reorg tests that i added.
The text was updated successfully, but these errors were encountered:
Location: New Package
[backend/eth/glue]
Motivation: As part of #19 we need a generic event subscription. It will then be used to build the generic reorg resistant event subscription.
Design: The current prototype implementation looks like this:
uml.txt
EventFactory
is defined asfunc() EventType
since otherwise i would need to use reflections to clone theEventType
.Possible extensions:
Usage: Subscribing to all
ERC20Approval
events of thetoken
contract would look like this:Testing: I already have a test to check that emitted events are received. This should be enough in combination with the additional reorg tests that i added.
The text was updated successfully, but these errors were encountered: