mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
testing: clean up reth-primitives import (#10760)
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2550,6 +2550,7 @@ dependencies = [
|
|||||||
name = "ef-tests"
|
name = "ef-tests"
|
||||||
version = "1.0.6"
|
version = "1.0.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"alloy-primitives",
|
||||||
"alloy-rlp",
|
"alloy-rlp",
|
||||||
"rayon",
|
"rayon",
|
||||||
"reth-chainspec",
|
"reth-chainspec",
|
||||||
@ -8698,6 +8699,7 @@ version = "1.0.6"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"alloy-eips",
|
"alloy-eips",
|
||||||
"alloy-genesis",
|
"alloy-genesis",
|
||||||
|
"alloy-primitives",
|
||||||
"rand 0.8.5",
|
"rand 0.8.5",
|
||||||
"reth-primitives",
|
"reth-primitives",
|
||||||
"secp256k1",
|
"secp256k1",
|
||||||
|
|||||||
@ -25,6 +25,7 @@ reth-stages.workspace = true
|
|||||||
reth-evm-ethereum.workspace = true
|
reth-evm-ethereum.workspace = true
|
||||||
|
|
||||||
alloy-rlp.workspace = true
|
alloy-rlp.workspace = true
|
||||||
|
alloy-primitives.workspace = true
|
||||||
|
|
||||||
walkdir = "2.3.3"
|
walkdir = "2.3.3"
|
||||||
serde.workspace = true
|
serde.workspace = true
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
//! Shared models for <https://github.com/ethereum/tests>
|
//! Shared models for <https://github.com/ethereum/tests>
|
||||||
|
|
||||||
use crate::{assert::assert_equal, Error};
|
use crate::{assert::assert_equal, Error};
|
||||||
|
use alloy_primitives::{Address, Bloom, Bytes, B256, B64, U256};
|
||||||
use reth_chainspec::{ChainSpec, ChainSpecBuilder};
|
use reth_chainspec::{ChainSpec, ChainSpecBuilder};
|
||||||
use reth_db::tables;
|
use reth_db::tables;
|
||||||
use reth_db_api::{
|
use reth_db_api::{
|
||||||
@ -8,8 +9,8 @@ use reth_db_api::{
|
|||||||
transaction::{DbTx, DbTxMut},
|
transaction::{DbTx, DbTxMut},
|
||||||
};
|
};
|
||||||
use reth_primitives::{
|
use reth_primitives::{
|
||||||
keccak256, Account as RethAccount, Address, Bloom, Bytecode, Bytes, Header as RethHeader,
|
keccak256, Account as RethAccount, Bytecode, Header as RethHeader, SealedHeader, StorageEntry,
|
||||||
SealedHeader, StorageEntry, Withdrawals, B256, B64, U256,
|
Withdrawals,
|
||||||
};
|
};
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
use std::{collections::BTreeMap, ops::Deref};
|
use std::{collections::BTreeMap, ops::Deref};
|
||||||
|
|||||||
@ -16,6 +16,7 @@ reth-primitives = { workspace = true, features = ["secp256k1"] }
|
|||||||
|
|
||||||
alloy-eips.workspace = true
|
alloy-eips.workspace = true
|
||||||
alloy-genesis.workspace = true
|
alloy-genesis.workspace = true
|
||||||
|
alloy-primitives.workspace = true
|
||||||
|
|
||||||
rand.workspace = true
|
rand.workspace = true
|
||||||
secp256k1 = { workspace = true, features = ["rand"] }
|
secp256k1 = { workspace = true, features = ["rand"] }
|
||||||
|
|||||||
@ -3,14 +3,14 @@
|
|||||||
use alloy_eips::{
|
use alloy_eips::{
|
||||||
eip6110::DepositRequest, eip7002::WithdrawalRequest, eip7251::ConsolidationRequest,
|
eip6110::DepositRequest, eip7002::WithdrawalRequest, eip7251::ConsolidationRequest,
|
||||||
};
|
};
|
||||||
|
use alloy_primitives::{Address, BlockNumber, Bytes, TxKind, B256, U256};
|
||||||
pub use rand::Rng;
|
pub use rand::Rng;
|
||||||
use rand::{
|
use rand::{
|
||||||
distributions::uniform::SampleRange, rngs::StdRng, seq::SliceRandom, thread_rng, SeedableRng,
|
distributions::uniform::SampleRange, rngs::StdRng, seq::SliceRandom, thread_rng, SeedableRng,
|
||||||
};
|
};
|
||||||
use reth_primitives::{
|
use reth_primitives::{
|
||||||
proofs, sign_message, Account, Address, BlockNumber, Bytes, Header, Log, Receipt, Request,
|
proofs, sign_message, Account, Header, Log, Receipt, Request, Requests, SealedBlock,
|
||||||
Requests, SealedBlock, SealedHeader, StorageEntry, Transaction, TransactionSigned, TxKind,
|
SealedHeader, StorageEntry, Transaction, TransactionSigned, TxLegacy, Withdrawal, Withdrawals,
|
||||||
TxLegacy, Withdrawal, Withdrawals, B256, U256,
|
|
||||||
};
|
};
|
||||||
use secp256k1::{Keypair, Secp256k1};
|
use secp256k1::{Keypair, Secp256k1};
|
||||||
use std::{
|
use std::{
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
//! signers to the genesis block.
|
//! signers to the genesis block.
|
||||||
|
|
||||||
use alloy_genesis::GenesisAccount;
|
use alloy_genesis::GenesisAccount;
|
||||||
use reth_primitives::{public_key_to_address, Address, Bytes, B256, U256};
|
use alloy_primitives::{Address, Bytes, B256, U256};
|
||||||
|
use reth_primitives::public_key_to_address;
|
||||||
use secp256k1::{
|
use secp256k1::{
|
||||||
rand::{thread_rng, RngCore},
|
rand::{thread_rng, RngCore},
|
||||||
Keypair, Secp256k1,
|
Keypair, Secp256k1,
|
||||||
|
|||||||
Reference in New Issue
Block a user