Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resistant event subs #116

Merged

Conversation

ggwpez
Copy link
Contributor

@ggwpez ggwpez commented Jun 18, 2021

Adds the ResistantEventSub type.
Also introduced a convenience function Subscribe(ctx context.Context, cr ethereum.ChainReader, contract *bind.BoundContract, eFact EventFactory, startBlockOffset, confirmations uint64) (*ResistantEventSub, error) which makes it easier to create a resistant sub.
I am not happy with the arguments of Subscribe yet, since it are so many.

Closes #40
Draft until #105 is closed

@ggwpez ggwpez added the waiting This MR is waiting for some dependency. label Jul 22, 2021
@ggwpez ggwpez self-assigned this Aug 19, 2021
@ggwpez ggwpez removed the waiting This MR is waiting for some dependency. label Aug 19, 2021
@ggwpez ggwpez force-pushed the 40-resistant-event-subs branch 2 times, most recently from 7b22232 to f963424 Compare August 19, 2021 13:10
@ggwpez ggwpez marked this pull request as ready for review August 19, 2021 13:16
backend/ethereum/subscription/eventsub.go Outdated Show resolved Hide resolved
backend/ethereum/subscription/resistanteventsub.go Outdated Show resolved Hide resolved
backend/ethereum/subscription/resistanteventsub.go Outdated Show resolved Hide resolved
backend/ethereum/subscription/resistanteventsub_test.go Outdated Show resolved Hide resolved
backend/ethereum/subscription/resistanteventsub_test.go Outdated Show resolved Hide resolved
backend/ethereum/subscription/resistanteventsub_test.go Outdated Show resolved Hide resolved
backend/ethereum/subscription/resistanteventsub_test.go Outdated Show resolved Hide resolved
@ggwpez ggwpez force-pushed the 40-resistant-event-subs branch 3 times, most recently from 931187e to 52211ad Compare August 23, 2021 13:12
@matthiasgeihs matthiasgeihs merged commit 76a3764 into hyperledger-labs:dev Aug 24, 2021
@matthiasgeihs matthiasgeihs deleted the 40-resistant-event-subs branch August 24, 2021 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resistant Event Sub
2 participants