Crate cairo_lang_runner

Crate cairo_lang_runner 

Source
Expand description

Basic runner for running a Sierra program on the vm.

Re-exports§

pub use casm_run::CairoHintProcessor;
pub use casm_run::StarknetState;

Modules§

casm_run
clap
profiling
short_string

Macros§

insert_value_to_cellref
Inserts a value into the VM memory cell represented by the cell reference.

Structs§

PreparedStarknetContext
A struct representing a prepared execution context for starting a function within a given Starknet state.
ProfilingInfoCollectionConfig
Configuration for the profiling info collection phase.
RunResult
The full result of a run.
RunResultStarknet
The full result of a run with Starknet state.
SierraCasmRunner
Runner enabling running a Sierra program on the VM.
StarknetExecutionResources
The execution resources in a run. Extends ExecutionResources by including the used syscalls for Starknet.

Enums§

Arg
An argument to a Sierra function run.
RunResultValue
The ran function return value.
RunnerError

Functions§

build_hints_dict
Builds hints_dict required in cairo_vm::types::program::Program from instructions.
initialize_vm
Initializes a VM by adding a new segment with builtins cost and a necessary pointer at the end of the program, as well as placing the arguments at the initial AP values.
token_gas_cost
Returns the approximated gas cost for each token type.