From eed774ea42457e56b8e89cd3b5f72a89d43e6b31 Mon Sep 17 00:00:00 2001 From: Zach Date: Fri, 26 May 2023 10:03:37 -0400 Subject: [PATCH 1/2] Update pokt README --- app/data/stacks/fixturenet-pocket/README.md | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/app/data/stacks/fixturenet-pocket/README.md b/app/data/stacks/fixturenet-pocket/README.md index b29520c8..10c0363a 100644 --- a/app/data/stacks/fixturenet-pocket/README.md +++ b/app/data/stacks/fixturenet-pocket/README.md @@ -1,29 +1,22 @@ # Pocket Fixturenet -Instructions for deploying a local single-node Pocket chain alongside a geth + lighthouse blockchain "fixturenet" for development and testing purposes using laconic-stack-orchestrator. +Instructions for deploying a local single-node Pocket chain alongside a geth + lighthouse blockchain "fixturenet" for development and testing purposes using Stack Orchestrator. -## 1. Build Laconic Stack Orchestrator -Build this fork of Laconic Stack Orchestrator which includes the fixturenet-pocket stack: -``` -$ scripts/build_shiv_package.sh -$ cd package -$ mv laconic-so-{version} /usr/local/bin/laconic-so # Or move laconic-so to ~/bin or your favorite on-path directory -``` - -## 2. Clone required repositories +## 1. Clone required repositories ``` $ laconic-so --stack fixturenet-pocket setup-repositories ``` -## 3. Build the stack's containers +## 2. Build the stack's containers ``` $ laconic-so --stack fixturenet-pocket build-containers ``` -## 4. Deploy the stack +## 3. Deploy the stack ``` $ laconic-so --stack fixturenet-pocket deploy up ``` It may take up to 10 minutes for the Eth Fixturenet to fully come online and start producing blocks. -## 5. Check status + +## 4. Check status **Eth Fixturenet:** ``` $ laconic-so --stack fixturenet-pocket deploy exec fixturenet-eth-bootnode-lighthouse /scripts/status-internal.sh @@ -47,7 +40,7 @@ or ``` $ laconic-so --stack fixturenet-pocket deploy logs pocket ``` -## 6. Send a relay request to Pocket node +## 5. Send a relay request to Pocket node The Pocket node serves relay requests at `http://localhost:8081/v1/client/sim` **Example request:** ``` -- 2.45.2 From ac3a4607aad61a36335839667d70928cccc754fa Mon Sep 17 00:00:00 2001 From: Zach Date: Fri, 26 May 2023 10:36:00 -0400 Subject: [PATCH 2/2] split cmds from responses --- app/data/stacks/fixturenet-pocket/README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/data/stacks/fixturenet-pocket/README.md b/app/data/stacks/fixturenet-pocket/README.md index 10c0363a..a818eaa0 100644 --- a/app/data/stacks/fixturenet-pocket/README.md +++ b/app/data/stacks/fixturenet-pocket/README.md @@ -20,15 +20,22 @@ It may take up to 10 minutes for the Eth Fixturenet to fully come online and sta **Eth Fixturenet:** ``` $ laconic-so --stack fixturenet-pocket deploy exec fixturenet-eth-bootnode-lighthouse /scripts/status-internal.sh +``` +Response: +``` Waiting for geth to generate DAG.... done Waiting for beacon phase0.... done Waiting for beacon altair.... done Waiting for beacon bellatrix pre-merge.... done Waiting for beacon bellatrix merge.... done ``` + **Pocket node:** ``` $ laconic-so --stack fixturenet-pocket deploy exec pocket "pocket query height" +``` +Response: +``` 2023/04/20 08:07:46 Initializing Pocket Datadir 2023/04/20 08:07:46 datadir = /home/app/.pocket http://localhost:8081/v1/query/height @@ -36,17 +43,18 @@ http://localhost:8081/v1/query/height "height": 4 } ``` -or +or see the full logs: ``` $ laconic-so --stack fixturenet-pocket deploy logs pocket ``` ## 5. Send a relay request to Pocket node The Pocket node serves relay requests at `http://localhost:8081/v1/client/sim` -**Example request:** + +Example request: ``` $ curl -X POST --data '{"relay_network_id":"0021","payload":{"data":"{\"jsonrpc\": \"2.0\",\"id\": 1,\"method\": \"eth_blockNumber\",\"params\": []}","method":"POST","path":"","headers":{}}}' http://localhost:8081/v1/client/sim ``` -**Response:** +Response: ``` "{\"jsonrpc\":\"2.0\",\"id\":1,\"result\":\"0x6fe\"}\n" ``` -- 2.45.2