Skip to content
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

feat(anvil): Core types migration #6808

Merged
merged 35 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
b219141
here we go again
Evalir Jan 15, 2024
f825beb
wip: storage
Evalir Jan 15, 2024
a9f3543
chore: migrate executor, fmt
Evalir Jan 15, 2024
13a5576
wip
Evalir Jan 15, 2024
ced4cdc
chore: roughly only signers left
Evalir Jan 16, 2024
183fded
feat: migrate proof, bar trie stuff
Evalir Jan 16, 2024
44c0c7d
chore: onto tests
Evalir Jan 16, 2024
beaa32f
chore: passing most tests
Evalir Jan 17, 2024
ab04832
chore: fix impersonate
Evalir Jan 17, 2024
8221afe
chore: op tests passing
Evalir Jan 17, 2024
309859e
txenvelope
Evalir Jan 17, 2024
44c3c6f
chore: some fixes, typed data
Evalir Jan 18, 2024
b575796
feat(`anvil`): remove old ethers-dependent anvil core types (#6842)
Evalir Jan 19, 2024
76294bc
Merge branch 'master' into evalir/migrate-base-anvil
Evalir Jan 19, 2024
1c3119a
chore: update alloy, cleanup
Evalir Jan 19, 2024
60b166b
chore: fix tests
Evalir Jan 19, 2024
5253f94
chore: rename to sign
Evalir Jan 19, 2024
18bad4b
chore: fmt
Evalir Jan 19, 2024
ff6c4cd
chore: cleanup
Evalir Jan 19, 2024
a71abeb
docs
Evalir Jan 19, 2024
394d2ce
chore: more cleanup
Evalir Jan 19, 2024
2765391
clippy/fmt
Evalir Jan 19, 2024
2d4a1d2
chore: remove ethers from anvil-core, rm fastrlp
Evalir Jan 19, 2024
96e973e
chore: remove fastrlp from exceptions in deny.toml
Evalir Jan 19, 2024
607e53d
chore: rename and cleanup
Evalir Jan 19, 2024
51a4ada
directly use type to decode
Evalir Jan 19, 2024
b776b58
address review comments
Evalir Jan 22, 2024
e1fc95b
Merge branch 'master' into evalir/migrate-base-anvil
onbjerg Jan 22, 2024
a75cee0
feat: onbjerg nits
Evalir Jan 22, 2024
8d8951c
chore: fix deny check
Evalir Jan 22, 2024
c67f393
Merge branch 'master' into evalir/migrate-base-anvil
Evalir Jan 24, 2024
85db6d4
bump alloy
Evalir Jan 24, 2024
ede4871
chore: add to_ethers ext trait for wallets
Evalir Jan 25, 2024
64b77ad
Merge branch 'master' into evalir/migrate-base-anvil
Evalir Jan 25, 2024
07fb76d
chore: update deps, revert changed typed-data tests, set chain id as …
Evalir Jan 25, 2024
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
47 changes: 35 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion crates/anvil/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ vergen = { version = "8", default-features = false, features = ["build", "git",

[dependencies]
# foundry internal
anvil-core = { path = "core", features = ["fastrlp", "serde", "impersonated-tx"] }
anvil-core = { path = "core", features = ["serde", "impersonated-tx"] }
anvil-rpc = { path = "rpc" }
anvil-server = { path = "server" }
foundry-common.workspace = true
Expand All @@ -36,6 +36,12 @@ trie-db = "0.23"
hash-db = "0.15"
memory-db = "0.29"
alloy-primitives = { workspace = true, features = ["serde"] }
alloy-consensus.workspace = true
alloy-network.workspace = true
alloy-rlp.workspace = true
alloy-signer = { workspace = true, features = ["eip712", "mnemonic"] }
alloy-sol-types = { workspace = true, features = ["std"] }
alloy-dyn-abi = { workspace = true, features = ["std", "eip712"] }
alloy-rpc-types.workspace = true
alloy-rpc-trace-types.workspace = true
alloy-providers.workspace = true
Expand Down
4 changes: 1 addition & 3 deletions crates/anvil/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ alloy-rlp.workspace = true
alloy-eips.workspace = true
alloy-network = { workspace = true, features = ["k256"] }
alloy-consensus.workspace = true
ethers-core = { workspace = true, features = ["optimism"] }
alloy-dyn-abi = { workspace = true, features = ["std", "eip712"] }
# theses are not used by anvil-core, but are required by ethers, because pulled in via foundry-common
ethers-contract = { workspace = true, features = ["optimism"] }
ethers-providers = { workspace = true, features = ["optimism"] }
Expand All @@ -30,7 +30,6 @@ ethers-middleware = { workspace = true, features = ["optimism"] }
serde = { workspace = true, optional = true }
serde_json.workspace = true
bytes = "1.4"
open-fastrlp = { version = "0.1.4", optional = true }

# trie
hash-db = { version = "0.15", default-features = false }
Expand All @@ -48,5 +47,4 @@ anvil-core = { path = ".", features = ["serde"] }
[features]
default = ["serde"]
impersonated-tx = []
fastrlp = ["dep:open-fastrlp"]
serde = ["dep:serde"]
Loading
Loading