2023-10-03 12:10:34 +00:00
# fixturenet-payments
2023-10-18 16:23:57 +00:00
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.
2023-10-06 09:06:10 +00:00
2023-10-03 12:10:34 +00:00
## Setup
Clone required repositories:
```bash
laconic-so --stack fixturenet-payments setup-repositories --pull
```
Build the container images:
```bash
laconic-so --stack fixturenet-payments build-containers
```
## Deploy
Deploy the stack:
```bash
laconic-so --stack fixturenet-payments deploy --cluster payments up
2023-10-18 16:23:57 +00:00
```
2023-10-03 12:10:34 +00:00
2023-10-18 16:23:57 +00:00
```bash
2023-10-03 12:10:34 +00:00
# Exposed on host ports:
2023-10-18 08:21:55 +00:00
# 32***: geth in statediffing mode and ipld-eth-server(s)
# 4005: in-process go-nitro node's RPC endpoint
# 3005: in-process go-nitro node's p2p TCP endpoint
2023-10-19 06:56:10 +00:00
# 5005: in-process go-nitro node's p2p WS endpoint
2023-10-18 08:21:55 +00:00
# 4006: out-of-process go-nitro node's RPC endpoint
# 3006: out-of-process go-nitro node's p2p TCP endpoint
# 5006: out-of-process go-nitro node's p2p WS endpoint
2023-10-03 12:10:34 +00:00
# 15432: MobyMask v3 watcher's db endpoint
# 3001: MobyMask v3 watcher endpoint
# 9090: MobyMask v3 watcher relay node endpoint
# 8080: MobyMask snap
# 3004: MobyMask v3 app
2023-10-19 06:56:10 +00:00
# 42070: Ponder indexer-1
# 42071: Ponder indexer-2
# 42069: Ponder watcher
2023-10-18 16:23:57 +00:00
```
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
2023-10-03 12:10:34 +00:00
```
2023-10-18 16:23:57 +00:00
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.
2023-10-04 07:21:04 +00:00
## Demo
2023-10-03 12:10:34 +00:00
2023-10-19 06:56:10 +00:00
- Follow the [mobymask-demo ](./mobymask-demo.md ) to try out MobyMask end-to-end payments.
- Follow the [ponder-demo ](./ponder-demo.md ) to try out Ponder end-to-end payments.
2023-10-03 12:10:34 +00:00
## Clean up
Stop all the services running in background:
```bash
laconic-so --stack fixturenet-payments deploy --cluster payments down 30
```
Clear volumes created by this stack:
```bash
# List all relevant volumes
2023-10-13 09:57:17 +00:00
docker volume ls -q --filter "name=payments"
2023-10-03 12:10:34 +00:00
# Remove all the listed volumes
2023-10-13 09:57:17 +00:00
docker volume rm $(docker volume ls -q --filter "name=payments")
2023-10-03 12:10:34 +00:00
```