Skip to content

Commit

Permalink
feat: add separation for actions (#37)
Browse files Browse the repository at this point in the history
* feat: add separation for actions

* Compiling and working

* Remove actions

---------

Co-authored-by: RolandoDrRobot <[email protected]>
  • Loading branch information
coxmars and RolandoDrRobot authored Sep 10, 2024
1 parent fe98953 commit 48f1392
Show file tree
Hide file tree
Showing 10 changed files with 790 additions and 36 deletions.
237 changes: 237 additions & 0 deletions manifests/dev/base/abis/contracts/bytebeasts-move_action-62decdb8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,237 @@
[
{
"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": "MoveActionImpl",
"interface_name": "bytebeasts::systems::move::IMoveAction"
},
{
"type": "interface",
"name": "bytebeasts::systems::move::IMoveAction",
"items": [
{
"type": "function",
"name": "move",
"inputs": [
{
"name": "player_id",
"type": "core::integer::u32"
},
{
"name": "new_x",
"type": "core::integer::u32"
},
{
"name": "new_y",
"type": "core::integer::u32"
}
],
"outputs": [],
"state_mutability": "external"
}
]
},
{
"type": "impl",
"name": "IDojoInitImpl",
"interface_name": "bytebeasts::systems::move::move_action::IDojoInit"
},
{
"type": "interface",
"name": "bytebeasts::systems::move::move_action::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::move::move_action::Event",
"kind": "enum",
"variants": [
{
"name": "UpgradeableEvent",
"type": "dojo::contract::upgradeable::upgradeable::Event",
"kind": "nested"
}
]
}
]
Loading

0 comments on commit 48f1392

Please sign in to comment.