Skip to content

Commit

Permalink
feat(blockifier): update cairo native to 0.2.2-alpha.0 (#2076)
Browse files Browse the repository at this point in the history
* feat(blockifier): update to cairo native 0.2.2-alpha.0

refactor(blockifier): modify entry point logic from native runnable class

refactor(blockifier): apply general improvements

refactor(blockifier): make casm constructor public

* chore(blockifier): update native feature contracts

* chore(blockifier): update expected gas in syscall tests for native
  • Loading branch information
rodrigo-pino authored Nov 18, 2024
1 parent 5de4d73 commit 6ba1b90
Show file tree
Hide file tree
Showing 21 changed files with 7,339 additions and 7,483 deletions.
9 changes: 4 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ cairo-lang-sierra-to-casm = "2.9.0-dev.0"
cairo-lang-starknet-classes = "2.9.0-dev.0"
cairo-lang-utils = "2.9.0-dev.0"
# Important: when updated, make sure to update the cairo-native submodule as well.
cairo-native = "0.2.1-alpha.0"
cairo-native = "0.2.2-alpha.0"
cairo-vm = "=1.0.1"
camelpaste = "0.1.0"
chrono = "0.4.26"
Expand Down
1 change: 0 additions & 1 deletion crates/blockifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ ark-secp256r1.workspace = true
cached.workspace = true
cairo-lang-casm = { workspace = true, features = ["parity-scale-codec"] }
cairo-lang-runner.workspace = true
cairo-lang-sierra.workspace = true
cairo-lang-starknet-classes.workspace = true
cairo-native = { workspace = true, optional = true }
cairo-vm.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/blockifier/cairo_native
Submodule cairo_native updated 72 files
+19 −0 .github/ISSUE_TEMPLATE/daily_failure.md
+36 −0 .github/actions/install-linux-deps/action.yml
+2 −6 .github/workflows/bench-hyperfine.yml
+175 −0 .github/workflows/daily.yml
+150 −0 .github/workflows/starknet-blocks.yml
+64 −63 Cargo.lock
+3 −2 Cargo.toml
+2 −1 Makefile
+18 −82 benches/benches.rs
+17 −0 benches/compile_time.rs
+54 −3 benches/libfuncs.rs
+15 −1 docs/sierra.md
+8 −0 examples/erc20.rs
+8 −0 examples/starknet.rs
+8 −3 programs/benches/factorial_2M.c
+8 −3 programs/benches/fib_2M.c
+8 −3 programs/benches/logistic_map.c
+42 −48 programs/compile_benches/dijkstra.cairo
+8 −17 programs/compile_benches/extended_euclidean_algorithm.cairo
+78 −27 programs/compile_benches/fast_power.cairo
+0 −285 programs/compile_benches/sha256.cairo
+539 −0 programs/compile_benches/sha512.cairo
+1 −1 runtime/Cargo.toml
+28 −1 runtime/src/lib.rs
+10 −38 scripts/bench-hyperfine.sh
+51 −0 scripts/cmp_state_dumps.sh
+30 −0 scripts/diff-check.sh
+2 −9 src/arch/aarch64.rs
+2 −9 src/arch/x86_64.rs
+1 −0 src/bin/utils/mod.rs
+13 −12 src/cache/aot.rs
+10 −8 src/cache/jit.rs
+20 −11 src/compiler.rs
+107 −0 src/error.rs
+81 −32 src/executor.rs
+51 −3 src/executor/aot.rs
+328 −46 src/executor/contract.rs
+23 −2 src/executor/jit.rs
+2 −1 src/ffi.rs
+13 −8 src/libfuncs.rs
+28 −17 src/libfuncs/array.rs
+43 −10 src/libfuncs/bounded_int.rs
+4 −1 src/libfuncs/cast.rs
+5 −3 src/libfuncs/circuit.rs
+10 −5 src/libfuncs/const.rs
+2 −2 src/libfuncs/debug.rs
+9 −4 src/libfuncs/enum.rs
+9 −2 src/libfuncs/felt252.rs
+2 −2 src/libfuncs/felt252_dict_entry.rs
+3 −2 src/libfuncs/function_call.rs
+125 −33 src/libfuncs/gas.rs
+181 −0 src/libfuncs/int_range.rs
+456 −602 src/libfuncs/starknet.rs
+676 −1,507 src/libfuncs/starknet/secp256.rs
+40 −7 src/metadata/gas.rs
+44 −0 src/metadata/runtime_bindings.rs
+43 −2 src/starknet.rs
+8 −0 src/starknet_stub.rs
+24 −9 src/types.rs
+19 −24 src/types/array.rs
+6 −2 src/types/builtin_costs.rs
+46 −0 src/types/int_range.rs
+110 −2 src/utils.rs
+87 −1 src/utils/block_ext.rs
+65 −3 src/values.rs
+6 −6 tests/alexandria/Scarb.lock
+4 −4 tests/alexandria/Scarb.toml
+33 −17 tests/common.rs
+13 −2 tests/tests/starknet/keccak.rs
+6 −1 tests/tests/starknet/programs/syscalls.cairo
+8 −0 tests/tests/starknet/secp256.rs
+28 −0 tests/tests/starknet/syscalls.rs
Loading

0 comments on commit 6ba1b90

Please sign in to comment.