mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
primitives: rm alloy_consensus::transaction reexports (#11191)
This commit is contained in:
@ -41,6 +41,7 @@ arbitrary = { workspace = true, features = ["derive"] }
|
||||
proptest.workspace = true
|
||||
proptest-arbitrary-interop.workspace = true
|
||||
rand.workspace = true
|
||||
alloy-consensus.workspace = true
|
||||
|
||||
[features]
|
||||
arbitrary = [
|
||||
|
||||
@ -112,11 +112,12 @@ mod tests {
|
||||
message::RequestPair, BlockBodies, BlockHeaders, GetBlockBodies, GetBlockHeaders,
|
||||
HeadersDirection,
|
||||
};
|
||||
use alloy_consensus::TxLegacy;
|
||||
use alloy_primitives::{hex, TxKind, U256};
|
||||
use alloy_rlp::{Decodable, Encodable};
|
||||
use reth_primitives::{
|
||||
alloy_primitives::Parity, BlockHashOrNumber, Header, Signature, Transaction,
|
||||
TransactionSigned, TxLegacy,
|
||||
TransactionSigned,
|
||||
};
|
||||
use std::str::FromStr;
|
||||
|
||||
|
||||
@ -77,12 +77,13 @@ impl FromIterator<PooledTransactionsElement> for PooledTransactions {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::{message::RequestPair, GetPooledTransactions, PooledTransactions};
|
||||
use alloy_consensus::{TxEip1559, TxLegacy};
|
||||
use alloy_primitives::{hex, TxKind, U256};
|
||||
use alloy_rlp::{Decodable, Encodable};
|
||||
use reth_chainspec::MIN_TRANSACTION_GAS;
|
||||
use reth_primitives::{
|
||||
alloy_primitives::Parity, PooledTransactionsElement, Signature, Transaction,
|
||||
TransactionSigned, TxEip1559, TxLegacy,
|
||||
TransactionSigned,
|
||||
};
|
||||
use std::str::FromStr;
|
||||
|
||||
|
||||
@ -87,6 +87,7 @@ reth-transaction-pool = { workspace = true, features = ["test-utils"] }
|
||||
# alloy deps for testing against nodes
|
||||
alloy-node-bindings.workspace = true
|
||||
alloy-provider= { workspace = true, features = ["admin-api"] }
|
||||
alloy-consensus.workspace = true
|
||||
|
||||
# misc
|
||||
serial_test.workspace = true
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use alloy_consensus::TxEip2930;
|
||||
use alloy_primitives::{Bytes, TxKind, U256};
|
||||
use rand::Rng;
|
||||
use reth_eth_wire::HeadersDirection;
|
||||
@ -16,7 +17,7 @@ use reth_network_p2p::{
|
||||
headers::client::{HeadersClient, HeadersRequest},
|
||||
};
|
||||
use reth_primitives::{
|
||||
alloy_primitives::Parity, Block, Header, Signature, Transaction, TransactionSigned, TxEip2930,
|
||||
alloy_primitives::Parity, Block, Header, Signature, Transaction, TransactionSigned,
|
||||
};
|
||||
use reth_provider::test_utils::MockEthProvider;
|
||||
|
||||
|
||||
@ -2,12 +2,13 @@
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use alloy_consensus::TxLegacy;
|
||||
use alloy_primitives::U256;
|
||||
use futures::StreamExt;
|
||||
use rand::thread_rng;
|
||||
use reth_network::{test_utils::Testnet, NetworkEvent, NetworkEventListenerProvider};
|
||||
use reth_network_api::PeersInfo;
|
||||
use reth_primitives::{Signature, TransactionSigned, TxLegacy};
|
||||
use reth_primitives::{Signature, TransactionSigned};
|
||||
use reth_provider::test_utils::{ExtendedAccount, MockEthProvider};
|
||||
use reth_transaction_pool::{test_utils::TransactionGenerator, PoolTransaction, TransactionPool};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user