Skip to content

Commit 6e2a6fa

Browse files
committed
chore: bump to 1.7.0
1 parent f9a5796 commit 6e2a6fa

File tree

5 files changed

+30
-29
lines changed

5 files changed

+30
-29
lines changed

.github/workflows/test.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ on:
99
jobs:
1010
sozo-test:
1111
runs-on: ubuntu-latest
12-
env:
13-
DOJO_VERSION: v1.7.0-alpha.4
1412
steps:
1513
- uses: actions/checkout@v3
1614
- uses: software-mansion/setup-scarb@v1

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sozo 1.7.0-alpha.4
1+
sozo 1.7.0
22
scarb 2.12.2

Scarb.lock

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,33 @@ version = 1
33

44
[[package]]
55
name = "dojo"
6-
version = "1.7.0-alpha.4"
7-
source = "git+https://github.com/dojoengine/dojo?tag=v1.7.0-alpha.4#7b78108ce7aea7753c0a9e34cb83465a76bbf2e4"
6+
version = "1.7.0"
7+
source = "registry+https://scarbs.xyz/"
8+
checksum = "sha256:43866af1b23659c992fcf786f7f69429689eb684d42ffb77a351490e763bf915"
89
dependencies = [
9-
"dojo_macros",
10+
"dojo_cairo_macros",
1011
]
1112

13+
[[package]]
14+
name = "dojo_cairo_macros"
15+
version = "1.7.0"
16+
source = "registry+https://scarbs.xyz/"
17+
checksum = "sha256:53d38987d9a0acc9493282711cd504ad4920fd4cd31f230deb5ff4ea11183958"
18+
1219
[[package]]
1320
name = "dojo_cairo_test"
14-
version = "1.7.0-alpha.4"
15-
source = "git+https://github.com/dojoengine/dojo?tag=v1.7.0-alpha.4#7b78108ce7aea7753c0a9e34cb83465a76bbf2e4"
21+
version = "1.7.0"
22+
source = "registry+https://scarbs.xyz/"
23+
checksum = "sha256:3e95042deeef76bd43c8c05b15f8757060663269aed7e31f9c6c4a3934a5cba4"
1624
dependencies = [
1725
"dojo",
1826
]
1927

20-
[[package]]
21-
name = "dojo_macros"
22-
version = "1.7.0-alpha.4"
23-
source = "git+https://github.com/dojoengine/dojo?tag=v1.7.0-alpha.4#7b78108ce7aea7753c0a9e34cb83465a76bbf2e4"
24-
2528
[[package]]
2629
name = "dojo_starter"
27-
version = "1.7.0-alpha.4"
30+
version = "1.7.0"
2831
dependencies = [
2932
"dojo",
33+
"dojo_cairo_macros",
3034
"dojo_cairo_test",
31-
"dojo_macros",
3235
]

Scarb.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
[package]
22
cairo-version = "2.12.2"
33
name = "dojo_starter"
4-
version = "1.7.0-alpha.4"
4+
version = "1.7.0"
55
edition = "2024_07"
66

77
[cairo]
88
sierra-replace-ids = true
99

1010
[scripts]
11-
migrate = "sozo build && sozo migrate" # scarb run migrate
12-
spawn = "sozo execute dojo_starter-actions spawn --wait" # scarb run spawn
13-
move = "sozo execute dojo_starter-actions move -c 1 --wait" # scarb run move
11+
migrate = "sozo build && sozo migrate"
12+
spawn = "sozo execute dojo_starter-actions spawn --wait"
13+
move = "sozo execute dojo_starter-actions move -c 1 --wait"
1414

1515
[dependencies]
16-
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v1.7.0-alpha.4" }
17-
dojo_macros = { git = "https://github.com/dojoengine/dojo", tag = "v1.7.0-alpha.4" }
16+
dojo = "1.7.0"
17+
dojo_cairo_macros = "1.7.0"
1818
starknet = "2.12.2"
1919

2020
[[target.starknet-contract]]
2121
build-external-contracts = ["dojo::world::world_contract::world"]
2222

2323
[dev-dependencies]
2424
cairo_test = "2.12.2"
25-
dojo_cairo_test = { git = "https://github.com/dojoengine/dojo", tag = "v1.7.0-alpha.4" }
25+
dojo_cairo_test = "1.7.0"

src/tests/test_world.cairo

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#[cfg(test)]
22
mod tests {
33
use dojo::model::{ModelStorage, ModelStorageTest};
4-
use dojo::world::WorldStorageTrait;
4+
use dojo::world::{WorldStorageTrait, world};
55
use dojo_cairo_test::{
66
ContractDef, ContractDefTrait, NamespaceDef, TestResource, WorldStorageTestTrait,
77
spawn_test_world,
@@ -14,10 +14,10 @@ mod tests {
1414
let ndef = NamespaceDef {
1515
namespace: "dojo_starter",
1616
resources: [
17-
TestResource::Model(m_Position::TEST_CLASS_HASH.into()),
18-
TestResource::Model(m_Moves::TEST_CLASS_HASH.into()),
19-
TestResource::Event(actions::e_Moved::TEST_CLASS_HASH.into()),
20-
TestResource::Contract(actions::TEST_CLASS_HASH.into()),
17+
TestResource::Model(m_Position::TEST_CLASS_HASH),
18+
TestResource::Model(m_Moves::TEST_CLASS_HASH),
19+
TestResource::Event(actions::e_Moved::TEST_CLASS_HASH),
20+
TestResource::Contract(actions::TEST_CLASS_HASH),
2121
]
2222
.span(),
2323
};
@@ -40,7 +40,7 @@ mod tests {
4040
let ndef = namespace_def();
4141

4242
// Register the resources.
43-
let mut world = spawn_test_world([ndef].span());
43+
let mut world = spawn_test_world(world::TEST_CLASS_HASH, [ndef].span());
4444

4545
// Ensures permissions and initializations are synced.
4646
world.sync_perms_and_inits(contract_defs());
@@ -70,7 +70,7 @@ mod tests {
7070
let caller: ContractAddress = 0.try_into().unwrap();
7171

7272
let ndef = namespace_def();
73-
let mut world = spawn_test_world([ndef].span());
73+
let mut world = spawn_test_world(world::TEST_CLASS_HASH, [ndef].span());
7474
world.sync_perms_and_inits(contract_defs());
7575

7676
let (contract_address, _) = world.dns(@"actions").unwrap();

0 commit comments

Comments
 (0)