Skip to content

Commit

Permalink
Docs and output update
Browse files Browse the repository at this point in the history
  • Loading branch information
Scitz0 committed Jul 4, 2020
1 parent bec1069 commit 303e17e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 7 additions & 2 deletions scripts/cnode-helper-scripts/cntools.library
Expand Up @@ -734,16 +734,21 @@ isWalletRegistered() {
registerStakeWallet() {

echo ""
say " -- Register Wallet ${GREEN}${1}${NC} on Chain --"
waitForInput "Wallet not registered on chain, press any key to continue with registration"

echo ""
say " ## Register Stake Wallet ${GREEN}${1}${NC} on Chain ##" "log"
echo ""

# Wallet key filenames
payment_sk_file="${WALLET_FOLDER}/${1}/${WALLET_PAY_SK_FILENAME}"
stake_sk_file="${WALLET_FOLDER}/${1}/${WALLET_STAKE_SK_FILENAME}"
stake_vk_file="${WALLET_FOLDER}/${1}/${WALLET_STAKE_VK_FILENAME}"
stake_cert_file="${WALLET_FOLDER}/${1}/${WALLET_STAKE_CERT_FILENAME}"

say "Creating registration certificate" "log" && echo
echo ""
say " -- Creating registration certificate --" "log"
echo ""
${CCLI} shelley stake-address registration-certificate --stake-verification-key-file "${stake_vk_file}" --out-file "${stake_cert_file}"

say " -- Protocol Parameters --"
Expand Down
6 changes: 4 additions & 2 deletions scripts/cnode-helper-scripts/cntools.sh
Expand Up @@ -912,7 +912,7 @@ case $OPERATION in
#Generated Files
delegation_cert_file="${WALLET_FOLDER}/${wallet_name}/${WALLET_DELEGCERT_FILENAME}"

say "-- creating delegation cert --" "log"
say " -- creating delegation cert --" "log"
${CCLI} shelley stake-address delegation-certificate --stake-verification-key-file "${stake_vk_file}" --cold-verification-key-file "${pool_coldkey_vk_file}" --out-file "${delegation_cert_file}"

if ! delegate "${stake_vk_file}" "${stake_sk_file}" "${pay_payment_sk_file}" "${base_addr}" "${pool_coldkey_vk_file}" "${delegation_cert_file}" ; then
Expand Down Expand Up @@ -1376,11 +1376,13 @@ case $OPERATION in
pool_regcert_file="${POOL_FOLDER}/${pool_name}/${POOL_REGCERT_FILENAME}"
pool_pledgecert_file="${POOL_FOLDER}/${pool_name}/${POOL_PLEDGECERT_FILENAME}"

echo ""
say " ## Register Stake Pool ##" "log"
echo ""
say " -- creating registration cert --" "log"
echo ""
${CCLI} shelley stake-pool registration-certificate --cold-verification-key-file "${pool_coldkey_vk_file}" --vrf-verification-key-file "${pool_vrf_vk_file}" --pool-pledge ${pledge_lovelace} --pool-cost ${cost_lovelace} --pool-margin ${margin_fraction} --pool-reward-account-verification-key-file "${stake_vk_file}" --pool-owner-stake-verification-key-file "${stake_vk_file}" --out-file "${pool_regcert_file}" --testnet-magic ${NWMAGIC} --metadata-url "${meta_json_url}" --metadata-hash "$(${CCLI} shelley stake-pool metadata-hash --pool-metadata-file ${pool_meta_file} )" ${relay_output}
say "-- creating delegation cert --" "log"
say " -- creating delegation cert --" "log"
${CCLI} shelley stake-address delegation-certificate --stake-verification-key-file "${stake_vk_file}" --cold-verification-key-file "${pool_coldkey_vk_file}" --out-file "${pool_pledgecert_file}"

say " -- Sending transaction to chain --" "log"
Expand Down

0 comments on commit 303e17e

Please sign in to comment.