forked from starkware-libs/sequencer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(blockifier): add native execution engine (starkware-libs#620)
* refactor: split syscalls into separate files * feat: add ability of native execution * fix: make comments capitalized * fix: apply fmt * fix: small fixes in comments and matching * fix: bring back old `.toml` formatting * fix: remove unused yet utility functions * chore: update Cargo.lock * feat: update Cargo.lock * fix: address review * refactor: address `get_entry_point` review requests * refactor: move out methods that won't be reviewed in this PR * fix: rust fmt * fix: apply some of the CI fixes * fix: comment in Cargo.toml * fix: address some of the review comments * refactor: define the type for lookup hashmap * fix: remove Clone trait from call info, remove fallback-related stuff * fix: ci * fix: return back old images in the CI * chore: update feature contracts * fix: add LLVM deps to the Dockerfile * fix: add LLVM to `install_build_tools.sh` * fix: update build tools, add env vars * fix: add clean up of the native artifacts * fix: add clean up of the native artifacts * fix: native artifacts push CI * fix: add env to ignore interactive env * fix: update sequencer-ci.Dockerfile * fix: update sequencer-ci.Dockerfile * fix: try to fix Dockerfile with adding musl-g++ * fix: try to fix Dockerfile with adding musl-g++ #2 * fix: try to fix Dockerfile with adding musl-g++ #2 * fix: try to fix Dockerfile with adding musl-g++ #4 * fix: try to fix Dockerfile with adding musl-g++ #4 * fix: try to fix Dockerfile * fix: try to fix Dockerfile finally? * fix: try to fix Dockerfile * fix: add hard option for sym link creation * fix: make Dockerfile dynamic * fix: script * fix: script * fix: verify_cairo_file_dependencies ci * fix: cairo native runtime library path * fix: conflicts after merge * fix: update feature contracts * chore: update Cargo.lock * fix: conflicts after merge * fix: address review comments * fix: fix review comment regarding `function_idx` * refactor: lookup table to use `HashMap` instead of `Vec` * refactor: make `verify_constructor` be part of `CallEntryPoint` * fix: add panic instead of todo! * fix: update Cargo.lock * fix: ci * fix: address review comments * fix: address review comments * fix: crate name mismatch * chore: update Cargo.lock * fix: compilation errors * fix: cargo missing crate paths * chore: fmt * fix: cargo docs * fix: remove old setup-native-deps * chore: reapply format :p * chore: remove transaction_utils.rs * chore: swap string delimeters in .ymls * fix: add zstd to Blockifier image * refactor: remove manual dependency installation in Dockerfile * chore: restore committer_ci.yml * chore: restore papyrus_nightly-tests.yml * chore: restore sequencer-ci.Dockerfile * refactor: panics -> todo & new msgs for Native Class * chore: restore blockifier_compiled_cairo.yml, blockifier_post-merge.yml and main.yml workflows * fix: re-import BigUintAsHex * chore: restore commiter_ci.yml and test_contract_casm.json * chore: update Cargo.lock Co-Authored-By: Rodrigo <[email protected]>
- Loading branch information
1 parent
7b32ee0
commit 3a580b3
Showing
15 changed files
with
396 additions
and
175 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod utils; |
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,9 @@ | ||
use cairo_lang_starknet_classes::contract_class::ContractEntryPoint; | ||
use starknet_api::core::EntryPointSelector; | ||
use starknet_types_core::felt::Felt; | ||
|
||
pub fn contract_entrypoint_to_entrypoint_selector( | ||
entrypoint: &ContractEntryPoint, | ||
) -> EntryPointSelector { | ||
EntryPointSelector(Felt::from(&entrypoint.selector)) | ||
} |
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
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