2.6 KiB
2.6 KiB
publish-pricing
Prerequisites
-
Install packages:
npm install
Setup
-
Configure
userKeyin the registry CLI config:nano config.yml
Create Bond
-
Create bond:
npm run laconic -- bond create --type alnt --quantity 100000000 -
Get bond info:
npm run laconic -- bond get --id <bond-id>
Publish Record for Cost of alnt
-
Update
for,costandcurrencyfields in pricing.yml file:... for: "alnt" amount: "0.000385802" currency: "USD" ... -
Publish the record:
npm run laconic -- record publish --filename deploy/pricing.yml --bond-id <bond-id> --gas 250000 --fees 250000alnt -
Get record info:
npm run laconic -- record get --id <record-id>
Publish Record for Cost of Deployment
-
Update
for,costandcurrencyfields in pricing.yml file:... for: "webapp-deployment" amount: "12960" currency: "alnt" ... -
Publish the record:
npm run laconic -- record publish --filename deploy/pricing.yml --bond-id <bond-id> --gas 250000 --fees 250000alnt -
Get record info:
npm run laconic -- record get --id <record-id>
Reserve a New Authority (optional)
-
Reserve authority:
npm run laconic -- authority reserve laconic -
Check authority info:
npm run laconic -- authority whois laconic- Note down auction ID from authority info as it is required in next steps
-
Get auction info:
npm run laconic -- auction get <auction-id> -
Commit an auction bid:
npm run laconic -- auction bid commit <auction-id> 25000000 alnt Reveal file: ./out/bafyreiay2rccax64yn4ljhvzvm3jkbebvzheyucuma5jlbpzpzd5i5gjuy.json -
Reveal bid:
npm run laconic -- auction bid reveal <auction-id> ./out/bafyreiay2rccax64yn4ljhvzvm3jkbebvzheyucuma5jlbpzpzd5i5gjuy.json
Set Authority Bond
-
Set authority bond after winning auction:
npm run laconic -- authority bond set laconic <bond-id>
Set Record Name
NOTE: To set record name an authority with an authority bond is required
-
Set record name for cost of alnt record
npm run laconic -- name set lrn://<authority>/pricing/alnt <record-id> -
Set record name for cost of deployment record
npm run laconic -- name set lrn://<authority>/pricing/webapp-deployment <record-id>
Delete Record Name
-
Delete record name:
npm run laconic -- name delete <record-name>