-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made the cairo contracts to compile and test works
- Loading branch information
1 parent
234ccd5
commit 0bcdb62
Showing
12 changed files
with
1,442 additions
and
63 deletions.
There are no files selected for viewing
459 changes: 459 additions & 0 deletions
459
manifests/dev/base/abis/models/bytebeasts-Game-e91217d7.json
Large diffs are not rendered by default.
Oops, something went wrong.
407 changes: 407 additions & 0 deletions
407
manifests/dev/base/abis/models/bytebeasts-GameId-344511d3.json
Large diffs are not rendered by default.
Oops, something went wrong.
439 changes: 439 additions & 0 deletions
439
manifests/dev/base/abis/models/bytebeasts-GamePlayer-596ef4a1.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
kind = "DojoModel" | ||
class_hash = "0x57c477846284e274054c78c5b265af51f8815abbf0147828080c274b0639764" | ||
original_class_hash = "0x57c477846284e274054c78c5b265af51f8815abbf0147828080c274b0639764" | ||
abi = "manifests/dev/base/abis/models/bytebeasts-Game-e91217d7.json" | ||
tag = "bytebeasts-Game" | ||
manifest_name = "bytebeasts-Game-e91217d7" | ||
|
||
[[members]] | ||
name = "game_id" | ||
type = "u128" | ||
key = true | ||
|
||
[[members]] | ||
name = "player_1" | ||
type = "ContractAddress" | ||
key = false | ||
|
||
[[members]] | ||
name = "player_2" | ||
type = "ContractAddress" | ||
key = false | ||
|
||
[[members]] | ||
name = "player_3" | ||
type = "ContractAddress" | ||
key = false | ||
|
||
[[members]] | ||
name = "player_4" | ||
type = "ContractAddress" | ||
key = false | ||
|
||
[[members]] | ||
name = "status" | ||
type = "GameStatus" | ||
key = false | ||
|
||
[[members]] | ||
name = "is_private" | ||
type = "bool" | ||
key = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
kind = "DojoModel" | ||
class_hash = "0x7dc1689aa3f1e6b123cadfed4066a70f09be69c9a166bfe824c61b916925efe" | ||
original_class_hash = "0x7dc1689aa3f1e6b123cadfed4066a70f09be69c9a166bfe824c61b916925efe" | ||
abi = "manifests/dev/base/abis/models/bytebeasts-GameId-344511d3.json" | ||
tag = "bytebeasts-GameId" | ||
manifest_name = "bytebeasts-GameId-344511d3" | ||
|
||
[[members]] | ||
name = "id" | ||
type = "u32" | ||
key = true | ||
|
||
[[members]] | ||
name = "game_id" | ||
type = "u128" | ||
key = false |
56 changes: 56 additions & 0 deletions
56
manifests/dev/base/models/bytebeasts-GamePlayer-596ef4a1.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
kind = "DojoModel" | ||
class_hash = "0x52df62dec799bbf7ba4725f74e32e579dec2d90a7a995638761646157bb7e18" | ||
original_class_hash = "0x52df62dec799bbf7ba4725f74e32e579dec2d90a7a995638761646157bb7e18" | ||
abi = "manifests/dev/base/abis/models/bytebeasts-GamePlayer-596ef4a1.json" | ||
tag = "bytebeasts-GamePlayer" | ||
manifest_name = "bytebeasts-GamePlayer-596ef4a1" | ||
|
||
[[members]] | ||
name = "address" | ||
type = "ContractAddress" | ||
key = true | ||
|
||
[[members]] | ||
name = "game_id" | ||
type = "u128" | ||
key = true | ||
|
||
[[members]] | ||
name = "beast_1" | ||
type = "u8" | ||
key = false | ||
|
||
[[members]] | ||
name = "beast_2" | ||
type = "u8" | ||
key = false | ||
|
||
[[members]] | ||
name = "beast_3" | ||
type = "u8" | ||
key = false | ||
|
||
[[members]] | ||
name = "beast_4" | ||
type = "u8" | ||
key = false | ||
|
||
[[members]] | ||
name = "bag_id" | ||
type = "u8" | ||
key = false | ||
|
||
[[members]] | ||
name = "active_mount" | ||
type = "u8" | ||
key = false | ||
|
||
[[members]] | ||
name = "mounts" | ||
type = "Array<u8>" | ||
key = false | ||
|
||
[[members]] | ||
name = "position" | ||
type = "Array<u8>" | ||
key = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
mod systems { | ||
mod actions; | ||
mod battle; | ||
// mod realms; | ||
} | ||
|
||
mod models { | ||
mod battle; | ||
mod beast; | ||
mod coordinates; | ||
mod game_id; | ||
mod game_player; | ||
mod game; | ||
mod mission_status; | ||
mod mt; | ||
mod npc; | ||
mod player; | ||
mod position; | ||
mod potion; | ||
mod world_elements; | ||
mod mission_status; | ||
mod npc; | ||
mod role; | ||
mod world_elements; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#[derive(Copy, Drop, Serde)] | ||
#[dojo::model] | ||
pub struct GameId { | ||
#[key] | ||
pub id: u32, | ||
pub game_id: u128 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters