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

[wip] feat: provider alloy migration #7106

Merged
merged 71 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
16aebe2
chore: make cast use an alloy provider
Evalir Feb 13, 2024
08a9cca
move initial methods to alloy
Evalir Feb 13, 2024
3de8241
feat(`foundry-common`): NameOrAddress ENS util (#7122)
Evalir Feb 14, 2024
f9d6c99
feat(`cast`): Move non `tx` methods to alloy (#7129)
Evalir Feb 16, 2024
0f98e03
Merge branch 'master' into evalir/cast-provider-mig
Evalir Feb 19, 2024
c983f50
Merge branch 'master' into evalir/cast-provider-mig
klkvr Mar 18, 2024
e482bee
DocumentMut
klkvr Mar 18, 2024
953f915
wip
klkvr Mar 18, 2024
435be40
wip
klkvr Mar 18, 2024
d286ae0
wip: bump alloy
klkvr Mar 18, 2024
04ca105
wip
klkvr Mar 18, 2024
f9fcfd4
wip
klkvr Mar 19, 2024
d1ace73
wip
klkvr Mar 20, 2024
2a723a4
[wip] migrate to alloy providers and signers (#7425)
klkvr Mar 20, 2024
20ce388
fix wallets after alloy bump
klkvr Mar 20, 2024
12fee31
clean up deps
klkvr Mar 21, 2024
7b4e7a5
use serde on consensus types
klkvr Mar 21, 2024
13144ef
update TypedTransaction for anvil
klkvr Mar 22, 2024
3077ad8
make anvil compile
klkvr Mar 22, 2024
2867eac
wip: make script compile
klkvr Mar 22, 2024
dc1df12
fix script
klkvr Mar 22, 2024
9fac722
make forge compile
klkvr Mar 22, 2024
7827988
fix: anvil tests
klkvr Mar 22, 2024
67107c3
bump alloy
klkvr Mar 23, 2024
09ee81f
fix tests
klkvr Mar 23, 2024
1539d37
fix tx builder
klkvr Mar 24, 2024
7889a57
fix cargo.toml
klkvr Mar 24, 2024
b479fa8
fix cargo.toml
klkvr Mar 24, 2024
2d67791
fix script gas price logic
klkvr Mar 25, 2024
323ca27
merge
klkvr Mar 25, 2024
43d19b1
remove ethers from anvil
klkvr Mar 25, 2024
f0a6243
clippy
klkvr Mar 25, 2024
203712e
rm all_derives
klkvr Mar 25, 2024
25276b8
deps
klkvr Mar 27, 2024
a61f4a6
fmt
klkvr Mar 27, 2024
e6e3b57
fix tests
klkvr Mar 27, 2024
aa8fb46
Merge branch 'master' into evalir/cast-provider-mig
klkvr Mar 27, 2024
24f746a
configure clippy
klkvr Mar 27, 2024
5d72ea9
clippy
klkvr Mar 27, 2024
1b762d8
add feature
klkvr Mar 27, 2024
852fa11
fix cargo deny
klkvr Mar 27, 2024
c8781e5
fix persist
klkvr Mar 27, 2024
9760679
fix doctests
klkvr Mar 27, 2024
f93a140
fmt
klkvr Mar 27, 2024
7740eb1
fix clap
klkvr Mar 28, 2024
2800a41
review fixes
klkvr Mar 28, 2024
dc1ce6e
Merge branch 'master' into evalir/cast-provider-mig
klkvr Mar 28, 2024
3ccde5b
fmt
klkvr Mar 28, 2024
3d4373d
bump alloy
klkvr Apr 4, 2024
5204f61
Update cargo.toml
klkvr Apr 4, 2024
c2b404b
Merge branch 'master' into evalir/cast-provider-mig
klkvr Apr 4, 2024
879153a
fmt
klkvr Apr 4, 2024
0431bb3
fixes
klkvr Apr 4, 2024
472d4ff
ethers clean-up
klkvr Apr 5, 2024
ecfcca0
fix(fmt): fix indent closing parenthesis enclosed in { } (#7557)
grandizzy Apr 4, 2024
5efa20e
feat(test): only compile files needed for tests (#7334)
klkvr Apr 4, 2024
398ff1f
fix: do not flood dictionary with data dependent on fuzz inputs (#7552)
klkvr Apr 4, 2024
ec8f6de
Feat: Index cheatcode for Strings (#7539)
kamuik16 Apr 4, 2024
1b846d9
chore: reduce logs in tests (#7566)
DaniPopes Apr 5, 2024
03d900a
fix(script): decode custom error in script fail message (#7563)
grandizzy Apr 5, 2024
3ebf3ab
clippy
klkvr Apr 6, 2024
c734de4
bump alloy
klkvr Apr 6, 2024
1165de0
Merge branch 'master' into evalir/cast-provider-mig
klkvr Apr 6, 2024
26bf989
AnyNetwork
klkvr Apr 7, 2024
50b3bc1
bump alloy
klkvr Apr 7, 2024
4ae360b
add comment
klkvr Apr 7, 2024
6900bef
clippy
klkvr Apr 7, 2024
e8ccb7d
bump alloy
klkvr Apr 9, 2024
f1a95d5
Merge branch 'master' into evalir/cast-provider-mig
klkvr Apr 9, 2024
abd79cf
fixes
klkvr Apr 9, 2024
144dc19
refactor cast logs to use alloy (#7594)
bernard-wagner Apr 9, 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
70 changes: 40 additions & 30 deletions Cargo.lock

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

12 changes: 9 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ ethers-solc = { version = "2.0", default-features = false }

## alloy
alloy-consensus = { git = "https://github.com/alloy-rs/alloy" }
alloy-contract = { git = "https://github.com/alloy-rs/alloy" }
alloy-eips = { git = "https://github.com/alloy-rs/alloy" }
alloy-genesis = { git = "https://github.com/alloy-rs/alloy" }
alloy-json-rpc = { git = "https://github.com/alloy-rs/alloy" }
Expand All @@ -164,9 +165,9 @@ alloy-transport-http = { git = "https://github.com/alloy-rs/alloy" }
alloy-transport-ipc = { git = "https://github.com/alloy-rs/alloy" }
alloy-transport-ws = { git = "https://github.com/alloy-rs/alloy" }
alloy-primitives = { version = "0.6.2", features = ["getrandom"] }
alloy-dyn-abi = "0.6.2"
alloy-json-abi = "0.6.2"
alloy-sol-types = "0.6.2"
alloy-dyn-abi = "0.6"
alloy-json-abi = "0.6"
alloy-sol-types = "0.6"
syn-solidity = "0.6.0"
alloy-chains = "0.1"

Expand Down Expand Up @@ -227,6 +228,11 @@ ethers-signers = { git = "https://github.com/gakonst/ethers-rs", rev = "f0e5b194
ethers-middleware = { git = "https://github.com/gakonst/ethers-rs", rev = "f0e5b194f09c533feb10d1a686ddb9e5946ec107" }
ethers-solc = { git = "https://github.com/gakonst/ethers-rs", rev = "f0e5b194f09c533feb10d1a686ddb9e5946ec107" }

alloy-sol-types = { git = "https://github.com/alloy-rs/core", rev = "18b0509950c90d9ec38f25913b692ae4cdd6f227" }
alloy-dyn-abi = { git = "https://github.com/alloy-rs/core", rev = "18b0509950c90d9ec38f25913b692ae4cdd6f227" }
alloy-json-abi = { git = "https://github.com/alloy-rs/core", rev = "18b0509950c90d9ec38f25913b692ae4cdd6f227" }
alloy-primitives = { git = "https://github.com/alloy-rs/core", rev = "18b0509950c90d9ec38f25913b692ae4cdd6f227" }

revm = { git = "https://github.com/bluealloy/revm", branch = "reth_freeze" }
revm-primitives = { git = "https://github.com/bluealloy/revm", branch = "reth_freeze" }
revm-interpreter = { git = "https://github.com/bluealloy/revm", branch = "reth_freeze" }
Expand Down
2 changes: 1 addition & 1 deletion crates/anvil/src/eth/backend/fork.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ impl ClientFork {

let block_id = BlockId::Number(blocknumber.into());

let code = self.provider().get_code_at(address, block_id).await?;
let code = self.provider().get_code_at(address, Some(block_id)).await?;

let mut storage = self.storage_write();
storage.code_at.insert((address, blocknumber), code.clone().0.into());
Expand Down
1 change: 1 addition & 0 deletions crates/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ alloy-transport-ipc.workspace = true
alloy-json-rpc.workspace = true
alloy-pubsub.workspace = true
alloy-sol-types.workspace = true
alloy-contract.workspace = true

tower.workspace = true

Expand Down
Loading
Loading