diff --git a/.gitignore b/.gitignore index 96a540818..e062c5e23 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,7 @@ __debug_bin* debug.test* # Local env for the order book filler -ingest/usecase/plugins/orderbookfiller/.env +ingest/usecase/plugins/orderbook/fillbot/.env config_orderbook_fill_plugin.json .envrc diff --git a/Makefile b/Makefile index acf39ce2c..4c9c0494c 100644 --- a/Makefile +++ b/Makefile @@ -228,7 +228,10 @@ datadog-agent-start: -e DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT=0.0.0.0:4317 \ gcr.io/datadoghq/agent:latest -#### Order Book Fill Bot Plugin + +#### Orderbook plugins #### +#### +#### Orderbook Fill Bot Plugin # Starts the full-scale order fill bot. # - Creates a copy of the config.json file with the updated @@ -236,7 +239,7 @@ datadog-agent-start: # Starts node and SQS in the background. # - Starts DataDog service # Use ./ingest/usecase/plugins/orderbook/fillbot/.env to configure the keyring. -orderbook-filler-start: +orderbook-fillbot-start: ./ingest/usecase/plugins/orderbook/fillbot/create_copy_config.sh cd ./ingest/usecase/plugins/orderbook/fillbot && docker compose up -d cd ../../../../ @@ -244,7 +247,7 @@ orderbook-filler-start: sleep 10 && osmosisd status sleep 10 && docker logs -f osmosis-sqs -orderbook-filler-stop: +orderbook-fillbot-stop: cd ./ingest/usecase/plugins/orderbook/fillbot && docker compose down cd ../../../../ echo "Order Book Filler Bot Stopped" diff --git a/ingest/usecase/plugins/orderbook/fillbot/README.md b/ingest/usecase/plugins/orderbook/fillbot/README.md index 4bb23a666..af669959c 100644 --- a/ingest/usecase/plugins/orderbook/fillbot/README.md +++ b/ingest/usecase/plugins/orderbook/fillbot/README.md @@ -76,8 +76,8 @@ of POC implementation. In the future, this can be improved to support multiple b ## Starting (via docker compose) 1. Ensure that the "Configuration" section is complete. -2. From project root, `cd` into `ingest/usecase/plugins/orderbookfiller` +2. From project root, `cd` into `ingest/usecase/plugins/orderbook/fillbot` 3. Update `.env` with your environment variables. -4. Run `make orderbook-filler-start` +4. Run `make orderbook-fillbot-start` 5. Run `osmosisd status` to check that the node is running and caught up to tip. 6. Curl `/healthcheck` to check that SQS is running `curl http://localhost:9092/healthcheck` diff --git a/ingest/usecase/plugins/orderbook/fillbot/docker-compose.yml b/ingest/usecase/plugins/orderbook/fillbot/docker-compose.yml index e84922af3..5bc383db8 100644 --- a/ingest/usecase/plugins/orderbook/fillbot/docker-compose.yml +++ b/ingest/usecase/plugins/orderbook/fillbot/docker-compose.yml @@ -22,7 +22,7 @@ services: command: - start - --home=/osmosis/.osmosisd - image: osmolabs/osmosis-dev:v25.x-c775cee7-1722825184 + image: osmolabs/osmosis:26.0.2 container_name: osmosis restart: always ports: @@ -61,7 +61,7 @@ services: - --host - sqs-fill-bot build: - context: ../../../../ + context: ../../../../../ dockerfile: Dockerfile depends_on: - osmosis @@ -144,4 +144,4 @@ services: logging: driver: "json-file" options: - max-size: "512m" \ No newline at end of file + max-size: "512m"