chore(sdk): define FullSignedTx trait (#12327)

This commit is contained in:
Emilia Hane
2024-11-06 14:21:17 +01:00
committed by GitHub
parent d8edf9c80e
commit 660ca389e7
2 changed files with 10 additions and 1 deletions

View File

@ -25,7 +25,10 @@ pub mod receipt;
pub use receipt::Receipt;
pub mod transaction;
pub use transaction::{signed::SignedTransaction, FullTransaction, Transaction};
pub use transaction::{
signed::{FullSignedTx, SignedTransaction},
FullTransaction, Transaction,
};
mod integer_list;
pub use integer_list::{IntegerList, IntegerListError};

View File

@ -2,12 +2,18 @@
use alloc::fmt;
use core::hash::Hash;
use reth_codecs::Compact;
use alloy_consensus::Transaction;
use alloy_eips::eip2718::{Decodable2718, Encodable2718};
use alloy_primitives::{keccak256, Address, Signature, TxHash, B256};
use revm_primitives::TxEnv;
/// Helper trait that unifies all behaviour required by block to support full node operations.
pub trait FullSignedTx: SignedTransaction<Transaction: Compact> + Compact {}
impl<T> FullSignedTx for T where T: SignedTransaction<Transaction: Compact> + Compact {}
/// A signed transaction.
pub trait SignedTransaction:
fmt::Debug