From 2691274351c7a388fc193d2a2745331dfa5ae6c8 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Wed, 7 Aug 2024 17:08:10 +0530 Subject: [PATCH] Use a variable for node moniker --- .../stacks/testnet-laconicd/README.md | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/stack-orchestrator/stacks/testnet-laconicd/README.md b/stack-orchestrator/stacks/testnet-laconicd/README.md index a0a23f7..c2bb942 100644 --- a/stack-orchestrator/stacks/testnet-laconicd/README.md +++ b/stack-orchestrator/stacks/testnet-laconicd/README.md @@ -14,7 +14,12 @@ Instructions for running a laconicd testnet full node and joining as a validator * Testnet genesis file and peer node address -* Get the mnemonic on creating the wallet +* Mnemonic from the [wallet](https://wallet.laconic.com) + +### Participant Onboarded + +* Visit and click on `Create wallet` + * Save the mnemonic for further usage * Register your laconic address as a participant using the [Onboarding App](https://loro-signup.laconic.com/) @@ -149,15 +154,17 @@ laconic-so deployment --dir testnet-laconicd-deployment start ## Join as testnet validator -* Create / import a new key pair: +* Import a key pair: ```bash + KEY_NAME=alice + # Restore existing key with mnemonic seed phrase # You will be prompted to enter mnemonic seed - laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd keys add --recover" + laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd keys add $KEY_NAME --recover" # Query the keystore for your account's address - laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd keys show -a" + laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd keys show $KEY_NAME -a" ``` * Check balance for your account: @@ -169,14 +176,14 @@ laconic-so deployment --dir testnet-laconicd-deployment start * Create required validator configuration: ```bash - # Note: - # Replace with your node's moniker in command below + # Replace with your node's moniker + NODE_MONIKER= - laconic-so deployment --dir testnet-laconicd-deployment exec laconicd 'cat < -validator.json + laconic-so deployment --dir testnet-laconicd-deployment exec laconicd 'cat < $NODE_MONIKER-validator.json { "pubkey": $(laconicd cometbft show-validator), "amount": "1000000000000000alnt", - "moniker": "", + "moniker": "$NODE_MONIKER", "commission-rate": "0.1", "commission-max-rate": "0.2", "commission-max-change-rate": "0.01", @@ -188,10 +195,10 @@ laconic-so deployment --dir testnet-laconicd-deployment start * Create a validator: ```bash - laconic-so deployment --dir testnet-laconicd-deployment exec laconicd 'laconicd tx staking create-validator -validator.json \ + laconic-so deployment --dir testnet-laconicd-deployment exec laconicd 'laconicd tx staking create-validator $NODE_MONIKER-validator.json \ --fees 500000alnt \ --chain-id=laconic_9000-1 \ - --from ' + --from $KEY_NAME' ``` * View staking validators: