pub trait ReceiptBuilder {
type Transaction: SignedTransaction + TransactionEnvelope
where <Self::Transaction as TransactionEnvelope>::TxType: Send + 'static;
type Receipt: Receipt;
// Required method
fn build_receipt<T>(
&self,
ctx: ReceiptBuilderCtx<<Self::Transaction as TransactionEnvelope>::TxType, TxResultExt<<T as EvmTypesHost>::TxResultExt>>,
) -> Self::Receipt
where T: EvmTypes;
}Available on crate feature
evm only.Expand description
Builds chain-specific receipts from raw transaction execution results.
Required Associated Types§
Sourcetype Transaction: SignedTransaction + TransactionEnvelope
where
<Self::Transaction as TransactionEnvelope>::TxType: Send + 'static
type Transaction: SignedTransaction + TransactionEnvelope where <Self::Transaction as TransactionEnvelope>::TxType: Send + 'static
Consensus transaction type accepted by the executor.
Required Methods§
Sourcefn build_receipt<T>(
&self,
ctx: ReceiptBuilderCtx<<Self::Transaction as TransactionEnvelope>::TxType, TxResultExt<<T as EvmTypesHost>::TxResultExt>>,
) -> Self::Receiptwhere
T: EvmTypes,
fn build_receipt<T>(
&self,
ctx: ReceiptBuilderCtx<<Self::Transaction as TransactionEnvelope>::TxType, TxResultExt<<T as EvmTypesHost>::TxResultExt>>,
) -> Self::Receiptwhere
T: EvmTypes,
Builds a receipt for the transaction execution result.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".