created | tags | author | ||||
---|---|---|---|---|---|---|
2022-01-02T13:16:41 (UTC -08:00) |
|
EVM gasometer.
pub struct Gasometer<'config> { /* fields omitted */ }
Expand description
EVM gasometer.
Create a new gasometer with given gas limit and config.
Returns the numerical gas cost value.
Reference of the config.
Remaining gas.
Total used gas.
Refunded gas.
Explictly fail the gasometer with out of gas. Return OutOfGas
error.
Record an explict cost.
Record an explict refund.
Record CREATE
code deposit.
Record opcode gas cost.
Record opcode stipend.
Record transaction cost.
Formats the value using the given formatter. Read more
impl Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into for T where
U: From,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.