From 2402220273d26dad231ee57061d64c1c40acc63b Mon Sep 17 00:00:00 2001 From: Zach Date: Wed, 18 Oct 2023 12:23:57 -0400 Subject: [PATCH] updates to payments demo (#566) --- app/data/stacks/fixturenet-payments/README.md | 24 +++++++++++++++++-- app/data/stacks/fixturenet-payments/stack.yml | 1 + 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/app/data/stacks/fixturenet-payments/README.md b/app/data/stacks/fixturenet-payments/README.md index efc401b4..3fe66bba 100644 --- a/app/data/stacks/fixturenet-payments/README.md +++ b/app/data/stacks/fixturenet-payments/README.md @@ -1,6 +1,6 @@ # fixturenet-payments -Instructions to setup and deploy an end-to-end fixturenet-payments stack +Instructions to setup and deploy an end-to-end fixturenet-payments stack, on a local machine. Some tips are included for running on a remote cloud machine. ## Setup @@ -22,7 +22,9 @@ Deploy the stack: ```bash laconic-so --stack fixturenet-payments deploy --cluster payments up +``` +```bash # Exposed on host ports: # 32***: geth in statediffing mode and ipld-eth-server(s) # 4005: in-process go-nitro node's RPC endpoint @@ -36,11 +38,29 @@ laconic-so --stack fixturenet-payments deploy --cluster payments up # 9090: MobyMask v3 watcher relay node endpoint # 8080: MobyMask snap # 3004: MobyMask v3 app +# 32***: geth with statediffing ``` +If running in the cloud, ensure all the of the above ports are open. The geth port can be retrieved with: + +```bash +docker port payments-fixturenet-eth-geth-1-1 8545 +``` + +Then for every port above, run each line in a new terminal window (or use `screen`): + +```bash +ssh -L 4005:localhost:4005 user@ +ssh -L 5005:localhost:5005 user@ +ssh -L 8081:localhost:8081 user@ +# ... and so on for every port +``` + +This will allow you to access the entirety of the app as if it were running locally. + ## Demo -Follow the [demo](./demo.md) to try out end-to-end payments +Follow the [demo](./demo.md) to try out end-to-end payments. ## Clean up diff --git a/app/data/stacks/fixturenet-payments/stack.yml b/app/data/stacks/fixturenet-payments/stack.yml index 7421851a..27d73b30 100644 --- a/app/data/stacks/fixturenet-payments/stack.yml +++ b/app/data/stacks/fixturenet-payments/stack.yml @@ -13,6 +13,7 @@ repos: - github.com/cerc-io/go-nitro@ts-interop # TODO: Use release # mobymask watcher repos - github.com/cerc-io/watcher-ts@v0.2.66 + # this is mobymask-v3 - github.com/cerc-io/mobymask-v2-watcher-ts@v0.2.4 - github.com/cerc-io/MobyMask@v0.1.3 # mobymask app repos