Commit a789eee
Run
* Implement TryFrom<CasmContractClass> for Program
* Add cairo1hintprocessor dependency
* Map hints to pc
* Add Cairo1HintProcessor
* Move cairo-1-hint-processor to cairo-rs crate
* fixes
* Fix test helper
* Remove allow
* fix test func
* Add builtins to test
* Extract builtins from contract_class
* Add _builtin to builtin names in etrypoint data
* Copy logic from cairo1 contract execution in starknet
* Remove unused code
* Use lower initial_gas value
* Add program segment size argument
* Check return values in run_cairo_1_entrypoint fn
* Remove debug prints
* Add basic fibonacci test
* Add another fibonacci case
* Always verify secure
* Clippy
* Compile casm contracts when running test target
* Remove unwrap from cell_ref_to_relocatable
* Remove paniking macro from extract_buffer
* Misc improvements
* Misc improvements
* Misc improvements
* Misc improvements
* Remove unwraps & asserts from DictSquashExecScope::pop_current_key
* Remove unwraps & asserts from DictManagerExecScope::new_default_dict
* Remove expect from get_dict_tracker
* Add constants for cairo 1 compiler binaries in makefile
* Add cairo 1 compiler to deps target in makefile
* Add cairo folder to clean target
* Remove todo from execute method
* Separate helper functions from Cairo1HintProcessor implementation
* Add untracked file
* Fix
* Add changelog entry
* Add a job to compile cairo 1 contracts in ci
* Add job dependency
* Fix yml syntax
* Fix yml syntax
* Temporarily extempt cairo-1-hint-processor from codecov
* Fix yml syntax
* Fix workflow
* Remove cache code from new job
* Fix yml syntax
* Fix wrong path
* Fix makefile
* Build only compiler binaries
* Add cairo-1-contracts-cache
* Fetch contracts cache in jobs that need them
* Use no-std version of HashMap
* Import stdlib::prelude::*
* Wrap print in not-wasm block
* Remove std path
* use slices instead of vec
* Make DictSquashExecScope fields private
* Import hint processor dependencies without default features
* -Clippy
* Add type
* Compile cairo 1 contracts in build-programs job
* Rename cache
* Use target dependency instead of explicit $(MAKE)
* Fix yml syntax
* Check for cairo folder before cloning cairo repo
* Ommit folder name
* Swap paths
* Add cairo-1-hints feature flag
* Add compile-hint feature to tests run in workflow
* Add cairo-1-hints to test_utils
* Add cairo-1-hints to test_utils
* Use both paths when fetching compiled test data
* Remove cairo-1-hints feature from test_utils feature
* Move dependencies to cairo-1-hints feature
* Update CHANGELOG.md
* Fix cfg directive
* Add cairo-1-hints to test workflow
* Add Cairo 1 considerations for Gitignore and Makefile (#1144)
* Add ignore for casm and sierra files
* Add libfunc experimental for cairo 1 compilation
* Add new enty to CHANGELOG
* Fix rust.yml
---------
Co-authored-by: Roberto Catalan <[email protected]>CasmContractClass (#1098)1 parent e284753 commit a789eee
File tree
16 files changed
+2447
-86
lines changed- .github
- workflows
- cairo_programs/cairo-1-contracts
- src
- hint_processor
- cairo_1_hint_processor
- tests
- types
16 files changed
+2447
-86
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| |||
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
75 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
76 | 84 | | |
77 | 85 | | |
78 | 86 | | |
79 | 87 | | |
80 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
81 | 91 | | |
82 | 92 | | |
83 | 93 | | |
84 | 94 | | |
85 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
86 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
87 | 106 | | |
88 | 107 | | |
89 | 108 | | |
| |||
109 | 128 | | |
110 | 129 | | |
111 | 130 | | |
112 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
113 | 134 | | |
114 | 135 | | |
115 | 136 | | |
116 | 137 | | |
117 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
118 | 141 | | |
119 | 142 | | |
120 | 143 | | |
121 | 144 | | |
122 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
123 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
124 | 156 | | |
125 | 157 | | |
126 | 158 | | |
| |||
154 | 186 | | |
155 | 187 | | |
156 | 188 | | |
157 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
158 | 192 | | |
159 | 193 | | |
160 | 194 | | |
161 | 195 | | |
162 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
163 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
164 | 207 | | |
165 | 208 | | |
166 | 209 | | |
| |||
171 | 214 | | |
172 | 215 | | |
173 | 216 | | |
174 | | - | |
| 217 | + | |
175 | 218 | | |
176 | 219 | | |
177 | 220 | | |
| |||
253 | 296 | | |
254 | 297 | | |
255 | 298 | | |
256 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
257 | 302 | | |
258 | 303 | | |
259 | 304 | | |
| |||
294 | 339 | | |
295 | 340 | | |
296 | 341 | | |
297 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
298 | 345 | | |
299 | 346 | | |
300 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
5 | 17 | | |
6 | 18 | | |
7 | 19 | | |
| |||
0 commit comments