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

feat: add L1 indexer to fetch contract logs for the bridge #291

Closed
wants to merge 61 commits into from

Conversation

helciofranco
Copy link
Member

@helciofranco helciofranco commented Apr 4, 2024

Add L1 indexer, it'll sync contract events logs from a given start block number.
After that, it'll keep watching the blockchain for new logs and blocks.

New env vars have been added to the graphql:

  • FUEL_CHAIN_NAME (example fuelBeta5)
  • ETH_CHAIN_NAME (example sepolia)
  • ETH_ALCHEMY_ID (your alchemy key)
  • ETH_INFURA_ID (your infura key – used as fallback to alchemy)
  • ETH_INITIAL_BLOCK (block number that got our contracts)

📷 Indexer demo

pnpm sync:bridge
Screen.Recording.2024-04-04.at.18.04.24.mov

💾 API demo

Query Result
Screenshot 2024-04-04 at 18 01 16 Screenshot 2024-04-04 at 18 01 27

@helciofranco helciofranco force-pushed the hf/feat/bridge-transaction branch from 29ec81f to 4713245 Compare April 10, 2024 13:35
@LuizAsFight LuizAsFight marked this pull request as draft July 17, 2024 04:06
@helciofranco helciofranco added the blocked Blocked by another issue label Sep 11, 2024
@helciofranco
Copy link
Member Author

Closing this as it has become too outdated.
We can reopen it later if still relevant.

@helciofranco helciofranco deleted the hf/feat/bridge-transaction branch December 10, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Blocked by another issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement L1 Indexer on the bridge
3 participants