Skip to content

Commit

Permalink
Slot package (#8)
Browse files Browse the repository at this point in the history
* πŸš€ Kick start slot package

* ✨ Migrate few schemas

* ✨ Migrate more models

* ✨ Create missing models and according basic impls

* ✨ Introduce service and socials

* πŸ› deployement service type

* ♻️ Refactor everything into 3 packages

* ♻️ Finish refactoring

* ✨ Add new systems leveraging new components
  • Loading branch information
bal7hazar authored Nov 21, 2024
1 parent 7efb540 commit e835f6e
Show file tree
Hide file tree
Showing 64 changed files with 3,539 additions and 1,237 deletions.
20 changes: 18 additions & 2 deletions Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
version = 1

[[package]]
name = "arcade_registry"
name = "arcade_trophy"
version = "0.0.0"
dependencies = [
"dojo",
"dojo_cairo_test",
]

[[package]]
name = "arcade_trophy"
name = "controller"
version = "0.0.0"
dependencies = [
"dojo",
Expand All @@ -37,3 +37,19 @@ dependencies = [
name = "dojo_plugin"
version = "2.8.4"
source = "git+https://github.com/dojoengine/dojo?tag=v1.0.1#d7335e6f5c76a1dda887ec00c594c2c019b4a05f"

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

[[package]]
name = "registry"
version = "0.0.0"
dependencies = [
"dojo",
"dojo_cairo_test",
]
7 changes: 6 additions & 1 deletion Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
[workspace]
members = ["packages/trophy", "packages/registry"]
members = [
"packages/trophy",
"packages/registry",
"packages/provider",
"packages/controller",
]
description = "Dojo achievement library"
homepage = "https://github.com/cartridge-gg/arcade/"
cairo-version = "2.8.4"
Expand Down
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 e835f6e

Please sign in to comment.