pub trait Eip2718EncodableReceipt: RlpEncodableReceipt + Typed2718 {
// Required methods
fn eip2718_encoded_length_with_bloom(&self, bloom: &Bloom) -> usize;
fn eip2718_encode_with_bloom(&self, bloom: &Bloom, out: &mut dyn BufMut);
}
Expand description
Receipt type that knows its EIP-2718 encoding.
Main consumer of this trait is ReceiptWithBloom
. It is expected that RlpEncodableReceipt
implementation for this type produces network encoding whcih is used by alloy_rlp::Encodable
implementation for ReceiptWithBloom
.
Required Methods§
sourcefn eip2718_encoded_length_with_bloom(&self, bloom: &Bloom) -> usize
fn eip2718_encoded_length_with_bloom(&self, bloom: &Bloom) -> usize
EIP-2718 encoded length with the provided bloom filter.
sourcefn eip2718_encode_with_bloom(&self, bloom: &Bloom, out: &mut dyn BufMut)
fn eip2718_encode_with_bloom(&self, bloom: &Bloom, out: &mut dyn BufMut)
EIP-2718 encodes the receipt with the provided bloom filter.