chore: move IntegerList to reth-primitives-traits (#8948)

This commit is contained in:
joshieDo
2024-06-19 16:13:31 +02:00
committed by GitHub
parent a3fd112915
commit d0b241c0c2
16 changed files with 32 additions and 258 deletions

View File

@ -15,6 +15,7 @@ workspace = true
# reth
reth-db-api.workspace = true
reth-primitives.workspace = true
reth-primitives-traits.workspace = true
reth-fs-util.workspace = true
reth-storage-errors.workspace = true
reth-libmdbx = { workspace = true, optional = true, features = [

View File

@ -482,7 +482,8 @@ mod tests {
table::{Encode, Table},
};
use reth_libmdbx::Error;
use reth_primitives::{Account, Address, Header, IntegerList, StorageEntry, B256, U256};
use reth_primitives::{Account, Address, Header, StorageEntry, B256, U256};
use reth_primitives_traits::IntegerList;
use reth_storage_errors::db::{DatabaseWriteError, DatabaseWriteOperation};
use std::str::FromStr;
use tempfile::TempDir;

View File

@ -1,6 +1,6 @@
//! Curates the input coming from the fuzzer for certain types.
use reth_primitives::IntegerList;
use reth_primitives_traits::IntegerList;
use serde::{Deserialize, Serialize};
/// Makes sure that the list provided by the fuzzer is not empty and pre-sorted

View File

@ -19,6 +19,9 @@ macro_rules! impl_fuzzer_with_input {
#[allow(unused_imports)]
use reth_primitives::*;
#[allow(unused_imports)]
use reth_primitives_traits::*;
#[allow(unused_imports)]
use super::inputs::*;

View File

@ -32,9 +32,10 @@ use reth_db_api::{
table::{Decode, DupSort, Encode, Table},
};
use reth_primitives::{
Account, Address, BlockHash, BlockNumber, Bytecode, Header, IntegerList, Receipt, Requests,
StorageEntry, TransactionSignedNoHash, TxHash, TxNumber, B256,
Account, Address, BlockHash, BlockNumber, Bytecode, Header, Receipt, Requests, StorageEntry,
TransactionSignedNoHash, TxHash, TxNumber, B256,
};
use reth_primitives_traits::IntegerList;
use reth_prune_types::{PruneCheckpoint, PruneSegment};
use reth_stages_types::StageCheckpoint;
use reth_trie_common::{StorageTrieEntry, StoredBranchNode, StoredNibbles, StoredNibblesSubKey};