pub trait EthPoolTransaction: PoolTransaction<Pooled = PooledTransactionsElementEcRecovered, Consensus = TransactionSignedEcRecovered> {
// 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
An extension trait that provides additional interfaces for the
EthTransactionValidator
.
Required Methods§
sourcefn take_blob(&mut self) -> EthBlobTransactionSidecar
fn take_blob(&mut self) -> EthBlobTransactionSidecar
Extracts the blob sidecar from the transaction.
sourcefn blob_count(&self) -> usize
fn blob_count(&self) -> usize
Returns the number of blobs this transaction has.
sourcefn 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.
Object Safety§
This trait is not object safe.
Implementors§
impl EthPoolTransaction for MockTransaction
Available on crate feature
test-utils
only.