Skip to content

Commit 02fe646

Browse files
authored
deps(primitives): clean up dependencies (#732)
## πŸ“ Summary Cleans up direct and indirect dependencies (1019 -> 553) in `rbuilder-primitives` ## πŸ’‘ Motivation and Context `rbuilder-primitives` had a lot of unnecessary dependencies. ## βœ… I have completed the following steps: * [x] Run `make lint` * [x] Run `make test` * [ ] Added tests (if applicable)
1 parent 05824e6 commit 02fe646

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

β€ŽCargo.lockβ€Ž

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žcrates/rbuilder-primitives/Cargo.tomlβ€Ž

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ reth-chainspec.workspace = true
4949
reth-primitives-traits.workspace = true
5050
reth-primitives.workspace = true
5151
reth-ethereum-primitives.workspace = true
52-
reth-node-core.workspace = true
53-
reth.workspace = true
52+
reth-transaction-pool.workspace = true
5453

5554
[dev-dependencies]
5655
rand.workspace = true

β€Žcrates/rbuilder-primitives/src/evm_inspector.rsβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use ahash::HashMap;
22
use alloy_consensus::Transaction;
33
use alloy_primitives::{Address, B256, U256};
4+
use alloy_rpc_types::AccessList;
45
use reth_primitives::{Recovered, TransactionSigned};
56
use revm::{
67
bytecode::opcode,
@@ -279,7 +280,7 @@ impl<'a> RBuilderEVMInspector<'a> {
279280
}
280281
}
281282

282-
pub fn into_access_list(self) -> reth::rpc::types::AccessList {
283+
pub fn into_access_list(self) -> AccessList {
283284
self.access_list_inspector.into_access_list()
284285
}
285286
}

β€Žcrates/rbuilder-primitives/src/lib.rsβ€Ž

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,16 @@ use alloy_rlp::Encodable as _;
2121
use derivative::Derivative;
2222
use evm_inspector::UsedStateTrace;
2323
use integer_encoding::VarInt;
24-
use reth::transaction_pool::{
25-
BlobStore, BlobStoreError, EthPooledTransaction, Pool, TransactionOrdering, TransactionPool,
26-
TransactionValidator,
27-
};
2824
use reth_ethereum_primitives::PooledTransactionVariant;
29-
use reth_node_core::primitives::SignedTransaction;
3025
use reth_primitives::{
3126
kzg::{BYTES_PER_BLOB, BYTES_PER_COMMITMENT, BYTES_PER_PROOF},
3227
Recovered, Transaction, TransactionSigned,
3328
};
34-
use reth_primitives_traits::{InMemorySize, SignerRecoverable};
29+
use reth_primitives_traits::{InMemorySize, SignedTransaction as _, SignerRecoverable};
30+
use reth_transaction_pool::{
31+
BlobStore, BlobStoreError, EthPooledTransaction, Pool, TransactionOrdering, TransactionPool,
32+
TransactionValidator,
33+
};
3534
use serde::{Deserialize, Serialize};
3635
use sha2::{Digest, Sha256};
3736
use std::{

0 commit comments

Comments
Β (0)