Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The BlockchainProvider but using RPC instead of DB

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
NotificationsYou must be signed in to change notification settings

cakevm/alloy-reth-provider

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.

Architecture

Architecture

Example

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();

Versioning

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.

Acknowledgements

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.

License

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

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp