Add steps to create multisig and sign transaction
This commit is contained in:
parent
995ab4856e
commit
02da5f309d
74
docs/demo.md
74
docs/demo.md
@ -188,6 +188,8 @@
|
||||
laconic-so deployment --dir $DATA_DIRECTORY/$MAINNET_DEPLOYMENT_DIR logs laconicd -f
|
||||
```
|
||||
|
||||
- The chain will start running after some time.
|
||||
|
||||
- Verify that validator and TMKMS pubkeys match
|
||||
|
||||
- Get validator pubkey on chain
|
||||
@ -382,7 +384,7 @@
|
||||
- Set envs:
|
||||
|
||||
```bash
|
||||
# Set multisig app deployment directory
|
||||
# Set multisig app deployment directory
|
||||
export MULTISIG_DEPLOYMENT_DIR=cosmos-multisig-deployment
|
||||
```
|
||||
|
||||
@ -398,7 +400,7 @@
|
||||
next_public_multichain: false
|
||||
next_public_registry_name: "laconic"
|
||||
next_public_logo: ""
|
||||
next_public_chain_id: "laconic_9000-1"
|
||||
next_public_chain_id: "laconic-mainnet"
|
||||
next_public_chain_display_name: "Laconic Network"
|
||||
next_public_node_addresses: '["http://localhost:26657"]'
|
||||
next_public_denom: "alnt"
|
||||
@ -427,6 +429,74 @@
|
||||
ansible-playbook -v -i localhost, -c local ~/cerc/laconicd-stack/playbooks/cosmos-multisig-app/cosmos-multisig-app-start.yml
|
||||
```
|
||||
|
||||
- Check logs to ensure that the app is running:
|
||||
|
||||
```bash
|
||||
laconic-so deployment --dir $DATA_DIRECTORY/$MULTISIG_DEPLOYMENT_DIR logs laconicd -f
|
||||
```
|
||||
|
||||
- The app will be running on `http://localhost:3000/laconic`
|
||||
|
||||
### Create a multisig with both the validator accounts
|
||||
|
||||
- Click on `I don't have a multisig` and add the addresses of your validators as member 1 and member 2
|
||||
|
||||
- Set the threshold to 2 out of 2 members (Both the validators should sign the TX to broadcast it)
|
||||
|
||||
- Click on `Submit` and `Create multisig`
|
||||
|
||||
- Copy your multisig address and send some funds to the address
|
||||
|
||||
```
|
||||
laconic-so deployment --dir $DATA_DIRECTORY/$MAINNET_DEPLOYMENT_DIR exec laconicd "laconicd tx bank send validator-2 <multisig_address> 1000000alnt --fees 2000alnt --keyring-backend test"
|
||||
```
|
||||
|
||||
### Create and sign transaction
|
||||
|
||||
- Go to `home`, paste your multisig address and click on `Use this multisig`
|
||||
|
||||
- You will see the multisig members and holdings for the address
|
||||
|
||||
- Click on `Create new transaction` and then click on `Bank Send` under `Add New Msg`
|
||||
|
||||
- Enter the Recipient Address, amount to be transfered and memo (optional)
|
||||
|
||||
- Click on create transaction
|
||||
|
||||
- Add accounts in keplr wallet for signing the transaction
|
||||
|
||||
- Open keplr wallet and click on the user icon in the top right corner
|
||||
|
||||
- Click on `Add wallet`, then select `Import an existing wallet` and go to `Use recovery phrase or private key`
|
||||
|
||||
- Select the `Private key` tab and then paste the private key of the validator account and click on import
|
||||
|
||||
- Set a name for the wallet (used when connecting wallet to app for signing transaction) and click on next
|
||||
|
||||
- Search for `Laconic network` and select it, then click on `Save`
|
||||
|
||||
- Follow the above steps for the second validator account
|
||||
|
||||
- Go back to the multisig info page and scroll down to the `Transactions` section
|
||||
|
||||
- Click on `Verify identity` and connect the app to your validator account in the keplr wallet
|
||||
|
||||
- After approving the connection, you will see the list of transactions created by your multisig
|
||||
|
||||
- Click on your transaction and under `Choose wallet to sign`, click on connect keplr
|
||||
|
||||
- After connecting the wallet, click on `Sign transaction` and approve the transaction
|
||||
|
||||
- Go back to multisig info page, switch to the second validator account in keplr wallet and repeat the same process to sign the transaction with the second validator account
|
||||
|
||||
- Once the transaction is signed by both the validators, click on `Broadcast Transaction`.
|
||||
|
||||
- Confirm funds transfer by checking balance of recipient address
|
||||
|
||||
```
|
||||
laconic-so deployment --dir $DATA_DIRECTORY/$MAINNET_DEPLOYMENT_DIR exec laconicd "laconicd query bank balances <recipient_address>"
|
||||
```
|
||||
|
||||
## Cleanup
|
||||
|
||||
- Remove deployments and other config files
|
||||
|
@ -14,7 +14,7 @@
|
||||
msg: "Environment variable DATA_DIRECTORY is not set. Please export it before running the playbook."
|
||||
when: lookup('env', 'DATA_DIRECTORY') == ''
|
||||
|
||||
- name: Clone zenith-stack repo
|
||||
- name: Clone cosmos-multisig-ui repo
|
||||
shell: |
|
||||
laconic-so fetch-stack git.vdb.to/cerc-io/cosmos-multisig-ui@v0.1.0 --git-ssh --pull
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
next_public_multichain: false
|
||||
next_public_registry_name: "laconic"
|
||||
next_public_logo: ""
|
||||
next_public_chain_id: "laconic_9000-1"
|
||||
next_public_chain_id: "laconic-mainnet"
|
||||
next_public_chain_display_name: "Laconic Network"
|
||||
next_public_node_addresses: '["http://localhost:26657"]'
|
||||
next_public_denom: "alnt"
|
||||
|
Loading…
Reference in New Issue
Block a user