mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(sdk): define FullSignedTx trait (#12327)
This commit is contained in:
@ -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};
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user