Skip to content

Commit

Permalink
re-arrange order
Browse files Browse the repository at this point in the history
  • Loading branch information
Scitz0 committed Nov 4, 2024
1 parent f591fe7 commit 822e8f2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/cnode-helper-scripts/cntools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1141,14 +1141,14 @@ function main {
getDRepIds ${vote_delegation_type} ${vote_delegation_hash}
println "$(printf "%-20s ${FG_DGRAY}: CIP-105 =>${NC} ${FG_LGRAY}%s${NC}" "Delegation" "${drep_id}")"
println "$(printf "%-20s ${FG_DGRAY}: CIP-129 =>${NC} ${FG_LGRAY}%s${NC}" "" "${drep_id_cip129}")"
if [[ -n ${walletName} ]]; then
println "$(printf "%-20s ${FG_DGRAY}: Wallet =>${NC} ${FG_GREEN}%s${NC}" "" "${walletName}")"
fi
if [[ ${vote_delegation_type} = keyHash ]]; then
println "$(printf "%-20s ${FG_DGRAY}:${NC} ${FG_LGRAY}%s${NC}" "DRep Type" "Key")"
else
println "$(printf "%-20s ${FG_DGRAY}:${NC} ${FG_LGRAY}%s${NC}" "DRep Type" "MultiSig")"
fi
if [[ -n ${walletName} ]]; then
println "$(printf "%-20s ${FG_DGRAY}: Wallet =>${NC} ${FG_GREEN}%s${NC}" "" "${walletName}")"
fi
if getDRepStatus ${vote_delegation_type} ${vote_delegation_hash}; then
[[ $(getEpoch) -lt ${drep_expiry} ]] && expire_status="${FG_GREEN}active${NC}" || expire_status="${FG_RED}inactive${NC} (vote power does not count)"
println "$(printf "%-20s ${FG_DGRAY}:${NC} epoch ${FG_LBLUE}%s${NC} - %s" "DRep expiry" "${drep_expiry}" "${expire_status}")"
Expand Down Expand Up @@ -3905,14 +3905,14 @@ function main {
getDRepIds ${vote_delegation_type} ${vote_delegation_hash}
println "$(printf "%-20s ${FG_DGRAY}: CIP-105 =>${NC} ${FG_LGRAY}%s${NC}" "Delegation" "${drep_id}")"
println "$(printf "%-20s ${FG_DGRAY}: CIP-129 =>${NC} ${FG_LGRAY}%s${NC}" "" "${drep_id_cip129}")"
if [[ -n ${walletName} ]]; then
println "$(printf "%-20s ${FG_DGRAY}: Wallet =>${NC} ${FG_GREEN}%s${NC}" "" "${walletName}")"
fi
if [[ ${vote_delegation_type} = keyHash ]]; then
println "$(printf "%-20s ${FG_DGRAY}:${NC} ${FG_LGRAY}%s${NC}" "DRep Type" "Key")"
else
println "$(printf "%-20s ${FG_DGRAY}:${NC} ${FG_LGRAY}%s${NC}" "DRep Type" "MultiSig")"
fi
if [[ -n ${walletName} ]]; then
println "$(printf "%-20s ${FG_DGRAY}: Wallet =>${NC} ${FG_GREEN}%s${NC}" "" "${walletName}")"
fi
if getDRepStatus ${vote_delegation_type} ${vote_delegation_hash}; then
[[ ${current_epoch} -lt ${drep_expiry} ]] && expire_status="${FG_GREEN}active${NC}" || expire_status="${FG_RED}inactive${NC} (vote power does not count)"
println "$(printf "%-20s ${FG_DGRAY}:${NC} epoch ${FG_LBLUE}%s${NC} - %s" "DRep expiry" "${drep_expiry}" "${expire_status}")"
Expand Down

0 comments on commit 822e8f2

Please sign in to comment.