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§
Macros§
- insert_
value_ to_ cellref - Inserts a value into the VM memory cell represented by the cell reference.
Structs§
- Prepared
Starknet Context - A struct representing a prepared execution context for starting a function within a given Starknet state.
- Profiling
Info Collection Config - Configuration for the profiling info collection phase.
- RunResult
- The full result of a run.
- RunResult
Starknet - The full result of a run with Starknet state.
- Sierra
Casm Runner - Runner enabling running a Sierra program on the VM.
- Starknet
Execution Resources - The execution resources in a run. Extends ExecutionResources by including the used syscalls for Starknet.
Enums§
- Arg
- An argument to a Sierra function run.
- RunResult
Value - The ran function return value.
- Runner
Error
Functions§
- build_
hints_ dict - Builds
hints_dictrequired incairo_vm::types::program::Programfrom 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.