-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pyk scripts #10
Merged
Merged
Pyk scripts #10
Conversation
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
* Rename indexing -> preprocessing * Refactor trait initialization * Refactor addMethod * Function arguments test * Return type test --------- Co-authored-by: Virgil <[email protected]>
virgil-serbanuta
approved these changes
Aug 23, 2024
rust-lite/src/rust_lite/cli.py
Outdated
|
||
command_parser = parser.add_subparsers(dest='command', required=True) | ||
|
||
# command_parser.add_parser('version', help='Print Rust-Lite version and exit.', parents=[rust_lite_cli_args.logging_args]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine to leave these here if you plan to uncomment them soon, but otherwise you should consider deleting them.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces pyk scripts to the rust demo semantics projects. The pyk scripts will be of great value for helping develop, validate, and test our semantics.
To run the project, first run
make build
in the repository’s root folder, thencd
intorust-lite
, runpoetry install
and finallypoetry run main run PATH_TO_CONTRACT
. This will parse the contract and place it into the K cell, triggering rewriting operations afterwards. Once the rewriting operations are finished, the content of the K cell is printed.For ease of testing, a few contracts can be executed directly without having to provide a path. To execute them (place them on the K cell), use the specific commands:
poetry run empty
: Runs the empty smart contract;poetry run erc20
: Runs the ERC20 smart contract;poetry run lending
: Runs the lending smart contract;poetry run staking
: Runs the staking smart contract.