chore(codecs): contain [Struct]Flags in a mod and import what's necessary (#329)

* contain StructFlags in a mod with its imports

* update code generation test
This commit is contained in:
joshieDo
2022-12-05 13:21:54 +08:00
committed by Georgios Konstantopoulos
parent f65969e90f
commit 13df80c1d1
11 changed files with 59 additions and 50 deletions

View File

@ -1,6 +1,4 @@
use crate::{H256, U256};
use bytes::Buf;
use modular_bitfield::prelude::*;
use reth_codecs::{main_codec, Compact};
/// Account saved in database

View File

@ -2,9 +2,8 @@ use crate::{
proofs::{EMPTY_LIST_HASH, EMPTY_ROOT},
BlockHash, BlockNumber, Bloom, H160, H256, U256,
};
use bytes::{Buf, BufMut, BytesMut};
use bytes::{BufMut, BytesMut};
use ethers_core::{types::H64, utils::keccak256};
use modular_bitfield::prelude::*;
use reth_codecs::{main_codec, Compact};
use reth_rlp::{length_of_length, Decodable, Encodable};
use std::ops::Deref;

View File

@ -1,6 +1,5 @@
use crate::{Bloom, Log, TxType};
use bytes::{Buf, BufMut, BytesMut};
use modular_bitfield::prelude::*;
use reth_codecs::{main_codec, Compact};
use reth_rlp::{length_of_length, Decodable, Encodable};
use std::cmp::Ordering;

View File

@ -1,6 +1,4 @@
use super::{H256, U256};
use bytes::Buf;
use modular_bitfield::prelude::*;
use reth_codecs::{main_codec, Compact};
/// Account storage entry.

View File

@ -3,7 +3,6 @@ pub use access_list::{AccessList, AccessListItem};
use bytes::{Buf, BytesMut};
use derive_more::{AsRef, Deref};
use ethers_core::utils::keccak256;
use modular_bitfield::prelude::*;
use reth_codecs::{main_codec, Compact};
use reth_rlp::{length_of_length, Decodable, DecodeError, Encodable, Header, EMPTY_STRING_CODE};
pub use signature::Signature;

View File

@ -1,6 +1,4 @@
use crate::{transaction::util::secp256k1, Address, H256, U256};
use bytes::Buf;
use modular_bitfield::prelude::*;
use reth_codecs::{main_codec, Compact};
use reth_rlp::{Decodable, DecodeError, Encodable};