Update steps to publish records

This commit is contained in:
Shreerang Kale 2025-07-24 19:06:32 +05:30
parent aa1f6e461a
commit 6690fa3899

View File

@ -16,7 +16,7 @@
nano config.yml
```
## Create Bond
## Create Bond (optional)
- Create bond:
@ -30,7 +30,11 @@
npm run laconic -- bond get --id <bond-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 <bond-id> --gas 250000 --fees 250000alnt
npm run laconic -- record publish --filename deploy/pricing.yml --bond-id <bond-id>
```
- Get record info:
@ -54,7 +62,7 @@
npm run laconic -- record get --id <record-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 <bond-id> --gas 250000 --fees 250000alnt
npm run laconic -- record publish --filename deploy/pricing.yml --bond-id <bond-id>
```
- Get record info: