You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use blockifier::execution::deprecated_syscalls::DeprecatedSyscallSelector;
3
4
use blockifier::execution::syscalls::hint_processor::SyscallHintProcessor;
4
5
use blockifier::state::errors::StateError;
5
6
use cairo_lang_casm::hints::{ExternalHint,Hint,StarknetHint};
6
7
use cairo_lang_casm::operand::{CellRef,ResOperand};
7
-
use cairo_lang_runner::casm_run::{MemBuffer, extract_relocatable, get_val, vm_get_range};
8
-
use cairo_lang_runner::{Arg, casm_run::cell_ref_to_relocatable, insert_value_to_cellref};
9
8
use cairo_lang_utils::bigint::BigIntAsHex;
10
9
use cairo_vm::hint_processor::hint_processor_definition::{
11
10
HintProcessor,HintProcessorLogic,HintReference,
@@ -24,7 +23,6 @@ use conversions::serde::deserialize::BufferReader;
24
23
use conversions::serde::serialize::raw::RawFeltVec;
25
24
use conversions::serde::serialize::{CairoSerialize,SerializeToFeltVec};
26
25
use indoc::indoc;
27
-
use num_traits::cast::ToPrimitive;
28
26
use shared::vm::VirtualMachineExt;
29
27
use starknet_api::StarknetApiError;
30
28
use starknet_types_core::felt::Felt;
@@ -34,6 +32,7 @@ use std::io;
34
32
use thiserror::Error;
35
33
36
34
pubmod starknet;
35
+
mod vm;
37
36
38
37
// from core/src/starknet/testing.cairo
39
38
constCAIRO_TEST_CHEATCODES:[&str;14] = [
@@ -58,10 +57,6 @@ pub trait SyscallPtrAccess {
58
57
59
58
pubstructStarknetRuntime<'a>{
60
59
pubhint_handler:SyscallHintProcessor<'a>,
61
-
// Required for handling `External` hints
62
-
//
63
-
// See https://github.com/starkware-libs/cairo/blob/dfb5d3fdcf80bff30c205c14163f99c890dbdc10/crates/cairo-lang-runner/src/casm_run/mod.rs#L94
64
-
pubuser_args:Vec<Vec<Arg>>,
65
60
pubpanic_traceback:Option<Vec<usize>>,
66
61
}
67
62
@@ -131,10 +126,6 @@ fn fetch_cheatcode_input(
131
126
Ok(inputs)
132
127
}
133
128
134
-
fnargs_size(args:&[Arg]) -> usize{
135
-
args.iter().map(Arg::size).sum()
136
-
}
137
-
138
129
implHintProcessorLogicforStarknetRuntime<'_>{
139
130
fnexecute_hint(
140
131
&mutself,
@@ -169,38 +160,6 @@ impl HintProcessorLogic for StarknetRuntime<'_> {
169
160
170
161
returnErr(CustomHint(error.into()));
171
162
}
172
-
// Copied from https://github.com/starkware-libs/cairo/blob/3d5631d3f6563b5f97c11c816f530be99095a843/crates/cairo-lang-runner/src/casm_run/mod.rs#L1316
// Copied from https://github.com/starkware-libs/cairo/blob/3d5631d3f6563b5f97c11c816f530be99095a843/crates/cairo-lang-runner/src/casm_run/mod.rs#L1320
0 commit comments