diff --git a/app/data/compose/docker-compose-contract-sushiswap.yml b/app/data/compose/docker-compose-contract-sushiswap.yml new file mode 100644 index 00000000..aad5c85a --- /dev/null +++ b/app/data/compose/docker-compose-contract-sushiswap.yml @@ -0,0 +1,14 @@ +version: '3.2' + +services: + # Deploys the core (UniswapV3Factory) contract + sushiswap-v3-core: + image: cerc/sushiswap-v3-core:local + env_file: + - ../config/watcher-sushiswap/lotus-params.env + + # Deploys the periphery (NFPM, token, etc.) contracts + sushiswap-v3-periphery: + image: cerc/sushiswap-v3-periphery:local + env_file: + - ../config/watcher-sushiswap/lotus-params.env diff --git a/app/data/pod-list.txt b/app/data/pod-list.txt index 5355c90e..c6e55b8d 100644 --- a/app/data/pod-list.txt +++ b/app/data/pod-list.txt @@ -31,3 +31,4 @@ mainnet-go-opera lasso reth watcher-sushiswap +contract-sushiswap diff --git a/app/data/stacks/sushiswap-graph/README.md b/app/data/stacks/sushiswap-graph/README.md new file mode 100644 index 00000000..76ee04ad --- /dev/null +++ b/app/data/stacks/sushiswap-graph/README.md @@ -0,0 +1,41 @@ +# SushiSwap Graph + +## Setup + +Clone required repositories: + +```bash +laconic-so --stack sushiswap-graph setup-repositories +``` + +Build the container images: + +```bash +laconic-so --stack sushiswap-graph build-containers +``` + +## Deploy + +Deploy the stack: + +```bash +laconic-so --stack sushiswap-graph deploy --cluster sushigraph up +``` + +## Clean up + +Stop all the services running in background run: + +```bash +laconic-so --stack sushiswap-graph deploy --cluster sushigraph down +``` + +Clear volumes created by this stack: + +```bash +# List all relevant volumes +docker volume ls -q --filter "name=sushigraph" + +# Remove all the listed volumes +docker volume rm $(docker volume ls -q --filter "name=sushigraph") +``` diff --git a/app/data/stacks/sushiswap-graph/stack.yml b/app/data/stacks/sushiswap-graph/stack.yml new file mode 100644 index 00000000..427fed51 --- /dev/null +++ b/app/data/stacks/sushiswap-graph/stack.yml @@ -0,0 +1,18 @@ +version: "1.0" +name: sushiswap-graph +description: "An end-to-end SushiSwap Graph stack" +repos: + ## fixturenet-lotus repo + - github.com/filecoin-project/lotus + ## sushiswap repos + - github.com/cerc-io/sushiswap-v3-core@watcher-ts + - github.com/cerc-io/sushiswap-v3-periphery@watcher-ts +containers: + ## fixturenet-lotus image + - cerc/lotus + ## sushiswap contract deployment images + - cerc/sushiswap-v3-core + - cerc/sushiswap-v3-periphery +pods: + - fixturenet-lotus + - contract-sushiswap