-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(starknet_os): integrate builtins hints
- Loading branch information
1 parent
a50f2ff
commit 9ad90d4
Showing
3 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
use std::collections::HashMap; | ||
|
||
use cairo_vm::hint_processor::hint_processor_definition::HintReference; | ||
use cairo_vm::serde::deserialize_program::ApTracking; | ||
use cairo_vm::types::exec_scope::ExecutionScopes; | ||
use cairo_vm::vm::vm_core::VirtualMachine; | ||
use starknet_types_core::felt::Felt; | ||
|
||
use crate::hints::error::HintResult; | ||
|
||
pub const SELECTED_BUILTINS: &str = | ||
"vm_enter_scope({'n_selected_builtins': ids.n_selected_builtins})"; | ||
pub fn selected_builtins( | ||
_vm: &mut VirtualMachine, | ||
_exec_scopes: &mut ExecutionScopes, | ||
_ids_data: &HashMap<String, HintReference>, | ||
_ap_tracking: &ApTracking, | ||
_constants: &HashMap<String, Felt>, | ||
) -> HintResult { | ||
todo!() | ||
} | ||
|
||
pub fn select_builtin( | ||
_vm: &mut VirtualMachine, | ||
_exec_scopes: &mut ExecutionScopes, | ||
_ids_data: &HashMap<String, HintReference>, | ||
_ap_tracking: &ApTracking, | ||
_constants: &HashMap<String, Felt>, | ||
) -> HintResult { | ||
todo!() | ||
} | ||
|
||
pub fn update_builtin_ptrs( | ||
_vm: &mut VirtualMachine, | ||
_exec_scopes: &mut ExecutionScopes, | ||
_ids_data: &HashMap<String, HintReference>, | ||
_ap_tracking: &ApTracking, | ||
_constants: &HashMap<String, Felt>, | ||
) -> HintResult { | ||
todo!() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters