-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partial implementation of the BusinessLogicSyscallHandler._deploy met…
…hod (#17) * Add SyscallRequest::Deploy(DeployRequestStruct) * Start BusinessLogicSyscallHandler::_deploy implementation * Add naive implementation of fn Os::ContractAddress::calculate_contract_address_from_hash * add starknet-crypto dependecie * first implementation of fn compute_hash_on_elements + unit tests * use get_integer_range * Add bigint! and bigint_str! macros * Update fns calculate_contract_address_from_hash && compute_hash_on_elements * add SyscallHandlerError::FailToComputeHash * Minor midifications * mv src/core/os/contact_address.rs -> src/hash_utils.rs * handle Errors && cargo clippy * delete syscall_handler.rs * fix merge main conflicts * add deploy read_syscall_request * Add PartialEq to SyscallRequest * Add read_deploy_syscall_request * Modify BusinessLogicSyscallHandler::new to return self + BusinessLogicSyscallHandler::Default * Add test_calculate_contract_address_from_hash * Modify DeployStruct.deploy_from_zero to be a usize + unit test Co-authored-by: Pedro Fontana <pedro.fontana@lamdaclass.com>
- Loading branch information
Showing
10 changed files
with
330 additions
and
17 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.