From 6690fa3899b8d9c0aa706aa262d5b1b91e558a56 Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Thu, 24 Jul 2025 19:06:32 +0530 Subject: [PATCH] Update steps to publish records --- deploy/publish-pricing.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/deploy/publish-pricing.md b/deploy/publish-pricing.md index 44eb3c1..7133299 100644 --- a/deploy/publish-pricing.md +++ b/deploy/publish-pricing.md @@ -16,7 +16,7 @@ nano config.yml ``` -## Create Bond +## Create Bond (optional) - Create bond: @@ -30,7 +30,11 @@ npm run laconic -- bond get --id ``` -## Publish Record for Cost of alnt +## Publish Record + +NOTE: Publishing record requires a bond with enough funds, if you don't have a bond check [steps to create bond](#create-bond-optional) + +### Publish Record for Cost of alnt - Update `for`, `cost` and `currency` fields in [pricing.yml](./pricing.yml) file: @@ -42,10 +46,14 @@ ... ``` + - Amount calculation: + - Cost of 1 deployment is `12960` in terms of `alnt` or `5` in terms of `USD` + - So cost of 1 `alnt` comes out be `0.000385802 USD` rounded off to 6 decimals + - Publish the record: ```bash - npm run laconic -- record publish --filename deploy/pricing.yml --bond-id --gas 250000 --fees 250000alnt + npm run laconic -- record publish --filename deploy/pricing.yml --bond-id ``` - Get record info: @@ -54,7 +62,7 @@ npm run laconic -- record get --id ``` -## Publish Record for Cost of Deployment +### Publish Record for Cost of Deployment - Update `for`, `cost` and `currency` fields in [pricing.yml](./pricing.yml) file: @@ -69,7 +77,7 @@ - Publish the record: ```bash - npm run laconic -- record publish --filename deploy/pricing.yml --bond-id --gas 250000 --fees 250000alnt + npm run laconic -- record publish --filename deploy/pricing.yml --bond-id ``` - Get record info: