Add instructions for testnet validator onboarding #17

Merged
ashwin merged 5 commits from iv-demo-readme into main 2024-08-07 13:35:18 +00:00
Showing only changes of commit 2830ca81b5 - Show all commits

View File

@ -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 <https://wallet.laconic.com/>
* 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 : <https://loro-signup.laconic.com/validator>
* 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 <key-name> --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 <key-name> -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 <account-address>"
```
* Check the transaction details
* Create required validator configuration:
* Click on `SEND TRANSACTION` to approve it. Sign the transaction using the wallet.
```bash
# Note:
# Replace <your-node-moniker> 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 <<EOF > <your-node-moniker>-validator.json
{
"pubkey": $(laconicd cometbft show-validator),
"amount": "1000000000000000alnt",
"moniker": "<your-node-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 <your-node-moniker>-validator.json \
--fees 500000alnt \
--chain-id=laconic_9000-1 \
--from <key-name>'
```
* 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 `<your-node-moniker>` exists
## Clean up