feat(primitives): re-export EIP-7702 types (#9481)

This commit is contained in:
Alexey Shekhirin
2024-07-12 19:12:33 +01:00
committed by GitHub
parent d8b104fce2
commit d036350d7a
4 changed files with 13 additions and 4 deletions

View 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};

View File

@ -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;

View File

@ -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};

View File

@ -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,
};