Expand description
Backend-agnostic TIP-1060 SSTORE storage credits accounting.
sstore_storage_credits implements the storage credits policy that runs
after a storage slot is written. It is driven through the StorageCreditsBackend
trait so the exact same logic can be reused from two places:
- the opcode-level SSTORE hook in
tempo-revm(TempoGasState), and EvmPrecompileStorageProviderso precompile-driven storage writes honor the same accounting.
Traitsยง
- Storage
Credits Backend - Minimal journal/gas operations required by storage credit accounting.
- Storage
Credits Error - Error mapping required by storage credit accounting.
Functionsยง
- emit_
mode_ ๐updated - sstore_
storage_ credits - Applies TIP-1060 storage credits after a single SSTORE has been journaled.
- store_
credit_ ๐state