Trait EthPoolTransaction
pub trait EthPoolTransaction: PoolTransactionwhere
Self::Consensus: From<TransactionSignedEcRecovered> + Into<TransactionSignedEcRecovered>,
Self::Pooled: From<PooledTransactionsElementEcRecovered> + Into<PooledTransactionsElementEcRecovered>,{
// Required methods
fn take_blob(&mut self) -> EthBlobTransactionSidecar;
fn blob_count(&self) -> usize;
fn validate_blob(
&self,
blob: &BlobTransactionSidecar,
settings: &KZGSettings,
) -> Result<(), BlobTransactionValidationError>;
fn authorization_count(&self) -> usize;
}
Expand description
Super trait for transactions that can be converted to and from Eth transactions
Required Methods§
fn take_blob(&mut self) -> EthBlobTransactionSidecar
fn take_blob(&mut self) -> EthBlobTransactionSidecar
Extracts the blob sidecar from the transaction.
fn blob_count(&self) -> usize
fn blob_count(&self) -> usize
Returns the number of blobs this transaction has.
fn validate_blob(
&self,
blob: &BlobTransactionSidecar,
settings: &KZGSettings,
) -> Result<(), BlobTransactionValidationError>
fn validate_blob( &self, blob: &BlobTransactionSidecar, settings: &KZGSettings, ) -> Result<(), BlobTransactionValidationError>
Validates the blob sidecar of the transaction with the given settings.
Returns the number of authorizations this transaction has.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.