joshstevens19 / rindexer

A no-code blazing fast EVM indexer tool built in rust.
https://rindexer.xyz
MIT License
267 stars 24 forks source link

wip: Alloy migration example #71

Closed nuts-rice closed 1 month ago

nuts-rice commented 1 month ago

Hey there just a small example of what migrating to Alloy would look like. Feel free to run the tests, if this isn't needed currently, ignore.

Details: A switch from ethers provider api to alloy's. Provider struct including fields for Arc'd provider, cache, and max block range. Fn for getting latest block including cache hit check. Includes tests using rpc urls

Todo: Retry client options including max compute units etc helper fns create_client fn that uses retry client options.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rindexer-documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 30, 2024 7:52pm
joshstevens19 commented 1 month ago

Thanks for the start - this task is pretty large and could break tons of things - right now we have ethers in tons of place it’s probably going to be better if I deal with it as I know the codebase well it’s on list and il will use this for reference as I go - thanks a lot either way plenty of other issues if you wanted to help out on rindexer 🙏