From fb7bee1495183b0daebbf3c8455c3198216d4c6c Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Tue, 22 Jul 2025 11:32:19 +0530 Subject: [PATCH] Add steps to publish deployment cost record --- deploy/deployment-cost.yml | 5 ++ deploy/publish-deployment-cost.md | 91 +++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 deploy/deployment-cost.yml create mode 100644 deploy/publish-deployment-cost.md diff --git a/deploy/deployment-cost.yml b/deploy/deployment-cost.yml new file mode 100644 index 0000000..bfbf734 --- /dev/null +++ b/deploy/deployment-cost.yml @@ -0,0 +1,5 @@ +record: + type: ApplicationDeploymentCostRecord + amount: "5" + currency: "USD" + version: 1.0.0 diff --git a/deploy/publish-deployment-cost.md b/deploy/publish-deployment-cost.md new file mode 100644 index 0000000..7078070 --- /dev/null +++ b/deploy/publish-deployment-cost.md @@ -0,0 +1,91 @@ +# publish-deployment-cost + +## Prerequisites + +- [laconic-registry-cli](https://git.vdb.to/cerc-io/laconic-registry-cli#install) + +## Setup + +- Go to `deploy` directory: + + ```bash + cd deploy + ``` + +- Configure `userKey` in the [registry CLI config](./config.yml): + + ```bash + nano config.yml + ``` + +- Update `cost` and `currency` in [deployment-cost.yml](./deployment-cost.yml) file as required: + + ```bash + nano deployment-cost.yml + ``` + +## Create Bond + +- Create bond: + + ```bash + laconic registry bond create --type alnt --quantity 1000 + ``` + +- Get bond info: + +```bash + laconic registry bond get --id +``` + +## Publish Record + +- Publish a record + + ```bash + laconic registry record publish --filename deployment-cost.yml --bond-id --gas 250000 --fees 250alnt + + { id: 'bafyreic3auqajv...' } + ``` + +- Get record info: + + ```bash + laconic registry record get --id + ``` + +## Reserve a New Authority + +- Reserve authority: + + ```bash + laconic registry authority reserve laconic + ``` + +- Check authority info: + + ```bash + laconic registry authority whois laconic + ``` + + - Note down auction ID from authority info as it is required in next steps + +- Get auction info: + + ```bash + laconic registry auction get + ``` + +- Commit an auction bid: + + ```bash + laconic registry auction bid commit 25000000 alnt + + Reveal file: ./out/bafyreiay2rccax64yn4ljhvzvm3jkbebvzheyucuma5jlbpzpzd5i5gjuy.json + ``` + +- Reveal bid: + + ```bash + laconic registry auction bid reveal ./out/bafyreiay2rccax64yn4ljhvzvm3jkbebvzheyucuma5jlbpzpzd5i5gjuy.json + ```