Skip to content

Commit

Permalink
Add preimage hints (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: Olivier Desenfans <[email protected]>
  • Loading branch information
notlesh and odesenfans authored Feb 27, 2024
1 parent acdd381 commit 458fe04
Show file tree
Hide file tree
Showing 4 changed files with 387 additions and 47 deletions.
7 changes: 6 additions & 1 deletion src/hints/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pub mod block_context;
pub mod builtins;
pub mod execution;
pub mod state;
pub mod syscalls;
#[cfg(test)]
mod tests;
Expand Down Expand Up @@ -38,7 +39,7 @@ type HintImpl = fn(
&HashMap<String, Felt252>,
) -> Result<(), HintError>;

static HINTS: [(&str, HintImpl); 55] = [
static HINTS: [(&str, HintImpl); 59] = [
// (BREAKPOINT, breakpoint),
(STARKNET_OS_INPUT, starknet_os_input),
(INITIALIZE_STATE_CHANGES, initialize_state_changes),
Expand Down Expand Up @@ -73,6 +74,10 @@ static HINTS: [(&str, HintImpl); 55] = [
(execution::END_TX, execution::end_tx),
(execution::ENTER_CALL, execution::enter_call),
(execution::EXIT_CALL, execution::exit_call),
(state::SET_PREIMAGE_FOR_CLASS_COMMITMENTS, state::set_preimage_for_class_commitments),
(state::SET_PREIMAGE_FOR_CURRENT_COMMITMENT_INFO, state::set_preimage_for_current_commitment_info),
(state::SET_PREIMAGE_FOR_STATE_COMMITMENTS, state::set_preimage_for_state_commitments),
(state::PREPARE_PREIMAGE_VALIDATION, state::prepare_preimage_validation),
(syscalls::CALL_CONTRACT, syscalls::call_contract),
(syscalls::DELEGATE_CALL, syscalls::delegate_call),
(syscalls::DELEGATE_L1_HANDLER, syscalls::delegate_l1_handler),
Expand Down
Loading

0 comments on commit 458fe04

Please sign in to comment.