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§
sourceconst MAXIMUM_BASE_GAS: u64
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§
sourcefn maximum_dispatch_gas_used_at_most(command: &Command) -> u64
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§
sourcefn maximum_gas_used_at_most(command: &Command) -> u64
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.