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
Update 2025-02 - cli10.4.0 and enhanced stake-key queries
About this update: cardano-cli 10.4.0.0 introduced a breaking change in the `stake-address-info` query. this update addresses this update and also brings more query details and enhanced security for stakekey deregistration.
- 00_common.sh // was updated to query govActionDeposits via koios in light mode. also the govAction query was refined to only return active proposals
- 01_claimRewards.sh // shows more information about the stake-address: if there are rewards, if there is a pool delegation, if there is a drep delegation, if the stakeaddress is used in a governance action deposit. in conway era (protocolversion10) there is now a check that rewards can only be claimed if the address is delegated to a drep
- 01_queryAddress.sh & 03c_checkStakingAddrOnChain.sh // shows more information about the stake-address: if there are rewards, if there is a pool delegation, if there is a drep delegation, if the stakeaddress is used in a governance action deposit. in case it is used in gov actions, a list of the actions will be listed
- 08a_genStakingAddrRetireCert.sh // has now the same enhanced outputs about the stakeaddress as 01_queryAddress.sh. in order to protect funds, there is a double-check included if the stakeaddress is used as the deposit refund address in an ongoing governance action. if this is the case, the script will prevent the user from generating a stake-address-retirement certificate.
- new minimum version of cardano-cli is now 10.4.0.0
- new minimum version of cardano-signer is now 1.22.0 (needed for CIP8/30 witnesses in governance metadata)
- cardano-signer binary was updated to v1.22.1
Copy file name to clipboardexpand all lines: cardano/mainnet/00_common.sh
+61-34
Original file line number
Diff line number
Diff line change
@@ -325,15 +325,15 @@ if [[ "${adahandleAPI: -1}" == "/" ]]; then adahandleAPI=${adahandleAPI%?}; fi #
325
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
326
326
327
327
#Don't allow to overwrite the needed Versions, so we set it after the overwrite part
328
-
minCliVersion="10.2.0"#minimum allowed cli version for this script-collection version
329
-
maxCliVersion="10.3.99"#maximum allowed cli version, 99.99.9 = no limit so far
328
+
minCliVersion="10.4.0"#minimum allowed cli version for this script-collection version
329
+
maxCliVersion="99.99.9"#maximum allowed cli version, 99.99.9 = no limit so far
330
330
minNodeVersion="10.1.4"#minimum allowed node version for this script-collection version
331
331
maxNodeVersion="99.99.9"#maximum allowed node version, 99.99.9 = no limit so far
332
-
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
333
333
minTrezorCardanoAppVersion="2.7.2"#minimum version for the firmware on the Trezor HW-Wallet
334
334
minKeystoneCardanoAppVersion="1.7.7"#minimum version for the firmware on the Keystone HW-Wallet
335
-
minHardwareCliVersion="1.15.0"#minimum version for the cardano-hw-cli
336
-
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.22.0"#minimum version for the cardano-signer binary
337
337
minCatalystToolboxVersion="0.5.0"#minimum version for the catalyst-toolbox binary
if [ $?-ne 0 ];thenecho -e "Query via Koios-API (${koiosAPI}) failed, not a JSON response.";exit 1;fi;#reponse is not a json file
1559
1559
1560
1560
#check if the stakeAddress is registered, if not, return an empty array
1561
-
if [[ $(jq -r ".[0].status"<<<"${responseJSON}"2> /dev/null)!="registered" ]];then
1562
-
printf"[]";#stakeAddress not registered on chain, return an empty array
1563
-
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
1564
1562
1565
-
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