Skip to content

Commit

Permalink
πŸ‘₯ Society feature (#10)
Browse files Browse the repository at this point in the history
* πŸŽ‰ Begin society package

* ✨ Create member, guild and alliance features

* ✨ Add follow feature

* ♻️ Refactor and add pin feature

* ✨ Create missing contracts

* πŸš€ Delpoy on slot
  • Loading branch information
bal7hazar authored Nov 25, 2024
1 parent e835f6e commit 121c2da
Show file tree
Hide file tree
Showing 76 changed files with 6,570 additions and 375 deletions.
11 changes: 10 additions & 1 deletion Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version = 1

[[package]]
name = "arcade_trophy"
name = "achievement"
version = "0.0.0"
dependencies = [
"dojo",
Expand Down Expand Up @@ -53,3 +53,12 @@ dependencies = [
"dojo",
"dojo_cairo_test",
]

[[package]]
name = "society"
version = "0.0.0"
dependencies = [
"dojo",
"dojo_cairo_test",
"registry",
]
7 changes: 4 additions & 3 deletions Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[workspace]
members = [
"packages/trophy",
"packages/registry",
"packages/provider",
"packages/controller",
"packages/provider",
"packages/registry",
"packages/society",
"packages/achievement",
]
description = "Dojo achievement library"
homepage = "https://github.com/cartridge-gg/arcade/"
Expand Down
17 changes: 17 additions & 0 deletions contracts/Scarb.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
# Code generated by scarb DO NOT EDIT.
version = 1

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

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

[[package]]
Expand Down Expand Up @@ -53,3 +62,11 @@ version = "0.0.0"
dependencies = [
"dojo",
]

[[package]]
name = "society"
version = "0.0.0"
dependencies = [
"dojo",
"registry",
]
11 changes: 9 additions & 2 deletions contracts/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ dev = "sozo clean && sozo build --typescript && sozo migrate plan && sozo migrat

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

Expand All @@ -23,16 +25,21 @@ dojo_cairo_test = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.1" }
[[target.starknet-contract]]
build-external-contracts = [
"dojo::world::world_contract::world",
"achievement::events::index::e_TrophyPinning",
"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",
"provider::models::index::m_Team",
"provider::models::index::m_Teammate",
"registry::models::index::m_Access",
"registry::models::index::m_Achievement",
"registry::models::index::m_Game",
"society::models::index::m_Alliance",
"society::models::index::m_Guild",
"society::models::index::m_Member",
"society::events::index::e_Follow",
]

[profile.slot]
17 changes: 14 additions & 3 deletions contracts/dojo_dev.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[world]
name = "Cartridge World"
description = "Cartridge World Achievements"
description = "Cartridge World"
website = "https://github.com/dojoengine/dojo-starter"
seed = "arcade"

Expand All @@ -11,10 +11,21 @@ github = "https://github.com/dojoengine/dojo-starter"
telegram = "https://t.me/dojoengine"

[namespace]
default = "game_center"
default = "ARCADE"

[init_call_args]
"ARCADE-Registry" = [
"0x6677fe62ee39c7b07401f754138502bab7fac99d2d3c5d37df7d1c6fab10819",
]

[writers]
"game_center" = ["game_center-Actions"]
"ARCADE" = [
"ARCADE-Registry",
"ARCADE-Slot",
"ARCADE-Society",
"ARCADE-Pinner",
"ARCADE-Wallet",
]

[env]
rpc_url = "http://localhost:5050/"
Expand Down
21 changes: 16 additions & 5 deletions contracts/dojo_slot.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[world]
name = "Cartridge World"
description = "Cartridge World Achievements"
description = "Cartridge World"
website = "https://github.com/dojoengine/dojo-starter"
seed = "arcade"

Expand All @@ -11,12 +11,23 @@ github = "https://github.com/dojoengine/dojo-starter"
telegram = "https://t.me/dojoengine"

[namespace]
default = "game_center"
default = "ARCADE"

[init_call_args]
"ARCADE-Registry" = [
"0x6677fe62ee39c7b07401f754138502bab7fac99d2d3c5d37df7d1c6fab10819",
]

[writers]
"game_center" = ["game_center-Actions"]
"ARCADE" = [
"ARCADE-Registry",
"ARCADE-Slot",
"ARCADE-Society",
"ARCADE-Pinner",
"ARCADE-Wallet",
]

[env]
rpc_url = "https://api.cartridge.gg/x/arcade/katana"
account_address = "0x79e1341bc8e27b2ae2544fe902f0c9e723cfba8e37c47371d90385cc17265cc"
private_key = "0x506a3b48830c89357283236d8724f68d014d681499b2256e7589c950a4198c5"
account_address = "0x6677fe62ee39c7b07401f754138502bab7fac99d2d3c5d37df7d1c6fab10819"
private_key = "0x3e3979c1ed728490308054fe357a9f49cf67f80f9721f44cc57235129e090f4"
9 changes: 9 additions & 0 deletions contracts/katana_dev.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[server]
http_addr = "0.0.0.0"
http_port = 5050
http_cors_origins = ["*"]

[dev]
seed = "0"
dev = true
no_fee = true
7 changes: 7 additions & 0 deletions contracts/katana_slot.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[server]
http_cors_origins = ["*"]

[dev]
seed = "0"
dev = true
no_fee = true
Loading

0 comments on commit 121c2da

Please sign in to comment.