You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cardano/testnet/00_common.sh
+86-36Lines changed: 86 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -192,7 +192,16 @@ case "${network,,}" in
192
192
_lightModeParametersURL="https://uptime.live/data/cardano/parms/mainnet-parameters.json"#Parameters-JSON-File with current informations about cardano-cli version, tip, era, protocol-parameters
_adahandleAPI="https://preprod.api.handle.me"#Adahandle-API URLs -> autoresolve into ${adahandleAPI}
208
217
_catalystAPI="https://api.testnet.projectcatalyst.io/api/v1"#Catalyst-API URLs -> autoresolve into ${catalystAPI}
209
218
_lightModeParametersURL="https://uptime.live/data/cardano/parms/preprod-parameters.json"#Parameters-JSON-File with current informations about cardano-cli version, tip, era, protocol-parameters
_lightModeParametersURL="https://uptime.live/data/cardano/parms/preview-parameters.json"#Parameters-JSON-File with current informations about cardano-cli version, tip, era, protocol-parameters
_catalystAPI= #Catalyst-API URLs -> autoresolve into ${catalystAPI}
241
260
_lightModeParametersURL= #Parameters-JSON-File with current informations about cardano-cli version, tip, era, protocol-parameters
261
+
_ccMemberColdHashNames='{}'
242
262
;;
243
263
244
264
@@ -256,6 +276,7 @@ case "${network,,}" in
256
276
_lightModeParametersURL="https://uptime.live/data/cardano/parms/sanchonet-parameters.json"#Parameters-JSON-File with current informations about cardano-cli version, tip, era, protocol-parameters
@@ -302,15 +325,15 @@ if [[ "${adahandleAPI: -1}" == "/" ]]; then adahandleAPI=${adahandleAPI%?}; fi #
302
325
if [[ "${magicparam}"==""||${addrformat}==""||${byronToShelleyEpochs}=="" ]];then majorError "The 'magicparam', 'addrformat' or 'byronToShelleyEpochs' is not set!\nOr maybe you have set the wrong parameter network=\"${network}\" ?\nList of preconfigured network-names: ${networknames}";exit 1;fi
303
326
304
327
#Don't allow to overwrite the needed Versions, so we set it after the overwrite part
305
-
minCliVersion="10.2.0"#minimum allowed cli version for this script-collection version
328
+
minCliVersion="10.4.0"#minimum allowed cli version for this script-collection version
306
329
maxCliVersion="99.99.9"#maximum allowed cli version, 99.99.9 = no limit so far
307
330
minNodeVersion="10.1.4"#minimum allowed node version for this script-collection version
308
331
maxNodeVersion="99.99.9"#maximum allowed node version, 99.99.9 = no limit so far
309
-
minLedgerCardanoAppVersion=${ENV_MINLEDGERCARDANOAPPVERSION:-"7.1.1"}#minimum version for the cardano-app on the Ledger HW-Wallet
332
+
minLedgerCardanoAppVersion=${ENV_MINLEDGERCARDANOAPPVERSION:-"7.1.4"}#minimum version for the cardano-app on the Ledger HW-Wallet
310
333
minTrezorCardanoAppVersion="2.7.2"#minimum version for the firmware on the Trezor HW-Wallet
311
334
minKeystoneCardanoAppVersion="1.7.7"#minimum version for the firmware on the Keystone HW-Wallet
312
-
minHardwareCliVersion="1.15.0"#minimum version for the cardano-hw-cli
313
-
minCardanoSignerVersion="1.20.1"#minimum version for the cardano-signer binary
335
+
minHardwareCliVersion="1.17.0"#minimum version for the cardano-hw-cli
336
+
minCardanoSignerVersion="1.24.0"#minimum version for the cardano-signer binary
314
337
minCatalystToolboxVersion="0.5.0"#minimum version for the catalyst-toolbox binary
315
338
316
339
#Defaults - Variables and Constants
@@ -1250,12 +1273,12 @@ local protocolParam=${1}
1250
1273
IFS='+'read -ra asset_entry <<<"${2}"#split the tx-out string into address, lovelaces, assets (read it into asset_entry array)
if [ $?-ne 0 ];thenecho -e "Query via Koios-API (${koiosAPI}) failed, not a JSON response.";exit 1;fi;#reponse is not a json file
1536
1559
1537
1560
#check if the stakeAddress is registered, if not, return an empty array
1538
-
if [[ $(jq -r ".[0].status"<<<"${responseJSON}"2> /dev/null)!="registered" ]];then
1539
-
printf"[]";#stakeAddress not registered on chain, return an empty array
1540
-
else
1561
+
if [[ $(jq -r ".[0].status"<<<"${responseJSON}"2> /dev/null)!="registered" ]];thenprintf"[]";exit 0;fi#stakeAddress not registered on chain, return an empty array
1541
1562
1542
-
local delegation;local rewardAccountBalance;local delegationDeposit;local voteDelegation;#define local variables so we can read it in one go with the next jq command
local delegation;local rewardAccountBalance;local delegationDeposit;local voteDelegation;#define local variables so we can read it in one go with the next jq command
0 commit comments