referrerpolicy=no-referrer-when-downgrade

Trait snowbridge_core::outbound::GasMeter

source ·
pub trait GasMeter {
    const MAXIMUM_BASE_GAS: u64;

    // Required method
    fn maximum_dispatch_gas_used_at_most(command: &Command) -> u64;

    // Provided method
    fn maximum_gas_used_at_most(command: &Command) -> u64 { ... }
}

Required Associated Constants§

source

const MAXIMUM_BASE_GAS: u64

All the gas used for submitting a message to Ethereum, minus the cost of dispatching the command within the message

Required Methods§

source

fn maximum_dispatch_gas_used_at_most(command: &Command) -> u64

Measures the maximum amount of gas a command payload will require to dispatch, NOT including validation & verification.

Provided Methods§

source

fn maximum_gas_used_at_most(command: &Command) -> u64

Total gas consumed at most, including verification & dispatch

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl GasMeter for ()

Implementors§