diff --git a/VERSION b/VERSION index 8f0916f..4b9fcbe 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.5.0 +0.5.1 diff --git a/contracts/Scarb.lock b/contracts/Scarb.lock index 97ea988..8f78232 100644 --- a/contracts/Scarb.lock +++ b/contracts/Scarb.lock @@ -24,7 +24,7 @@ source = "git+https://github.com/dojoengine/dojo?tag=v1.0.0#74280d48fa2828095331 [[package]] name = "pixelaw" -version = "0.4.7" +version = "0.5.0" dependencies = [ "dojo", "dojo_cairo_test", diff --git a/contracts/Scarb.toml b/contracts/Scarb.toml index d8e6f9e..45563bd 100644 --- a/contracts/Scarb.toml +++ b/contracts/Scarb.toml @@ -1,7 +1,7 @@ [package] cairo-version = "=2.8.4" name = "pixelaw" -version = "0.5.0" +version = "0.5.1" homepage = "https://github.com/pixelaw/core" edition = "2024_07" diff --git a/contracts/Scarb_deploy.toml b/contracts/Scarb_deploy.toml index 33b0041..13bb401 100644 --- a/contracts/Scarb_deploy.toml +++ b/contracts/Scarb_deploy.toml @@ -1,7 +1,7 @@ [package] cairo-version = "=2.8.4" name = "pixelaw" -version = "0.5.0" +version = "0.5.1" homepage = "https://github.com/pixelaw/core" edition = "2024_07" diff --git a/contracts/scripts/create_snapshot.sh b/contracts/scripts/create_snapshot.sh index df70ca3..a9a97a2 100755 --- a/contracts/scripts/create_snapshot.sh +++ b/contracts/scripts/create_snapshot.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -uo pipefail +#set -uo pipefail ########################################################### # Prerequisites for running this script: @@ -31,6 +31,4 @@ patch_torii_db zip_databases - - echo "Done" diff --git a/contracts/scripts/lib/functions.sh b/contracts/scripts/lib/functions.sh index 496ede4..0fcd92b 100755 --- a/contracts/scripts/lib/functions.sh +++ b/contracts/scripts/lib/functions.sh @@ -11,8 +11,8 @@ KATANA_DB="$OUT/katana_db" KATANA_DB_ZIP="$OUT/katana_db.zip" MANIFEST="manifest_$PROFILE.json" TYPESCRIPT="$OUT/typescript" -TORII_DB="$OUT/torii.sqlite" -TORII_DB_ZIP="$OUT/torii.sqlite.zip" +TORII_DB="$OUT/torii_db.sqlite" +TORII_DB_ZIP="$OUT/torii_db.zip" TORII_LOG="$OUT/torii.log" DEPLOY_SCARB="Scarb_deploy.toml" #DEPLOY_SCARB="Scarb.toml" @@ -51,9 +51,9 @@ start_torii() { torii \ --world $WORLD_ADDRESS \ --rpc $rpc_url \ - --database $TORII_DB \ - --events-chunk-size 10000 \ - --allowed-origins "*" \ + --db-dir $TORII_DB \ + --indexing.events_chunk_size 10000 \ + --http.cors_origins "*" \ > $TORII_LOG 2>&1 & } @@ -136,7 +136,8 @@ prepare_genesis() { wait_for_torii_writing() { echo "wait_for_torii_writing" - + echo $(du -b "$TORII_LOG") + cat $TORII_LOG prev_size=$(du -b "$TORII_LOG" | cut -f1) while true; do @@ -256,10 +257,10 @@ check_needed_commands() { } - get_rpc_url() { - local file_path="dojo_$PROFILE.toml" - local url=$(grep "rpc_url" "$file_path" | head -1 | awk -F '"' '{print $2}') - echo $url - } +get_rpc_url() { + local file_path="dojo_$PROFILE.toml" + local url=$(grep "rpc_url" "$file_path" | head -1 | awk -F '"' '{print $2}') + echo $url +} check_needed_commands diff --git a/docker/scripts/katana_start.sh b/docker/scripts/katana_start.sh index adb653f..d75e059 100755 --- a/docker/scripts/katana_start.sh +++ b/docker/scripts/katana_start.sh @@ -3,9 +3,8 @@ source /root/.bashrc katana \ --genesis $GENESIS \ --invoke-max-steps 4294967295 \ - --disable-fee \ - --disable-validate \ - --json-log \ + --dev \ + --dev.no-fee \ --block-time 2000 \ --db-dir $KATANA_DB \ - --allowed-origins "*" + --http.cors_origins "*"