Skip to content

Commit

Permalink
feat: ethereum-specific transaction (#13368)
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr authored Dec 12, 2024
1 parent cfdd740 commit 8f262e5
Show file tree
Hide file tree
Showing 4 changed files with 608 additions and 5 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

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

29 changes: 24 additions & 5 deletions crates/ethereum/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,28 @@ reth-primitives-traits.workspace = true
reth-zstd-compressors = { workspace = true, optional = true }

# ethereum
alloy-eips.workspace = true
alloy-primitives.workspace = true
alloy-consensus.workspace = true
alloy-consensus = { workspace = true, features = ["serde"] }
alloy-rlp.workspace = true

# misc
arbitrary = { workspace = true, optional = true, features = ["derive"] }
derive_more.workspace = true
modular-bitfield = { workspace = true, optional = true }
once_cell.workspace = true
rand = { workspace = true, optional = true }
secp256k1 = { workspace = true, optional = true, features = ["rand"] }
serde.workspace = true

[dev-dependencies]
arbitrary.workspace = true
proptest.workspace = true
proptest-arbitrary-interop.workspace = true
rand.workspace = true
reth-codecs.workspace = true
reth-zstd-compressors.workspace = true
secp256k1.workspace = true
test-fuzz.workspace = true

[features]
Expand All @@ -37,8 +49,12 @@ std = [
"alloy-primitives/std",
"alloy-rlp/std",
"reth-primitives-traits/std",
"reth-zstd-compressors?/std",
"serde/std"
"reth-zstd-compressors?/std",
"serde/std",
"alloy-eips/std",
"derive_more/std",
"secp256k1?/std",
"once_cell/std"
]
reth-codec = [
"std",
Expand All @@ -47,9 +63,12 @@ reth-codec = [
"dep:reth-zstd-compressors",
]
arbitrary = [
"dep:arbitrary",
"dep:arbitrary",
"dep:rand",
"dep:secp256k1",
"alloy-consensus/arbitrary",
"alloy-primitives/arbitrary",
"reth-codecs?/arbitrary",
"reth-primitives-traits/arbitrary"
"reth-primitives-traits/arbitrary",
"alloy-eips/arbitrary"
]
3 changes: 3 additions & 0 deletions crates/ethereum/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ extern crate alloc;

mod receipt;
pub use receipt::*;

mod transaction;
pub use transaction::*;
Loading

0 comments on commit 8f262e5

Please sign in to comment.