Skip to content

Commit

Permalink
Merge pull request #49 from dojoengine/update
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
ponderingdemocritus authored Apr 4, 2024
2 parents f115a39 + c02a7ce commit d255629
Show file tree
Hide file tree
Showing 18 changed files with 3,179 additions and 99 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: curl -L https://install.dojoengine.org | bash
- run: /home/runner/.config/.dojo/bin/dojoup -v v0.6.0-alpha.7
- run: /home/runner/.config/.dojo/bin/dojoup -v v0.6.0-alpha.13
- run: |
/home/runner/.config/.dojo/bin/sozo build
/home/runner/.config/.dojo/bin/sozo test
Expand Down
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.5.1"
source = "git+https://github.com/dojoengine/dojo?tag=v0.6.0-alpha.7#f4c8111aefe2672d04356df64914871a5bcb536d"
source = "git+https://github.com/dojoengine/dojo?tag=v0.6.0-alpha.13#5bdcfdff82c7a01443bf603047f4bfe00d210ed6"
dependencies = [
"dojo_plugin",
]
Expand Down
2 changes: 1 addition & 1 deletion Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ migrate = "sozo build && sozo migrate && ./scripts/default_auth.sh"
spawn = "./scripts/spawn.sh"

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

[[target.dojo]]

Expand Down
22 changes: 0 additions & 22 deletions abis/base/contracts/actions.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,23 +156,6 @@
}
]
},
{
"type": "event",
"name": "dojo_starter::systems::actions::actions::Moved",
"kind": "struct",
"members": [
{
"name": "player",
"type": "core::starknet::contract_address::ContractAddress",
"kind": "key"
},
{
"name": "direction",
"type": "dojo_starter::models::moves::Direction",
"kind": "data"
}
]
},
{
"type": "event",
"name": "dojo_starter::systems::actions::actions::Event",
Expand All @@ -182,11 +165,6 @@
"name": "UpgradeableEvent",
"type": "dojo::components::upgradeable::upgradeable::Event",
"kind": "nested"
},
{
"name": "Moved",
"type": "dojo_starter::systems::actions::actions::Moved",
"kind": "nested"
}
]
}
Expand Down
243 changes: 243 additions & 0 deletions abis/base/models/moves.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,243 @@
[
{
"type": "impl",
"name": "DojoModelImpl",
"interface_name": "dojo::model::IDojoModel"
},
{
"type": "struct",
"name": "core::array::Span::<core::integer::u8>",
"members": [
{
"name": "snapshot",
"type": "@core::array::Array::<core::integer::u8>"
}
]
},
{
"type": "struct",
"name": "core::array::Span::<core::felt252>",
"members": [
{
"name": "snapshot",
"type": "@core::array::Array::<core::felt252>"
}
]
},
{
"type": "struct",
"name": "core::array::Span::<core::array::Span::<core::felt252>>",
"members": [
{
"name": "snapshot",
"type": "@core::array::Array::<core::array::Span::<core::felt252>>"
}
]
},
{
"type": "struct",
"name": "dojo::database::introspect::Struct",
"members": [
{
"name": "name",
"type": "core::felt252"
},
{
"name": "attrs",
"type": "core::array::Span::<core::felt252>"
},
{
"name": "children",
"type": "core::array::Span::<core::array::Span::<core::felt252>>"
}
]
},
{
"type": "struct",
"name": "core::array::Span::<(core::felt252, core::array::Span::<core::felt252>)>",
"members": [
{
"name": "snapshot",
"type": "@core::array::Array::<(core::felt252, core::array::Span::<core::felt252>)>"
}
]
},
{
"type": "struct",
"name": "dojo::database::introspect::Enum",
"members": [
{
"name": "name",
"type": "core::felt252"
},
{
"name": "attrs",
"type": "core::array::Span::<core::felt252>"
},
{
"name": "children",
"type": "core::array::Span::<(core::felt252, core::array::Span::<core::felt252>)>"
}
]
},
{
"type": "enum",
"name": "dojo::database::introspect::Ty",
"variants": [
{
"name": "Primitive",
"type": "core::felt252"
},
{
"name": "Struct",
"type": "dojo::database::introspect::Struct"
},
{
"name": "Enum",
"type": "dojo::database::introspect::Enum"
},
{
"name": "Tuple",
"type": "core::array::Span::<core::array::Span::<core::felt252>>"
},
{
"name": "Array",
"type": "core::integer::u32"
}
]
},
{
"type": "interface",
"name": "dojo::model::IDojoModel",
"items": [
{
"type": "function",
"name": "name",
"inputs": [],
"outputs": [
{
"type": "core::felt252"
}
],
"state_mutability": "view"
},
{
"type": "function",
"name": "unpacked_size",
"inputs": [],
"outputs": [
{
"type": "core::integer::u32"
}
],
"state_mutability": "view"
},
{
"type": "function",
"name": "packed_size",
"inputs": [],
"outputs": [
{
"type": "core::integer::u32"
}
],
"state_mutability": "view"
},
{
"type": "function",
"name": "layout",
"inputs": [],
"outputs": [
{
"type": "core::array::Span::<core::integer::u8>"
}
],
"state_mutability": "view"
},
{
"type": "function",
"name": "schema",
"inputs": [],
"outputs": [
{
"type": "dojo::database::introspect::Ty"
}
],
"state_mutability": "view"
}
]
},
{
"type": "impl",
"name": "movesImpl",
"interface_name": "dojo_starter::models::moves::Imoves"
},
{
"type": "enum",
"name": "dojo_starter::models::moves::Direction",
"variants": [
{
"name": "None",
"type": "()"
},
{
"name": "Left",
"type": "()"
},
{
"name": "Right",
"type": "()"
},
{
"name": "Up",
"type": "()"
},
{
"name": "Down",
"type": "()"
}
]
},
{
"type": "struct",
"name": "dojo_starter::models::moves::Moves",
"members": [
{
"name": "player",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "remaining",
"type": "core::integer::u8"
},
{
"name": "last_direction",
"type": "dojo_starter::models::moves::Direction"
}
]
},
{
"type": "interface",
"name": "dojo_starter::models::moves::Imoves",
"items": [
{
"type": "function",
"name": "ensure_abi",
"inputs": [
{
"name": "model",
"type": "dojo_starter::models::moves::Moves"
}
],
"outputs": [],
"state_mutability": "view"
}
]
},
{
"type": "event",
"name": "dojo_starter::models::moves::moves::Event",
"kind": "enum",
"variants": []
}
]
Loading

0 comments on commit d255629

Please sign in to comment.