Skip to content

Commit

Permalink
update to alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed May 26, 2024
1 parent 3c1b09c commit 0e3261a
Show file tree
Hide file tree
Showing 8 changed files with 222 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = 1
[[package]]
name = "dojo"
version = "0.6.0"
source = "git+https://github.com/dojoengine/dojo?tag=v0.6.0#fc5ad790c1993713e59f3fc65739160f132f29f0"
source = "git+https://github.com/dojoengine/dojo?tag=v0.7.0-alpha.3#855da3112c87faea87646db5a406ac77b4daf149"
dependencies = [
"dojo_plugin",
]
Expand Down
4 changes: 2 additions & 2 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spawn = "./scripts/spawn.sh"
move = "./scripts/move.sh"

[dependencies]
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v0.6.0" }
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v0.7.0-alpha.3" }

[[target.dojo]]

Expand All @@ -24,7 +24,7 @@ rpc_url = "http://localhost:5050/"
# Default account for katana with seed = 0
account_address = "0xb3ff441a68610b30fd5e2abbf3a1548eb6ba6f3559f2862bf2dc757e5828ca"
private_key = "0x2bbf4f9fd0bbb2e60b0316c1fe0b76cf7a4d0198bd493ced9b8df2a3a24d68a"
world_address = "0x446f1f19ba951b59935df72974f8ba6060e5fbb411ca21d3e3e3812e3eb8df8" # Update this line with your world address
world_address = "0x446f1f19ba951b59935df72974f8ba6060e5fbb411ca21d3e3e3812e3eb8df8" # Update this line with your world address

[tool.dojo.world]
name = "Dojo starter"
Expand Down
209 changes: 209 additions & 0 deletions manifests/dev/abis/base/dojo_world_world.json
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,152 @@
}
]
},
{
"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::<dojo::interfaces::StorageUpdate>",
"members": [
{
"name": "snapshot",
"type": "@core::array::Array::<dojo::interfaces::StorageUpdate>"
}
]
},
{
"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::<core::felt252>"
},
{
"name": "message_to_appchain_segment",
"type": "core::array::Span::<core::felt252>"
}
]
},
{
"type": "interface",
"name": "dojo::interfaces::IUpgradeableState",
"items": [
{
"type": "function",
"name": "upgrade_state",
"inputs": [
{
"name": "new_state",
"type": "core::array::Span::<dojo::interfaces::StorageUpdate>"
},
{
"name": "program_output",
"type": "dojo::interfaces::ProgramOutput"
}
],
"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_program_hash",
"inputs": [
{
"name": "program_hash",
"type": "core::felt252"
}
],
"outputs": [],
"state_mutability": "external"
},
{
"type": "function",
"name": "get_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",
Expand Down Expand Up @@ -597,6 +743,59 @@
}
]
},
{
"type": "event",
"name": "dojo::config::component::Config::ProgramHashUpdate",
"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": "ProgramHashUpdate",
"type": "dojo::config::component::Config::ProgramHashUpdate",
"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",
Expand Down Expand Up @@ -651,6 +850,16 @@
"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"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kind = "DojoContract"
class_hash = "0x7d17f102164e9f0dc5450b33b19e2a52d17665ddb089b8dc40d3552d36bfaf2"
original_class_hash = "0x7d17f102164e9f0dc5450b33b19e2a52d17665ddb089b8dc40d3552d36bfaf2"
class_hash = "0x7b70988fd451cb66a72f6826937c72809369d796a81dae36a02922590c8cee1"
original_class_hash = "0x7b70988fd451cb66a72f6826937c72809369d796a81dae36a02922590c8cee1"
base_class_hash = "0x0"
abi = "manifests/dev/abis/base/contracts/dojo_starter_systems_actions_actions.json"
reads = []
Expand Down
4 changes: 2 additions & 2 deletions manifests/dev/base/dojo_base_base.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
kind = "Class"
class_hash = "0x679177a2cb757694ac4f326d01052ff0963eac0bc2a17116a2b87badcdf6f76"
original_class_hash = "0x679177a2cb757694ac4f326d01052ff0963eac0bc2a17116a2b87badcdf6f76"
class_hash = "0x22f3e55b61d86c2ac5239fa3b3b8761f26b9a5c0b5f61ddbd5d756ced498b46"
original_class_hash = "0x22f3e55b61d86c2ac5239fa3b3b8761f26b9a5c0b5f61ddbd5d756ced498b46"
name = "dojo::base::base"
4 changes: 2 additions & 2 deletions manifests/dev/base/dojo_world_world.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind = "Class"
class_hash = "0x799bc4e9da10bfb3dd88e6f223c9cfbf7745435cd14f5d69675ea448e578cd"
original_class_hash = "0x799bc4e9da10bfb3dd88e6f223c9cfbf7745435cd14f5d69675ea448e578cd"
class_hash = "0x301ba8a1a13cec9291b049dea531f73a600e0812908cefa26d17214da411e9c"
original_class_hash = "0x301ba8a1a13cec9291b049dea531f73a600e0812908cefa26d17214da411e9c"
abi = "manifests/dev/abis/base/dojo_world_world.json"
name = "dojo::world::world"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kind = "DojoModel"
class_hash = "0x23c28dcfad6be01ca6509fdb35fd2bed6622238397613c60da5d387a43c38d0"
original_class_hash = "0x23c28dcfad6be01ca6509fdb35fd2bed6622238397613c60da5d387a43c38d0"
class_hash = "0xe94ecbe70f9847c2e46b22d132c5027a7cc350fa461b54d21e086d1e16c3e5"
original_class_hash = "0xe94ecbe70f9847c2e46b22d132c5027a7cc350fa461b54d21e086d1e16c3e5"
abi = "manifests/dev/abis/base/models/dojo_starter_models_moves_moves.json"
name = "dojo_starter::models::moves::moves"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kind = "DojoModel"
class_hash = "0x2e9c42b868b520d54bff1b7f4c9b91f39bb2e2ad1c39d6484fb5d8a95382e01"
original_class_hash = "0x2e9c42b868b520d54bff1b7f4c9b91f39bb2e2ad1c39d6484fb5d8a95382e01"
class_hash = "0x27919ef2b4b379d559d6064d7e5eb97e8fd891cf7601cc8411cee9e9fa5bc5f"
original_class_hash = "0x27919ef2b4b379d559d6064d7e5eb97e8fd891cf7601cc8411cee9e9fa5bc5f"
abi = "manifests/dev/abis/base/models/dojo_starter_models_position_position.json"
name = "dojo_starter::models::position::position"

Expand Down

0 comments on commit 0e3261a

Please sign in to comment.