-
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.
- Loading branch information
1 parent
7d47281
commit fff3deb
Showing
10 changed files
with
2,265 additions
and
0 deletions.
There are no files selected for viewing
383 changes: 383 additions & 0 deletions
383
manifests/dev/base/abis/contracts/bytebeasts-tournament_system-1f2bbf20.json
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,383 @@ | ||
[ | ||
{ | ||
"type": "impl", | ||
"name": "ContractImpl", | ||
"interface_name": "dojo::contract::contract::IContract" | ||
}, | ||
{ | ||
"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": "dojo::contract::contract::IContract", | ||
"items": [ | ||
{ | ||
"type": "function", | ||
"name": "contract_name", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"type": "core::byte_array::ByteArray" | ||
} | ||
], | ||
"state_mutability": "view" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "namespace", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"type": "core::byte_array::ByteArray" | ||
} | ||
], | ||
"state_mutability": "view" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "tag", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"type": "core::byte_array::ByteArray" | ||
} | ||
], | ||
"state_mutability": "view" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "name_hash", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"type": "core::felt252" | ||
} | ||
], | ||
"state_mutability": "view" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "namespace_hash", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"type": "core::felt252" | ||
} | ||
], | ||
"state_mutability": "view" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "selector", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"type": "core::felt252" | ||
} | ||
], | ||
"state_mutability": "view" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "impl", | ||
"name": "WorldProviderImpl", | ||
"interface_name": "dojo::world::world_contract::IWorldProvider" | ||
}, | ||
{ | ||
"type": "struct", | ||
"name": "dojo::world::world_contract::IWorldDispatcher", | ||
"members": [ | ||
{ | ||
"name": "contract_address", | ||
"type": "core::starknet::contract_address::ContractAddress" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "interface", | ||
"name": "dojo::world::world_contract::IWorldProvider", | ||
"items": [ | ||
{ | ||
"type": "function", | ||
"name": "world", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"type": "dojo::world::world_contract::IWorldDispatcher" | ||
} | ||
], | ||
"state_mutability": "view" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "impl", | ||
"name": "TournamentActionImpl", | ||
"interface_name": "bytebeasts::systems::tournament::ITournamentAction" | ||
}, | ||
{ | ||
"type": "enum", | ||
"name": "bytebeasts::models::tournament::TournamentStatus", | ||
"variants": [ | ||
{ | ||
"name": "Pending", | ||
"type": "()" | ||
}, | ||
{ | ||
"name": "Ongoing", | ||
"type": "()" | ||
}, | ||
{ | ||
"name": "Completed", | ||
"type": "()" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "struct", | ||
"name": "bytebeasts::models::player::Player", | ||
"members": [ | ||
{ | ||
"name": "player_id", | ||
"type": "core::integer::u32" | ||
}, | ||
{ | ||
"name": "player_name", | ||
"type": "core::felt252" | ||
}, | ||
{ | ||
"name": "beast_1", | ||
"type": "core::integer::u32" | ||
}, | ||
{ | ||
"name": "beast_2", | ||
"type": "core::integer::u32" | ||
}, | ||
{ | ||
"name": "beast_3", | ||
"type": "core::integer::u32" | ||
}, | ||
{ | ||
"name": "beast_4", | ||
"type": "core::integer::u32" | ||
}, | ||
{ | ||
"name": "potions", | ||
"type": "core::integer::u32" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "struct", | ||
"name": "bytebeasts::models::tournament::Tournament", | ||
"members": [ | ||
{ | ||
"name": "tournament_id", | ||
"type": "core::integer::u32" | ||
}, | ||
{ | ||
"name": "name", | ||
"type": "core::felt252" | ||
}, | ||
{ | ||
"name": "status", | ||
"type": "bytebeasts::models::tournament::TournamentStatus" | ||
}, | ||
{ | ||
"name": "entry_fee", | ||
"type": "core::integer::u32" | ||
}, | ||
{ | ||
"name": "max_participants", | ||
"type": "core::integer::u32" | ||
}, | ||
{ | ||
"name": "current_participants", | ||
"type": "core::array::Array::<bytebeasts::models::player::Player>" | ||
}, | ||
{ | ||
"name": "prize_pool", | ||
"type": "core::integer::u32" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "interface", | ||
"name": "bytebeasts::systems::tournament::ITournamentAction", | ||
"items": [ | ||
{ | ||
"type": "function", | ||
"name": "create_tournament", | ||
"inputs": [ | ||
{ | ||
"name": "tournament_id", | ||
"type": "core::integer::u32" | ||
}, | ||
{ | ||
"name": "name", | ||
"type": "core::felt252" | ||
}, | ||
{ | ||
"name": "status", | ||
"type": "bytebeasts::models::tournament::TournamentStatus" | ||
}, | ||
{ | ||
"name": "entry_fee", | ||
"type": "core::integer::u32" | ||
}, | ||
{ | ||
"name": "max_participants", | ||
"type": "core::integer::u32" | ||
}, | ||
{ | ||
"name": "current_participants", | ||
"type": "core::array::Array::<bytebeasts::models::player::Player>" | ||
}, | ||
{ | ||
"name": "prize_pool", | ||
"type": "core::integer::u32" | ||
} | ||
], | ||
"outputs": [], | ||
"state_mutability": "external" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "register_player", | ||
"inputs": [ | ||
{ | ||
"name": "tournament_id", | ||
"type": "core::integer::u32" | ||
}, | ||
{ | ||
"name": "new_player", | ||
"type": "bytebeasts::models::player::Player" | ||
} | ||
], | ||
"outputs": [], | ||
"state_mutability": "external" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "start_tournament", | ||
"inputs": [ | ||
{ | ||
"name": "tournament_id", | ||
"type": "core::integer::u32" | ||
} | ||
], | ||
"outputs": [], | ||
"state_mutability": "external" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "get_tournament", | ||
"inputs": [ | ||
{ | ||
"name": "tournament_id", | ||
"type": "core::integer::u32" | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"type": "bytebeasts::models::tournament::Tournament" | ||
} | ||
], | ||
"state_mutability": "view" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "impl", | ||
"name": "IDojoInitImpl", | ||
"interface_name": "bytebeasts::systems::tournament::tournament_system::IDojoInit" | ||
}, | ||
{ | ||
"type": "interface", | ||
"name": "bytebeasts::systems::tournament::tournament_system::IDojoInit", | ||
"items": [ | ||
{ | ||
"type": "function", | ||
"name": "dojo_init", | ||
"inputs": [], | ||
"outputs": [], | ||
"state_mutability": "view" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "impl", | ||
"name": "UpgradableImpl", | ||
"interface_name": "dojo::contract::upgradeable::IUpgradeable" | ||
}, | ||
{ | ||
"type": "interface", | ||
"name": "dojo::contract::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::contract::upgradeable::upgradeable::Upgraded", | ||
"kind": "struct", | ||
"members": [ | ||
{ | ||
"name": "class_hash", | ||
"type": "core::starknet::class_hash::ClassHash", | ||
"kind": "data" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "event", | ||
"name": "dojo::contract::upgradeable::upgradeable::Event", | ||
"kind": "enum", | ||
"variants": [ | ||
{ | ||
"name": "Upgraded", | ||
"type": "dojo::contract::upgradeable::upgradeable::Upgraded", | ||
"kind": "nested" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "event", | ||
"name": "bytebeasts::systems::tournament::tournament_system::Event", | ||
"kind": "enum", | ||
"variants": [ | ||
{ | ||
"name": "UpgradeableEvent", | ||
"type": "dojo::contract::upgradeable::upgradeable::Event", | ||
"kind": "nested" | ||
} | ||
] | ||
} | ||
] |
Oops, something went wrong.