From d5c596306375389602dc04f70e54c5834df3df87 Mon Sep 17 00:00:00 2001 From: Nabarun Date: Thu, 10 Aug 2023 13:39:31 +0530 Subject: [PATCH] Wait for Lotus node to start before sushiswap watchers --- app/data/compose/docker-compose-watcher-sushiswap.yml | 4 ++++ app/data/stacks/sushiswap/README.md | 4 +--- app/data/stacks/sushiswap/smoke-tests.md | 6 ------ 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/app/data/compose/docker-compose-watcher-sushiswap.yml b/app/data/compose/docker-compose-watcher-sushiswap.yml index bd845e6c..a92e17cb 100644 --- a/app/data/compose/docker-compose-watcher-sushiswap.yml +++ b/app/data/compose/docker-compose-watcher-sushiswap.yml @@ -52,6 +52,8 @@ services: depends_on: sushiswap-watcher-db: condition: service_healthy + lotus-node-1: + condition: service_healthy image: cerc/watcher-sushiswap:local working_dir: /app/packages/uni-watcher environment: @@ -107,6 +109,8 @@ services: condition: service_healthy erc20-watcher-server: condition: service_healthy + lotus-node-1: + condition: service_healthy sushi-watcher-server: condition: service_healthy image: cerc/watcher-sushiswap:local diff --git a/app/data/stacks/sushiswap/README.md b/app/data/stacks/sushiswap/README.md index ad0428c8..50450613 100644 --- a/app/data/stacks/sushiswap/README.md +++ b/app/data/stacks/sushiswap/README.md @@ -18,10 +18,8 @@ laconic-so --stack sushiswap build-containers Deploy the stack: - ```bash -laconic-so --stack sushiswap deploy --include fixturenet-lotus --cluster sushiswap up -laconic-so --stack sushiswap deploy --include watcher-sushiswap --cluster sushiswap up +laconic-so --stack sushiswap deploy --cluster sushiswap up ``` ## Tests diff --git a/app/data/stacks/sushiswap/smoke-tests.md b/app/data/stacks/sushiswap/smoke-tests.md index f620534f..00a066a3 100644 --- a/app/data/stacks/sushiswap/smoke-tests.md +++ b/app/data/stacks/sushiswap/smoke-tests.md @@ -55,12 +55,6 @@ docker exec -it sushiswap-sushi-watcher-server-1 bash -c "export TOKEN0_ADDRESS= Deploy required contracts and set the addresses to variables: ```bash -# Deploy TestUniswapV3Callee -docker exec -it sushiswap-sushiswap-v3-core-1 pnpm hardhat --network docker deploy --tags TestUniswapV3Callee - -# Set the returned address to a variable -export UNISWAP_CALLEE_ADDRESS= - # Deploy two test tokens docker exec -it sushiswap-sushiswap-v3-periphery-1 yarn hardhat --network docker deploy --tags TestERC20 docker exec -it sushiswap-sushiswap-v3-periphery-1 yarn hardhat --network docker deploy --tags TestERC20