From 2830ca81b55105f5e2dcfb28a4e7f891a8c09ed3 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Wed, 7 Aug 2024 16:56:30 +0530 Subject: [PATCH] Update join as validator steps --- .../stacks/testnet-laconicd/README.md | 62 +++++++++++++------ 1 file changed, 42 insertions(+), 20 deletions(-) diff --git a/stack-orchestrator/stacks/testnet-laconicd/README.md b/stack-orchestrator/stacks/testnet-laconicd/README.md index b9d681d..a0a23f7 100644 --- a/stack-orchestrator/stacks/testnet-laconicd/README.md +++ b/stack-orchestrator/stacks/testnet-laconicd/README.md @@ -14,7 +14,9 @@ Instructions for running a laconicd testnet full node and joining as a validator * Testnet genesis file and peer node address -* Register your laconic address as a participant on the `Laconic network` using the [Onboarding App](https://loro-signup.laconic.com/) +* Get the mnemonic on creating the wallet + +* Register your laconic address as a participant using the [Onboarding App](https://loro-signup.laconic.com/) * Read and accept the `Terms and Conditions` @@ -28,16 +30,12 @@ Instructions for running a laconicd testnet full node and joining as a validator * If using the wallet website, enter WalletConnect URI for pairing - * In the onboarding app, choose Alice's nitro and laconicd account to onboard - - * Use nitro accounts for which ledger channels have been created on L2 + * In the onboarding app, choose your nitro and laconicd account to onboard * Sign using the nitro key * Approve sign request on Wallet - * Perform the user verification steps - * Select the desired participant role (`Validator` or `Participant`) and accept the onboarding terms and conditions * In the next step, fund your laconic account by clicking on the `REQUEST TOKENS FROM FAUCET` button; ensure that the displayed balance is updated @@ -151,34 +149,58 @@ laconic-so deployment --dir testnet-laconicd-deployment start ## Join as testnet validator -* Open the onboarding app : - -* Select your laconic address - -* Get your validator node's public key: +* Create / import a new key pair: ```bash - laconic-so deployment --dir testnet-laconicd-deployment exec laconicd 'laconicd cometbft show-validator' | jq '.key' + # 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" - # Example response - # "av1WrE11aXWdmv1umCzzM03r0/VwTHNaWH+Fw7kRnIw=" + # Query the keystore for your account's address + laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd keys show -a" ``` -* Paste the public key in the `Validator Public Key` field in the onboarding app. +* Check balance for your account: -* Set the node moniker in the `Moniker` field in the onboarding app. + ```bash + laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd query bank balances " + ``` -* Check the transaction details +* Create required validator configuration: -* Click on `SEND TRANSACTION` to approve it. Sign the transaction using the wallet. + ```bash + # Note: + # Replace with your node's moniker in command below -* After successful transaction, view the staking validators: + laconic-so deployment --dir testnet-laconicd-deployment exec laconicd 'cat < -validator.json + { + "pubkey": $(laconicd cometbft show-validator), + "amount": "1000000000000000alnt", + "moniker": "", + "commission-rate": "0.1", + "commission-max-rate": "0.2", + "commission-max-change-rate": "0.01", + "min-self-delegation": "1" + } + EOF' + ``` + +* Create a validator: + + ```bash + laconic-so deployment --dir testnet-laconicd-deployment exec laconicd 'laconicd tx staking create-validator -validator.json \ + --fees 500000alnt \ + --chain-id=laconic_9000-1 \ + --from ' + ``` + +* View staking validators: ```bash laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd query staking validators" ``` - * Check that in the list of validators, your node moniker exists + * Check that in the list of validators `` exists ## Clean up