-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add scaffolding * add placeholder for callback functions * add testing_state to syscall handler example * add add parameters to callbacks * add set_version * add wrap_set_account_contract_address * add other callbacks * add testing methods to syscall handler * add set_sequencer_address cheatcode * implement cheatcodes for testing syscallhandler * make tests runnable * fix callbacks * fix warnings * add missing constants * add some debug prints and cheatcode method * change cheatcode return value to arrayAbi * remove testing syscalls in favour of having only cheatcode syscall * remove testing syscalls from example syscall handler * small fixes * Remove stale impls * Remove old code approach * allow dead_code * Remove debug * Rename parameter * Add dummy implementation * Communicate with rust runtime * Add selector to cheatcode signature * Add remaining arguments to cheatcode libfunc * Add comments * Fix selector ptr bug * Remove unused * Remove dbg! * Set vtable pointer * Improve legibility * Remove dbg!() * Call cheatcode from runtime * Add default return if no system handler is set * Make tests pass * Use references to never drop values * Remove unused * Alloc syscall handler always testing syscalls don't needed it acording to sierra, so we must allocate memory for it always * Fix clippy warning * Simplify pointer logic * Remvoe dbg! * Add dummy implementation of cheatcode syscall * Fix memory leak syscall_handler was a &mut &mut, and needed to be a &mut * Add documentation * Delete cheatcode file * Add tests for sequencer address * Add comment * Remove comment (already implemented) * Add all cheatcode syscalls * Implement all other syscalls in testing * Add testing cheatcode implementation to starknet example * Add todo! implementation of cheatcode * Remove warnings * Make self_ptr private * Add pop_l2_to_l1_messages * Remove extra space * Implement cheatcode with unimplemented by default * User assert instead of return * Restore syscall handler and don't use arena * Add comment * Add another comment * Added cheatcode feature to Cargo.toml * Add feature flags * Add documentation * Fix clippy --------- Co-authored-by: Julián González Calderón <[email protected]>
- Loading branch information
1 parent
c540e07
commit 1e7ec95
Showing
11 changed files
with
868 additions
and
85 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
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
Oops, something went wrong.