OpAttributes

Trait OpAttributes 

pub trait OpAttributes: PayloadBuilderAttributes {
    type Transaction: SignedTransaction;

    // Required methods
    fn no_tx_pool(&self) -> bool;
    fn sequencer_transactions(&self) -> &[WithEncoded<Self::Transaction>];
}
Expand description

Attributes for the OP payload builder.

Required Associated Types§

type Transaction: SignedTransaction

Primitive transaction type.

Required Methods§

fn no_tx_pool(&self) -> bool

Whether to use the transaction pool for the payload.

fn sequencer_transactions(&self) -> &[WithEncoded<Self::Transaction>]

Sequencer transactions to include in the payload.

Implementors§

§

impl<T> OpAttributes for OpPayloadBuilderAttributes<T>
where T: SignedTransaction,

§

type Transaction = T