Update scripts/publish-app-record.sh
Some checks failed
Publish ApplicationRecord to Registry / cns_publish (push) Has been cancelled

This commit is contained in:
zramsay 2024-08-21 16:02:42 +00:00
parent faadcb6d45
commit 21a21fa3a8

View File

@ -20,11 +20,11 @@ rcd_app_version=$(jq -r '.version' package.json | sed 's/null//')
cat <<EOF > "$CONFIG_FILE" cat <<EOF > "$CONFIG_FILE"
services: services:
registry: registry:
rpcEndpoint: '${CERC_REGISTRY_RPC_ENDPOINT:-http://testnet-a-1.dev.vaasl.io:26657}' rpcEndpoint: '${CERC_REGISTRY_RPC_ENDPOINT:-https://laconicd.laconic.com}'
gqlEndpoint: '${CERC_REGISTRY_GQL_ENDPOINT:-http://testnet-a-1.dev.vaasl.io:9473/api}' gqlEndpoint: '${CERC_REGISTRY_GQL_ENDPOINT:-https://laconicd.laconic.com/api}'
chainId: ${CERC_REGISTRY_CHAIN_ID:-laconic-08062024} chainId: ${CERC_REGISTRY_CHAIN_ID:-laconic_9000-1}
gas: 900000 gas: 900000
fees: 900000alnt fees: 1900000alnt
EOF EOF
next_ver=$(laconic -c $CONFIG_FILE registry record list --type ApplicationRecord --all --name "$rcd_name" 2>/dev/null | jq -r -s ".[] | sort_by(.createTime) | reverse | [ .[] | select(.bondId == \"$CERC_REGISTRY_BOND_ID\") ] | .[0].attributes.version" | awk -F. -v OFS=. '{$NF += 1 ; print}') next_ver=$(laconic -c $CONFIG_FILE registry record list --type ApplicationRecord --all --name "$rcd_name" 2>/dev/null | jq -r -s ".[] | sort_by(.createTime) | reverse | [ .[] | select(.bondId == \"$CERC_REGISTRY_BOND_ID\") ] | .[0].attributes.version" | awk -F. -v OFS=. '{$NF += 1 ; print}')