Skip to content

Commit

Permalink
updates to payments demo
Browse files Browse the repository at this point in the history
  • Loading branch information
zramsay committed Oct 9, 2023
1 parent 8c4ed24 commit dd5e58a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
28 changes: 24 additions & 4 deletions app/data/stacks/fixturenet-payments/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -22,7 +22,9 @@ Deploy the stack:

```bash
laconic-so --stack fixturenet-payments deploy --cluster payments up
```

```bash
# Exposed on host ports:
# 4005: go-nitro node's RPC endpoint
# 5005: go-nitro node's p2p endpoint
Expand All @@ -32,11 +34,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@<your-ip>
ssh -L 5005:localhost:5005 user@<your-ip>
ssh -L 8081:localhost:8081 user@<your-ip>
# ... 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

Expand All @@ -50,8 +70,8 @@ Clear volumes created by this stack:

```bash
# List all relevant volumes
docker volume ls -q --filter "name=[payments"
docker volume ls -q --filter "name=payments"

# Remove all the listed volumes
docker volume rm $(docker volume ls -q --filter "name=[payments")
docker volume rm $(docker volume ls -q --filter "name=payments")
```
1 change: 1 addition & 0 deletions app/data/stacks/fixturenet-payments/stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ repos:
- github.com/cerc-io/[email protected]
# mobymask watcher repos
- github.com/cerc-io/[email protected]
# this is mobymask-v3
- github.com/cerc-io/[email protected]
- github.com/cerc-io/[email protected]
# mobymask app repos
Expand Down

0 comments on commit dd5e58a

Please sign in to comment.