From 4026195be365ddcc6eb322728ef821b8473d6682 Mon Sep 17 00:00:00 2001 From: Adw8 Date: Thu, 1 Aug 2024 11:11:50 +0530 Subject: [PATCH] Use constant for denom in README --- README.md | 20 +++++++++++++------- demo/README.md | 5 ++++- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b8dbdf4..05d1911 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,12 @@ laconicd keys export alice --keyring-backend test --unarmored-hex --unsafe In `config.yml` file assign the account private key to `userKey`. +Set a denom for further use: + +```bash +export DENOM=alnt +``` + ## Gas and Fees https://docs.evmos.org/users/basics/gas.html @@ -68,7 +74,7 @@ The `gas` and `fees` can be set to some default values in the config, and can be Example: ```bash -$ laconic registry bond create --type alnt --quantity 100000000000 --gas 200000 --fees 200000alnt +$ laconic registry bond create --type $DENOM --quantity 100000000000 --gas 200000 --fees 200000$DENOM ``` ## Operations @@ -132,7 +138,7 @@ $ laconic registry account get --address laconic15za32wly5exgcrt2zfr8php4ya49n5y Send tokens: ```bash -$ laconic registry tokens send --address laconic15za32wly5exgcrt2zfr8php4ya49n5y7masu7k --type alnt --quantity 1000000000 +$ laconic registry tokens send --address laconic15za32wly5exgcrt2zfr8php4ya49n5y7masu7k --type $DENOM --quantity 1000000000 [ { "address": "laconic1pmuxrcnuhhf8qdllzuf2ctj2tnwwcg6yswqnyd", @@ -177,7 +183,7 @@ record: Publish record (see below for commands to create/query bonds): ```bash -$ laconic registry record publish --filename watcher.yml --bond-id 58508984500aa2ed18e059fa8203b40fbc9828e3bfa195361335c4e4524c4785 --gas 250000 --fees 250000alnt +$ laconic registry record publish --filename watcher.yml --bond-id 58508984500aa2ed18e059fa8203b40fbc9828e3bfa195361335c4e4524c4785 --gas 250000 --fees 250000$DENOM { id: 'bafyreic3auqajvgszh3vfjsouew2rsctswukc346dmlf273ln4g6iyyhba' } ``` @@ -322,7 +328,7 @@ $ laconic registry auction get 0294fb2e3659c347b53a6faf4bef041fd934f0f3ab13df6d2 Commit an auction bid: ```bash -$ laconic registry auction bid commit 0294fb2e3659c347b53a6faf4bef041fd934f0f3ab13df6d2468d5d63abacd48 25000000 alnt +$ laconic registry auction bid commit 0294fb2e3659c347b53a6faf4bef041fd934f0f3ab13df6d2468d5d63abacd48 25000000 $DENOM Reveal file: ./out/bafyreiay2rccax64yn4ljhvzvm3jkbebvzheyucuma5jlbpzpzd5i5gjuy.json ``` @@ -426,7 +432,7 @@ $ laconic registry name resolve lrn://laconic/watcher/erc20 Create bond: ```bash -$ laconic registry bond create --type alnt --quantity 1000 +$ laconic registry bond create --type $DENOM --quantity 1000 ``` List bonds: @@ -506,13 +512,13 @@ $ laconic registry bond list --owner laconic15za32wly5exgcrt2zfr8php4ya49n5y7mas Refill bond: ```bash -$ laconic registry bond refill --id 58508984500aa2ed18e059fa8203b40fbc9828e3bfa195361335c4e4524c4785 --type alnt --quantity 1000 +$ laconic registry bond refill --id 58508984500aa2ed18e059fa8203b40fbc9828e3bfa195361335c4e4524c4785 --type $DENOM --quantity 1000 ``` Withdraw funds from bond: ```bash -$ laconic registry bond withdraw --id 58508984500aa2ed18e059fa8203b40fbc9828e3bfa195361335c4e4524c4785 --type alnt --quantity 500 +$ laconic registry bond withdraw --id 58508984500aa2ed18e059fa8203b40fbc9828e3bfa195361335c4e4524c4785 --type $DENOM --quantity 500 ``` Cancel bond: diff --git a/demo/README.md b/demo/README.md index ae9dbe1..e22b611 100644 --- a/demo/README.md +++ b/demo/README.md @@ -33,8 +33,11 @@ # Set the output as 'userKey' in config.yml # userKey: + # Set a denom + export DENOM=alnt + # Create a bond - laconic --config config.yml registry bond create --type alnt --quantity 100000000000 + laconic --config config.yml registry bond create --type $DENOM --quantity 100000000000 # Get the bond id laconic --config config.yml registry bond list | jq -r '.[].id'