generated from keep-starknet-strange/alexandria
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: MemoryTrait + store() * feat: memory store_n * feat: memory load / load_n * feat: memory expand/ensure_length * docs: memory docs * fix: cairo_project script kakarot path * refactor: u128-based memory rather instead of felt252 * tests: helper functions test * chore: address PR review 1 * refactor: optimize pow256_rev * chore: address PR review 2 - optimize mask, rename testfiles * fix: store_u256 bug, address pr * chore: clean remaining todos * chore: update CI
- Loading branch information
Showing
20 changed files
with
1,209 additions
and
27 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
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[package] | ||
name = "kakarot" | ||
version = "0.1.0" | ||
|
||
[dependencies] | ||
quaireaux = { git = "https://github.com/keep-starknet-strange/quaireaux.git" } |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# This script is used to generate the `cairo_project.toml` file | ||
# from the Scarb project's metadata. | ||
# It is required to run the `cairo-test` runner. | ||
|
||
# Run the scarb metadata command and store the JSON output in a variable | ||
json_output=$(scarb metadata --format-version 1| sed -n '/^{/,$p') | ||
|
||
# Create a temporary file to store the JSON output | ||
temp_file=$(mktemp) | ||
echo "$json_output" > "$temp_file" | ||
|
||
# Initialize cairo_project.toml file | ||
echo "[crate_roots]" > cairo_project.toml | ||
|
||
# Process the JSON output and create the cairo_project.toml file using jq | ||
jq -r '.packages[] | select(.name != "core" and .name != "kakarot") | .name + " = \"" + .root + "/src\""' "$temp_file" >> cairo_project.toml | ||
|
||
# Add kakarot and tests to the cairo_project.toml | ||
echo 'kakarot = "src"' >> cairo_project.toml | ||
echo 'tests = "tests"' >> cairo_project.toml | ||
|
||
# Remove the temporary file | ||
rm "$temp_file" |
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 |
---|---|---|
|
@@ -15,6 +15,3 @@ mod context; | |
|
||
// Utils module | ||
mod utils; | ||
|
||
// Test modules | ||
mod tests; |
Oops, something went wrong.