Run laconic-console stack as part of fixturenet deployment #1

Merged
ashwin merged 7 commits from pm-add-cli-and-console into main 2024-06-25 06:43:23 +00:00
2 changed files with 14 additions and 5 deletions
Showing only changes of commit f80a76117c - Show all commits

View File

@ -130,6 +130,18 @@ laconic-so deployment --dir laconic-console-deployment start
laconic-so deployment --dir laconic-console-deployment exec cli "laconic registry status"
```
## Perform operations
* Example (bond creation):
```bash
# Get the PK from your node
ALICE_PK=$(echo y | laconic-so deployment --dir fixturenet-laconicd-deployment exec laconicd "laconicd keys export alice --unarmored-hex --unsafe")
# Create a bond:
laconic-so deployment --dir laconic-console-deployment exec cli "laconic registry bond create --type photon --quantity 100000000000 --user-key $ALICE_PK" | jq -r '.bondId'
```
## Demo
* Follow the [records-demo](./records-demo.md) to try loading data into registry

View File

@ -5,11 +5,8 @@
* Set account key and bond id in the CLI config:
```bash
# Get the PK from your node
ALICE_PK=$(echo y | laconic-so deployment --dir fixturenet-laconicd-deployment exec laconicd "laconicd keys export alice --unarmored-hex --unsafe")
# Create a bond:
BOND_ID=$(laconic-so deployment --dir laconic-console-deployment exec cli "laconic registry bond create --type photon --quantity 100000000000 --user-key $ALICE_PK" | jq -r '.bondId')
# Set bond id to the bond created earlier or create a new one
BOND_ID=<bond-id>
# Update CLI config
laconic-so deployment --dir laconic-console-deployment exec cli "CERC_LACONICD_USER_KEY=${ALICE_PK} CERC_LACONICD_BOND_ID=${BOND_ID} CERC_LACONICD_GAS=900000 /app/create-config.sh"