Fix sushiswap demo instructions

This commit is contained in:
Nabarun 2023-08-10 09:57:54 +05:30
parent eda5bbbf1e
commit 83afd66275
4 changed files with 16 additions and 14 deletions

View File

@ -180,4 +180,4 @@ services:
- ../config/watcher-sushiswap/lotus-params.env - ../config/watcher-sushiswap/lotus-params.env
volumes: volumes:
uniswap_watcher_db_data: sushiswap_watcher_db_data:

View File

@ -16,13 +16,13 @@ $ laconic-so --stack fixturenet-lotus deploy --cluster lotus up
``` ```
Correct operation should be verified by checking the container logs with: Correct operation should be verified by checking the container logs with:
``` ```
$ laconic-so --stack fixturenet-lotus deploy logs lotus-miner $ laconic-so --stack fixturenet-lotus deploy --cluster lotus logs lotus-miner
$ laconic-so --stack fixturenet-lotus deploy logs lotus-node-1 $ laconic-so --stack fixturenet-lotus deploy --cluster lotus logs lotus-node-1
$ laconic-so --stack fixturenet-lotus deploy logs lotus-node-2 $ laconic-so --stack fixturenet-lotus deploy --cluster lotus logs lotus-node-2
``` ```
or by checking the chain status on each node: or by checking the chain status on each node:
``` ```
$ laconic-so --stack fixturenet-lotus deploy exec lotus-miner "lotus status" $ laconic-so --stack fixturenet-lotus deploy --cluster lotus exec lotus-miner "lotus status"
$ laconic-so --stack fixturenet-lotus deploy exec lotus-node-1 "lotus status" $ laconic-so --stack fixturenet-lotus deploy --cluster lotus exec lotus-node-1 "lotus status"
$ laconic-so --stack fixturenet-lotus deploy exec lotus-node-2 "lotus status" $ laconic-so --stack fixturenet-lotus deploy --cluster lotus exec lotus-node-2 "lotus status"
``` ```

View File

@ -18,8 +18,10 @@ laconic-so --stack sushiswap build-containers
Deploy the stack: Deploy the stack:
<!-- TODO: Add healthcheck dependency on Lotus endpoint in sushiswap watchers -->
```bash ```bash
laconic-so --stack sushiswap deploy --cluster sushiswap up laconic-so --stack sushiswap deploy --include fixturenet-lotus --cluster sushiswap up
laconic-so --stack sushiswap deploy --include watcher-sushiswap --cluster sushiswap up
``` ```
## Tests ## Tests

View File

@ -36,18 +36,18 @@ Watch the contracts:
```bash ```bash
# Watch factory contract # Watch factory contract
docker exec -it sushiswap-sushiswap-watcher-server-1 bash -c "yarn watch:contract --address $FACTORY_ADDRESS --kind factory --startingBlock 100 --checkpoint false" docker exec -it sushiswap-sushi-watcher-server-1 bash -c "yarn watch:contract --address $FACTORY_ADDRESS --kind factory --startingBlock 100 --checkpoint false"
docker exec -it sushiswap-sushiswap-info-watcher-server-1 bash -c "yarn watch:contract --address $FACTORY_ADDRESS --kind factory --startingBlock 100 --checkpoint false" docker exec -it sushiswap-sushi-info-watcher-server-1 bash -c "yarn watch:contract --address $FACTORY_ADDRESS --kind factory --startingBlock 100 --checkpoint false"
# Watch NFPM contract # Watch NFPM contract
docker exec -it sushiswap-sushiswap-watcher-server-1 bash -c "yarn watch:contract --address $POSITION_MANAGER_ADDRESS --kind nfpm --startingBlock 100 --checkpoint false" docker exec -it sushiswap-sushi-watcher-server-1 bash -c "yarn watch:contract --address $POSITION_MANAGER_ADDRESS --kind nfpm --startingBlock 100 --checkpoint false"
docker exec -it sushiswap-sushiswap-info-watcher-server-1 bash -c "yarn watch:contract --address $POSITION_MANAGER_ADDRESS --kind nfpm --startingBlock 100 --checkpoint false" docker exec -it sushiswap-sushi-info-watcher-server-1 bash -c "yarn watch:contract --address $POSITION_MANAGER_ADDRESS --kind nfpm --startingBlock 100 --checkpoint false"
``` ```
Run the smoke test: Run the smoke test:
```bash ```bash
docker exec -it sushiswap-sushiswap-watcher-server-1 bash -c "export TOKEN0_ADDRESS=$TOKEN0_ADDRESS && export TOKEN1_ADDRESS=$TOKEN1_ADDRESS && export UNISWAP_CALLEE_ADDRESS=$UNISWAP_CALLEE_ADDRESS && yarn smoke-test" docker exec -it sushiswap-sushi-watcher-server-1 bash -c "export TOKEN0_ADDRESS=$TOKEN0_ADDRESS && export TOKEN1_ADDRESS=$TOKEN1_ADDRESS && export UNISWAP_CALLEE_ADDRESS=$UNISWAP_CALLEE_ADDRESS && yarn smoke-test"
``` ```
## sushi-info-watcher ## sushi-info-watcher
@ -73,5 +73,5 @@ export TOKEN1_ADDRESS=<TOKEN1_ADDRESS>
Run the smoke test: Run the smoke test:
```bash ```bash
docker exec -it sushiswap-sushiswap-info-watcher-server-1 bash -c "export TOKEN0_ADDRESS=$TOKEN0_ADDRESS && export TOKEN1_ADDRESS=$TOKEN1_ADDRESS && export UNISWAP_CALLEE_ADDRESS=$UNISWAP_CALLEE_ADDRESS && yarn smoke-test" docker exec -it sushiswap-sushi-info-watcher-server-1 bash -c "export TOKEN0_ADDRESS=$TOKEN0_ADDRESS && export TOKEN1_ADDRESS=$TOKEN1_ADDRESS && export UNISWAP_CALLEE_ADDRESS=$UNISWAP_CALLEE_ADDRESS && yarn smoke-test"
``` ```