Skip to content

Commit

Permalink
dojo 1.0.0-rc.0 (#2595)
Browse files Browse the repository at this point in the history
* chore: add new dojo folder into crates

* wip

* fix: wip tests

* fix: rename simple example

* fix: rework abigen

* fmt

* wip

* wip

* fix: rework remote world fetching

* fix: ensure namespaces are mapped correctly

* feat: add namespaces as resource too for the diff

* feat: complete the diff computation

* fix: fmt

* feat: add declarer and migration flow again

* wip

* fix: fix migration flow

* fix: adjust controller account and migrate

* wip

* wip: migration

* fix

* fix

* fix: rework txs + error message on tx failed

* fmt

* fix: use disable_multicall

* fix: add inspect command for world

* fix: add perms names and tag

* fix: simplify resource management

* fix wip

* add comment to not forget cleaning on build

* fix: add clean back

* clean

* fix: migration output clean and simple

* fix: world upgrade

* fix: test

* fix: ensure warning if world address/seed differ

* fix: refacto

* fix: big refactor

* fix: ensure model and modelvalue are in the ABI

* fix: add manifests back

* fix: compiling workspace ok

* fix: simplify storage trait

* fix: add call again

* wip: cairo test

* wip: tests

* fix: fix upgrade with dojo_name now

* fix: fix core tests

* fix: order init contract

* chore: use scarb from dojo fork

* fix: use cainome from remote branch

* feat: add multi-declarers

* fix: fix missing generate task migration

* chore: use fix rev for scarb

* fix: regenerate world ABI

* fix: regenerate world ABI

* fix: use new cainome rev for event selector

* feat: adjust torii for new events structure

* fix: fmt

* chore: bump scarb

* feat(torii): add support for new events historical

* fix: migrate spawn and move

* fix: tests

* fix: fmt

* fix: cleanup

* fix: cairo test compilation

* fix: rename generated contracts for models and events for easier testing

* chore: bump scarb

* fix: complete workspace tests + clippy

* add metadata feature on dojo-world

* fix: fix CI path and scarb version + abigen check

* fix: replace WorldMetadata to avoid using metadata feature

* fix: format check and tests

* fix: remove namespace bytearray from WorldStorage

* fix: change namespaces to snapshot

* fix: update db

* fix: world storage API update

* fix: tests

* ci: remove bindgen check due to formatting

* fix: add bindgen back with new world representation

* chore: bump scarb

* fix: ensure namespaces are correctly mapped for default, and add traces

* fix: ensure multi declaration works + added timeout

* fix: add back the world abi in the final manifest

* feat: historical event messages

* fix: ensure we have 2 outputs based on changes

* fix: display inspect

* fix: ensure the tag is correctly output in the manifest

* torii clietn evnet messages

* fix: merge main + update tests

* spookyfy

* feat: add sozo hash back

* fix: fix fmt

* fix: add sozo init back

* fix: fmt

---------

Co-authored-by: notV4l <[email protected]>
Co-authored-by: Nasr <[email protected]>
  • Loading branch information
3 people authored Oct 30, 2024
1 parent e2d96b4 commit f4199ae
Show file tree
Hide file tree
Showing 480 changed files with 41,196 additions and 81,814 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,12 @@ jobs:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.7.0"
scarb-version: "2.8.4"
- run: |
scarb --manifest-path examples/spawn-and-move/Scarb.toml fmt --check
scarb --manifest-path crates/dojo-core/Scarb.toml fmt --check
scarb --manifest-path examples/simple/Scarb.toml fmt --check
scarb --manifest-path crates/dojo/core/Scarb.toml fmt --check
scarb --manifest-path crates/dojo/core-cairo-test/Scarb.toml fmt --check
dojo-core-test:
needs: build
Expand All @@ -130,7 +132,7 @@ jobs:
- uses: actions/checkout@v3
- run: |
chmod +x /tmp/bins/sozo
/tmp/bins/sozo --manifest-path crates/dojo-core/Scarb.toml test
/tmp/bins/sozo --manifest-path crates/dojo/core/Scarb.toml test
dojo-spawn-and-move-example-test:
needs: build
Expand All @@ -147,15 +149,6 @@ jobs:
chmod +x /tmp/bins/sozo
/tmp/bins/sozo --manifest-path examples/spawn-and-move/Scarb.toml test
dojo-world-bindings-check:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:v1.0.0-alpha.17
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- run: cargo run --bin dojo-world-abigen -- --check

clippy:
runs-on: ubuntu-latest-4-cores
container:
Expand Down Expand Up @@ -201,5 +194,5 @@ jobs:
nohup /tmp/bins/katana --accounts 2 --disable-fee &
- run: |
/tmp/bins/sozo --manifest-path examples/spawn-and-move/Scarb.toml build
/tmp/bins/sozo --manifest-path examples/spawn-and-move/Scarb.toml migrate apply
/tmp/bins/sozo --manifest-path examples/spawn-and-move/Scarb.toml migrate
- run: hurl --test examples/rpc/**/*.hurl
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
scarb 2.7.0
scarb 2.8.4
starknet-foundry 0.30.0
Loading

0 comments on commit f4199ae

Please sign in to comment.