-
Notifications
You must be signed in to change notification settings - Fork 0
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
Block number indexer #10
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Co-authored-by: Michał Podsiadły <[email protected]>
fe861ee
to
9a5aac6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please align the BlockNumberIndexer example in the @l2beat/uif after merging this package. You can even copy the tests there.
L2B-2153 Set up BlockNumberIndexer
The BlockNumberIndexer gets the latest block number. The source for block numbers would be block explorer (Etherscan) and RPC endpoint. Ideally, we'll copy the code from dydx for this indexer and adapt it.
Part of this work was done while writing examples to UIF. This example can be used as a reference: https://linear.app/l2beat/issue/L2B-1818/write-a-latest-block-indexer-based-on-dydx-work |
Resolves L2B-2153