Skip to content

Commit

Permalink
Merge pull request #61 from notV4l/use_overlays
Browse files Browse the repository at this point in the history
use overlays to grant writer
  • Loading branch information
glihm authored Jun 14, 2024
2 parents e5ff3a7 + 0e3f71e commit 358f66b
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 37 deletions.
4 changes: 2 additions & 2 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version = "0.7.0"
sierra-replace-ids = true

[scripts]
migrate = "sozo build && sozo migrate apply && ./scripts/default_auth.sh"
migrate = "sozo build && sozo migrate apply"
spawn = "./scripts/spawn.sh"
move = "./scripts/move.sh"

Expand All @@ -24,7 +24,7 @@ rpc_url = "http://localhost:5050/"
# Default account for katana with seed = 0
account_address = "0xb3ff441a68610b30fd5e2abbf3a1548eb6ba6f3559f2862bf2dc757e5828ca"
private_key = "0x2bbf4f9fd0bbb2e60b0316c1fe0b76cf7a4d0198bd493ced9b8df2a3a24d68a"
#world_address = "0x559e9e223d83b6a3121ba33b1339323a3bdf4c7c302078fb3e755fddc68a2fb" # Update this line with your world address
#world_address = "0x559e9e223d83b6a3121ba33b1339323a3bdf4c7c302078fb3e755fddc68a2fb" # Uncomment and update this line with your world address.

[tool.dojo.world]
name = "Dojo starter"
Expand Down
5 changes: 4 additions & 1 deletion manifests/dev/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,10 @@
}
],
"reads": [],
"writes": [],
"writes": [
"Position",
"Moves"
],
"computed": [],
"init_calldata": [],
"name": "dojo_starter::systems::actions::actions"
Expand Down
5 changes: 4 additions & 1 deletion manifests/dev/manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ original_class_hash = "0x458bee9fe13c5762aca6b1ca74e64c389e0ee1357e15e1f11f0d402
base_class_hash = "0x22f3e55b61d86c2ac5239fa3b3b8761f26b9a5c0b5f61ddbd5d756ced498b46"
abi = "manifests/dev/abis/deployments/contracts/dojo_starter_systems_actions_actions.json"
reads = []
writes = []
writes = [
"Position",
"Moves",
]
computed = []
init_calldata = []
name = "dojo_starter::systems::actions::actions"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name = "dojo_starter::systems::actions::actions"
reads = []
writes = ["Position", "Moves"]
init_calldata = []
1 change: 1 addition & 0 deletions manifests/dev/overlays/dojo_base_base.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name = "dojo::base::base"
1 change: 1 addition & 0 deletions manifests/dev/overlays/dojo_world_world.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name = "dojo::world::world"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name = "dojo_starter::models::moves::moves"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name = "dojo_starter::models::position::position"
33 changes: 0 additions & 33 deletions scripts/default_auth.sh

This file was deleted.

Empty file modified scripts/move.sh
100644 → 100755
Empty file.

0 comments on commit 358f66b

Please sign in to comment.