Skip to main content

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
profiling
short_string

Macros§

insert_value_to_cellref
Inserts a value into the vm memory cell represented by the cellref.

Structs§

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