Skip to content
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
282 commits
Select commit Hold shift + click to select a range
8946aa3
restructure, move out of utils into evm, precompiles and future handlers
zerosnacks Mar 28, 2025
24a7e83
clean up
zerosnacks Mar 28, 2025
2f671e5
clean up
zerosnacks Mar 28, 2025
dd0a072
improve docs
zerosnacks Mar 28, 2025
f15710c
scaffold handler
zerosnacks Mar 28, 2025
3269e90
evaluate how to add handles
zerosnacks Mar 28, 2025
c42e152
prefer EnvRef over EnvMut
zerosnacks Mar 28, 2025
523a7b6
address feedback of owned env
zerosnacks Mar 28, 2025
28dc375
revert get_or_insert_map workaround
zerosnacks Mar 28, 2025
58a8994
avoid changing types, leave mut where previously, avoid unnecessary mut
zerosnacks Mar 28, 2025
b7e2484
start layout out handler registry connected to evm
zerosnacks Mar 31, 2025
b08e41b
get create2 from frame inputs
zerosnacks Mar 31, 2025
ed210a3
start adding create2 handler
zerosnacks Mar 31, 2025
73141a9
continue create2handler
zerosnacks Mar 31, 2025
242df6b
wrap up create2 handler
zerosnacks Mar 31, 2025
ba5d558
clean up
zerosnacks Mar 31, 2025
9f935a2
continue fixing types
zerosnacks Mar 31, 2025
94c94a7
generalize precompiles
zerosnacks Mar 31, 2025
eff2a0c
clean up
zerosnacks Mar 31, 2025
d6ac47d
tag inline
zerosnacks Apr 1, 2025
0429e63
Merge branch 'master' into zerosnacks/revm-bump-2
zerosnacks Apr 1, 2025
8534afc
fix imports
zerosnacks Apr 1, 2025
7742e25
start fixing cheatcode types
zerosnacks Apr 1, 2025
df22fcc
use `env` on handler
zerosnacks Apr 1, 2025
3469e1c
clean up
zerosnacks Apr 2, 2025
02ebd02
temp revert
zerosnacks Apr 2, 2025
268e1b7
odyssey precompile was deprecated
zerosnacks Apr 2, 2025
0e2085d
refix cheatcode types
zerosnacks Apr 2, 2025
de3e8f7
merge in master
zerosnacks Apr 2, 2025
f69d141
clean up
zerosnacks Apr 2, 2025
30a6284
still facing issues with borrow-checker, double mut
zerosnacks Apr 2, 2025
eb3142e
open questions around passing around env
zerosnacks Apr 2, 2025
5fb9554
minor fix
zerosnacks Apr 2, 2025
2a4bfa4
for now work around mutability limitations by limited cloning, unclea…
zerosnacks Apr 2, 2025
270dbad
continue fixing types, still issues around cheatcodes, inspector
zerosnacks Apr 2, 2025
12c3b71
merge in master
zerosnacks Apr 8, 2025
6ed3ae7
bump revm
zerosnacks Apr 8, 2025
f0fca47
bump deps
zerosnacks Apr 8, 2025
ed7c35c
minor type fixes
zerosnacks Apr 8, 2025
25440e8
bump foundry-fork-db to handle c-kzg build issue
zerosnacks Apr 8, 2025
464b39e
bump rust version
zerosnacks Apr 8, 2025
7b0279b
utilize Host, ContextTr, JournalTr to avoid double mutable borrows
zerosnacks Apr 9, 2025
0daddb8
temp revert
zerosnacks Apr 10, 2025
2e3107e
merge in master
zerosnacks Apr 10, 2025
cc045f2
temp revert
zerosnacks Apr 10, 2025
926db33
restore handler, improve types
zerosnacks Apr 10, 2025
a25b13b
refactor types
zerosnacks Apr 10, 2025
695f0ff
restore types
zerosnacks Apr 10, 2025
fc5b1ec
restore, clean up
zerosnacks Apr 10, 2025
4f24fb6
continue fixing types
zerosnacks Apr 10, 2025
11146d7
clean up
zerosnacks Apr 11, 2025
44afdd2
Merge branch 'master' into zerosnacks/revm-bump-2
zerosnacks Apr 11, 2025
9b27ff2
continue fixing types
zerosnacks Apr 11, 2025
ec10771
Merge branch 'master' into zerosnacks/revm-bump-2
zerosnacks Apr 14, 2025
8957990
revert journal env cloning, still issues around double borrows
zerosnacks Apr 14, 2025
32c7201
fix core types per conversation, use EnvMut<'_>
zerosnacks Apr 15, 2025
db518f3
merge in master
zerosnacks Apr 15, 2025
2db1c84
fix types
zerosnacks Apr 15, 2025
4849341
more progress for foundry-evm
klkvr Apr 15, 2025
9735c08
mutate outcome in place
zerosnacks Apr 16, 2025
756ac40
temp revert exec_create
zerosnacks Apr 16, 2025
efebbf6
some progress with porting with_evm core loop
zerosnacks Apr 16, 2025
c589110
remove redundant types
zerosnacks Apr 16, 2025
61a9338
context -> test_context in Cheatcodes config
zerosnacks Apr 16, 2025
6373a24
construct new handler, wrapping evm context, imports Handler trait
zerosnacks Apr 16, 2025
106cdf4
temporarily comment out exec_create section to unblock
zerosnacks Apr 16, 2025
1eb2ca8
add replacement of EnvWithHandlerCfg
zerosnacks Apr 16, 2025
10cd5bf
minor fixes
zerosnacks Apr 16, 2025
8a908af
continue fixing types
zerosnacks Apr 16, 2025
8968b00
continue fixing types
zerosnacks Apr 16, 2025
c42649f
fix merge conflict
zerosnacks Apr 16, 2025
479b151
continue fixing types
zerosnacks Apr 17, 2025
2f5c2ec
continue fixing types
zerosnacks Apr 17, 2025
27bf832
continue types
zerosnacks Apr 17, 2025
a978d45
fix cached_env
zerosnacks Apr 17, 2025
28c0e9e
remove possibly incorrect handling of CreateOutcome on methods like d…
zerosnacks Apr 17, 2025
ab40c0f
add custom_printer from revm19, porting for compatibility
zerosnacks Apr 17, 2025
2d4f538
cast: fix types
zerosnacks Apr 17, 2025
3d607f3
verify: fix types
zerosnacks Apr 17, 2025
7a6b9c1
forge + script: fix types
zerosnacks Apr 17, 2025
e20d2a6
anvil: start fixing types
zerosnacks Apr 17, 2025
8d06e42
anvil: continue porting types
zerosnacks Apr 17, 2025
b94f25f
anvil: continue porting types
zerosnacks Apr 17, 2025
905b253
anvil: continue porting types
zerosnacks Apr 17, 2025
9fbeb83
anvil: continue porting types, small fix in foundry-evm
zerosnacks Apr 17, 2025
7ecf953
use AnvilEvm
zerosnacks Apr 22, 2025
93543f6
fix merge conflict
zerosnacks Apr 22, 2025
20383c1
stash optimism hardfork specifics for now
zerosnacks Apr 22, 2025
630ffc4
temp mute anvil use in forge
zerosnacks Apr 22, 2025
92f2465
apply apparant fixes, test still failing
zerosnacks Apr 23, 2025
0586f90
clean up
zerosnacks Apr 23, 2025
5843f31
revert to replay
zerosnacks Apr 23, 2025
5005376
apply possible nonce 0/1 fixes, committed to proceed
zerosnacks Apr 24, 2025
c78af12
disable nonce check in local_evm_env
zerosnacks Apr 24, 2025
73f1842
undo is_odyssey remove
zerosnacks Apr 24, 2025
e3d51f3
always spawn evm with handler
zerosnacks Apr 24, 2025
ad855f5
replay() -> inspect_replay()
zerosnacks Apr 25, 2025
b8dfec2
modify macro, comment out anvil related cast tests for the time being
zerosnacks Apr 25, 2025
3624b54
reapply state depth = 1
zerosnacks Apr 25, 2025
e4b3493
something like this?
zerosnacks Apr 25, 2025
058731e
introduce outer block for early return
zerosnacks Apr 25, 2025
25a5ce7
print debugging
zerosnacks Apr 25, 2025
1d28788
clean up
zerosnacks Apr 25, 2025
34face7
merge in master, note no known equivalent of bytecode_address, to do
zerosnacks Apr 25, 2025
ab71127
fix merge
zerosnacks Apr 25, 2025
100f72c
migrate: anvil to revm 21 (#10361)
yash-atreya Apr 29, 2025
4aa7b08
merge in master
zerosnacks Apr 29, 2025
c7d41af
intermediary(`revm bump`): re-enable Anvil tests, remove duplicate `L…
zerosnacks Apr 30, 2025
69c1e57
fix merge conflicts
zerosnacks Apr 30, 2025
0c11f5a
disable nonce checks on forks, enforce setting of tx.nonce on set_nonce
zerosnacks Apr 30, 2025
6ada1ed
fix: use `transact` from alloy-evm (#10417)
yash-atreya Apr 30, 2025
0957ba6
Merge branch 'master' into zerosnacks/revm-bump-2
zerosnacks May 1, 2025
f70e0b0
Patch revm to fix interpreter panic
grandizzy May 5, 2025
95f0c15
bump revm
klkvr May 5, 2025
00ae885
fix eof test
klkvr May 5, 2025
fe0340a
fix bytecode hash
klkvr May 6, 2025
3145a9a
fix fixture
klkvr May 6, 2025
22c9073
fix fixture
klkvr May 6, 2025
ab95c68
fix fixture
klkvr May 6, 2025
e3c8602
chore: mv EitherEvm to foundry_evm (#10445)
yash-atreya May 6, 2025
645cef6
remove unused JournalTr
zerosnacks May 6, 2025
1908428
restore formatting, avoid diff
zerosnacks May 6, 2025
9e2af65
merge in master, fix merge conflict
zerosnacks May 6, 2025
38ffcf8
remove leftover comment re: optimism support
zerosnacks May 6, 2025
741afe1
fix displays_chained_error test
zerosnacks May 6, 2025
647ba04
fix doc test
zerosnacks May 6, 2025
078d14c
remove optimism todo leftover
zerosnacks May 6, 2025
2165526
avoid direct field assignment, prefer *current.
zerosnacks May 6, 2025
d08fa08
create2 handler register
klkvr May 6, 2025
d8d8b97
fix patch
klkvr May 6, 2025
10cd73d
fix test_broadcast_raw_create2_deployer
klkvr May 7, 2025
2b4acf4
bump alloy and related deps
yash-atreya May 7, 2025
98f5249
fix: common
yash-atreya May 7, 2025
52eeac5
fix gas meter test
zerosnacks May 7, 2025
7431dc9
fix
yash-atreya May 7, 2025
f193acb
fix: ConsoleFmt proc_macro
yash-atreya May 7, 2025
9a75cc0
more fixes
yash-atreya May 7, 2025
0142e17
fix: validate bool removal from abi_decode_*
yash-atreya May 7, 2025
f02addf
fix: use take_slice instead of take_slice_unchecked in Decoder
yash-atreya May 7, 2025
e2d9101
fix more validate bool removal
yash-atreya May 7, 2025
30c93ea
correctly reset env.tx to cached env, cfg and block, ref https://gith…
zerosnacks May 7, 2025
c098b46
address more alloy-core 1.0 breaking changes
yash-atreya May 7, 2025
0a9cbaf
fix anvil
yash-atreya May 7, 2025
c9449f9
exec_create
klkvr May 7, 2025
f44cdf4
fix cast
yash-atreya May 7, 2025
3d3bc96
bump gcloudsdk in wallets
yash-atreya May 7, 2025
57fb11b
fix(`cheatcodes`): rand workaround
yash-atreya May 7, 2025
4832b10
revert test_GasMeter, assert exact gas used
zerosnacks May 7, 2025
5b47a33
Merge branch 'zerosnacks/revm-bump-2' of github.com:foundry-rs/foundr…
zerosnacks May 7, 2025
2f09b68
fix arbitrum test
klkvr May 7, 2025
5c290d3
address deprecations
yash-atreya May 7, 2025
e25d45c
doc test fixes
zerosnacks May 7, 2025
d4d1313
fix clippy warnings
zerosnacks May 7, 2025
fd702f5
Merge branch 'zerosnacks/revm-bump-2' of github.com:foundry-rs/foundr…
zerosnacks May 7, 2025
0e28b8a
remove leftover comment
zerosnacks May 7, 2025
95cd68f
fix assert_can_detect_unlinked_target_with_libraries, ref: https://gi…
zerosnacks May 7, 2025
13f3bc1
fix gas metering tests
klkvr May 7, 2025
8ce5c47
restore unintended .wrap_err changes, ref: https://github.com/search?…
zerosnacks May 7, 2025
a682067
fix test_cheats_local_default
klkvr May 7, 2025
e823899
Merge branch 'master' into zerosnacks/revm-bump-2
klkvr May 7, 2025
569fca9
add CC0-1.0 license exception, has been previously approved in Reth: …
zerosnacks May 7, 2025
91bd0a2
usize depth
klkvr May 7, 2025
959a00f
repin foundry-fork-db, this aligns the revm and alloy version back
zerosnacks May 7, 2025
f25ca3f
Merge branch 'zerosnacks/revm-bump-2' of github.com:foundry-rs/foundr…
zerosnacks May 7, 2025
aca65af
fix clippy, after usize depth change
zerosnacks May 7, 2025
9fdd30d
allow foundry-fork-db as git exception
zerosnacks May 7, 2025
35f84a4
revm 23
yash-atreya May 7, 2025
0bae474
fix: EitherEvm should work over OpTransaction
yash-atreya May 8, 2025
91baf54
bump compilers and explorers
yash-atreya May 8, 2025
cfd7292
Merge branch 'master' into zerosnacks/revm-bump-2
zerosnacks May 8, 2025
5ccf7de
fix fmt
zerosnacks May 8, 2025
4f07ea3
Merge branch 'zerosnacks/revm-bump-2' of github.com:foundry-rs/foundr…
zerosnacks May 8, 2025
5b5fc8c
Env::from_with_spec_id -> Env::new_with_spec_id
zerosnacks May 8, 2025
97470d3
bump clippy msrv to align with foundry.toml
zerosnacks May 8, 2025
593225f
fix merge conflict
zerosnacks May 9, 2025
2d6312d
chore: avoid leaking Anvil specific optimism fields into evm/core (#1…
zerosnacks May 9, 2025
a928abc
fix merge conflict
zerosnacks May 9, 2025
fc6b765
refactor anvil Env and reduce changes in tx processing
klkvr May 11, 2025
c7c1162
Merge branch 'master' into zerosnacks/revm-bump-2
klkvr May 11, 2025
76b5e37
merge in master, fix merge conflicts, attempt to bump / align deps
zerosnacks May 12, 2025
dd0d5e4
apply revm bump fixes, solar fixes
zerosnacks May 12, 2025
5cde72b
Merge branch 'master' into yash/revm-alloy-bumps
zerosnacks May 12, 2025
031e060
Merge branch 'master' into zerosnacks/revm-bump-2
zerosnacks May 12, 2025
a703ff1
merge in upstream
zerosnacks May 12, 2025
9609de1
bump op-alloy-*
zerosnacks May 12, 2025
5762908
bump to msrv 1.86 for solar, use 0.15.* for alloy instead of pinning …
zerosnacks May 12, 2025
4e3f71d
fix: correctly set txtype when setting up TxEnv
klkvr May 12, 2025
7aa4cc2
start upgrading to revm 23
zerosnacks May 12, 2025
d572707
bump PR to be revm 23+ compatible
zerosnacks May 12, 2025
3f954d5
merge in fixes from upstream
zerosnacks May 12, 2025
7e2b0ea
fix: correctly set txtype when setting up TxEnv
klkvr May 12, 2025
c81e241
Merge branch 'zerosnacks/revm-bump-2' of github.com:foundry-rs/foundr…
zerosnacks May 12, 2025
1aa5a8d
Merge branch 'zerosnacks/revm-bump-2' into yash/revm-alloy-bumps
zerosnacks May 12, 2025
4b4da4a
fix: correctly set txtype when setting up TxEnv
klkvr May 12, 2025
69ce947
clean up
zerosnacks May 12, 2025
7478f52
fix merge conflicts
zerosnacks May 12, 2025
c2c8d5a
fix merge conflict, apply fixes from upstream
zerosnacks May 12, 2025
69ece68
bump to 0.7.2
zerosnacks May 12, 2025
a47f2cd
fix order
zerosnacks May 12, 2025
a032ce2
update block-explorers and compilers
zerosnacks May 12, 2025
f088549
fix clippy
zerosnacks May 12, 2025
24cbd03
fix failing abi test
klkvr May 12, 2025
e9e96fe
empty
klkvr May 12, 2025
67c11cd
integrate BlobParams into anvil
klkvr May 12, 2025
f3bd2f4
fix tests
klkvr May 12, 2025
8886129
fix cast decode-event
klkvr May 12, 2025
7db5df3
fix tests
klkvr May 12, 2025
9b44dcf
fix colored_traces
klkvr May 12, 2025
d0b8bbd
fix gas pausing
klkvr May 12, 2025
cdfe0f5
fix tests
klkvr May 12, 2025
312b274
fix test
klkvr May 13, 2025
2bb2ffd
Merge branch 'master' into zerosnacks/revm-bump-2
zerosnacks May 13, 2025
fb53456
update last commits from master to be u64 compatible
zerosnacks May 13, 2025
a524116
merge in upstream changes
zerosnacks May 13, 2025
312a5fd
syn no longer implements PartialEq requiring us to use `matches!`
zerosnacks May 13, 2025
9ea7ff4
Merge branch 'master' into zerosnacks/revm-bump-2
klkvr May 13, 2025
ccc2c70
Merge branch 'zerosnacks/revm-bump-2' into yash/revm-alloy-bumps
zerosnacks May 13, 2025
812f61f
temp comment out journal push loop
zerosnacks May 13, 2025
766f60f
fix clippy lint
zerosnacks May 13, 2025
fec95f2
revert clippy changes, make sure lint-foundry uses nightly clippy ver…
zerosnacks May 13, 2025
de5be3d
Merge branch 'zerosnacks/revm-bump-2' into yash/revm-alloy-bumps
zerosnacks May 13, 2025
f8b4c7c
fix merge conflict
zerosnacks May 14, 2025
7fee967
Merge branch 'zerosnacks/revm-bump-2' into yash/revm-alloy-bumps
zerosnacks May 14, 2025
ad13f87
also assert that blob_count is less than the configured max_blob_count
zerosnacks May 14, 2025
4e6c62f
fix: only upgrade tx_type to eip-2930 (type 1) if it is a legacy tx
zerosnacks May 14, 2025
5244a40
optimistically remove previous workaround that was required for inter…
zerosnacks May 14, 2025
5a28624
nit
zerosnacks May 14, 2025
a241455
prefer using typed TransactionType over raw u8
zerosnacks May 14, 2025
9a4fb2b
apply tx_type if set, upgrading from legacy to eip2930 if access_list…
zerosnacks May 14, 2025
fcfaa25
restore #[ret] macro that was removed unintendedly
zerosnacks May 14, 2025
5ad9091
replace redundant Env::new_with_spec_id(..) with default
zerosnacks May 14, 2025
d6aa9a0
allow passing is_optimism into Env constructor specific to Anvil
zerosnacks May 14, 2025
78c94f7
extract environment configuration into init.rs to make configuring th…
zerosnacks May 14, 2025
f1acfc4
merge in master, add some tests to make sure immediate_size change ap…
zerosnacks May 15, 2025
21ef359
remove redundant debug derive
zerosnacks May 15, 2025
d8e6d5a
restore #[cold] do hardhat log, previously preferred inline because o…
zerosnacks May 15, 2025
ec23a38
avoid code duplication, add documented `apply_accesslist`
zerosnacks May 15, 2025
19a9289
fix merge conflicts stemming from https://github.com/foundry-rs/found…
zerosnacks May 16, 2025
10826a9
alloy 1.0 + fork-db 0.14 + op-alloy 0.16 + revm-insp 0.22 + block-exp…
yash-atreya May 16, 2025
8468c46
fix clippy
zerosnacks May 16, 2025
7392f81
Merge branch 'master' into zerosnacks/revm-bump-2
zerosnacks May 19, 2025
46460a5
fix merge conflict from master
zerosnacks May 19, 2025
1d591cd
Update crates/evm/evm/src/inspectors/logs.rs
zerosnacks May 19, 2025
8998b84
fix fmt
zerosnacks May 19, 2025
89c5e83
set env tx type by deriving tx type from other fields if no transacti…
zerosnacks May 19, 2025
31d8943
use hardfork configured max_blob_count rather than hardcoded Dancun i…
zerosnacks May 19, 2025
2305bbf
add temporary workaround for failing StdChains test because eth.llama…
zerosnacks May 19, 2025
777badb
merge in latest master
zerosnacks May 19, 2025
a78a8a6
bump(`revm`: step 3): reintroduce precompile injection (#10508)
zerosnacks May 19, 2025
429a90a
bump deps to latest
zerosnacks May 19, 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
1,836 changes: 1,304 additions & 532 deletions Cargo.lock

Large diffs are not rendered by default.

113 changes: 70 additions & 43 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ resolver = "2"
version = "1.2.0"
edition = "2021"
# Remember to update clippy.toml as well
rust-version = "1.83"
rust-version = "1.86"
authors = ["Foundry Contributors"]
license = "MIT OR Apache-2.0"
homepage = "https://github.com/foundry-rs/foundry"
Expand Down Expand Up @@ -116,10 +116,17 @@ alloy-sol-types.opt-level = 3
hashbrown.opt-level = 3
foldhash.opt-level = 3
keccak.opt-level = 3
revm.opt-level = 3
revm-primitives.opt-level = 3
revm-interpreter.opt-level = 3
revm-precompile.opt-level = 3
revm-primitives.opt-level = 3
revm.opt-level = 3
revm-database-interface.opt-level = 3
revm-database.opt-level = 3
revm-bytecode.opt-level = 3
revm-state.opt-level = 3
revm-context-interface.opt-level = 3
revm-context.opt-level = 3
revm-inspector.opt-level = 3
ruint.opt-level = 3
sha2.opt-level = 3
sha3.opt-level = 3
Expand Down Expand Up @@ -188,61 +195,65 @@ foundry-wallets = { path = "crates/wallets" }
foundry-linking = { path = "crates/linking" }

# solc & compilation utilities
foundry-block-explorers = { version = "0.13.3", default-features = false }
foundry-compilers = { version = "0.14.0", default-features = false }
foundry-fork-db = "0.12"
foundry-block-explorers = { version = "0.16.0", default-features = false }
foundry-compilers = { version = "0.16.0", default-features = false }
foundry-fork-db = "0.13"
solang-parser = "=0.3.3"
solar-parse = { version = "=0.1.2", default-features = false }
solar-sema = { version = "=0.1.2", default-features = false }
solar-parse = { version = "=0.1.3", default-features = false }
solar-sema = { version = "=0.1.3", default-features = false }

## revm
revm = { version = "19.4.0", default-features = false }
revm-primitives = { version = "15.1.0", default-features = false }
revm-inspectors = { version = "0.16.0", features = ["serde"] }
revm = { version = "23.1.0", default-features = false }
revm-inspectors = { version = "0.21.0", features = ["serde"] }
op-revm = { version = "4.0.2", default-features = false }

## alloy-evm
alloy-evm = "0.7.2"
alloy-op-evm = "0.7.2"

## alloy
alloy-consensus = { version = "0.12.1", default-features = false }
alloy-contract = { version = "0.12.1", default-features = false }
alloy-eips = { version = "0.12.1", default-features = false }
alloy-genesis = { version = "0.12.1", default-features = false }
alloy-json-rpc = { version = "0.12.1", default-features = false }
alloy-network = { version = "0.12.1", default-features = false }
alloy-provider = { version = "0.12.1", default-features = false }
alloy-pubsub = { version = "0.12.1", default-features = false }
alloy-rpc-client = { version = "0.12.1", default-features = false }
alloy-rpc-types = { version = "0.12.1", default-features = true }
alloy-serde = { version = "0.12.1", default-features = false }
alloy-signer = { version = "0.12.1", default-features = false }
alloy-signer-aws = { version = "0.12.1", default-features = false }
alloy-signer-gcp = { version = "0.12.1", default-features = false }
alloy-signer-ledger = { version = "0.12.1", default-features = false }
alloy-signer-local = { version = "0.12.1", default-features = false }
alloy-signer-trezor = { version = "0.12.1", default-features = false }
alloy-transport = { version = "0.12.1", default-features = false }
alloy-transport-http = { version = "0.12.1", default-features = false }
alloy-transport-ipc = { version = "0.12.1", default-features = false }
alloy-transport-ws = { version = "0.12.1", default-features = false }
alloy-consensus = { version = "0.15", default-features = false }
alloy-contract = { version = "0.15", default-features = false }
alloy-eips = { version = "0.15", default-features = false }
alloy-genesis = { version = "0.15", default-features = false }
alloy-json-rpc = { version = "0.15", default-features = false }
alloy-network = { version = "0.15", default-features = false }
alloy-provider = { version = "0.15", default-features = false }
alloy-pubsub = { version = "0.15", default-features = false }
alloy-rpc-client = { version = "0.15", default-features = false }
alloy-rpc-types = { version = "0.15", default-features = true }
alloy-serde = { version = "0.15", default-features = false }
alloy-signer = { version = "0.15", default-features = false }
alloy-signer-aws = { version = "0.15", default-features = false }
alloy-signer-gcp = { version = "0.15", default-features = false }
alloy-signer-ledger = { version = "0.15", default-features = false }
alloy-signer-local = { version = "0.15", default-features = false }
alloy-signer-trezor = { version = "0.15", default-features = false }
alloy-transport = { version = "0.15", default-features = false }
alloy-transport-http = { version = "0.15", default-features = false }
alloy-transport-ipc = { version = "0.15", default-features = false }
alloy-transport-ws = { version = "0.15", default-features = false }

## alloy-core
alloy-dyn-abi = "0.8.22"
alloy-json-abi = "0.8.22"
alloy-primitives = { version = "0.8.22", features = [
alloy-dyn-abi = "1.0"
alloy-json-abi = "1.0"
alloy-primitives = { version = "1.0", features = [
"getrandom",
"rand",
"map-fxhash",
"map-foldhash",
] }
alloy-sol-macro-expander = "0.8.22"
alloy-sol-macro-input = "0.8.22"
alloy-sol-types = "0.8.22"
alloy-sol-macro-expander = "1.0"
alloy-sol-macro-input = "1.0"
alloy-sol-types = "1.0"

alloy-chains = "0.1"
alloy-chains = "0.2"
alloy-rlp = "0.3"
alloy-trie = "0.7.0"
alloy-trie = "0.8.0"

## op-alloy
op-alloy-consensus = "0.11.0"
op-alloy-rpc-types = "0.11.0"
op-alloy-consensus = "0.15.5"
op-alloy-rpc-types = "0.15.5"

## cli
anstream = "0.6"
Expand Down Expand Up @@ -289,7 +300,9 @@ mesc = "0.3"
num-format = "0.4"
parking_lot = "0.12"
proptest = "1"
rand = "0.8"
rand = "0.9"
rand_08 = { package = "rand", version = "0.8" }
rand_chacha = "0.9.0"
rayon = "1"
regex = { version = "1", default-features = false }
reqwest = { version = "0.12", default-features = false, features = [
Expand Down Expand Up @@ -359,3 +372,17 @@ idna_adapter = "=1.1.0"
# alloy-transport-http = { git = "https://github.com/alloy-rs/alloy", rev = "7fab7ee" }
# alloy-transport-ipc = { git = "https://github.com/alloy-rs/alloy", rev = "7fab7ee" }
# alloy-transport-ws = { git = "https://github.com/alloy-rs/alloy", rev = "7fab7ee" }

## alloy-evm
# alloy-evm = { git = "https://github.com/alloy-rs/evm.git", rev = "95f6a8a" }
# alloy-op-evm = { git = "https://github.com/alloy-rs/evm.git", rev = "95f6a8a" }

## revm
revm = { git = "https://github.com/bluealloy/revm.git", rev = "b5808253" }
op-revm = { git = "https://github.com/bluealloy/revm.git", rev = "b5808253" }
Comment on lines +381 to +382
Copy link
Member

@zerosnacks zerosnacks May 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This currently pins to bluealloy/revm#2512 that we rely on, not yet included in a 23.* release

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ref: bluealloy/revm#2527

Pending release

# revm-inspectors = { git = "https://github.com/paradigmxyz/revm-inspectors.git", rev = "a625c04" }

## foundry
# foundry-compilers = { git = "https://github.com/foundry-rs/compilers.git", rev = "d05c34a" }
# foundry-block-explorers = { git = "https://github.com/foundry-rs/block-explorers.git", rev = "beafa80" }
# foundry-fork-db = { git = "https://github.com/foundry-rs/foundry-fork-db", rev = "cdbbe64" }
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ fmt: ## Run all formatters.
./.github/scripts/format.sh --check

lint-foundry:
RUSTFLAGS="-Dwarnings" cargo clippy --workspace --all-targets --all-features
RUSTFLAGS="-Dwarnings" cargo +nightly clippy --workspace --all-targets --all-features

lint-codespell: ensure-codespell
codespell --skip "*.json"
Expand Down
2 changes: 1 addition & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
msrv = "1.83"
msrv = "1.86"

# `bytes::Bytes` is included by default and `alloy_primitives::Bytes` is a wrapper around it,
# so it is safe to ignore it as well.
Expand Down
23 changes: 15 additions & 8 deletions crates/anvil/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,11 @@ foundry-cli.workspace = true
foundry-common.workspace = true
foundry-config.workspace = true
foundry-evm.workspace = true
foundry-evm-core.workspace = true

# evm support
revm = { workspace = true, features = [
"std",
"serde",
"memory_limit",
"c-kzg",
] }
revm-inspectors.workspace = true
# alloy
alloy-evm.workspace = true
alloy-op-evm.workspace = true
alloy-primitives = { workspace = true, features = ["serde"] }
alloy-consensus = { workspace = true, features = ["k256", "kzg"] }
alloy-contract = { workspace = true, features = ["pubsub"] }
Expand All @@ -61,6 +57,16 @@ alloy-genesis.workspace = true
alloy-trie.workspace = true
op-alloy-consensus = { workspace = true, features = ["serde"] }

# revm
revm = { workspace = true, features = [
"std",
"serde",
"memory_limit",
"c-kzg",
] }
revm-inspectors.workspace = true
op-revm.workspace = true

# axum related
axum.workspace = true
hyper.workspace = true
Expand All @@ -84,6 +90,7 @@ yansi.workspace = true
tempfile.workspace = true
itertools.workspace = true
rand.workspace = true
rand_08.workspace = true
eyre.workspace = true

# cli
Expand Down
1 change: 1 addition & 0 deletions crates/anvil/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ revm = { workspace = true, default-features = false, features = [
"memory_limit",
"c-kzg",
] }
op-revm.workspace = true

alloy-primitives = { workspace = true, features = ["serde", "rlp"] }
alloy-rpc-types = { workspace = true, features = ["anvil", "trace"] }
Expand Down
4 changes: 2 additions & 2 deletions crates/anvil/core/src/eth/subscription.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Subscription types
use alloy_primitives::hex;
use rand::{distributions::Alphanumeric, thread_rng, Rng};
use rand::{distr::Alphanumeric, rng, Rng};
use std::fmt;

/// Unique subscription id
Expand Down Expand Up @@ -48,7 +48,7 @@ impl HexIdProvider {
/// Generates a random hex encoded Id
pub fn gen(&self) -> String {
let id: String =
(&mut thread_rng()).sample_iter(Alphanumeric).map(char::from).take(self.len).collect();
(&mut rng()).sample_iter(Alphanumeric).map(char::from).take(self.len).collect();
let out = hex::encode(id);
format!("0x{out}")
}
Expand Down
Loading
Loading