From b7a5ae5c40c3a609593af16c683133d077cd0a0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=C5=9Awirski?= Date: Wed, 26 Jun 2024 21:15:53 +0200 Subject: [PATCH] hints compile in the blockifier --- Cargo.lock | 306 +++++++++--------- crates/katana/cairo/Cargo.toml | 14 +- crates/katana/executor/Cargo.toml | 2 +- crates/torii/types-test/Scarb.lock | 2 +- examples/spawn-and-move/Scarb.lock | 2 +- .../dojo_examples_actions_actions.toml | 4 +- .../manifests/dev/manifest.json | 4 +- .../manifests/dev/manifest.toml | 4 +- examples/spawn-and-move/src/actions.cairo | 5 + 9 files changed, 174 insertions(+), 169 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 12305480f3..3888adb1e1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1571,7 +1571,7 @@ dependencies = [ [[package]] name = "blockifier" version = "0.6.0-rc.2" -source = "git+https://github.com/dojoengine/blockifier?rev=57c11586#57c115864b5d2e9876efe289bd3dfbf05744a76b" +source = "git+https://github.com/reilabs/blockifier?branch=hints#cba1edc44d9d80ade6b70c47ef6bf0846906fa58" dependencies = [ "anyhow", "ark-ec", @@ -1580,10 +1580,10 @@ dependencies = [ "ark-secp256r1", "cached", "cairo-felt", - "cairo-lang-casm 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-runner 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-starknet-classes 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-casm 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-runner 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-starknet-classes 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "cairo-vm 0.9.2", "derive_more", "indexmap 2.2.6", @@ -1981,9 +1981,9 @@ dependencies = [ [[package]] name = "cairo-lang-casm" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "indoc 2.0.5", "num-bigint", "num-traits 0.2.19", @@ -2030,20 +2030,20 @@ dependencies = [ [[package]] name = "cairo-lang-compiler" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ "anyhow", - "cairo-lang-defs 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-diagnostics 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-filesystem 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-lowering 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-parser 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-project 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-semantic 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra-generator 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-syntax 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-defs 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-diagnostics 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-filesystem 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-lowering 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-parser 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-project 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-semantic 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra-generator 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-syntax 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "salsa", "smol_str", "thiserror", @@ -2084,9 +2084,9 @@ dependencies = [ [[package]] name = "cairo-lang-debug" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", ] [[package]] @@ -2117,14 +2117,14 @@ dependencies = [ [[package]] name = "cairo-lang-defs" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" -dependencies = [ - "cairo-lang-debug 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-diagnostics 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-filesystem 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-parser 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-syntax 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" +dependencies = [ + "cairo-lang-debug 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-diagnostics 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-filesystem 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-parser 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-syntax 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "itertools 0.11.0", "salsa", "smol_str", @@ -2161,11 +2161,11 @@ dependencies = [ [[package]] name = "cairo-lang-diagnostics" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ - "cairo-lang-debug 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-filesystem 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-debug 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-filesystem 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "itertools 0.11.0", ] @@ -2193,9 +2193,9 @@ dependencies = [ [[package]] name = "cairo-lang-eq-solver" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "good_lp", ] @@ -2225,10 +2225,10 @@ dependencies = [ [[package]] name = "cairo-lang-filesystem" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ - "cairo-lang-debug 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-debug 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "path-clean", "salsa", "serde", @@ -2326,17 +2326,17 @@ dependencies = [ [[package]] name = "cairo-lang-lowering" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" -dependencies = [ - "cairo-lang-debug 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-defs 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-diagnostics 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-filesystem 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-parser 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-proc-macros 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-semantic 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-syntax 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" +dependencies = [ + "cairo-lang-debug 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-defs 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-diagnostics 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-filesystem 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-parser 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-proc-macros 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-semantic 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-syntax 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "id-arena", "itertools 0.11.0", "log", @@ -2419,13 +2419,13 @@ dependencies = [ [[package]] name = "cairo-lang-parser" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ - "cairo-lang-diagnostics 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-filesystem 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-syntax 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-syntax-codegen 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-diagnostics 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-filesystem 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-syntax 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-syntax-codegen 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "colored", "itertools 0.11.0", "num-bigint", @@ -2476,14 +2476,14 @@ dependencies = [ [[package]] name = "cairo-lang-plugins" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" -dependencies = [ - "cairo-lang-defs 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-diagnostics 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-filesystem 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-parser 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-syntax 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" +dependencies = [ + "cairo-lang-defs 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-diagnostics 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-filesystem 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-parser 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-syntax 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "indent", "indoc 2.0.5", "itertools 0.11.0", @@ -2523,9 +2523,9 @@ dependencies = [ [[package]] name = "cairo-lang-proc-macros" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ - "cairo-lang-debug 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-debug 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "quote", "syn 2.0.64", ] @@ -2557,10 +2557,10 @@ dependencies = [ [[package]] name = "cairo-lang-project" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ - "cairo-lang-filesystem 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-filesystem 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "serde", "smol_str", "thiserror", @@ -2583,22 +2583,22 @@ dependencies = [ [[package]] name = "cairo-lang-runner" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ "ark-ff 0.4.2", "ark-secp256k1", "ark-secp256r1", "ark-std 0.4.0", "cairo-felt", - "cairo-lang-casm 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-lowering 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra-ap-change 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra-generator 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra-to-casm 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra-type-size 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-starknet 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-casm 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-lowering 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra-ap-change 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra-generator 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra-to-casm 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra-type-size 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-starknet 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "cairo-vm 0.9.2", "itertools 0.11.0", "keccak", @@ -2669,17 +2669,17 @@ dependencies = [ [[package]] name = "cairo-lang-semantic" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" -dependencies = [ - "cairo-lang-debug 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-defs 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-diagnostics 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-filesystem 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-parser 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-plugins 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-proc-macros 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-syntax 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" +dependencies = [ + "cairo-lang-debug 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-defs 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-diagnostics 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-filesystem 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-parser 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-plugins 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-proc-macros 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-syntax 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "id-arena", "indoc 2.0.5", "itertools 0.11.0", @@ -2745,11 +2745,11 @@ dependencies = [ [[package]] name = "cairo-lang-sierra" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ "anyhow", "cairo-felt", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "const-fnv1a-hash", "convert_case 0.6.0", "derivative", @@ -2810,12 +2810,12 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-ap-change" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ - "cairo-lang-eq-solver 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra-type-size 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-eq-solver 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra-type-size 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "itertools 0.11.0", "num-traits 0.2.19", "thiserror", @@ -2854,12 +2854,12 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-gas" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ - "cairo-lang-eq-solver 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra-type-size 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-eq-solver 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra-type-size 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "itertools 0.11.0", "num-traits 0.2.19", "thiserror", @@ -2906,18 +2906,18 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-generator" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" -dependencies = [ - "cairo-lang-debug 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-defs 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-diagnostics 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-filesystem 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-lowering 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-parser 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-semantic 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-syntax 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" +dependencies = [ + "cairo-lang-debug 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-defs 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-diagnostics 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-filesystem 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-lowering 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-parser 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-semantic 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-syntax 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "itertools 0.11.0", "num-traits 0.2.19", "once_cell", @@ -2973,16 +2973,16 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-to-casm" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ "assert_matches", "cairo-felt", - "cairo-lang-casm 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra-ap-change 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra-gas 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra-type-size 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-casm 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra-ap-change 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra-gas 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra-type-size 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "indoc 2.0.5", "itertools 0.11.0", "num-bigint", @@ -3023,10 +3023,10 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-type-size" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ - "cairo-lang-sierra 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-sierra 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", ] [[package]] @@ -3072,22 +3072,22 @@ dependencies = [ [[package]] name = "cairo-lang-starknet" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ "anyhow", "cairo-felt", - "cairo-lang-compiler 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-defs 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-diagnostics 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-filesystem 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-lowering 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-plugins 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-semantic 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra-generator 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-starknet-classes 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-syntax 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-compiler 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-defs 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-diagnostics 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-filesystem 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-lowering 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-plugins 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-semantic 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra-generator 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-starknet-classes 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-syntax 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "const_format", "indent", "indoc 2.0.5", @@ -3157,13 +3157,13 @@ dependencies = [ [[package]] name = "cairo-lang-starknet-classes" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ "cairo-felt", - "cairo-lang-casm 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra-to-casm 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-casm 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra-to-casm 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "convert_case 0.6.0", "itertools 0.11.0", "num-bigint", @@ -3221,11 +3221,11 @@ dependencies = [ [[package]] name = "cairo-lang-syntax" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ - "cairo-lang-debug 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-filesystem 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-debug 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-filesystem 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "num-bigint", "num-traits 0.2.19", "salsa", @@ -3261,7 +3261,7 @@ dependencies = [ [[package]] name = "cairo-lang-syntax-codegen" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ "genco", "xshell", @@ -3355,7 +3355,7 @@ dependencies = [ [[package]] name = "cairo-lang-utils" version = "2.6.3" -source = "git+https://github.com/starkware-libs/cairo?tag=v2.6.3#2203a47f8a098cd4718d03bd109ca014049419e7" +source = "git+https://github.com/reilabs/cairo?rev=2203a47f#2203a47f8a098cd4718d03bd109ca014049419e7" dependencies = [ "hashbrown 0.14.5", "indexmap 2.2.6", @@ -8074,12 +8074,12 @@ dependencies = [ name = "katana-cairo" version = "0.7.2" dependencies = [ - "cairo-lang-casm 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-runner 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-sierra 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-starknet 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-starknet-classes 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", - "cairo-lang-utils 2.6.3 (git+https://github.com/starkware-libs/cairo?tag=v2.6.3)", + "cairo-lang-casm 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-runner 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-sierra 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-starknet 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-starknet-classes 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", + "cairo-lang-utils 2.6.3 (git+https://github.com/reilabs/cairo?rev=2203a47f)", "cairo-vm 0.9.2", ] diff --git a/crates/katana/cairo/Cargo.toml b/crates/katana/cairo/Cargo.toml index db98902c83..3d3047508a 100644 --- a/crates/katana/cairo/Cargo.toml +++ b/crates/katana/cairo/Cargo.toml @@ -8,12 +8,12 @@ version.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html -# Use from git instead of crates.io registry so that the workspace patches aren't applied. +# Use a different GitHub fork of Cairo so that the workspace patches aren't applied. [dependencies] -cairo-lang-casm = { git = "https://github.com/starkware-libs/cairo", tag = "v2.6.3" } -cairo-lang-runner = { git = "https://github.com/starkware-libs/cairo", tag = "v2.6.3" } -cairo-lang-sierra = { git = "https://github.com/starkware-libs/cairo", tag = "v2.6.3" } -cairo-lang-starknet = { git = "https://github.com/starkware-libs/cairo", tag = "v2.6.3" } -cairo-lang-starknet-classes = { git = "https://github.com/starkware-libs/cairo", tag = "v2.6.3" } -cairo-lang-utils = { git = "https://github.com/starkware-libs/cairo", tag = "v2.6.3" } +cairo-lang-casm = { git = "https://github.com/reilabs/cairo", rev = "2203a47f" } +cairo-lang-runner = { git = "https://github.com/reilabs/cairo", rev = "2203a47f" } +cairo-lang-sierra = { git = "https://github.com/reilabs/cairo", rev = "2203a47f" } +cairo-lang-starknet = { git = "https://github.com/reilabs/cairo", rev = "2203a47f" } +cairo-lang-starknet-classes = { git = "https://github.com/reilabs/cairo", rev = "2203a47f" } +cairo-lang-utils = { git = "https://github.com/reilabs/cairo", rev = "2203a47f" } cairo-vm = "0.9.2" diff --git a/crates/katana/executor/Cargo.toml b/crates/katana/executor/Cargo.toml index 5e984c5bae..f94477612c 100644 --- a/crates/katana/executor/Cargo.toml +++ b/crates/katana/executor/Cargo.toml @@ -22,7 +22,7 @@ tracing.workspace = true alloy-primitives.workspace = true # blockifier deps -blockifier = { git = "https://github.com/dojoengine/blockifier", rev = "57c11586", features = [ "testing" ], optional = true } +blockifier = { git = "https://github.com/reilabs/blockifier", branch = "hints", features = [ "testing" ], optional = true } katana-cairo = { workspace = true, optional = true } # Disable SIR for now until they support Cairo 2.6.3 diff --git a/crates/torii/types-test/Scarb.lock b/crates/torii/types-test/Scarb.lock index fbf70e2be2..eb11adee81 100644 --- a/crates/torii/types-test/Scarb.lock +++ b/crates/torii/types-test/Scarb.lock @@ -15,7 +15,7 @@ source = "git+https://github.com/dojoengine/dojo?tag=v0.7.2#3da5cad9fdd39b81551e [[package]] name = "types_test" -version = "0.7.0" +version = "0.7.2" dependencies = [ "dojo", ] diff --git a/examples/spawn-and-move/Scarb.lock b/examples/spawn-and-move/Scarb.lock index e9a0b90f18..aeef927011 100644 --- a/examples/spawn-and-move/Scarb.lock +++ b/examples/spawn-and-move/Scarb.lock @@ -10,7 +10,7 @@ dependencies = [ [[package]] name = "dojo_examples" -version = "0.7.1" +version = "0.7.2" dependencies = [ "dojo", ] diff --git a/examples/spawn-and-move/manifests/dev/base/contracts/dojo_examples_actions_actions.toml b/examples/spawn-and-move/manifests/dev/base/contracts/dojo_examples_actions_actions.toml index b1680ae07c..8137acc679 100644 --- a/examples/spawn-and-move/manifests/dev/base/contracts/dojo_examples_actions_actions.toml +++ b/examples/spawn-and-move/manifests/dev/base/contracts/dojo_examples_actions_actions.toml @@ -1,6 +1,6 @@ kind = "DojoContract" -class_hash = "0x3b42f80dc8ac4628b0ed6c89af9055314c0aa2192ea0d9601f262138a1e50c3" -original_class_hash = "0x3b42f80dc8ac4628b0ed6c89af9055314c0aa2192ea0d9601f262138a1e50c3" +class_hash = "0x6b2ada134770a6c936006b38c1f951deee66cbce1892a910377237bda172454" +original_class_hash = "0x6b2ada134770a6c936006b38c1f951deee66cbce1892a910377237bda172454" base_class_hash = "0x0" abi = "manifests/dev/abis/base/contracts/dojo_examples_actions_actions.json" reads = [] diff --git a/examples/spawn-and-move/manifests/dev/manifest.json b/examples/spawn-and-move/manifests/dev/manifest.json index a1a575d4aa..8bdf94fb25 100644 --- a/examples/spawn-and-move/manifests/dev/manifest.json +++ b/examples/spawn-and-move/manifests/dev/manifest.json @@ -1020,8 +1020,8 @@ { "kind": "DojoContract", "address": "0x5c70a663d6b48d8e4c6aaa9572e3735a732ac3765700d470463e670587852af", - "class_hash": "0x3b42f80dc8ac4628b0ed6c89af9055314c0aa2192ea0d9601f262138a1e50c3", - "original_class_hash": "0x3b42f80dc8ac4628b0ed6c89af9055314c0aa2192ea0d9601f262138a1e50c3", + "class_hash": "0x6b2ada134770a6c936006b38c1f951deee66cbce1892a910377237bda172454", + "original_class_hash": "0x6b2ada134770a6c936006b38c1f951deee66cbce1892a910377237bda172454", "base_class_hash": "0x22f3e55b61d86c2ac5239fa3b3b8761f26b9a5c0b5f61ddbd5d756ced498b46", "abi": [ { diff --git a/examples/spawn-and-move/manifests/dev/manifest.toml b/examples/spawn-and-move/manifests/dev/manifest.toml index c292ce25af..fc44d3514e 100644 --- a/examples/spawn-and-move/manifests/dev/manifest.toml +++ b/examples/spawn-and-move/manifests/dev/manifest.toml @@ -22,8 +22,8 @@ name = "dojo::base::base" [[contracts]] kind = "DojoContract" address = "0x5c70a663d6b48d8e4c6aaa9572e3735a732ac3765700d470463e670587852af" -class_hash = "0x3b42f80dc8ac4628b0ed6c89af9055314c0aa2192ea0d9601f262138a1e50c3" -original_class_hash = "0x3b42f80dc8ac4628b0ed6c89af9055314c0aa2192ea0d9601f262138a1e50c3" +class_hash = "0x6b2ada134770a6c936006b38c1f951deee66cbce1892a910377237bda172454" +original_class_hash = "0x6b2ada134770a6c936006b38c1f951deee66cbce1892a910377237bda172454" base_class_hash = "0x22f3e55b61d86c2ac5239fa3b3b8761f26b9a5c0b5f61ddbd5d756ced498b46" abi = "manifests/dev/abis/deployments/contracts/dojo_examples_actions_actions.json" reads = [] diff --git a/examples/spawn-and-move/src/actions.cairo b/examples/spawn-and-move/src/actions.cairo index 6737cdea48..80baa82ac5 100644 --- a/examples/spawn-and-move/src/actions.cairo +++ b/examples/spawn-and-move/src/actions.cairo @@ -21,6 +21,7 @@ mod actions { use super::IActionsComputed; use starknet::{ContractAddress, get_caller_address}; + use starknet::testing::cheatcode; use dojo_examples::models::{Position, Moves, Direction, Vec2, PlayerConfig, PlayerItem}; use dojo_examples::utils::next_position; @@ -64,6 +65,10 @@ mod actions { impl ActionsImpl of IActions { // ContractState is defined by system decorator expansion fn spawn(ref world: IWorldDispatcher) { + let mut seed: Array = ArrayTrait::new(); + let mut result: Span = cheatcode::<'vrf'>(seed.span()); + cheatcode::<'print'>(result); + let player = get_caller_address(); self.set_default_position(player, world); }