Skip to content

Migrate from rust-web3 to alloy #6063

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

Draft
wants to merge 44 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d40bb7c
migrate from `ethabi` to `alloy`
isum Feb 14, 2025
1eb13ac
bump crate version
May 7, 2025
b65b095
Add alloy_rpc_types crate
incrypto32 Jun 18, 2025
4211416
chain/ethereum: Add alloy provider to ethereum adapter
incrypto32 Jun 18, 2025
9226501
chain/ethereum: Fix retval import causing rustfmt issues
incrypto32 Jun 18, 2025
cf1b875
chain/ethereum: migrate get_balance call to use alloy
incrypto32 Jun 18, 2025
d592acc
chain/ethereum: migrate get_code call to use alloy
incrypto32 Jun 18, 2025
3035f4e
chain/ethereum: remove unused block_hash_by_block_number method
incrypto32 Jun 18, 2025
3327f3c
chain/ethereum: migrate chain_id call to use alloy
incrypto32 Jun 18, 2025
004f986
chain/ethereum: migrate net_version call to use alloy
incrypto32 Jun 18, 2025
ed10f44
chain/ethereum: migrate next_existing_ptr_to_number call to use alloy
incrypto32 Jun 18, 2025
8d432a6
chain/ethereum: migrate load_block_ptrs_by_numbers_rpc call to use alloy
incrypto32 Jun 18, 2025
d177734
chain/ethereum: migrate load_block_ptrs_rpc call to use alloy
incrypto32 Jun 18, 2025
d806e62
graph, chain, runtime: re export alloy from graph crate and use it
incrypto32 Jun 18, 2025
40009f8
chain/ethereum: migrate genesis block fetching call to use alloy in n…
incrypto32 Jun 18, 2025
617a847
chain/ethereum: migrate latest_block_header call to use alloy
incrypto32 Jun 18, 2025
ad48ab7
chain/ethereum: rename latest_block_header to latest_block_ptr
incrypto32 Jun 18, 2025
ee073ea
chain/ethereum: remove unused latest_block adapter method
incrypto32 Jun 18, 2025
255d227
chain/ethereum: Refactor eth_call method in ethereum adapter
incrypto32 Jun 19, 2025
28c39c2
chain/ethereum: Move eth_call helper functions to separate module
incrypto32 Jun 19, 2025
2e97467
chain/ethereum: Migrate eth_call to use alloy
incrypto32 Jun 19, 2025
d9c4ecd
graph, chain/ethereum: migrate ContractCall to use alloy address
incrypto32 Jun 19, 2025
e295cfd
graph: Add util functions for alloy web3 conversions
incrypto32 Jun 24, 2025
0728e7c
checkpoint
incrypto32 Jun 24, 2025
fb89239
graph: add alloy_transaction_receipt_to_web3_transaction_receipt to c…
incrypto32 Jun 24, 2025
6d1fdc6
receipts checkpoint
incrypto32 Jun 24, 2025
db00339
chain/ethereum: Migrate load_blocks_rpc from futures01 to futures03
incrypto32 Jun 24, 2025
82fb1f9
chain/ethereum: Refactor calls_in_block_range to eliminate Unpin erro…
incrypto32 Jun 24, 2025
dbf24ce
more conversions
incrypto32 Jun 25, 2025
2465e92
chain/ethereum: migrate traces to use alloy
incrypto32 Jun 25, 2025
d8b1e10
more conversions
incrypto32 Jun 25, 2025
f79cffb
chain/ethereum: migrate block methods to alloy part 1
incrypto32 Jun 25, 2025
85cf80d
chain/ethereum: migrate block methods to alloy part 2
incrypto32 Jun 25, 2025
db61bac
chain/ethereum: wrapper for Block
incrypto32 Jun 26, 2025
445dc99
chain/ethereum: wrap web3 block
incrypto32 Jun 26, 2025
973f48e
use alloy block
incrypto32 Jun 26, 2025
0029b69
Migrate transaction receipt to alloy
incrypto32 Jun 26, 2025
38c7839
minor refactor
incrypto32 Jun 26, 2025
e836a53
checkpoint
incrypto32 Jun 26, 2025
30012e2
migrate web3 primitives to alloy_primitives
incrypto32 Jun 29, 2025
924ff9f
minor refactoring
incrypto32 Jun 29, 2025
f1b9c49
Fix more todo's, migratye firehose type conversions to alloy instead …
incrypto32 Jul 2, 2025
71b59f0
Remove unneccessary conversion functions
incrypto32 Jul 2, 2025
56eee8b
update failing tests
incrypto32 Jul 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,618 changes: 2,681 additions & 937 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ repository = "https://github.com/graphprotocol/graph-node"
license = "MIT OR Apache-2.0"

[workspace.dependencies]
alloy = { version = "0.15.10", features = ["full", "arbitrary"] }
alloy-rpc-types = "0.15.10"
anyhow = "1.0"
async-graphql = { version = "7.0.15", features = ["chrono"] }
async-graphql-axum = "7.0.15"
Expand Down
Loading
Loading