mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
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:
committed by
Georgios Konstantopoulos
parent
f65969e90f
commit
13df80c1d1
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
use super::{H256, U256};
|
||||
use bytes::Buf;
|
||||
use modular_bitfield::prelude::*;
|
||||
use reth_codecs::{main_codec, Compact};
|
||||
|
||||
/// Account storage entry.
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user