Skip to content

Commit 765dc4e

Browse files
committed
Update 2026-03: CLI v11 and LightMode-dRepInfo Fix
- Fix for the lightmode using koios for getting the current dRep status - Minimum versions for the cardano-node and cardano-cli are now 11.0.0 - Update contains cardano-signer 1.35.0
1 parent fa6f49b commit 765dc4e

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

cardano/mainnet/00_common.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,9 @@ if [[ "${adahandleAPI: -1}" == "/" ]]; then adahandleAPI=${adahandleAPI%?}; fi #
337337
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
338338

339339
#Don't allow to overwrite the needed Versions, so we set it after the overwrite part
340-
minCliVersion="10.14.0" #minimum allowed cli version for this script-collection version
340+
minCliVersion="11.0.0" #minimum allowed cli version for this script-collection version
341341
maxCliVersion="99.99.9" #maximum allowed cli version, 99.99.9 = no limit so far
342-
minNodeVersion="10.5.3" #minimum allowed node version for this script-collection version
342+
minNodeVersion="11.0.0" #minimum allowed node version for this script-collection version
343343
maxNodeVersion="99.99.9" #maximum allowed node version, 99.99.9 = no limit so far
344344
minLedgerCardanoAppVersion=${ENV_MINLEDGERCARDANOAPPVERSION:-"7.1.4"} #minimum version for the cardano-app on the Ledger HW-Wallet
345345
minTrezorCardanoAppVersion="2.7.2" #minimum version for the firmware on the Trezor HW-Wallet
@@ -1684,12 +1684,12 @@ queryLight_drepInfo() { #${1} = drep-id(bech) to query
16841684
if [ $? -ne 0 ]; then echo -e "Query via Koios-API (${koiosAPI}) failed, not a JSON response."; exit 1; fi; #reponse is not a json file
16851685

16861686
#check if the drepID is registered, if not, return an empty array
1687-
if [[ $(jq -r ".[0].registered" <<< "${responseJSON}" 2> /dev/null) != "true" ]]; then
1687+
if [[ $(jq -r ".[0].drep_status" <<< "${responseJSON}" 2> /dev/null) != "registered" ]]; then
16881688
printf "[]"; #drepID not registered on chain, return an empty array
16891689
else
16901690

16911691
local hasScript; local delegatedStake; local drepDeposit; local drepHex; local drepExpiry; local drepAnchorUrl; local drepAnchorHash; #define local variables so we can read it in one go with the next jq command
1692-
{ read hasScript; read delegatedStake; read drepDeposit; read drepHex; read drepExpiry; read drepAnchorUrl; read drepAnchorHash; } <<< $(jq -r "\"\(.[0].has_script)\" // \"null\", .[0].amount // \"null\", .[0].deposit // \"null\", .[0].hex // \"null\", .[0].expires_epoch_no // \"null\", .[0].url // \"-\", .[0].hash // \"-\"" <<< "${responseJSON}" 2> /dev/null)
1692+
{ read hasScript; read delegatedStake; read drepDeposit; read drepHex; read drepExpiry; read drepAnchorUrl; read drepAnchorHash; } <<< $(jq -r "\"\(.[0].has_script)\" // \"null\", .[0].amount // \"null\", .[0].deposit // \"null\", .[0].hex // \"null\", .[0].expires_epoch_no // \"null\", .[0].meta_url // \"-\", .[0].meta_hash // \"-\"" <<< "${responseJSON}" 2> /dev/null)
16931693

16941694
#set the hash-type
16951695
if [[ "${hasScript}" == "false" ]]; then hashType="keyHash"; else hashType="scriptHash"; fi

cardano/mainnet/cardano-signer

3 KB
Binary file not shown.

cardano/mainnet/sha256sum_sposcripts.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
30c87690ba61f7a278e214299ef2c7e604dea50ced3d3dea010518552847390f 00_common.sh
1+
3a39a9d4b6007d538726d8532375ac9e077ef6bc62ad4a1953a4504ab4961f40 00_common.sh
22
9a4343d99683eb17a26c325e604c1693cb7212f3118b207df3bf96b8381fdb63 01_claimRewards.sh
33
8f98ef3f0983ed12ba714390b9a528ccf06b41f51dfcd1d52c50d86f038455c8 01_protectKey.sh
44
1d7746cc6ee07d1892268fc585cbdcac526218ac3a5a921532259a9b54ba0d3f 01_queryAddress.sh
@@ -51,4 +51,4 @@ d7d4753a6066fd792d9b46238c4cfe365e0ba342b3bdf891048f8795df8962cd 23d_checkComOn
5151
b7b13da87eeafe5dbd0f0d1810e2f4e69dc02c8c1e0697f8c7847740dc73a4fb bech32
5252
6c5df521e2848c6767f878bbe81a7ec077ff8d1b0dbd01819aea45e1701d5a4a token-metadata-creator
5353
0ae1c4ae68451994edceafc2282af23ef5f1fdd641efb907c769ef135c701e03 catalyst-toolbox
54-
73d98d5a83c59e822722abdebc969f66205e03659295c054380dbf583f432302 cardano-signer
54+
d03227995f13b46fc7851b1dcd53582b95a9e9eacd1eaa68b9a84db49b0a022c cardano-signer

cardano/testnet/00_common.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,9 @@ if [[ "${adahandleAPI: -1}" == "/" ]]; then adahandleAPI=${adahandleAPI%?}; fi #
337337
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
338338

339339
#Don't allow to overwrite the needed Versions, so we set it after the overwrite part
340-
minCliVersion="10.14.0" #minimum allowed cli version for this script-collection version
340+
minCliVersion="11.0.0" #minimum allowed cli version for this script-collection version
341341
maxCliVersion="99.99.9" #maximum allowed cli version, 99.99.9 = no limit so far
342-
minNodeVersion="10.5.3" #minimum allowed node version for this script-collection version
342+
minNodeVersion="11.0.0" #minimum allowed node version for this script-collection version
343343
maxNodeVersion="99.99.9" #maximum allowed node version, 99.99.9 = no limit so far
344344
minLedgerCardanoAppVersion=${ENV_MINLEDGERCARDANOAPPVERSION:-"7.1.4"} #minimum version for the cardano-app on the Ledger HW-Wallet
345345
minTrezorCardanoAppVersion="2.7.2" #minimum version for the firmware on the Trezor HW-Wallet
@@ -1684,12 +1684,12 @@ queryLight_drepInfo() { #${1} = drep-id(bech) to query
16841684
if [ $? -ne 0 ]; then echo -e "Query via Koios-API (${koiosAPI}) failed, not a JSON response."; exit 1; fi; #reponse is not a json file
16851685

16861686
#check if the drepID is registered, if not, return an empty array
1687-
if [[ $(jq -r ".[0].registered" <<< "${responseJSON}" 2> /dev/null) != "true" ]]; then
1687+
if [[ $(jq -r ".[0].drep_status" <<< "${responseJSON}" 2> /dev/null) != "registered" ]]; then
16881688
printf "[]"; #drepID not registered on chain, return an empty array
16891689
else
16901690

16911691
local hasScript; local delegatedStake; local drepDeposit; local drepHex; local drepExpiry; local drepAnchorUrl; local drepAnchorHash; #define local variables so we can read it in one go with the next jq command
1692-
{ read hasScript; read delegatedStake; read drepDeposit; read drepHex; read drepExpiry; read drepAnchorUrl; read drepAnchorHash; } <<< $(jq -r "\"\(.[0].has_script)\" // \"null\", .[0].amount // \"null\", .[0].deposit // \"null\", .[0].hex // \"null\", .[0].expires_epoch_no // \"null\", .[0].url // \"-\", .[0].hash // \"-\"" <<< "${responseJSON}" 2> /dev/null)
1692+
{ read hasScript; read delegatedStake; read drepDeposit; read drepHex; read drepExpiry; read drepAnchorUrl; read drepAnchorHash; } <<< $(jq -r "\"\(.[0].has_script)\" // \"null\", .[0].amount // \"null\", .[0].deposit // \"null\", .[0].hex // \"null\", .[0].expires_epoch_no // \"null\", .[0].meta_url // \"-\", .[0].meta_hash // \"-\"" <<< "${responseJSON}" 2> /dev/null)
16931693

16941694
#set the hash-type
16951695
if [[ "${hasScript}" == "false" ]]; then hashType="keyHash"; else hashType="scriptHash"; fi

cardano/testnet/cardano-signer

3 KB
Binary file not shown.

0 commit comments

Comments
 (0)