Skip to main content

Module checked

Module checked 

Source

Structs§

GasCostSummary
Summary of the charges in a transaction. Storage is charged independently of computation. There are 3 parts to the storage charges: storage_cost: it is the charge of storage at the time the transaction is executed. The cost of storage is the number of bytes of the objects being mutated multiplied by a variable storage cost per byte storage_rebate: this is the amount a user gets back when manipulating an object. The storage_rebate is the storage_cost for an object minus fees. non_refundable_storage_fee: not all the value of the object storage cost is given back to user and there is a small fraction that is kept by the system. This value tracks that charge.

Enums§

SuiGasStatus
Version-aware gas status: V2 is the legacy model (gas_model_version < 15, incl. replay), V3 is the v15+ pipeline. Dispatched by gas_model_version() >= 15.

Traits§

SuiGasStatusAPI

Functions§

check_gas_budget_and_balance
Signing-time check that the gas objects are address owned and that the budget is within bounds and covered by them plus the address balance.
check_gas_price
Signing-time check of the gas price against the reference price and the maximum.
deduct_gas
execution_gas_params
Budget and price a transaction is metered with, or None when it runs unmetered. Gasless transactions are metered at the reference price up to the computation cap.
get_gas_balance
minimum_gas_budget
The smallest budget a transaction may sign for: the base transaction cost at the signed price, or the flat base cost when txn_base_cost_as_multiplier is off.