chore: mark ecrecovered types as deprecated (#13882)

This commit is contained in:
Matthias Seitz
2025-01-20 16:46:36 +01:00
committed by GitHub
parent ca63696779
commit 7483c1e292
3 changed files with 6 additions and 2 deletions

View File

@ -45,9 +45,10 @@ pub use alloy_consensus::{
}; };
pub use transaction::{ pub use transaction::{
util::secp256k1::{public_key_to_address, recover_signer_unchecked, sign_message}, util::secp256k1::{public_key_to_address, recover_signer_unchecked, sign_message},
InvalidTransactionError, PooledTransactionsElementEcRecovered, Transaction, TransactionSigned, InvalidTransactionError, Transaction, TransactionSigned, TxType,
TransactionSignedEcRecovered, TxType,
}; };
#[allow(deprecated)]
pub use transaction::{PooledTransactionsElementEcRecovered, TransactionSignedEcRecovered};
// Re-exports // Re-exports
pub use reth_ethereum_forks::*; pub use reth_ethereum_forks::*;

View File

@ -3,6 +3,7 @@
use crate::RecoveredTx; use crate::RecoveredTx;
pub use alloy_consensus::transaction::PooledTransaction; pub use alloy_consensus::transaction::PooledTransaction;
use once_cell as _; use once_cell as _;
#[allow(deprecated)]
pub use pooled::PooledTransactionsElementEcRecovered; pub use pooled::PooledTransactionsElementEcRecovered;
pub use reth_primitives_traits::{ pub use reth_primitives_traits::{
sync::{LazyLock, OnceLock}, sync::{LazyLock, OnceLock},
@ -29,4 +30,5 @@ mod tx_type;
pub use reth_ethereum_primitives::{Transaction, TransactionSigned}; pub use reth_ethereum_primitives::{Transaction, TransactionSigned};
/// Type alias kept for backward compatibility. /// Type alias kept for backward compatibility.
#[deprecated(note = "Use `Recovered` instead")]
pub type TransactionSignedEcRecovered<T = TransactionSigned> = RecoveredTx<T>; pub type TransactionSignedEcRecovered<T = TransactionSigned> = RecoveredTx<T>;

View File

@ -5,4 +5,5 @@ use crate::RecoveredTx;
use alloy_consensus::transaction::PooledTransaction; use alloy_consensus::transaction::PooledTransaction;
/// A signed pooled transaction with recovered signer. /// A signed pooled transaction with recovered signer.
#[deprecated(note = "use `Recovered` instead")]
pub type PooledTransactionsElementEcRecovered<T = PooledTransaction> = RecoveredTx<T>; pub type PooledTransactionsElementEcRecovered<T = PooledTransaction> = RecoveredTx<T>;