Skip to content

Commit

Permalink
Prepare v0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
thiscaspar committed Nov 13, 2024
1 parent ed22692 commit e514d2f
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.0
0.5.1
2 changes: 1 addition & 1 deletion contracts/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion contracts/Scarb.toml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
2 changes: 1 addition & 1 deletion contracts/Scarb_deploy.toml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
4 changes: 1 addition & 3 deletions contracts/scripts/create_snapshot.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -uo pipefail
#set -uo pipefail

###########################################################
# Prerequisites for running this script:
Expand Down Expand Up @@ -31,6 +31,4 @@ patch_torii_db

zip_databases



echo "Done"
23 changes: 12 additions & 11 deletions contracts/scripts/lib/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 &
}

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
7 changes: 3 additions & 4 deletions docker/scripts/katana_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "*"

0 comments on commit e514d2f

Please sign in to comment.