Crate cairo_lang_sierra_gas

Source
Expand description

Sierra gas computation.

This crate provides the gas computation for the Cairo programs.

Modules§

compute_costs
core_libfunc_cost
gas_info
objects

Enums§

CostError
Error occurring while calculating the costing of a program’s variables.

Functions§

calc_gas_postcost_info
Calculates gas postcost information for a given program - the gas costs of step token.
calc_gas_precost_info
Calculates gas pre-cost information for a given program - the gas costs of non-step tokens.
compute_postcost_info
Calculates gas postcost information for a given program.
compute_precost_info
Calculates gas pre-cost information for a given program - the gas costs of non-step tokens.