Skip to main content

Module checked

Module checked 

Source

Enums§

IotaGasStatus
Version aware enum for gas status.

Traits§

IotaGasStatusAPI

Functions§

check_gas_coins_cover_budget_in_simulation
Checks that every object gas refers to is an address-owned gas coin present in input_objects, and that their combined balance covers gas_budget.
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.