From 4faa43104004e459b87645c5c30b82d31b9c6ad5 Mon Sep 17 00:00:00 2001 From: Bartosz Nowak Date: Mon, 28 Oct 2024 09:02:02 +0100 Subject: [PATCH] package rename eth_essentials_cairo_vm_hints --- Cargo.lock | 36 ++++++++++++------------ cairo_vm_hints/Cargo.toml | 2 +- cairo_vm_hints/src/hint_processor/mod.rs | 4 +-- cairo_vm_hints/src/main.rs | 7 ++++- 4 files changed, 27 insertions(+), 22 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a572f60..264e348 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -231,24 +231,6 @@ dependencies = [ "zip", ] -[[package]] -name = "cairo_vm_hints" -version = "0.1.0" -dependencies = [ - "bincode", - "cairo-vm", - "clap", - "hex", - "num-bigint", - "num-traits", - "rand", - "sha3", - "starknet-crypto 0.7.2", - "starknet-types-core", - "thiserror", - "tiny-keccak", -] - [[package]] name = "cfg-if" version = "1.0.0" @@ -386,6 +368,24 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" +[[package]] +name = "eth_essentials_cairo_vm_hints" +version = "0.1.0" +dependencies = [ + "bincode", + "cairo-vm", + "clap", + "hex", + "num-bigint", + "num-traits", + "rand", + "sha3", + "starknet-crypto 0.7.2", + "starknet-types-core", + "thiserror", + "tiny-keccak", +] + [[package]] name = "flate2" version = "1.0.34" diff --git a/cairo_vm_hints/Cargo.toml b/cairo_vm_hints/Cargo.toml index bafdd2b..680bf79 100644 --- a/cairo_vm_hints/Cargo.toml +++ b/cairo_vm_hints/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "cairo_vm_hints" +name = "eth_essentials_cairo_vm_hints" version = "0.1.0" edition = "2021" diff --git a/cairo_vm_hints/src/hint_processor/mod.rs b/cairo_vm_hints/src/hint_processor/mod.rs index c0550d2..5bd01bf 100644 --- a/cairo_vm_hints/src/hint_processor/mod.rs +++ b/cairo_vm_hints/src/hint_processor/mod.rs @@ -1,4 +1,4 @@ -use crate::hints::run_hint; +use crate::hints; use cairo_vm::{ hint_processor::{ builtin_hint_processor::builtin_hint_processor_definition::{ @@ -39,7 +39,7 @@ impl HintProcessorLogic for CustomHintProcessor { .downcast_ref::() .ok_or(HintError::WrongHintData)?; - run_hint(vm, exec_scopes, hint_data, constants) + hints::run_hint(vm, exec_scopes, hint_data, constants) } } diff --git a/cairo_vm_hints/src/main.rs b/cairo_vm_hints/src/main.rs index 6c08306..99226f9 100644 --- a/cairo_vm_hints/src/main.rs +++ b/cairo_vm_hints/src/main.rs @@ -1,5 +1,10 @@ #![deny(warnings)] #![forbid(unsafe_code)] +pub mod hint_processor; +pub mod hints; +pub mod mmr; +pub mod utils; + use bincode::enc::write::Writer; use cairo_vm::air_public_input::PublicInputError; use cairo_vm::cairo_run::{self, EncodeTraceError}; @@ -16,7 +21,7 @@ use cairo_vm::vm::runners::cairo_pie::CairoPie; // #[cfg(feature = "with_tracer")] // use cairo_vm::vm::runners::cairo_runner::CairoRunner; use cairo_vm::vm::runners::cairo_runner::RunResources; -use cairo_vm_hints::hint_processor::ExtendedHintProcessor; +use hint_processor::ExtendedHintProcessor; // #[cfg(feature = "with_tracer")] // use cairo_vm_tracer::error::trace_data_errors::TraceDataError; // #[cfg(feature = "with_tracer")]