From 3ac0d8408e8e57ca6b3cf6f2123ef51cc73b5be7 Mon Sep 17 00:00:00 2001 From: Javier C Date: Wed, 13 Nov 2024 14:17:38 +0000 Subject: [PATCH 1/2] chore: fix mantra mainnet env --- scripts/deployment/deploy_env/mainnets/mantra.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deployment/deploy_env/mainnets/mantra.env b/scripts/deployment/deploy_env/mainnets/mantra.env index 9c6183a..4e7fa52 100644 --- a/scripts/deployment/deploy_env/mainnets/mantra.env +++ b/scripts/deployment/deploy_env/mainnets/mantra.env @@ -1,4 +1,4 @@ -export CHAIN_ID="mantra-hongbai-1" +export CHAIN_ID="mantra-1" export DENOM="uom" export BINARY="mantrachaind" -export RPC="https://rpc.hongbai.mantrachain.io:443" +export RPC="https://rpc.mantrachain.io:443" From 825385e0d3bb853823ed29169f7afe2fb88b58ba Mon Sep 17 00:00:00 2001 From: Javier C Date: Wed, 13 Nov 2024 14:27:57 +0000 Subject: [PATCH 2/2] ci: fix script to fetch artifacts versions --- .../workflows/release-artifacts-on-tag.yaml | 2 +- justfile | 2 +- scripts/get_artifacts_versions.sh | 19 ++++++++++++++----- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-artifacts-on-tag.yaml b/.github/workflows/release-artifacts-on-tag.yaml index dd05358..b4b3e48 100644 --- a/.github/workflows/release-artifacts-on-tag.yaml +++ b/.github/workflows/release-artifacts-on-tag.yaml @@ -18,7 +18,7 @@ jobs: $GITHUB_WORKSPACE/scripts/build_release.sh tar -zcvf cosmwasm-artifacts.tar.gz artifacts - name: Get Artifacts Versions - run: $GITHUB_WORKSPACE/scripts/get_artifacts_versions.sh > artifact_versions.txt + run: $GITHUB_WORKSPACE/scripts/get_artifacts_versions.sh --skip-verbose > artifact_versions.txt - name: Create Release uses: softprops/action-gh-release@v1 with: diff --git a/justfile b/justfile index c13def8..ea57bea 100644 --- a/justfile +++ b/justfile @@ -60,7 +60,7 @@ optimize: # Prints the artifacts versions on the current commit. get-artifacts-versions: - scripts/get_artifacts_versions.sh + scripts/get_artifacts_versions.sh --skip-verbose # Prints the artifacts size. Optimize should be called before. get-artifacts-size: diff --git a/scripts/get_artifacts_versions.sh b/scripts/get_artifacts_versions.sh index f2b0d90..2f0b5d3 100755 --- a/scripts/get_artifacts_versions.sh +++ b/scripts/get_artifacts_versions.sh @@ -3,16 +3,25 @@ set -e project_root_path=$(realpath "$0" | sed 's|\(.*\)/.*|\1|' | cd ../ | pwd) -echo -e "\nGetting artifacts versions...\n" -echo -e "Contracts::\n" +if [ "$1" != "--skip-verbose" ]; then + echo -e "\nGetting artifacts versions...\n" +fi + +echo -e "\033[1mContracts:\033[0m" for artifact in artifacts/*.wasm; do artifact="${artifact%-*}" + artifact=$(echo $artifact | sed 's/_/-/g') contract_path=$(find "$project_root_path" -iname $(cut -d . -f 1 <<<$(basename $artifact)) -type d) version=$(cat ''"$contract_path"'/Cargo.toml' | awk -F= '/^version/ { print $2 }') version="${version//\"/}" - printf "%-25s %s\n" "$(basename $artifact)" ": $version" + printf "%-20s %s\n" "$(basename $artifact)" ": $version" done -echo -e "\nPackages::\n" +echo -e "\n\033[1mPackages:\033[0m" + +for package in packages/*; do + version=$(cat ''"$package"'/Cargo.toml' | awk -F= '/^version/ { print $2 }') + version="${version//\"/}" -echo -e "\n" + printf "%-20s %s\n" "$(basename $package)" ": $version" +done