-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for
Cairo 2.6
(#1865)
* wip * make katana-primitives compilable * make dojo-lang compilable * make dojo-world compilable * bump blockifier * fix: start blockifier rework * fix: ensure sozo can build * fix: first dive into executor to have it compiling * fix: fix tests with CAIRO_TESTS=1 * fix: use correct default value for profiler mode * fix: ensure dojo-core compat with 2.6 * fix: fix some fields in tests * fix: some clippy fixes * make things compiled first * disable any reference to the `sir` feature * update test * allow nonzero gas prices for now * update test * update manifest of types-test project * fmt * fix: ensure profiler can run correctly * refacto testing for cairo compiler versions * rework katana runner to have more friendly API * rework dojo-world test to use KatanaRunner * avoid race condition by using tmp projects for build/migrate * use KatanaRunner for testing into sozo * add updated manifest for example * fmt / clippy * doc: add contributing details + refacto script for tests * fmt cairo code * enable cairofmt in CI * add fmt scripts * fmt * fix path for scarb fmt * fix test and attempt fix CI scarb action * fix CI again * ensure checkout before test * ci last try before disabling * remove reference * fix: remove type tests manifests * fix: uses last scarb version to fix experimental features * fix: ensure dojoup does not fail with invalid version * fix: dojoup script to be reworked with new cargo version * fix: devcontainer dockerfile and CI for new dojoup * fix: add missing space * CI: attempt CI debug * Update Dockerfile with missing locked * fix: attempt to remove dockerfile unfinite cycle * fix: re-add variant for several step build * ci: use more resources for devcontainer * ci: remove manual workflow and attempt on push * ci: change build docker to matrix and separated jobs * ci: disable build dockerfile from scratch for arm64 * ci: update dev container * ci: restore container image * fix: re-enable experimental features as they seems to be needed again? * fix: fix new world address in test * ci: add again the manual trigger for devcontainer workflow * ci: bump dojo container dev * ci: add new prefix key for cache * ci: check witout cairo native deps * fix: enable experimental features only if required * ci: use new dev container without SiR deps * use larger runner for demanding jobs * ci: restore workflows and re-build Katana before running tests * fix: do not limit the runner bin to CI * change devcontainer image * fix: fix tests * ci: fix katana runner path * ci: attempt to have the katana runner bin correctly set --------- Co-authored-by: Ammar Arif <[email protected]>
- Loading branch information
Showing
114 changed files
with
4,869 additions
and
2,457 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
## Description | ||
|
||
<!-- | ||
A description of what this PR is solving. | ||
--> | ||
|
||
## Related issue | ||
|
||
<!-- | ||
Please link related issues: Fixes #<issue_number> | ||
More info: https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword | ||
--> | ||
|
||
## Tests? | ||
|
||
<!-- | ||
Please refer to the CONTRIBUTING.md file to know more about the testing process. Ensure you've tested at least the package you're modifying if running all the tests consumes too much memory on your system. | ||
--> | ||
|
||
- [ ] yes | ||
- [ ] no, because they aren't needed | ||
- [ ] no, because I need help | ||
|
||
## Added to documentation? | ||
|
||
<!-- | ||
If the changes are small, code comments are enough, otherwise, the documentation is needed. It | ||
may be a README.md file added to your module/package, a DojoBook PR or both. | ||
--> | ||
|
||
- [ ] README.md | ||
- [ ] [dojo book](https://github.com/dojoengine/book) | ||
- [ ] no documentation needed | ||
|
||
## Checklist | ||
|
||
- [ ] I've formatted my code (`scripts/prettier.sh`, `scripts/rustfmt.sh`, `scripts/cairo_fmt.sh`) | ||
- [ ] I've linted my code (`scripts/clippy.sh`, `scripts/docs.sh`) | ||
- [ ] I've commented my code | ||
- [ ] I've requested a review after addressing the comments |
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 @@ | ||
scarb 2.6.3 |
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.