Skip to content

Commit

Permalink
fix: update manifests and prepare 2023_11 edition support
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Jun 20, 2024
1 parent 89b7a90 commit 7c67215
Show file tree
Hide file tree
Showing 18 changed files with 2,540 additions and 17 deletions.
3 changes: 3 additions & 0 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
cairo-version = "2.6.3"
name = "shard_dungeon"
version = "0.1.0"
# Dojo needs to be updated to support this edition. Currently
# some `pub` are in the files, but not used until this edition is supported.
# edition = "2023_11"

[cairo]
sierra-replace-ids = true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
[
{
"type": "impl",
"name": "DojoResourceProviderImpl",
"interface_name": "dojo::world::IDojoResourceProvider"
},
{
"type": "interface",
"name": "dojo::world::IDojoResourceProvider",
"items": [
{
"type": "function",
"name": "dojo_resource",
"inputs": [],
"outputs": [
{
"type": "core::felt252"
}
],
"state_mutability": "view"
}
]
},
{
"type": "impl",
"name": "WorldProviderImpl",
"interface_name": "dojo::world::IWorldProvider"
},
{
"type": "struct",
"name": "dojo::world::IWorldDispatcher",
"members": [
{
"name": "contract_address",
"type": "core::starknet::contract_address::ContractAddress"
}
]
},
{
"type": "interface",
"name": "dojo::world::IWorldProvider",
"items": [
{
"type": "function",
"name": "world",
"inputs": [],
"outputs": [
{
"type": "dojo::world::IWorldDispatcher"
}
],
"state_mutability": "view"
}
]
},
{
"type": "impl",
"name": "HazardHallImpl",
"interface_name": "shard_dungeon::systems::hazard_hall::IHazardHall"
},
{
"type": "interface",
"name": "shard_dungeon::systems::hazard_hall::IHazardHall",
"items": [
{
"type": "function",
"name": "fate_strike",
"inputs": [],
"outputs": [],
"state_mutability": "external"
}
]
},
{
"type": "impl",
"name": "IDojoInitImpl",
"interface_name": "shard_dungeon::systems::hazard_hall::hazard_hall::IDojoInit"
},
{
"type": "interface",
"name": "shard_dungeon::systems::hazard_hall::hazard_hall::IDojoInit",
"items": [
{
"type": "function",
"name": "dojo_init",
"inputs": [],
"outputs": [],
"state_mutability": "view"
}
]
},
{
"type": "impl",
"name": "UpgradableImpl",
"interface_name": "dojo::components::upgradeable::IUpgradeable"
},
{
"type": "interface",
"name": "dojo::components::upgradeable::IUpgradeable",
"items": [
{
"type": "function",
"name": "upgrade",
"inputs": [
{
"name": "new_class_hash",
"type": "core::starknet::class_hash::ClassHash"
}
],
"outputs": [],
"state_mutability": "external"
}
]
},
{
"type": "event",
"name": "dojo::components::upgradeable::upgradeable::Upgraded",
"kind": "struct",
"members": [
{
"name": "class_hash",
"type": "core::starknet::class_hash::ClassHash",
"kind": "data"
}
]
},
{
"type": "event",
"name": "dojo::components::upgradeable::upgradeable::Event",
"kind": "enum",
"variants": [
{
"name": "Upgraded",
"type": "dojo::components::upgradeable::upgradeable::Upgraded",
"kind": "nested"
}
]
},
{
"type": "enum",
"name": "core::bool",
"variants": [
{
"name": "False",
"type": "()"
},
{
"name": "True",
"type": "()"
}
]
},
{
"type": "event",
"name": "shard_dungeon::systems::hazard_hall::hazard_hall::EndOfDungeon",
"kind": "struct",
"members": [
{
"name": "player",
"type": "core::starknet::contract_address::ContractAddress",
"kind": "data"
},
{
"name": "has_won",
"type": "core::bool",
"kind": "data"
}
]
},
{
"type": "event",
"name": "shard_dungeon::systems::hazard_hall::hazard_hall::Event",
"kind": "enum",
"variants": [
{
"name": "UpgradeableEvent",
"type": "dojo::components::upgradeable::upgradeable::Event",
"kind": "nested"
},
{
"name": "EndOfDungeon",
"type": "shard_dungeon::systems::hazard_hall::hazard_hall::EndOfDungeon",
"kind": "nested"
}
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
[
{
"type": "impl",
"name": "DojoResourceProviderImpl",
"interface_name": "dojo::world::IDojoResourceProvider"
},
{
"type": "interface",
"name": "dojo::world::IDojoResourceProvider",
"items": [
{
"type": "function",
"name": "dojo_resource",
"inputs": [],
"outputs": [
{
"type": "core::felt252"
}
],
"state_mutability": "view"
}
]
},
{
"type": "impl",
"name": "WorldProviderImpl",
"interface_name": "dojo::world::IWorldProvider"
},
{
"type": "struct",
"name": "dojo::world::IWorldDispatcher",
"members": [
{
"name": "contract_address",
"type": "core::starknet::contract_address::ContractAddress"
}
]
},
{
"type": "interface",
"name": "dojo::world::IWorldProvider",
"items": [
{
"type": "function",
"name": "world",
"inputs": [],
"outputs": [
{
"type": "dojo::world::IWorldDispatcher"
}
],
"state_mutability": "view"
}
]
},
{
"type": "impl",
"name": "MetagameImpl",
"interface_name": "shard_dungeon::systems::metagame::IMetagame"
},
{
"type": "struct",
"name": "core::byte_array::ByteArray",
"members": [
{
"name": "data",
"type": "core::array::Array::<core::bytes_31::bytes31>"
},
{
"name": "pending_word",
"type": "core::felt252"
},
{
"name": "pending_word_len",
"type": "core::integer::u32"
}
]
},
{
"type": "interface",
"name": "shard_dungeon::systems::metagame::IMetagame",
"items": [
{
"type": "function",
"name": "register_player",
"inputs": [
{
"name": "name",
"type": "core::byte_array::ByteArray"
}
],
"outputs": [],
"state_mutability": "external"
}
]
},
{
"type": "impl",
"name": "IDojoInitImpl",
"interface_name": "shard_dungeon::systems::metagame::metagame::IDojoInit"
},
{
"type": "interface",
"name": "shard_dungeon::systems::metagame::metagame::IDojoInit",
"items": [
{
"type": "function",
"name": "dojo_init",
"inputs": [],
"outputs": [],
"state_mutability": "view"
}
]
},
{
"type": "impl",
"name": "UpgradableImpl",
"interface_name": "dojo::components::upgradeable::IUpgradeable"
},
{
"type": "interface",
"name": "dojo::components::upgradeable::IUpgradeable",
"items": [
{
"type": "function",
"name": "upgrade",
"inputs": [
{
"name": "new_class_hash",
"type": "core::starknet::class_hash::ClassHash"
}
],
"outputs": [],
"state_mutability": "external"
}
]
},
{
"type": "event",
"name": "dojo::components::upgradeable::upgradeable::Upgraded",
"kind": "struct",
"members": [
{
"name": "class_hash",
"type": "core::starknet::class_hash::ClassHash",
"kind": "data"
}
]
},
{
"type": "event",
"name": "dojo::components::upgradeable::upgradeable::Event",
"kind": "enum",
"variants": [
{
"name": "Upgraded",
"type": "dojo::components::upgradeable::upgradeable::Upgraded",
"kind": "nested"
}
]
},
{
"type": "event",
"name": "shard_dungeon::systems::metagame::metagame::Event",
"kind": "enum",
"variants": [
{
"name": "UpgradeableEvent",
"type": "dojo::components::upgradeable::upgradeable::Event",
"kind": "nested"
}
]
}
]
Loading

0 comments on commit 7c67215

Please sign in to comment.