Skip to main content

Module checked

Module checked 

Source

Enums§

IotaGasStatus
Version aware enum for gas status.

Traits§

IotaGasStatusAPI

Functions§

check_gas_bounds
Validates the transaction’s declared gas price and budget against the epoch reference gas price and the protocol config bounds.
deduct_gas
fill_in_unset_simulation_gas
Fills in the gas a simulated transaction leaves unset: a zero price becomes reference_gas_price, and a zero budget as much as the gas coins can back, up to the protocol maximum.
get_gas_balance
report_simulation_gas
Reports the gas a simulation ran with in reported, in place of what the caller left unset — the mirror of fill_in_unset_simulation_gas, for the response rather than the run.