mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(primitives): re-export EIP-7702 types (#9481)
This commit is contained in:
5
crates/primitives/src/eip7702.rs
Normal file
5
crates/primitives/src/eip7702.rs
Normal file
@ -0,0 +1,5 @@
|
||||
//! Types for working with EIP-7702 transactions.
|
||||
|
||||
/// Re-export from `alloy_eips`.
|
||||
#[doc(inline)]
|
||||
pub use alloy_eips::eip7702::{Authorization, OptionalNonce, SignedAuthorization};
|
||||
@ -28,6 +28,7 @@ mod block;
|
||||
mod compression;
|
||||
pub mod constants;
|
||||
pub mod eip4844;
|
||||
pub mod eip7702;
|
||||
pub mod genesis;
|
||||
pub mod proofs;
|
||||
mod receipt;
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
use super::access_list::AccessList;
|
||||
use crate::{keccak256, Bytes, ChainId, Signature, TxKind, TxType, B256, U256};
|
||||
use alloy_eips::eip7702::SignedAuthorization;
|
||||
use crate::{
|
||||
eip7702::SignedAuthorization, keccak256, Bytes, ChainId, Signature, TxKind, TxType, B256, U256,
|
||||
};
|
||||
use alloy_rlp::{length_of_length, Decodable, Encodable, Header};
|
||||
use core::mem;
|
||||
use reth_codecs::{main_codec, Compact};
|
||||
|
||||
@ -2,9 +2,11 @@
|
||||
|
||||
#[cfg(any(feature = "arbitrary", feature = "zstd-codec"))]
|
||||
use crate::compression::{TRANSACTION_COMPRESSOR, TRANSACTION_DECOMPRESSOR};
|
||||
use crate::{keccak256, Address, BlockHashOrNumber, Bytes, TxHash, TxKind, B256, U256};
|
||||
use crate::{
|
||||
eip7702::SignedAuthorization, keccak256, Address, BlockHashOrNumber, Bytes, TxHash, TxKind,
|
||||
B256, U256,
|
||||
};
|
||||
|
||||
use alloy_eips::eip7702::SignedAuthorization;
|
||||
use alloy_rlp::{
|
||||
Decodable, Encodable, Error as RlpError, Header, EMPTY_LIST_CODE, EMPTY_STRING_CODE,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user