Skip to content

Commit

Permalink
Pushed max. NodeVersion to 1.30.9
Browse files Browse the repository at this point in the history
- set a new max for the node-version (1.30.9) in preparation for the 1.31.0 change
  • Loading branch information
gitmachtl committed Sep 28, 2021
1 parent 7839240 commit 4af57d4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cardano/mainnet/00_common.sh 100755 → 100644
Expand Up @@ -96,7 +96,7 @@ if [[ -f "common.inc" ]]; then source "common.inc"; fi

#Don't allow to overwrite the needed Versions, so we set it after the overwrite part
minNodeVersion="1.27.0" #minimum allowed node version for this script-collection version
maxNodeVersion="1.30.0" #maximum allowed node version, 9.99.9 = no limit so far
maxNodeVersion="1.30.9" #maximum allowed node version, 9.99.9 = no limit so far
minLedgerCardanoAppVersion="2.4.1" #minimum version for the cardano-app on the Ledger hardwarewallet
minTrezorCardanoAppVersion="2.4.0" #minimum version for the cardano-app on the Trezor hardwarewallet
minHardwareCliVersion="1.6.2" #minimum version for the cardano-hw-cli
Expand Down
2 changes: 1 addition & 1 deletion cardano/mainnet/sha256sum_sposcripts.txt
@@ -1,4 +1,4 @@
0f578abd12727292acbfda57475f4d2b4ba4ec434701085c0c4dcab7a167c6d6 00_common.sh
ff07f4d435b943908e211834cdf4f55f5408508507fb2af642530083453b9c5d 00_common.sh
53f3543ae1c27780f55d443790edc5777969dd731b5e3d6783e2a544ca423fc9 01_claimRewards.sh
c2abb35f4a513ea457aa1a5778f86a83468824fa6bcd2e21e4ac441624e9a4cf 01_queryAddress.sh
5ad58a703e111920ab37184d5c84bddb7372a0b2c77f30a9385d37dd5ce0ed5c 01_sendAssets.sh
Expand Down
11 changes: 10 additions & 1 deletion cardano/testnet/00_common.sh 100755 → 100644
Expand Up @@ -96,7 +96,7 @@ if [[ -f "common.inc" ]]; then source "common.inc"; fi

#Don't allow to overwrite the needed Versions, so we set it after the overwrite part
minNodeVersion="1.27.0" #minimum allowed node version for this script-collection version
maxNodeVersion="9.99.9" #maximum allowed node version, 9.99.9 = no limit so far
maxNodeVersion="1.30.9" #maximum allowed node version, 9.99.9 = no limit so far
minLedgerCardanoAppVersion="2.4.1" #minimum version for the cardano-app on the Ledger hardwarewallet
minTrezorCardanoAppVersion="2.4.0" #minimum version for the cardano-app on the Trezor hardwarewallet
minHardwareCliVersion="1.6.2" #minimum version for the cardano-hw-cli
Expand Down Expand Up @@ -455,6 +455,7 @@ generate_UTXO() #Parameter1=RawUTXO, Parameter2=Address
IFS='.' read -ra asset <<< "${asset_hash_name}"
local asset_policy=${asset[0]}
local asset_name=${asset[1]}
# local asset_name=$(convert_assetNameASCII2HEX ${asset[1]}) #AssetNames in HEX testing
#Add the Entry of the Token
local utxoJSON=$( jq ".\"${utxoHashIndex}\".value.\"${asset_policy}\" += { \"${asset_name}\": \"${asset_amount}\" }" <<< ${utxoJSON})
local idx=$(( ${idx} + 3 ))
Expand Down Expand Up @@ -521,6 +522,14 @@ echo -n "${1}" | xxd -r -ps
}
#-------------------------------------------------------

#-------------------------------------------------------
#Convert HEX assetName into ASCII assetName. If possible return ".assetName" else return just the HEX assetName without a leading point'.'
convert_assetNameHEX2ASCII_ifpossible() {
local tmpAssetName=$(echo -n "${1}" | xxd -r -ps)
if [[ "${tmpAssetName}" == "${tmpAssetName//[^[:alnum:]]/}" ]]; then echo -n ".${tmpAssetName}"; else echo -n "${tmpAssetName}"; fi
}
#-------------------------------------------------------


#-------------------------------------------------------
#Calculate the minimum UTXO value that has to be sent depending on the assets and the minUTXO protocol-parameters
Expand Down

0 comments on commit 4af57d4

Please sign in to comment.