Trait alloy_consensus::transaction::Typed2718

source ·
pub trait Typed2718 {
    // Required method
    fn ty(&self) -> u8;

    // Provided methods
    fn is_type(&self, ty: u8) -> bool { ... }
    fn is_legacy(&self) -> bool { ... }
    fn is_eip2930(&self) -> bool { ... }
    fn is_eip1559(&self) -> bool { ... }
    fn is_eip4844(&self) -> bool { ... }
    fn is_eip7702(&self) -> bool { ... }
}
Expand description

A trait that helps to determine the type of the transaction.

Required Methods§

source

fn ty(&self) -> u8

Returns the EIP-2718 type flag.

Provided Methods§

source

fn is_type(&self, ty: u8) -> bool

Returns true if the type matches the given type.

source

fn is_legacy(&self) -> bool

Returns true if the type is a legacy transaction.

source

fn is_eip2930(&self) -> bool

Returns true if the type is an EIP-2930 transaction.

source

fn is_eip1559(&self) -> bool

Returns true if the type is an EIP-1559 transaction.

source

fn is_eip4844(&self) -> bool

Returns true if the type is an EIP-4844 transaction.

source

fn is_eip7702(&self) -> bool

Returns true if the type is an EIP-7702 transaction.

Implementations on Foreign Types§

source§

impl<'a, T: 'a + Typed2718 + ?Sized> Typed2718 for &'a T

source§

fn ty(&self) -> u8

source§

fn is_type(&self, ty: u8) -> bool

source§

fn is_legacy(&self) -> bool

source§

fn is_eip2930(&self) -> bool

source§

fn is_eip1559(&self) -> bool

source§

fn is_eip4844(&self) -> bool

source§

fn is_eip7702(&self) -> bool

source§

impl<T: Typed2718> Typed2718 for WithOtherFields<T>

source§

fn ty(&self) -> u8

Implementors§