Expand description
Gas accounting module to track the gas usage in a block for transactions and validity predicates triggered by transactions.
Modules§
Structs§
- Gas
- Representation of tracking gas in sub-units.
- TxGas
Meter - Gas metering in a transaction
- VpGas
Meter - Gas metering in a validity predicate
- Whole
Gas - Gas represented in whole units. Used for fee payment and to display information to the user.
Enums§
- Error
- GasMeter
Kind - Choose the gas mmeter used for WASM instructions
- GasParse
Error
Constants§
- IBC_
ACTION_ EXECUTE_ GAS - The cost to execute an Ibc action
- IBC_
ACTION_ VALIDATE_ GAS - The cost to validate an Ibc action
- MASP_
CONVERT_ CHECK_ GAS - The cost to process a masp convert note in the bundle
- MASP_
FINAL_ CHECK_ GAS - The cost to run the final masp check in the bundle
- MASP_
FIXED_ CONVERT_ GAS - The fixed cost of convert note verification
- MASP_
FIXED_ OUTPUT_ GAS - The fixed cost of output note verification
- MASP_
FIXED_ SPEND_ GAS - The fixed cost of spend note verification
- MASP_
OUTPUT_ CHECK_ GAS - The cost to process a masp output note in the bundle
- MASP_
SPEND_ CHECK_ GAS - The cost to process a masp spend note in the bundle
- MASP_
VARIABLE_ CONVERT_ GAS - The variable cost of convert note verification
- MASP_
VARIABLE_ OUTPUT_ GAS - The variable cost of output note verification
- MASP_
VARIABLE_ SPEND_ GAS - The variable cost of spend note verification
- MASP_
VERIFY_ SIG_ GAS - The cost of masp sig verification
- MEMORY_
ACCESS_ GAS_ PER_ BYTE - The cost of accessing data from memory (both read and write mode), per byte
- STORAGE_
ACCESS_ GAS_ PER_ BYTE - The cost of accessing data from storage, per byte
- STORAGE_
DELETE_ GAS_ PER_ BYTE - The cost of removing data from storage, per byte
- STORAGE_
WRITE_ GAS_ PER_ BYTE - The cost of writing data to storage, per byte
- VERIFY_
TX_ SIG_ GAS - The cost of verifying a single signature of a transaction
- WASM_
MEMORY_ PAGE_ GAS - The cost for requesting one more page in wasm (64KiB)
Traits§
- GasMetering
- Trait to share gas operations for transactions and validity predicates
Type Aliases§
- Result
- Gas module result for functions that may fail