ReceiptConverter

Trait ReceiptConverter 

pub trait ReceiptConverter<N>: Debug + 'static
where N: NodePrimitives,
{ type RpcReceipt; type Error; // Required method fn convert_receipts( &self, receipts: Vec<ConvertReceiptInput<'_, N>>, ) -> Result<Vec<Self::RpcReceipt>, Self::Error>; }
Expand description

A type that knows how to convert primitive receipts to RPC representations.

Required Associated Types§

type RpcReceipt

RPC representation.

type Error

Error that may occur during conversion.

Required Methods§

fn convert_receipts( &self, receipts: Vec<ConvertReceiptInput<'_, N>>, ) -> Result<Vec<Self::RpcReceipt>, Self::Error>

Converts a set of primitive receipts to RPC representations. It is guaranteed that all receipts are from the same block.

Implementors§

§

impl<N, ChainSpec> ReceiptConverter<N> for EthReceiptConverter<ChainSpec>
where N: NodePrimitives<Receipt = Receipt>, ChainSpec: EthChainSpec + 'static,