Run laconic-console
stack as part of fixturenet deployment
#1
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user