Add steps to publish deployment cost record
This commit is contained in:
parent
fbe4eed31d
commit
155fecc060
5
deploy/deployment-cost.yml
Normal file
5
deploy/deployment-cost.yml
Normal file
@ -0,0 +1,5 @@
|
||||
record:
|
||||
type: ApplicationDeploymentCostRecord
|
||||
amount: "5"
|
||||
currency: "USD"
|
||||
version: 1.0.0
|
91
deploy/publish-deployment-cost.md
Normal file
91
deploy/publish-deployment-cost.md
Normal file
@ -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 <bond-id>
|
||||
```
|
||||
|
||||
## Publish Record
|
||||
|
||||
- Publish a record
|
||||
|
||||
```bash
|
||||
laconic registry record publish --filename deployment-cost.yml --bond-id <bond-id> --gas 250000 --fees 250alnt
|
||||
|
||||
{ id: 'bafyreic3auqajv...' }
|
||||
```
|
||||
|
||||
- Get record info:
|
||||
|
||||
```bash
|
||||
laconic registry record get <record-id> --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 <auction-id>
|
||||
```
|
||||
|
||||
- Commit an auction bid:
|
||||
|
||||
```bash
|
||||
laconic registry auction bid commit <auction-id> 25000000 alnt
|
||||
|
||||
Reveal file: ./out/bafyreiay2rccax64yn4ljhvzvm3jkbebvzheyucuma5jlbpzpzd5i5gjuy.json
|
||||
```
|
||||
|
||||
- Reveal bid:
|
||||
|
||||
```bash
|
||||
laconic registry auction bid reveal <auction-id> ./out/bafyreiay2rccax64yn4ljhvzvm3jkbebvzheyucuma5jlbpzpzd5i5gjuy.json
|
||||
```
|
Loading…
Reference in New Issue
Block a user