Skip to content

Commit

Permalink
✨ Populate changes to contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
bal7hazar committed Oct 31, 2024
1 parent 0ea5e44 commit f2aba12
Show file tree
Hide file tree
Showing 60 changed files with 1,679 additions and 22,655 deletions.
11 changes: 10 additions & 1 deletion contracts/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,24 @@ 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-rc.0#f4199aec570a395278b8c8748bc46e2f6be3d0c7"
dependencies = [
"dojo",
]

[[package]]
name = "dojo_plugin"
version = "2.8.4"
source = "git+https://github.com/dojoengine/dojo?tag=v1.0.0-rc.0#f4199aec570a395278b8c8748bc46e2f6be3d0c7"

[[package]]
name = "quest_world"
name = "game_center"
version = "0.0.0"
dependencies = [
"achievement",
"dojo",
"dojo_cairo_test",
]
20 changes: 13 additions & 7 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 = "quest_world"
name = "game_center"
version = "0.0.0"

[cairo]
Expand All @@ -10,15 +10,21 @@ sierra-replace-ids = true
dev = "sozo clean && sozo build --typescript && sozo migrate plan && sozo migrate apply"

[dependencies]
achievement = { path = ".." }
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0-rc.0" }
achievement = { path = ".." }
starknet = "2.8.4"
cairo_test = "2.8.4"

[dev-dependencies]
dojo_cairo_test = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0-rc.0" }

[[target.dojo]]
[[target.starknet-contract]]
build-external-contracts = [
"achievement::models::index::Game",
"achievement::models::index::Achievement",
"achievement::events::index::AchievementCreation",
"achievement::events::index::AchievementCompletion",
"dojo::world::world_contract::world",
"achievement::models::index::m_Game",
"achievement::models::index::m_Achievement",
"achievement::events::index::e_Trophy",
"achievement::events::index::e_Progress",
]

[profile.slot]
8 changes: 5 additions & 3 deletions contracts/dojo_dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ telegram = "https://t.me/dojoengine"

[namespace]
default = "game_center"
mappings = { "achievement" = "game_center" }

[writers]
"game_center" = ["game_center-Actions"]

[env]
rpc_url = "http://localhost:5050/"
account_address = "0xb3ff441a68610b30fd5e2abbf3a1548eb6ba6f3559f2862bf2dc757e5828ca"
private_key = "0x2bbf4f9fd0bbb2e60b0316c1fe0b76cf7a4d0198bd493ced9b8df2a3a24d68a"
account_address = "0x127fd5f1fe78a71f8bcd1fec63e3fe2f0486b6ecd5c86a0466c3a21fa5cfcec"
private_key = "0xc5b2fcab997346f3ea1c00b002ecf6f382c5f9c9659a3894eb783c5320f912"
11 changes: 10 additions & 1 deletion contracts/dojo_slot.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@ telegram = "https://t.me/dojoengine"

[namespace]
default = "game_center"
mappings = { "achievement" = "game_center" }
mappings = { "achievement" = [
"m_Game",
"m_Achievement",
], "game_center" = [
"m_Game",
"m_Achievement",
] }

[writers]
"game_center" = ["game_center-Actions"]

[env]
rpc_url = "https://api.cartridge.gg/x/bushido/katana"
Expand Down
Loading

0 comments on commit f2aba12

Please sign in to comment.