From ca5e802ad13bd15b81bd76a78974543d40f5df3c Mon Sep 17 00:00:00 2001 From: Caspar Oostendorp Date: Mon, 26 Feb 2024 08:26:57 +0800 Subject: [PATCH] Prepare v0.1.6 --- Makefile | 2 +- VERSION | 2 +- contracts/Scarb.toml | 2 +- contracts/scripts/create_genesis.sh | 8 ++++---- deployment/demo/Chart.yaml | 2 +- deployment/test/Chart.yaml | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 302919d..0327cd1 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ include .account export REPO = ghcr.io/pixelaw/core -CORE_VERSION = 0.1.5 +CORE_VERSION = 0.1.6 KEIKO_VERSION = v0.1.5 diff --git a/VERSION b/VERSION index 9faa1b7..c946ee6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.5 +0.1.6 diff --git a/contracts/Scarb.toml b/contracts/Scarb.toml index 5989189..f2bde89 100644 --- a/contracts/Scarb.toml +++ b/contracts/Scarb.toml @@ -1,7 +1,7 @@ [package] cairo-version = "2.4.0" name = "pixelaw" -version = "0.1.5" +version = "0.1.6" homepage = "https://github.com/pixelaw/core" [cairo] diff --git a/contracts/scripts/create_genesis.sh b/contracts/scripts/create_genesis.sh index 41a2c79..e8c549c 100755 --- a/contracts/scripts/create_genesis.sh +++ b/contracts/scripts/create_genesis.sh @@ -9,7 +9,7 @@ set -uo pipefail # - starkli # - jq ########################################################### - +echo "1" export TARGET=${1:-"target/dev"} export STARKNET_RPC="http://localhost:5050/" #export DOJO_PRIVATE_KEY=$(cat /run/secrets/private_key) @@ -142,9 +142,9 @@ jq --arg ch "$class_hash" --slurpfile cc "${TARGET}/dojo::world::world.json" '.c read -r class_hash <<<$(jq -r '.base.class_hash' $MANIFEST) jq --arg ch "$class_hash" --slurpfile cc "${TARGET}/dojo::base::base.json" '.classes += [{"class_hash": $ch, "class": $cc[0]}]' $GENESIS_OUT > $GENESIS_OUT.tmp && mv $GENESIS_OUT.tmp $GENESIS_OUT -## Executor -read -r class_hash <<<$(jq -r '.executor.class_hash' $MANIFEST) -jq --arg ch "$class_hash" --slurpfile cc "${TARGET}/dojo::executor::executor.json" '.classes += [{"class_hash": $ch, "class": $cc[0]}]' $GENESIS_OUT > $GENESIS_OUT.tmp && mv $GENESIS_OUT.tmp $GENESIS_OUT +## resource_metadata +read -r class_hash <<<$(jq -r '.resource_metadata.class_hash' $MANIFEST) +jq --arg ch "$class_hash" --slurpfile cc "${TARGET}/dojo::resource_metadata::resource_metadata.json" '.classes += [{"class_hash": $ch, "class": $cc[0]}]' $GENESIS_OUT > $GENESIS_OUT.tmp && mv $GENESIS_OUT.tmp $GENESIS_OUT ## Classes of Contracts diff --git a/deployment/demo/Chart.yaml b/deployment/demo/Chart.yaml index c8c202e..708a0a9 100644 --- a/deployment/demo/Chart.yaml +++ b/deployment/demo/Chart.yaml @@ -21,4 +21,4 @@ version: "0.0.45" # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "0.1.5" +appVersion: "0.1.6" diff --git a/deployment/test/Chart.yaml b/deployment/test/Chart.yaml index ae1383f..7393039 100644 --- a/deployment/test/Chart.yaml +++ b/deployment/test/Chart.yaml @@ -21,4 +21,4 @@ version: "0.0.45" # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "0.1.5" +appVersion: "0.1.6"