diff --git a/crates/dojo-lang/src/manifest_test_data/compiler_cairo/Scarb.toml b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/Scarb.toml index f22ec5c45f..da1668baab 100644 --- a/crates/dojo-lang/src/manifest_test_data/compiler_cairo/Scarb.toml +++ b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/Scarb.toml @@ -19,7 +19,7 @@ build-external-contracts = [ ] description = "Cairo compiler features" name = "compiler_cairo_features" seed = "compiler_cairo_features" -namespace = "ccf" +namespace = { default = "ccf" } [tool.dojo.env] rpc_url = "http://localhost:5050/" diff --git a/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/abis/contracts/ccf-cairo_v240-8d921297.json b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/abis/contracts/ccf-cairo_v240-8d921297.json new file mode 100644 index 0000000000..fdb8ff1c75 --- /dev/null +++ b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/abis/contracts/ccf-cairo_v240-8d921297.json @@ -0,0 +1,8 @@ +[ + { + "type": "event", + "name": "compiler_cairo::cairo_24::cairo_v240::Event", + "kind": "enum", + "variants": [] + } +] \ No newline at end of file diff --git a/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/abis/contracts/ccf-cairo_v260-465ec7fe.json b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/abis/contracts/ccf-cairo_v260-465ec7fe.json new file mode 100644 index 0000000000..86eebdcf3f --- /dev/null +++ b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/abis/contracts/ccf-cairo_v260-465ec7fe.json @@ -0,0 +1,8 @@ +[ + { + "type": "event", + "name": "compiler_cairo::cairo_26::cairo_v260::Event", + "kind": "enum", + "variants": [] + } +] \ No newline at end of file diff --git a/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/abis/dojo-base.json b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/abis/dojo-base.json new file mode 100644 index 0000000000..ee9ceaac66 --- /dev/null +++ b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/abis/dojo-base.json @@ -0,0 +1,98 @@ +[ + { + "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": "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": "constructor", + "name": "constructor", + "inputs": [] + }, + { + "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": "dojo::base::base::Event", + "kind": "enum", + "variants": [ + { + "name": "UpgradeableEvent", + "type": "dojo::components::upgradeable::upgradeable::Event", + "kind": "flat" + } + ] + } +] \ No newline at end of file diff --git a/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/abis/dojo-world.json b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/abis/dojo-world.json new file mode 100644 index 0000000000..0e5e96210e --- /dev/null +++ b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/abis/dojo-world.json @@ -0,0 +1,1105 @@ +[ + { + "type": "impl", + "name": "World", + "interface_name": "dojo::world::IWorld" + }, + { + "type": "struct", + "name": "core::byte_array::ByteArray", + "members": [ + { + "name": "data", + "type": "core::array::Array::" + }, + { + "name": "pending_word", + "type": "core::felt252" + }, + { + "name": "pending_word_len", + "type": "core::integer::u32" + } + ] + }, + { + "type": "struct", + "name": "dojo::resource_metadata::ResourceMetadata", + "members": [ + { + "name": "resource_id", + "type": "core::felt252" + }, + { + "name": "metadata_uri", + "type": "core::byte_array::ByteArray" + } + ] + }, + { + "type": "struct", + "name": "core::array::Span::", + "members": [ + { + "name": "snapshot", + "type": "@core::array::Array::" + } + ] + }, + { + "type": "struct", + "name": "core::array::Span::", + "members": [ + { + "name": "snapshot", + "type": "@core::array::Array::" + } + ] + }, + { + "type": "struct", + "name": "dojo::database::introspect::FieldLayout", + "members": [ + { + "name": "selector", + "type": "core::felt252" + }, + { + "name": "layout", + "type": "dojo::database::introspect::Layout" + } + ] + }, + { + "type": "struct", + "name": "core::array::Span::", + "members": [ + { + "name": "snapshot", + "type": "@core::array::Array::" + } + ] + }, + { + "type": "struct", + "name": "core::array::Span::", + "members": [ + { + "name": "snapshot", + "type": "@core::array::Array::" + } + ] + }, + { + "type": "enum", + "name": "dojo::database::introspect::Layout", + "variants": [ + { + "name": "Fixed", + "type": "core::array::Span::" + }, + { + "name": "Struct", + "type": "core::array::Span::" + }, + { + "name": "Tuple", + "type": "core::array::Span::" + }, + { + "name": "Array", + "type": "core::array::Span::" + }, + { + "name": "ByteArray", + "type": "()" + }, + { + "name": "Enum", + "type": "core::array::Span::" + } + ] + }, + { + "type": "enum", + "name": "core::bool", + "variants": [ + { + "name": "False", + "type": "()" + }, + { + "name": "True", + "type": "()" + } + ] + }, + { + "type": "interface", + "name": "dojo::world::IWorld", + "items": [ + { + "type": "function", + "name": "metadata", + "inputs": [ + { + "name": "resource_id", + "type": "core::felt252" + } + ], + "outputs": [ + { + "type": "dojo::resource_metadata::ResourceMetadata" + } + ], + "state_mutability": "view" + }, + { + "type": "function", + "name": "set_metadata", + "inputs": [ + { + "name": "metadata", + "type": "dojo::resource_metadata::ResourceMetadata" + } + ], + "outputs": [], + "state_mutability": "external" + }, + { + "type": "function", + "name": "model", + "inputs": [ + { + "name": "selector", + "type": "core::felt252" + } + ], + "outputs": [ + { + "type": "(core::starknet::class_hash::ClassHash, core::starknet::contract_address::ContractAddress)" + } + ], + "state_mutability": "view" + }, + { + "type": "function", + "name": "register_model", + "inputs": [ + { + "name": "class_hash", + "type": "core::starknet::class_hash::ClassHash" + } + ], + "outputs": [], + "state_mutability": "external" + }, + { + "type": "function", + "name": "register_namespace", + "inputs": [ + { + "name": "namespace", + "type": "core::byte_array::ByteArray" + } + ], + "outputs": [], + "state_mutability": "external" + }, + { + "type": "function", + "name": "deploy_contract", + "inputs": [ + { + "name": "salt", + "type": "core::felt252" + }, + { + "name": "class_hash", + "type": "core::starknet::class_hash::ClassHash" + }, + { + "name": "init_calldata", + "type": "core::array::Span::" + } + ], + "outputs": [ + { + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "state_mutability": "external" + }, + { + "type": "function", + "name": "upgrade_contract", + "inputs": [ + { + "name": "address", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "class_hash", + "type": "core::starknet::class_hash::ClassHash" + } + ], + "outputs": [ + { + "type": "core::starknet::class_hash::ClassHash" + } + ], + "state_mutability": "external" + }, + { + "type": "function", + "name": "uuid", + "inputs": [], + "outputs": [ + { + "type": "core::integer::u32" + } + ], + "state_mutability": "external" + }, + { + "type": "function", + "name": "emit", + "inputs": [ + { + "name": "keys", + "type": "core::array::Array::" + }, + { + "name": "values", + "type": "core::array::Span::" + } + ], + "outputs": [], + "state_mutability": "view" + }, + { + "type": "function", + "name": "entity", + "inputs": [ + { + "name": "model", + "type": "core::felt252" + }, + { + "name": "keys", + "type": "core::array::Span::" + }, + { + "name": "layout", + "type": "dojo::database::introspect::Layout" + } + ], + "outputs": [ + { + "type": "core::array::Span::" + } + ], + "state_mutability": "view" + }, + { + "type": "function", + "name": "set_entity", + "inputs": [ + { + "name": "model", + "type": "core::felt252" + }, + { + "name": "keys", + "type": "core::array::Span::" + }, + { + "name": "values", + "type": "core::array::Span::" + }, + { + "name": "layout", + "type": "dojo::database::introspect::Layout" + } + ], + "outputs": [], + "state_mutability": "external" + }, + { + "type": "function", + "name": "delete_entity", + "inputs": [ + { + "name": "model", + "type": "core::felt252" + }, + { + "name": "keys", + "type": "core::array::Span::" + }, + { + "name": "layout", + "type": "dojo::database::introspect::Layout" + } + ], + "outputs": [], + "state_mutability": "external" + }, + { + "type": "function", + "name": "base", + "inputs": [], + "outputs": [ + { + "type": "core::starknet::class_hash::ClassHash" + } + ], + "state_mutability": "view" + }, + { + "type": "function", + "name": "is_owner", + "inputs": [ + { + "name": "address", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "resource", + "type": "core::felt252" + } + ], + "outputs": [ + { + "type": "core::bool" + } + ], + "state_mutability": "view" + }, + { + "type": "function", + "name": "grant_owner", + "inputs": [ + { + "name": "address", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "resource", + "type": "core::felt252" + } + ], + "outputs": [], + "state_mutability": "external" + }, + { + "type": "function", + "name": "revoke_owner", + "inputs": [ + { + "name": "address", + "type": "core::starknet::contract_address::ContractAddress" + }, + { + "name": "resource", + "type": "core::felt252" + } + ], + "outputs": [], + "state_mutability": "external" + }, + { + "type": "function", + "name": "is_writer", + "inputs": [ + { + "name": "resource", + "type": "core::felt252" + }, + { + "name": "contract", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [ + { + "type": "core::bool" + } + ], + "state_mutability": "view" + }, + { + "type": "function", + "name": "grant_writer", + "inputs": [ + { + "name": "resource", + "type": "core::felt252" + }, + { + "name": "contract", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [], + "state_mutability": "external" + }, + { + "type": "function", + "name": "revoke_writer", + "inputs": [ + { + "name": "resource", + "type": "core::felt252" + }, + { + "name": "contract", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [], + "state_mutability": "external" + }, + { + "type": "function", + "name": "can_write_resource", + "inputs": [ + { + "name": "resource_id", + "type": "core::felt252" + }, + { + "name": "contract", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [ + { + "type": "core::bool" + } + ], + "state_mutability": "view" + }, + { + "type": "function", + "name": "can_write_model", + "inputs": [ + { + "name": "model_id", + "type": "core::felt252" + }, + { + "name": "contract", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [ + { + "type": "core::bool" + } + ], + "state_mutability": "view" + }, + { + "type": "function", + "name": "can_write_namespace", + "inputs": [ + { + "name": "namespace_id", + "type": "core::felt252" + }, + { + "name": "contract", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [ + { + "type": "core::bool" + } + ], + "state_mutability": "view" + } + ] + }, + { + "type": "impl", + "name": "UpgradeableWorld", + "interface_name": "dojo::world::IUpgradeableWorld" + }, + { + "type": "interface", + "name": "dojo::world::IUpgradeableWorld", + "items": [ + { + "type": "function", + "name": "upgrade", + "inputs": [ + { + "name": "new_class_hash", + "type": "core::starknet::class_hash::ClassHash" + } + ], + "outputs": [], + "state_mutability": "external" + } + ] + }, + { + "type": "impl", + "name": "UpgradeableState", + "interface_name": "dojo::interfaces::IUpgradeableState" + }, + { + "type": "struct", + "name": "dojo::interfaces::StorageUpdate", + "members": [ + { + "name": "key", + "type": "core::felt252" + }, + { + "name": "value", + "type": "core::felt252" + } + ] + }, + { + "type": "struct", + "name": "core::array::Span::", + "members": [ + { + "name": "snapshot", + "type": "@core::array::Array::" + } + ] + }, + { + "type": "struct", + "name": "dojo::interfaces::ProgramOutput", + "members": [ + { + "name": "prev_state_root", + "type": "core::felt252" + }, + { + "name": "new_state_root", + "type": "core::felt252" + }, + { + "name": "block_number", + "type": "core::felt252" + }, + { + "name": "block_hash", + "type": "core::felt252" + }, + { + "name": "config_hash", + "type": "core::felt252" + }, + { + "name": "world_da_hash", + "type": "core::felt252" + }, + { + "name": "message_to_starknet_segment", + "type": "core::array::Span::" + }, + { + "name": "message_to_appchain_segment", + "type": "core::array::Span::" + } + ] + }, + { + "type": "interface", + "name": "dojo::interfaces::IUpgradeableState", + "items": [ + { + "type": "function", + "name": "upgrade_state", + "inputs": [ + { + "name": "new_state", + "type": "core::array::Span::" + }, + { + "name": "program_output", + "type": "dojo::interfaces::ProgramOutput" + }, + { + "name": "program_hash", + "type": "core::felt252" + } + ], + "outputs": [], + "state_mutability": "external" + } + ] + }, + { + "type": "impl", + "name": "ConfigImpl", + "interface_name": "dojo::config::interface::IConfig" + }, + { + "type": "interface", + "name": "dojo::config::interface::IConfig", + "items": [ + { + "type": "function", + "name": "set_differ_program_hash", + "inputs": [ + { + "name": "program_hash", + "type": "core::felt252" + } + ], + "outputs": [], + "state_mutability": "external" + }, + { + "type": "function", + "name": "set_merger_program_hash", + "inputs": [ + { + "name": "program_hash", + "type": "core::felt252" + } + ], + "outputs": [], + "state_mutability": "external" + }, + { + "type": "function", + "name": "get_differ_program_hash", + "inputs": [], + "outputs": [ + { + "type": "core::felt252" + } + ], + "state_mutability": "view" + }, + { + "type": "function", + "name": "get_merger_program_hash", + "inputs": [], + "outputs": [ + { + "type": "core::felt252" + } + ], + "state_mutability": "view" + }, + { + "type": "function", + "name": "set_facts_registry", + "inputs": [ + { + "name": "address", + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "outputs": [], + "state_mutability": "external" + }, + { + "type": "function", + "name": "get_facts_registry", + "inputs": [], + "outputs": [ + { + "type": "core::starknet::contract_address::ContractAddress" + } + ], + "state_mutability": "view" + } + ] + }, + { + "type": "constructor", + "name": "constructor", + "inputs": [ + { + "name": "contract_base", + "type": "core::starknet::class_hash::ClassHash" + } + ] + }, + { + "type": "event", + "name": "dojo::world::world::WorldSpawned", + "kind": "struct", + "members": [ + { + "name": "address", + "type": "core::starknet::contract_address::ContractAddress", + "kind": "data" + }, + { + "name": "creator", + "type": "core::starknet::contract_address::ContractAddress", + "kind": "data" + } + ] + }, + { + "type": "event", + "name": "dojo::world::world::ContractDeployed", + "kind": "struct", + "members": [ + { + "name": "salt", + "type": "core::felt252", + "kind": "data" + }, + { + "name": "class_hash", + "type": "core::starknet::class_hash::ClassHash", + "kind": "data" + }, + { + "name": "address", + "type": "core::starknet::contract_address::ContractAddress", + "kind": "data" + }, + { + "name": "namespace", + "type": "core::byte_array::ByteArray", + "kind": "data" + }, + { + "name": "name", + "type": "core::byte_array::ByteArray", + "kind": "data" + } + ] + }, + { + "type": "event", + "name": "dojo::world::world::ContractUpgraded", + "kind": "struct", + "members": [ + { + "name": "class_hash", + "type": "core::starknet::class_hash::ClassHash", + "kind": "data" + }, + { + "name": "address", + "type": "core::starknet::contract_address::ContractAddress", + "kind": "data" + } + ] + }, + { + "type": "event", + "name": "dojo::world::world::WorldUpgraded", + "kind": "struct", + "members": [ + { + "name": "class_hash", + "type": "core::starknet::class_hash::ClassHash", + "kind": "data" + } + ] + }, + { + "type": "event", + "name": "dojo::world::world::MetadataUpdate", + "kind": "struct", + "members": [ + { + "name": "resource", + "type": "core::felt252", + "kind": "data" + }, + { + "name": "uri", + "type": "core::byte_array::ByteArray", + "kind": "data" + } + ] + }, + { + "type": "event", + "name": "dojo::world::world::NamespaceRegistered", + "kind": "struct", + "members": [ + { + "name": "namespace", + "type": "core::byte_array::ByteArray", + "kind": "data" + }, + { + "name": "hash", + "type": "core::felt252", + "kind": "data" + } + ] + }, + { + "type": "event", + "name": "dojo::world::world::ModelRegistered", + "kind": "struct", + "members": [ + { + "name": "name", + "type": "core::byte_array::ByteArray", + "kind": "data" + }, + { + "name": "namespace", + "type": "core::byte_array::ByteArray", + "kind": "data" + }, + { + "name": "class_hash", + "type": "core::starknet::class_hash::ClassHash", + "kind": "data" + }, + { + "name": "prev_class_hash", + "type": "core::starknet::class_hash::ClassHash", + "kind": "data" + }, + { + "name": "address", + "type": "core::starknet::contract_address::ContractAddress", + "kind": "data" + }, + { + "name": "prev_address", + "type": "core::starknet::contract_address::ContractAddress", + "kind": "data" + } + ] + }, + { + "type": "event", + "name": "dojo::world::world::StoreSetRecord", + "kind": "struct", + "members": [ + { + "name": "table", + "type": "core::felt252", + "kind": "data" + }, + { + "name": "keys", + "type": "core::array::Span::", + "kind": "data" + }, + { + "name": "values", + "type": "core::array::Span::", + "kind": "data" + } + ] + }, + { + "type": "event", + "name": "dojo::world::world::StoreDelRecord", + "kind": "struct", + "members": [ + { + "name": "table", + "type": "core::felt252", + "kind": "data" + }, + { + "name": "keys", + "type": "core::array::Span::", + "kind": "data" + } + ] + }, + { + "type": "event", + "name": "dojo::world::world::WriterUpdated", + "kind": "struct", + "members": [ + { + "name": "resource", + "type": "core::felt252", + "kind": "data" + }, + { + "name": "contract", + "type": "core::starknet::contract_address::ContractAddress", + "kind": "data" + }, + { + "name": "value", + "type": "core::bool", + "kind": "data" + } + ] + }, + { + "type": "event", + "name": "dojo::world::world::OwnerUpdated", + "kind": "struct", + "members": [ + { + "name": "address", + "type": "core::starknet::contract_address::ContractAddress", + "kind": "data" + }, + { + "name": "resource", + "type": "core::felt252", + "kind": "data" + }, + { + "name": "value", + "type": "core::bool", + "kind": "data" + } + ] + }, + { + "type": "event", + "name": "dojo::config::component::Config::DifferProgramHashUpdate", + "kind": "struct", + "members": [ + { + "name": "program_hash", + "type": "core::felt252", + "kind": "data" + } + ] + }, + { + "type": "event", + "name": "dojo::config::component::Config::MergerProgramHashUpdate", + "kind": "struct", + "members": [ + { + "name": "program_hash", + "type": "core::felt252", + "kind": "data" + } + ] + }, + { + "type": "event", + "name": "dojo::config::component::Config::FactsRegistryUpdate", + "kind": "struct", + "members": [ + { + "name": "address", + "type": "core::starknet::contract_address::ContractAddress", + "kind": "data" + } + ] + }, + { + "type": "event", + "name": "dojo::config::component::Config::Event", + "kind": "enum", + "variants": [ + { + "name": "DifferProgramHashUpdate", + "type": "dojo::config::component::Config::DifferProgramHashUpdate", + "kind": "nested" + }, + { + "name": "MergerProgramHashUpdate", + "type": "dojo::config::component::Config::MergerProgramHashUpdate", + "kind": "nested" + }, + { + "name": "FactsRegistryUpdate", + "type": "dojo::config::component::Config::FactsRegistryUpdate", + "kind": "nested" + } + ] + }, + { + "type": "event", + "name": "dojo::world::world::StateUpdated", + "kind": "struct", + "members": [ + { + "name": "da_hash", + "type": "core::felt252", + "kind": "data" + } + ] + }, + { + "type": "event", + "name": "dojo::world::world::Event", + "kind": "enum", + "variants": [ + { + "name": "WorldSpawned", + "type": "dojo::world::world::WorldSpawned", + "kind": "nested" + }, + { + "name": "ContractDeployed", + "type": "dojo::world::world::ContractDeployed", + "kind": "nested" + }, + { + "name": "ContractUpgraded", + "type": "dojo::world::world::ContractUpgraded", + "kind": "nested" + }, + { + "name": "WorldUpgraded", + "type": "dojo::world::world::WorldUpgraded", + "kind": "nested" + }, + { + "name": "MetadataUpdate", + "type": "dojo::world::world::MetadataUpdate", + "kind": "nested" + }, + { + "name": "NamespaceRegistered", + "type": "dojo::world::world::NamespaceRegistered", + "kind": "nested" + }, + { + "name": "ModelRegistered", + "type": "dojo::world::world::ModelRegistered", + "kind": "nested" + }, + { + "name": "StoreSetRecord", + "type": "dojo::world::world::StoreSetRecord", + "kind": "nested" + }, + { + "name": "StoreDelRecord", + "type": "dojo::world::world::StoreDelRecord", + "kind": "nested" + }, + { + "name": "WriterUpdated", + "type": "dojo::world::world::WriterUpdated", + "kind": "nested" + }, + { + "name": "OwnerUpdated", + "type": "dojo::world::world::OwnerUpdated", + "kind": "nested" + }, + { + "name": "ConfigEvent", + "type": "dojo::config::component::Config::Event", + "kind": "nested" + }, + { + "name": "StateUpdated", + "type": "dojo::world::world::StateUpdated", + "kind": "nested" + } + ] + } +] \ No newline at end of file diff --git a/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/contracts/ccf-cairo_v240-8d921297.toml b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/contracts/ccf-cairo_v240-8d921297.toml new file mode 100644 index 0000000000..2fd8e54479 --- /dev/null +++ b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/contracts/ccf-cairo_v240-8d921297.toml @@ -0,0 +1,11 @@ +kind = "DojoContract" +class_hash = "0x1b29f38120f222120acf9b3d66f7015d47c0b11d4e9acdfefa243958c60909d" +original_class_hash = "0x1b29f38120f222120acf9b3d66f7015d47c0b11d4e9acdfefa243958c60909d" +base_class_hash = "0x0" +abi = "manifests/dev/base/abis/contracts/ccf-cairo_v240-8d921297.json" +reads = [] +writes = [] +computed = [] +init_calldata = [] +tag = "ccf-cairo_v240" +manifest_name = "ccf-cairo_v240-8d921297" diff --git a/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/contracts/ccf-cairo_v260-465ec7fe.toml b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/contracts/ccf-cairo_v260-465ec7fe.toml new file mode 100644 index 0000000000..cd8f1e26b2 --- /dev/null +++ b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/contracts/ccf-cairo_v260-465ec7fe.toml @@ -0,0 +1,11 @@ +kind = "DojoContract" +class_hash = "0x412449a631f6652b3bbe27841fb6776639e493baad1a5894daeb9260d1b0a63" +original_class_hash = "0x412449a631f6652b3bbe27841fb6776639e493baad1a5894daeb9260d1b0a63" +base_class_hash = "0x0" +abi = "manifests/dev/base/abis/contracts/ccf-cairo_v260-465ec7fe.json" +reads = [] +writes = [] +computed = [] +init_calldata = [] +tag = "ccf-cairo_v260" +manifest_name = "ccf-cairo_v260-465ec7fe" diff --git a/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/dojo-base.toml b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/dojo-base.toml new file mode 100644 index 0000000000..aa92e94fac --- /dev/null +++ b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/dojo-base.toml @@ -0,0 +1,6 @@ +kind = "Class" +class_hash = "0x26a4f5d2d9638877a2648297339275df5eaab0adb3cdf0010887c2dbf2be4" +original_class_hash = "0x26a4f5d2d9638877a2648297339275df5eaab0adb3cdf0010887c2dbf2be4" +abi = "manifests/dev/base/abis/dojo-base.json" +tag = "dojo-base" +manifest_name = "dojo-base" diff --git a/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/dojo-world.toml b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/dojo-world.toml new file mode 100644 index 0000000000..83a7a20228 --- /dev/null +++ b/crates/dojo-lang/src/manifest_test_data/compiler_cairo/manifests/dev/base/dojo-world.toml @@ -0,0 +1,6 @@ +kind = "Class" +class_hash = "0x210dd8e484e5555dc74a4a600b17878fc108911719b04139309acc874160c51" +original_class_hash = "0x210dd8e484e5555dc74a4a600b17878fc108911719b04139309acc874160c51" +abi = "manifests/dev/base/abis/dojo-world.json" +tag = "dojo-world" +manifest_name = "dojo-world" diff --git a/crates/dojo-lang/src/plugin_test_data/introspect b/crates/dojo-lang/src/plugin_test_data/introspect index 76b3602f77..fe65767638 100644 --- a/crates/dojo-lang/src/plugin_test_data/introspect +++ b/crates/dojo-lang/src/plugin_test_data/introspect @@ -814,542 +814,542 @@ impl EnumWithBadOptionSerde of core::serde::Serde:: { } //! > expected_diagnostics -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:1:1 use core::serde::Serde; ^*********************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:3:1 #[derive(Copy, Drop, Serde, Introspect)] ^**************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:9:1 #[derive(Serde, Copy, Drop, Introspect)] ^**************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:15:1 #[derive(Serde, Copy, Drop, Introspect)] ^**************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:21:1 #[derive(Serde, Copy, Drop, Introspect)] ^**************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:27:1 #[derive(Serde, Copy, Drop, Introspect)] ^**************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:33:1 #[derive(Serde, Copy, Drop, Introspect)] ^**************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:39:1 #[derive(Serde, Copy, Drop, Introspect)] ^**************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:45:1 #[derive(Serde, Copy, Drop, Introspect)] ^**************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:51:1 #[derive(Serde, Copy, Drop, Introspect)] ^**************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:57:1 #[derive(Serde, Copy, Drop, Introspect)] ^**************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:63:1 #[derive(Serde, Copy, Drop, Introspect)] ^**************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:69:1 #[derive(Serde, Copy, Drop, Introspect)] ^**************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:76:1 #[derive(Copy, Drop, Introspect)] ^*******************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:84:1 #[derive(Copy, Drop, Introspect)] ^*******************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:92:1 #[derive(Copy, Drop, Introspect)] ^*******************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:100:1 #[derive(Copy, Drop, Introspect)] ^*******************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:108:1 #[derive(Copy, Drop, Introspect)] ^*******************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:116:1 #[derive(Copy, Drop, Introspect)] ^*******************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:124:1 #[derive(Copy, Drop, Introspect)] ^*******************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:132:1 #[derive(Copy, Drop, Introspect)] ^*******************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:140:1 #[derive(Copy, Drop, Introspect)] ^*******************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:148:1 #[derive(Copy, Drop, Introspect)] ^*******************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:156:1 #[derive(Copy, Drop, Introspect)] ^*******************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:164:1 #[derive(Copy, Drop, Serde, Introspect)] ^**************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:169:1 #[derive(Copy, Drop, Serde, Introspect)] ^**************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:174:1 #[derive(Copy, Drop, Serde, Introspect)] ^**************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:179:1 #[derive(Introspect, IntrospectPacked)] ^*************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:182:1 #[derive(Introspect, IntrospectPacked)] ^*************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:185:1 #[derive(Introspect)] ^*******************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:189:1 #[derive(Introspect)] ^*******************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:193:1 #[derive(IntrospectPacked)] ^*************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:198:1 #[derive(IntrospectPacked)] ^*************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:204:1 #[derive(IntrospectPacked)] ^*************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:210:1 #[derive(IntrospectPacked)] ^*************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:216:1 #[derive(IntrospectPacked)] ^*************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:222:1 #[derive(IntrospectPacked)] ^*************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:229:1 #[derive(IntrospectPacked)] ^*************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:236:1 #[derive(IntrospectPacked)] ^*************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:243:1 #[derive(IntrospectPacked)] ^*************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:249:1 #[derive(IntrospectPacked)] ^*************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:2:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:2:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:2:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:8:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:8:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:8:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:14:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:14:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:14:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:20:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:20:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:20:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:26:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:26:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:26:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:32:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:32:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:32:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:38:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:38:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:38:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:44:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:44:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:44:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:50:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:50:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:50:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:56:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:56:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:56:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:62:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:62:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:62:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:68:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:68:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:68:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:75:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:75:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:83:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:83:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:91:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:91:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:99:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:99:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:107:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:107:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:115:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:115:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:123:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:123:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:131:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:131:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:139:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:139:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:147:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:147:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:155:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:155:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:163:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:163:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:163:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:168:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:168:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:168:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:173:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:173:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:173:1 ^ diff --git a/crates/dojo-lang/src/plugin_test_data/model b/crates/dojo-lang/src/plugin_test_data/model index 39c5ece18c..27ccf7e648 100644 --- a/crates/dojo-lang/src/plugin_test_data/model +++ b/crates/dojo-lang/src/plugin_test_data/model @@ -314,112 +314,112 @@ struct ModelWithTupleNoPrimitives { } //! > expected_diagnostics -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:1:1 #[dojo::model(version: 0)] ^************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:9:1 #[dojo::model(version: 0, version: 0)] ^************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:16:1 #[dojo::model(version: hello)] ^****************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:23:1 #[dojo::model(version)] ^*********************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:30:1 #[dojo::model(my_arg: 1)] ^***********************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:37:1 #[dojo::model(my_arg)] ^********************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:44:1 #[dojo::model(version: 2)] ^************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:51:1 #[dojo::model(version: 0)] ^************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:58:1 #[dojo::model(namespace: 'MyNamespace')] ^**************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:65:1 #[dojo::model(namespace: 'my_namespace')] ^***************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:72:1 #[dojo::model(namespace: "my_namespace")] ^***************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:79:1 #[dojo::model] ^************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:86:1 #[dojo::model] ^************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:91:1 #[dojo::model] ^************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:97:1 #[dojo::model] ^************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:103:1 #[dojo::model] ^************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:112:1 #[dojo::model] ^************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:115:1 #[dojo::model] ^************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:123:1 #[dojo::model] ^************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:131:1 #[dojo::model] ^************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:139:1 #[dojo::model] ^************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:147:1 #[dojo::model] ^************^ diff --git a/crates/dojo-lang/src/plugin_test_data/print b/crates/dojo-lang/src/plugin_test_data/print index 7bf048fb4c..f20a89ffad 100644 --- a/crates/dojo-lang/src/plugin_test_data/print +++ b/crates/dojo-lang/src/plugin_test_data/print @@ -77,12 +77,12 @@ enum Enemy { } //! > expected_diagnostics -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:1:1 use serde::Serde; ^***************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:2:1 use debug::PrintTrait; ^********************^ @@ -92,7 +92,7 @@ error: Unknown derive `Print` - a plugin might be missing. #[derive(Print)] ^***^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:4:1 #[derive(Print)] ^**************^ @@ -102,12 +102,12 @@ error: Unknown derive `Print` - a plugin might be missing. #[derive(Print)] ^***^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:12:1 #[derive(Print)] ^**************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:17:1 use starknet::ContractAddress; ^****************************^ @@ -117,7 +117,7 @@ error: Unknown derive `Print` - a plugin might be missing. #[derive(Print)] ^***^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:19:1 #[derive(Print)] ^**************^ @@ -127,7 +127,7 @@ error: Unknown derive `Print` - a plugin might be missing. #[derive(Print)] ^***^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:28:1 #[derive(Print)] ^**************^ diff --git a/crates/dojo-lang/src/plugin_test_data/system b/crates/dojo-lang/src/plugin_test_data/system index 80ee85d356..39788cd740 100644 --- a/crates/dojo-lang/src/plugin_test_data/system +++ b/crates/dojo-lang/src/plugin_test_data/system @@ -355,32 +355,32 @@ mod ctxnamed { } //! > expected_diagnostics -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:1:1 #[dojo::contract(namespace: "My@Namespace")] ^******************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:11:1 #[dojo::contract(namespace: 'my_namespace')] ^******************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:21:1 #[dojo::contract(namespace: "my_namespace")] ^******************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:28:1 #[dojo::contract] ^***************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:38:1 #[dojo::contract] ^***************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:52:1 #[starknet::component] ^********************^ @@ -390,7 +390,7 @@ error: Unsupported attribute. #[starknet::component] ^********************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:58:1 #[starknet::component] ^********************^ @@ -400,17 +400,17 @@ error: Unsupported attribute. #[starknet::component] ^********************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:64:1 #[dojo::contract] ^***************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:85:1 #[dojo::interface] ^****************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:88:1 #[dojo::interface] ^****************^ @@ -420,82 +420,82 @@ error: Unsupported attribute. #[my_attr] ^********^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:96:1 #[dojo::interface] ^****************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:109:1 #[dojo::interface] ^****************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:124:1 #[dojo::contract] ^***************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:171:1 #[dojo::contract] ^***************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:222:1 #[dojo::contract] ^***************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:239:1 #[dojo::contract] ^***************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:3:5 use traits::Into; ^***************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:4:5 use dojo::world::Context; ^***********************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:6:5 fn execute(ctx: Context, name: felt252) { ^***************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:13:5 use traits::Into; ^***************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:14:5 use dojo::world::Context; ^***********************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:16:5 fn execute(ctx: Context, name: felt252) { ^***************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:23:5 fn execute(value: felt252) -> felt252 { ^*************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:30:5 use traits::Into; ^***************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:31:5 use dojo::world::Context; ^***********************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:33:5 fn execute(ctx2: Context, name: felt252) { ^****************************************^ @@ -505,7 +505,7 @@ error: Unknown derive `starknet::Event` - a plugin might be missing. #[derive(Drop, starknet::Event)] ^*************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:40:5 #[event] ^******^ @@ -520,22 +520,22 @@ error: Unknown derive `starknet::Event` - a plugin might be missing. #[derive(Drop, starknet::Event)] ^*************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:46:5 #[derive(Drop, starknet::Event)] ^******************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:40:1 #[event] ^**********^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:45:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:54:5 #[storage] ^********^ @@ -545,7 +545,7 @@ error: Unsupported attribute. #[storage] ^********^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:60:5 #[storage] ^********^ @@ -555,7 +555,7 @@ error: Unsupported attribute. #[storage] ^********^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:66:5 component!(path: testcomponent1, storage: testcomponent1_storage, event: testcomponent1_event); ^*********************************************************************************************^ @@ -565,7 +565,7 @@ error: Unknown inline item macro: 'component'. component!(path: testcomponent1, storage: testcomponent1_storage, event: testcomponent1_event); ^*********************************************************************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:67:5 component!(path: testcomponent2, storage: testcomponent2_storage, event: testcomponent2_event); ^*********************************************************************************************^ @@ -575,7 +575,7 @@ error: Unknown inline item macro: 'component'. component!(path: testcomponent2, storage: testcomponent2_storage, event: testcomponent2_event); ^*********************************************************************************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:69:5 #[storage] ^********^ @@ -600,7 +600,7 @@ error: Unknown derive `starknet::Event` - a plugin might be missing. #[derive(Drop, starknet::Event)] ^*************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:77:5 #[event] ^******^ @@ -615,12 +615,12 @@ error: Unsupported attribute. #[flat] ^*****^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:76:1 ^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:126:5 #[abi(embed_v0)] ^**************^ @@ -635,22 +635,22 @@ error: Generated trait must have generic args matching the impl's generic params impl InternalImplBad of InternalUtils { ^**************************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:163:5 #[generate_trait] ^***************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:163:5 #[generate_trait] ^***************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:173:5 #[derive(Drop)] ^*************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:178:5 #[abi(embed_v0)] ^**************^ @@ -660,22 +660,22 @@ error: Unsupported attribute. #[abi(embed_v0)] ^**************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:213:5 #[generate_trait] ^***************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:173:1 #[derive(Drop)] ^*****************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:213:5 #[generate_trait] ^***************^ -error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("test_src"). +error: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> test_src/lib.cairo:224:5 fn dojo_init( ^***********^ diff --git a/crates/dojo-lang/src/semantics/test_data/get b/crates/dojo-lang/src/semantics/test_data/get index ff66c3cba3..db57604909 100644 --- a/crates/dojo-lang/src/semantics/test_data/get +++ b/crates/dojo-lang/src/semantics/test_data/get @@ -29,37 +29,37 @@ Missing( ) //! > semantic_diagnostics -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:1:1 use array::ArrayTrait; ^********************^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:2:1 use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; ^*********************************************************^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:4:1 #[derive(Copy, Drop, Serde, Introspect)] ^**************************************^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:10:1 fn test_func() { let key: felt252 = 0xb0b; ^****************************************^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:3:1 ^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:3:1 ^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:3:1 ^ @@ -112,37 +112,37 @@ Missing( ) //! > semantic_diagnostics -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:1:1 use array::ArrayTrait; ^********************^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:2:1 use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; ^*********************************************************^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:4:1 #[derive(Copy, Drop, Serde, Introspect)] ^**************************************^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:10:1 fn test_func() { let key: felt252 = 0xb0b; ^****************************************^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:3:1 ^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:3:1 ^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:3:1 ^ @@ -321,37 +321,37 @@ Block( ) //! > semantic_diagnostics -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:1:1 use array::ArrayTrait; ^********************^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:2:1 use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; ^*********************************************************^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:4:1 #[derive(Copy, Drop, Serde, Introspect)] ^**************************************^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:10:1 fn test_func() { let key: felt252 = 0xb0b; ^****************************************^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:3:1 ^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:3:1 ^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:3:1 ^ diff --git a/crates/dojo-lang/src/semantics/test_data/set b/crates/dojo-lang/src/semantics/test_data/set index 34a7fae2b5..ce115d64e6 100644 --- a/crates/dojo-lang/src/semantics/test_data/set +++ b/crates/dojo-lang/src/semantics/test_data/set @@ -18,7 +18,7 @@ Missing( ) //! > semantic_diagnostics -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:1:1 fn test_func() { { ^*****************^ @@ -50,7 +50,7 @@ Missing( ) //! > semantic_diagnostics -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:1:1 fn test_func() { { ^*****************^ @@ -234,7 +234,7 @@ Block( ) //! > semantic_diagnostics -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:1:1 use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; ^*********************************************************^ @@ -244,27 +244,27 @@ error: Plugin diagnostic: Unknown derive `Model` - a plugin might be missing. #[derive(Copy, Drop, Serde, Model)] ^***^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:3:1 #[derive(Copy, Drop, Serde, Model)] ^*********************************^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:9:1 fn test_func() { let key: felt252 = 0xb0b; ^****************************************^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:2:1 ^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:2:1 ^ -error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: Real("/var/folders/3j/41jlhmds1yvc3z3m5_sgch6w0000gn/T/.tmpJ5NYH6/registry/std/43cf361d9/core/src"). +error: Plugin diagnostic: Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid. --> lib.cairo:2:1 ^ diff --git a/crates/dojo-lang/src/utils.rs b/crates/dojo-lang/src/utils.rs index 4c6b5e25a6..e8eaa50991 100644 --- a/crates/dojo-lang/src/utils.rs +++ b/crates/dojo-lang/src/utils.rs @@ -65,8 +65,6 @@ pub fn get_namespace_config(db: &dyn SyntaxGroup) -> Result { } Err(anyhow::anyhow!( - "Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid: \ - {:?}.", - configuration.root + "Namespace configuration expected at tool.dojo.world.namespace, but not found or invalid.", )) } diff --git a/crates/dojo-world/src/contracts/world_test.rs b/crates/dojo-world/src/contracts/world_test.rs index b81584b97a..22aade32f3 100644 --- a/crates/dojo-world/src/contracts/world_test.rs +++ b/crates/dojo-world/src/contracts/world_test.rs @@ -108,11 +108,19 @@ pub async fn deploy_world( let world = WorldContract::new(world_address, &account); - world - .register_namespace(&cainome::cairo_serde::ByteArray::from_string("dojo_examples").unwrap()) - .send_with_cfg(&TxnConfig::init_wait()) - .await - .unwrap(); + let calls = vec![ + world.register_namespace_getcall( + &cainome::cairo_serde::ByteArray::from_string("dojo_examples").unwrap(), + ), + world.register_namespace_getcall( + &cainome::cairo_serde::ByteArray::from_string("dojo_examples_foes").unwrap(), + ), + world.register_namespace_getcall( + &cainome::cairo_serde::ByteArray::from_string("dojo_examples_weapons").unwrap(), + ), + ]; + + let _ = account.execute_v1(calls).send_with_cfg(&TxnConfig::init_wait()).await.unwrap(); // Wondering why the `init_wait` is not enough and causes a nonce error. // May be to a delay to create the block as we are in instant mining. diff --git a/crates/dojo-world/src/metadata_test.rs b/crates/dojo-world/src/metadata_test.rs index ba58f89d34..d52fe9beb6 100644 --- a/crates/dojo-world/src/metadata_test.rs +++ b/crates/dojo-world/src/metadata_test.rs @@ -34,7 +34,7 @@ icon_uri = "file://example_icon.png" website = "https://dojoengine.org" socials.x = "https://x.com/dojostarknet" seed = "dojo_examples" -namespace = "dojo_examples" +namespace = { default = "dojo_examples" } "#, ) .unwrap(); @@ -106,7 +106,7 @@ world_address = "0x0248cacaeac64c45be0c19ee8727e0bb86623ca7fa3f0d431a6c55e200697 name = "example" description = "example world" seed = "dojo_examples" -namespace = "dojo_examples" +namespace = { default = "dojo_examples" } cover_uri = "file://example_cover.png" icon_uri = "file://example_icon.png" website = "https://dojoengine.org" diff --git a/crates/torii/graphql/src/tests/metadata_test.rs b/crates/torii/graphql/src/tests/metadata_test.rs index 85ca2340fe..9b649e65f0 100644 --- a/crates/torii/graphql/src/tests/metadata_test.rs +++ b/crates/torii/graphql/src/tests/metadata_test.rs @@ -57,7 +57,7 @@ mod tests { name = "example" description = "example world" seed = "example" - namespace = "example" + namespace = { default = "example" } cover_uri = "file://example_cover.png" website = "https://dojoengine.org" socials.x = "https://x.com/dojostarknet" diff --git a/crates/torii/types-test/Scarb.toml b/crates/torii/types-test/Scarb.toml index 6ff4049f66..1428cbe432 100644 --- a/crates/torii/types-test/Scarb.toml +++ b/crates/torii/types-test/Scarb.toml @@ -13,7 +13,7 @@ dojo = { path = "../../dojo-core" } build-external-contracts = [ ] [tool.dojo.world] -namespace = "types_test" +namespace = { default = "types_test" } seed = "types_test" name = "types test" description = "Graphql types testing"