stack-orchestrator/stack_orchestrator/data/stacks/sushiswap-v3
prathamesh0 95e881ba19
Add a sushiswap-v3 watcher stack (#638)
* Add a sushiswap-v3 watcher stack

* Add services for watcher db and server

* Add service for watcher job-runner

* Use 0.0.0.0 for watcher server config

---------

Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
2023-11-13 10:58:55 +05:30
..
README.md Add a sushiswap-v3 watcher stack (#638) 2023-11-13 10:58:55 +05:30
stack.yml Add a sushiswap-v3 watcher stack (#638) 2023-11-13 10:58:55 +05:30

SushiSwap v3 Watcher

Setup

Clone required repositories:

laconic-so --stack sushiswap-v3 setup-repositories --git-ssh --pull

Build the container images:

laconic-so --stack sushiswap-v3 build-containers

Deploy

Configuration

Create and update an env file to be used in the next step:

# External Filecoin (ETH RPC) endpoint to point the watcher
CERC_ETH_RPC_ENDPOINT=

Deploy the stack

laconic-so --stack sushiswap-v3 deploy --cluster sushiswap_v3 --env-file <PATH_TO_ENV_FILE> up
  • To list down and monitor the running containers:

    laconic-so --stack sushiswap-v3 deploy --cluster sushiswap_v3 ps
    
    # With status
    docker ps -a
    
    # Check logs for a container
    docker logs -f <CONTAINER_ID>
    

Clean up

Stop all the services running in background:

laconic-so --stack sushiswap-v3 deploy --cluster sushiswap_v3 down

Clear volumes created by this stack:

# List all relevant volumes
docker volume ls -q --filter "name=sushiswap_v3"

# Remove all the listed volumes
docker volume rm $(docker volume ls -q --filter "name=sushiswap_v3")