Skip to content

Commit b26698b

Browse files
prathamesh0ashwin
authored andcommitted
Update fixturenet-laconicd stack for renaming changes (#891)
Part of [Rename laconic2d to laconicd](https://www.notion.so/Rename-laconic2d-to-laconicd-9028d0c020d24d1288e92ebcb773d7a7) Handles https://git.vdb.to/cerc-io/stack-orchestrator/issues/882, https://git.vdb.to/cerc-io/stack-orchestrator/issues/889 Reviewed-on: https://git.vdb.to/cerc-io/stack-orchestrator/pulls/891 Co-authored-by: Prathamesh Musale <[email protected]> Co-committed-by: Prathamesh Musale <[email protected]>
1 parent 01deac7 commit b26698b

File tree

8 files changed

+84
-109
lines changed

8 files changed

+84
-109
lines changed

.gitea/workflows/triggers/fixturenet-laconicd-test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ Trigger
55
Trigger
66
Trigger
77
Trigger
8+
Trigger
9+
Trigger

docs/laconicd-with-console.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
# Running a laconicd fixturenet with console
22

3-
The following tutorial explains the steps to run a laconicd fixturenet with CLI and web console that displays records in the registry. It is designed as an introduction to Stack Orchestrator and to showcase one component of the Laconic Stack. Prior to Stack Orchestrator, the following 4 repositories had to be cloned and setup manually:
3+
The following tutorial explains the steps to run a laconicd fixturenet with CLI and web console that displays records in the registry. It is designed as an introduction to Stack Orchestrator and to showcase one component of the Laconic Stack. Prior to Stack Orchestrator, the following repositories had to be cloned and setup manually:
44

55
- https://git.vdb.to/cerc-io/laconicd
6-
- https://git.vdb.to/cerc-io/laconic-sdk
76
- https://git.vdb.to/cerc-io/laconic-registry-cli
87
- https://git.vdb.to/cerc-io/laconic-console
98

109
Now, with Stack Orchestrator, it is a few quick commands. Additionally, the `docker` and `docker compose` integration on the back-end allows the stack to easily persist, facilitating workflows.
1110

1211
## Setup laconic-so
1312

14-
To avoid hiccups on Mac M1/M2 and any local machine nuances that may affect the user experience, this tutorial is focused on using a fresh Digital Ocean (DO) droplet with similar specs:
13+
To avoid hiccups on Mac M1/M2 and any local machine nuances that may affect the user experience, this tutorial is focused on using a fresh Digital Ocean (DO) droplet with similar specs:
1514
16 GB Memory / 8 Intel vCPUs / 160 GB Disk.
1615

1716
1. Login to the droplet as root (either by SSH key or password set in the DO console)
@@ -51,7 +50,7 @@ To avoid hiccups on Mac M1/M2 and any local machine nuances that may affect the
5150
1. Get the repositories
5251
5352
```
54-
laconic-so --stack fixturenet-laconic-loaded setup-repositories --include git.vdb.to/cerc-io/laconicd,git.vdb.to/cerc-io/laconic-sdk,git.vdb.to/cerc-io/laconic-registry-cli,git.vdb.to/cerc-io/laconic-console
53+
laconic-so --stack fixturenet-laconic-loaded setup-repositories --include git.vdb.to/cerc-io/laconicd
5554
```
5655
5756
1. Build the containers:
@@ -76,6 +75,8 @@ To avoid hiccups on Mac M1/M2 and any local machine nuances that may affect the
7675
1. Create a deployment directory for the stack:
7776
```
7877
laconic-so --stack fixturenet-laconic-loaded deploy init --output laconic-loaded.spec --map-ports-to-host any-same --config LACONIC_HOSTED_ENDPOINT=$BACKEND_ENDPOINT
78+
79+
# Update port mapping in the laconic-loaded.spec file to resolve port conflicts on host if any
7980
```
8081
```
8182
laconic-so --stack fixturenet-laconic-loaded deploy create --deployment-dir laconic-loaded-deployment --spec-file laconic-loaded.spec
@@ -95,16 +96,15 @@ To avoid hiccups on Mac M1/M2 and any local machine nuances that may affect the
9596
You'll see output from `laconicd` and the block height should be >1 to confirm it is running:
9697
9798
```
98-
laconic-5cd0a80c1442c3044c8b295d26426bae-laconicd-1 | 9:29PM INF indexed block exents height=12 module=txindex server=node
99-
laconic-5cd0a80c1442c3044c8b295d26426bae-laconicd-1 | 9:30PM INF Timed out dur=4976.960115 height=13 module=consensus round=0 server=node step=1
100-
laconic-5cd0a80c1442c3044c8b295d26426bae-laconicd-1 | 9:30PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"D26C088A711F912ADB97888C269F628DA33153795621967BE44DCB43C3D03CA4","parts":{"hash":"22411A20B7F14CDA33244420FBDDAF24450C0628C7A06034FF22DAC3699DDCC8","total":1}},"height":13,"pol_round":-1,"round":0,"signature":"DEuqnaQmvyYbUwckttJmgKdpRu6eVm9i+9rQ1pIrV2PidkMNdWRZBLdmNghkIrUzGbW8Xd7UVJxtLRmwRASgBg==","timestamp":"2023-04-18T21:30:01.49450663Z"} server=node
101-
laconic-5cd0a80c1442c3044c8b295d26426bae-laconicd-1 | 9:30PM INF received complete proposal block hash=D26C088A711F912ADB97888C269F628DA33153795621967BE44DCB43C3D03CA4 height=13 module=consensus server=node
102-
laconic-5cd0a80c1442c3044c8b295d26426bae-laconicd-1 | 9:30PM INF finalizing commit of block hash={} height=13 module=consensus num_txs=0 root=1A8CA1AF139CCC80EC007C6321D8A63A46A793386EE2EDF9A5CA0AB2C90728B7 server=node
103-
laconic-5cd0a80c1442c3044c8b295d26426bae-laconicd-1 | 9:30PM INF minted coins from module account amount=2059730459416582643aphoton from=mint module=x/bank
104-
laconic-5cd0a80c1442c3044c8b295d26426bae-laconicd-1 | 9:30PM INF executed block height=13 module=state num_invalid_txs=0 num_valid_txs=0 server=node
105-
laconic-5cd0a80c1442c3044c8b295d26426bae-laconicd-1 | 9:30PM INF commit synced commit=436F6D6D697449447B5B363520313037203630203232372039352038352032303820313334203231392032303520313433203130372031343920313431203139203139322038362031323720362031383520323533203137362031333820313735203135392031383620323334203135382031323120313431203230342037335D3A447D
106-
laconic-5cd0a80c1442c3044c8b295d26426bae-laconicd-1 | 9:30PM INF committed state app_hash=416B3CE35F55D086DBCD8F6B958D13C0567F06B9FDB08AAF9FBAEA9E798DCC49 height=13 module=state num_txs=0 server=node
107-
laconic-5cd0a80c1442c3044c8b295d26426bae-laconicd-1 | 9:30PM INF indexed block exents height=13 module=txindex server=node
99+
laconicd-1 | 6:12AM INF indexed block events height=16 module=txindex
100+
laconicd-1 | 6:12AM INF Timed out dur=2993.893332 height=17 module=consensus round=0 step=RoundStepNewHeight
101+
laconicd-1 | 6:12AM INF received proposal module=consensus proposal="Proposal{17/0 (E15D03C180CE607AE8340A1325A0C134DFB4E1ADD992E173C701EBD362523267:1:DF138772FEF0, -1) 6A6F3B0A42B3 @ 2024-07-25T06:12:31.952967053Z}" proposer=86970D950BC9C16F3991A52D9C6DC55BA478A7C6
102+
laconicd-1 | 6:12AM INF received complete proposal block hash=E15D03C180CE607AE8340A1325A0C134DFB4E1ADD992E173C701EBD362523267 height=17 module=consensus
103+
laconicd-1 | 6:12AM INF finalizing commit of block hash=E15D03C180CE607AE8340A1325A0C134DFB4E1ADD992E173C701EBD362523267 height=17 module=consensus num_txs=0 root=AF4941107DC718ED1425E77A3DC7F1154FB780B7A7DE20288DC43442203527E3
104+
laconicd-1 | 6:12AM INF finalized block block_app_hash=26A665360BB1EE64E54F97F2A5AB7F621B33A86D9896574000C05DE63F43F788 height=17 module=state num_txs_res=0 num_val_updates=0
105+
laconicd-1 | 6:12AM INF executed block app_hash=26A665360BB1EE64E54F97F2A5AB7F621B33A86D9896574000C05DE63F43F788 height=17 module=state
106+
laconicd-1 | 6:12AM INF committed state block_app_hash=AF4941107DC718ED1425E77A3DC7F1154FB780B7A7DE20288DC43442203527E3 height=17 module=state
107+
laconicd-1 | 6:12AM INF indexed block events height=17 module=txindex
108108
```
109109
110110
4. Confirm operation of the registry CLI:
@@ -117,30 +117,30 @@ To avoid hiccups on Mac M1/M2 and any local machine nuances that may affect the
117117
{
118118
"version": "0.3.0",
119119
"node": {
120-
"id": "4216af2ac9f68bda33a38803fc1b5c9559312c1d",
120+
"id": "6e072894aa1f5d9535a1127a0d7a7f8e65100a2c",
121121
"network": "laconic_9000-1",
122122
"moniker": "localtestnet"
123123
},
124124
"sync": {
125-
"latest_block_hash": "1BDF4CB9AE2390DA65BCF997C83133C18014FCDDCAE03708488F0B56FCEEA429",
126-
"latest_block_height": "5",
127-
"latest_block_time": "2023-08-09 16:00:30.386903172 +0000 UTC",
128-
"catching_up": false
125+
"latestBlockHash": "260102C283D0411CFBA0270F7DC182650FFCA737A2F6F652A985F6065696F590",
126+
"latestBlockHeight": "49",
127+
"latestBlockTime": "2024-07-25 06:14:05.626744215 +0000 UTC",
128+
"catchingUp": false
129129
},
130130
"validator": {
131-
"address": "651FBC700B747C76E90ACFC18CC9508C3D0905B9",
132-
"voting_power": "1000000000000000"
131+
"address": "86970D950BC9C16F3991A52D9C6DC55BA478A7C6",
132+
"votingPower": "1000000000000000"
133133
},
134134
"validators": [
135135
{
136-
"address": "651FBC700B747C76E90ACFC18CC9508C3D0905B9",
137-
"voting_power": "1000000000000000",
138-
"proposer_priority": "0"
136+
"address": "86970D950BC9C16F3991A52D9C6DC55BA478A7C6",
137+
"votingPower": "1000000000000000",
138+
"proposerPriority": "0"
139139
}
140140
],
141-
"num_peers": "0",
141+
"numPeers": "0",
142142
"peers": [],
143-
"disk_usage": "292.0K"
143+
"diskUsage": "688K"
144144
}
145145
```
146146
@@ -186,13 +186,13 @@ wns
186186
1. The following command will create a bond and publish a record:
187187
188188
```
189-
laconic-so --stack fixturenet-laconic-loaded deploy exec cli ./scripts/create-demo-records.sh
189+
laconic-so deployment --dir laconic-loaded-deployment exec cli ./scripts/create-demo-records.sh
190190
```
191191
192192
You'll get an output like:
193193
194194
```
195-
Balance is: 99998999999999998999600000
195+
Balance is: 9.9999e+25
196196
Created bond with id: dd88e8d6f9567b32b28e70552aea4419c5dd3307ebae85a284d1fe38904e301a
197197
Published demo-record-1.yml with id: bafyreierh3xnfivexlscdwubvczmddsnf46uytyfvrbdhkjzztvsz6ruly
198198
```
@@ -223,5 +223,5 @@ record:
223223
- e.g,:
224224
225225
```
226-
laconic-so --stack fixturenet-laconic-loaded deploy exec cli "laconic registry record list"
226+
laconic-so deployment --dir laconic-loaded-deployment exec cli "laconic registry record list"
227227
```

stack_orchestrator/data/compose/docker-compose-fixturenet-laconicd.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ services:
22
laconicd:
33
restart: unless-stopped
44
image: cerc/laconicd:local
5-
command: ["sh", "/docker-entrypoint-scripts.d/create-fixturenet.sh"]
5+
command: ["bash", "/docker-entrypoint-scripts.d/create-fixturenet.sh"]
66
environment:
7-
TEST_AUCTION_ENABLED: ${TEST_AUCTION_ENABLED}
8-
TEST_REGISTRY_EXPIRY: ${TEST_REGISTRY_EXPIRY}
7+
TEST_AUCTION_ENABLED: ${TEST_AUCTION_ENABLED:-false}
8+
TEST_REGISTRY_EXPIRY: ${TEST_REGISTRY_EXPIRY:-false}
9+
ONBOARDING_ENABLED: ${ONBOARDING_ENABLED:-false}
910
volumes:
1011
# The cosmos-sdk node's database directory:
1112
- laconicd-data:/root/.laconicd
@@ -19,11 +20,9 @@ services:
1920
- "26657"
2021
- "26656"
2122
- "9473"
22-
- "8545"
23-
- "8546"
2423
- "9090"
25-
- "9091"
2624
- "1317"
25+
2726
cli:
2827
image: cerc/laconic-registry-cli:local
2928
volumes:

0 commit comments

Comments
 (0)