forked from cerc-io/stack-orchestrator
cf039d9562
* Add a fixturenet-payments stack * Export the WebSocket port in fixturenet-eth-geth service * Add container to run a go-nitro node * Add container to deploy Nitro contracts * Read contract addresses from a volume when running the Nitro node * Add a service for Nitro reverse payment proxy * Expose payment proxy endpoint to be accessible from host * Map nitro node messaging and payment proxy ports to host * Use container to deploy Nitro contracts in mobymask-v3 stack * Use a common contract deployment script from mobymask-v3 stack * Add MobyMask contract deployment and watcher services * Fixes for contract deployment and watcher scripts * Add a container and service for mobymask-snap * Add MobyMask app service * Add container and service for a ponder app * Fix ponder setup and update instructions * Handle review comments * Use enablepaidrpcmethods flag in reverse payment proxy server * Update go-nitro branch * Fixes for mobymask-v3 stack --------- Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
71 lines
1.4 KiB
Markdown
71 lines
1.4 KiB
Markdown
# fixturenet-payments
|
|
|
|
## 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
|
|
|
|
### Configuration
|
|
|
|
Deploy the stack:
|
|
|
|
```bash
|
|
laconic-so --stack fixturenet-payments deploy --cluster payments up
|
|
|
|
# Exposed on host ports:
|
|
# 5005: go-nitro node's p2p msg port
|
|
# 8081: reverse payment proxy's RPC endpoint
|
|
# 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
|
|
```
|
|
|
|
Check the logs of the MobyMask contract deployment container to get the deployed contract's address and generated root invite link:
|
|
|
|
```bash
|
|
docker logs -f $(docker ps -aq --filter name="mobymask-1")
|
|
```
|
|
|
|
Check the reverse payment proxy container logs:
|
|
|
|
```bash
|
|
docker logs -f $(docker ps -aq --filter name="nitro-reverse-payment-proxy")
|
|
```
|
|
|
|
Run the ponder app:
|
|
|
|
```bash
|
|
docker exec -it payments-ponder-app-1 bash -c "pnpm start"
|
|
```
|
|
|
|
## 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
|
|
docker volume ls -q --filter "name=[payments"
|
|
|
|
# Remove all the listed volumes
|
|
docker volume rm $(docker volume ls -q --filter "name=[payments")
|
|
```
|