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: