Module multi_gas

Module multi_gas 

Source
Expand description

Per-host-call multi-gas dimension assignment for Stylus execution: each host op contributes the same per-dimension gas as the equivalent EVM opcode. Framework gas (host ink, the EVM-API surcharge, the per-call storage cache) is left undimensioned here and falls into the WasmComputation residual.

Functions§

account_touch
Dimension split of touching an account in Stylus, matching EIP-2929 account access. ext_code_cost is the extra read charged when the code is loaded.
call_cost
Dimension split of the caller’s access cost for a Stylus sub-call, matching EIP-2929 call gas (the forwarded gas the callee consumes is attributed by the callee, not here).
log
History-growth dimension of a Stylus emit_log.
state_load
Dimension split of a Stylus storage_load, matching SLOAD.
state_store
Dimension split of a Stylus storage_store, matching SSTORE. The reentrancy sentry check is the caller’s responsibility.