- Notifications
You must be signed in to change notification settings - Fork2
The BlockchainProvider but using RPC instead of DB
License
Apache-2.0, MIT licenses found
Licenses found
cakevm/alloy-reth-provider
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This crate implements theStateProviderFactory
and related traits fromreth. But instead of using a DB it fetches all state using RPC. This can be useful to not be dependent on a real database when testing e.g. reth ExEx.
Seeevm_call.rs for a complete example.
Quckstart:
// Init the providerlet provider =ProviderBuilder::new().connect_http("https://eth.merkle.io".parse().unwrap());// Init the db providerlet db_provider =AlloyRethProvider::new(provider,EthPrimitives::default());// Use the StateProviderFactorylet state = db_provider.state_by_block_id(BlockId::number(16148323)).unwrap();
The version is always matching the compatible reth version. If this crate receives an update a suffix .e.g.-v2
is added to the version.
Many, many thanks to the team ofreth andalloy-rs for the awesome work they do. Some parts of the trait implementation are taken from reth. Also, many thanks torevm. Thealloy_db
part is a fork from revm because this part is not included in the latest revm version, and it makes it easier to be in sync with the latest Alloy version.
This project is licensed under theApache 2.0 orMIT. The part inalloy_db
is licensed asrevm only underMIT.
About
The BlockchainProvider but using RPC instead of DB
Resources
License
Apache-2.0, MIT licenses found
Licenses found
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.