Skip to content

Commit

Permalink
chore(anvil): Add base alloy types (foundry-rs#6778)
Browse files Browse the repository at this point in the history
* chore: typedtx skeleton

* feat: add all alloy tx types

* chore: add op deposit tx support

* chore: add block type

* feat: proof type

* chore: fix test

* docs

* chore: move optimism types to their own file

* chore: more docs
  • Loading branch information
Evalir authored Jan 15, 2024
1 parent 54cd6a4 commit fbd8c34
Show file tree
Hide file tree
Showing 10 changed files with 1,608 additions and 21 deletions.
52 changes: 36 additions & 16 deletions Cargo.lock

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

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

## alloy
alloy-consensus = "0.1.0"
alloy-network = "0.1.0"
alloy-json-rpc = "0.1.0"
alloy-providers = "0.1.0"
alloy-pubsub = "0.1.0"
alloy-rpc-client = "0.1.0"
alloy-rpc-trace-types = "0.1.0"
alloy-rpc-types = "0.1.0"
alloy-eips = "0.1.0"
alloy-transport = "0.1.0"
alloy-transport-http = "0.1.0"
alloy-transport-ipc = "0.1.0"
Expand Down Expand Up @@ -211,14 +213,16 @@ 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-consensus = { git = "https://github.com/alloy-rs/alloy" }
alloy-consensus = { git = "https://github.com/alloy-rs/alloy" }
alloy-network = { git = "https://github.com/alloy-rs/alloy" }
alloy-json-rpc = { git = "https://github.com/alloy-rs/alloy" }
alloy-providers = { git = "https://github.com/alloy-rs/alloy" }
alloy-pubsub = { git = "https://github.com/alloy-rs/alloy" }
alloy-rpc-client = { git = "https://github.com/alloy-rs/alloy" }
alloy-rpc-trace-types = { git = "https://github.com/alloy-rs/alloy" }
alloy-rpc-types = { git = "https://github.com/alloy-rs/alloy" }
# alloy-signer = { git = "https://github.com/alloy-rs/alloy" }
alloy-eips = { git = "https://github.com/alloy-rs/alloy" }
alloy-signer = { git = "https://github.com/alloy-rs/alloy" }
alloy-transport = { git = "https://github.com/alloy-rs/alloy" }
alloy-transport-http = { git = "https://github.com/alloy-rs/alloy" }
alloy-transport-ipc = { git = "https://github.com/alloy-rs/alloy" }
Expand Down
4 changes: 4 additions & 0 deletions crates/anvil/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ revm = { workspace = true, default-features = false, features = ["std", "serde",
alloy-primitives = { workspace = true, features = ["serde"] }
alloy-rpc-types = { workspace = true }
alloy-rpc-trace-types.workspace = true
alloy-rlp.workspace = true
alloy-eips.workspace = true
alloy-network = { workspace = true, features = ["k256"] }
alloy-consensus.workspace = true
ethers-core = { workspace = true, features = ["optimism"] }
# theses are not used by anvil-core, but are required by ethers, because pulled in via foundry-common
ethers-contract = { workspace = true, features = ["optimism"] }
Expand Down
Loading

0 comments on commit fbd8c34

Please sign in to comment.