Skip to content

Commit

Permalink
✨ Add new systems leveraging new components
Browse files Browse the repository at this point in the history
  • Loading branch information
bal7hazar committed Nov 21, 2024
1 parent 54011f5 commit 7549d3c
Show file tree
Hide file tree
Showing 9 changed files with 467 additions and 307 deletions.
32 changes: 24 additions & 8 deletions contracts/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,54 @@
version = 1

[[package]]
name = "arcade_registry"
name = "arcade"
version = "0.0.0"
dependencies = [
"controller",
"dojo",
"dojo_cairo_test",
"provider",
"registry",
]

[[package]]
name = "controller"
version = "0.0.0"
dependencies = [
"dojo",
]

[[package]]
name = "dojo"
version = "1.0.0"
source = "git+https://github.com/dojoengine/dojo?tag=v1.0.0#74280d48fa2828095331487dede59f9b2e378cd3"
version = "1.0.1"
source = "git+https://github.com/dojoengine/dojo?tag=v1.0.1#d7335e6f5c76a1dda887ec00c594c2c019b4a05f"
dependencies = [
"dojo_plugin",
]

[[package]]
name = "dojo_cairo_test"
version = "1.0.0-rc.0"
source = "git+https://github.com/dojoengine/dojo?tag=v1.0.0#74280d48fa2828095331487dede59f9b2e378cd3"
source = "git+https://github.com/dojoengine/dojo?tag=v1.0.1#d7335e6f5c76a1dda887ec00c594c2c019b4a05f"
dependencies = [
"dojo",
]

[[package]]
name = "dojo_plugin"
version = "2.8.4"
source = "git+https://github.com/dojoengine/dojo?tag=v1.0.0#74280d48fa2828095331487dede59f9b2e378cd3"
source = "git+https://github.com/dojoengine/dojo?tag=v1.0.1#d7335e6f5c76a1dda887ec00c594c2c019b4a05f"

[[package]]
name = "game_center"
name = "provider"
version = "0.0.0"
dependencies = [
"dojo",
]

[[package]]
name = "registry"
version = "0.0.0"
dependencies = [
"arcade_registry",
"dojo",
"dojo_cairo_test",
]
18 changes: 14 additions & 4 deletions contracts/Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
cairo-version = "2.8.4"
name = "game_center"
name = "arcade"
version = "0.0.0"

[cairo]
Expand All @@ -11,7 +11,9 @@ dev = "sozo clean && sozo build --typescript && sozo migrate plan && sozo migrat

[dependencies]
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.1" }
arcade_registry = { path = ".." }
controller = { path = ".." }
provider = { path = ".." }
registry = { path = ".." }
starknet = "2.8.4"
cairo_test = "2.8.4"

Expand All @@ -21,8 +23,16 @@ dojo_cairo_test = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.1" }
[[target.starknet-contract]]
build-external-contracts = [
"dojo::world::world_contract::world",
"arcade_registry::models::index::m_Game",
"arcade_registry::models::index::m_Achievement",
"controller::models::index::m_Account",
"controller::models::index::m_Controller",
"controller::models::index::m_Member",
"controller::models::index::m_Signer",
"controller::models::index::m_Team",
"provider::models::index::m_Deployment",
"provider::models::index::m_Factory",
"registry::models::index::m_Access",
"registry::models::index::m_Achievement",
"registry::models::index::m_Game",
]

[profile.slot]
3 changes: 3 additions & 0 deletions contracts/src/constants.cairo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub fn NAMESPACE() -> ByteArray {
"ARCADE"
}
6 changes: 5 additions & 1 deletion contracts/src/lib.cairo
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
mod constants;

mod systems {
mod actions;
mod controller;
mod registry;
mod slot;
}
Loading

0 comments on commit 7549d3c

Please sign in to comment.