From c677409e685826139810ecfc4f8ba9b260de5e99 Mon Sep 17 00:00:00 2001 From: Roberto Catalan Date: Mon, 8 May 2023 10:59:00 -0300 Subject: [PATCH 1/3] Add ignore for casm and sierra files --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 01c4357d9d..010070081c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,8 @@ **/*.json !hint_accountant/whitelists/*.json !cairo_programs/manually_compiled/*.json +**/*.casm +**/*.sierra **/*.trace **/*.memory **/*.swp From a6baa4da6db6ac79f85a74c4e7a544cca8894f23 Mon Sep 17 00:00:00 2001 From: Roberto Catalan Date: Mon, 8 May 2023 11:00:09 -0300 Subject: [PATCH 2/3] Add libfunc experimental for cairo 1 compilation --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 607657d696..2db8e0d77e 100644 --- a/Makefile +++ b/Makefile @@ -101,10 +101,10 @@ COMPILED_SIERRA_CONTRACTS:=$(patsubst $(CAIRO_1_CONTRACTS_TEST_DIR)/%.cairo, $(C COMPILED_CASM_CONTRACTS:= $(patsubst $(CAIRO_1_CONTRACTS_TEST_DIR)/%.sierra, $(CAIRO_1_CONTRACTS_TEST_DIR)/%.casm, $(COMPILED_SIERRA_CONTRACTS)) $(CAIRO_1_CONTRACTS_TEST_DIR)/%.sierra: $(CAIRO_1_CONTRACTS_TEST_DIR)/%.cairo - $(STARKNET_COMPILE) -- $< $@ + $(STARKNET_COMPILE) --allowed-libfuncs-list-name experimental_v0.1.0 $< $@ $(CAIRO_1_CONTRACTS_TEST_DIR)/%.casm: $(CAIRO_1_CONTRACTS_TEST_DIR)/%.sierra - $(STARKNET_SIERRA_COMPILE) -- $< $@ + $(STARKNET_SIERRA_COMPILE) --allowed-libfuncs-list-name experimental_v0.1.0 $< $@ cairo-repo-dir = cairo From 2a6a5b4d911544444f77e6ad2688f82c540da965 Mon Sep 17 00:00:00 2001 From: Roberto Catalan Date: Mon, 8 May 2023 11:38:18 -0300 Subject: [PATCH 3/3] Add new enty to CHANGELOG --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 693fbd7f4d..013b93364d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ #### Upcoming Changes +* Add some small considerations regarding Cairo 1 programs [#1144](https://github.com/lambdaclass/cairo-rs/pull/1144): + + * Ignore Casm and Sierra files + * Add special flag to compile Cairo 1 programs + * Make the VM able to run `CasmContractClass` files under `cairo-1-hints` feature [#1098](https://github.com/lambdaclass/cairo-rs/pull/1098) * Implement `TryFrom for Program`