Skip to content

feat: l1/l2 indexer service#2001

Closed
tuxcanfly wants to merge 107 commits intoethereum-optimism:developfrom
tuxcanfly:tux/optimism-indexer
Closed

feat: l1/l2 indexer service#2001
tuxcanfly wants to merge 107 commits intoethereum-optimism:developfrom
tuxcanfly:tux/optimism-indexer

Conversation

@tuxcanfly
Copy link
Contributor

@tuxcanfly tuxcanfly commented Jan 12, 2022

Description

This PR adds L1/L2 indexer that is a background service for indexing deposits and withdrawals on L1 and L2 respectively.

The goal is to have all the deposit/withdrawal history by account in the database, that can improve the response time of the frontend that requires these results (for e.g. the gateway bridge).

The L1 deposit indexer starts from a configurable block height and scans blocks for the CanonicalTransactionChain TransactionEnqueued event and adds the deposit transaction details to the database.

To be done:

  • Add L2 indexer for withdrawals
  • Expose paginated deposit/withdrawal tx list by account via REST API

Additional context

Metadata

  • Fixes #[Link to Issue]

@changeset-bot
Copy link

changeset-bot bot commented Jan 12, 2022

⚠️ No Changeset found

Latest commit: cb05e16

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

}
return common.Address{}, fmt.Errorf("invalid address: %v", address)
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be safe to just use the upstream common package for address parsing

@mslipper
Copy link
Collaborator

mslipper commented Mar 7, 2022

Closing in favor of a smaller PR with a single commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ops Area: ops

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants