From 4d5acc9d1bc596a2114fc4228ed4e32cc159af99 Mon Sep 17 00:00:00 2001 From: Chenyao Yu <4844716+chenyaoy@users.noreply.github.com> Date: Tue, 6 Aug 2024 14:54:00 -0400 Subject: [PATCH 1/3] update sidecar to support polymarket --- protocol/contrib/slinky/oracle.json | 23 +++++++++++++++++++++++ protocol/docker-compose.yml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/protocol/contrib/slinky/oracle.json b/protocol/contrib/slinky/oracle.json index 9636c1c6d1..73a1731448 100644 --- a/protocol/contrib/slinky/oracle.json +++ b/protocol/contrib/slinky/oracle.json @@ -22,5 +22,28 @@ }, "type": "market_map_provider" } + }, + "polymarket_api": { + "name": "polymarket_api", + "type": "price_provider", + "api": { + "name": "polymarket_api", + "enabled": true, + "timeout": 3000000000, + "interval": 500000000, + "reconnectTimeout": 2000000000, + "maxQueries": 1, + "atomic": false, + "endpoints": [ + { + "url": "https://clob.polymarket.com/price?token_id=%s&side=BUY", + "authentication": { + "apiKey": "", + "apiKeyHeader": "" + } + } + ], + "batchSize": 0 + } } } \ No newline at end of file diff --git a/protocol/docker-compose.yml b/protocol/docker-compose.yml index 937548306e..7685bba51d 100644 --- a/protocol/docker-compose.yml +++ b/protocol/docker-compose.yml @@ -113,7 +113,7 @@ services: volumes: - ./localnet/dydxprotocol3:/dydxprotocol/chain/.dave/data slinky0: - image: ghcr.io/skip-mev/slinky-sidecar:v1.0.5 + image: ghcr.io/skip-mev/slinky-sidecar:v1.0.6 entrypoint: > sh -c "slinky --marketmap-provider dydx_migration_api --oracle-config /etc/slinky/oracle.json --log-std-out-level error" environment: From 6ef4d158279865240c4b3eee73b9a5c01d89db18 Mon Sep 17 00:00:00 2001 From: Chenyao Yu <4844716+chenyaoy@users.noreply.github.com> Date: Thu, 8 Aug 2024 14:21:38 -0400 Subject: [PATCH 2/3] support uniswap --- protocol/docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocol/docker-compose.yml b/protocol/docker-compose.yml index 7685bba51d..19a26dbe12 100644 --- a/protocol/docker-compose.yml +++ b/protocol/docker-compose.yml @@ -118,6 +118,8 @@ services: sh -c "slinky --marketmap-provider dydx_migration_api --oracle-config /etc/slinky/oracle.json --log-std-out-level error" environment: - SLINKY_CONFIG_PROVIDERS_RAYDIUM_API_API_ENDPOINTS_0_URL=${RAYDIUM_URL} + - SLINKY_CONFIG_PROVIDERS_UNISWAPV3_API-BASE_API_ENDPOINTS_0_URL=${UNISWAPV3_BASE_URL} + - SLINKY_CONFIG_PROVIDERS_UNISWAPV3_API-ETHEREUM_API_ENDPOINTS_0_URL=${UNISWAPV3_ETHEREUM_URL} volumes: - ./contrib/slinky:/etc/slinky ports: From 214040992c90a240877409edb74cc7c318311aed Mon Sep 17 00:00:00 2001 From: Chenyao Yu <4844716+chenyaoy@users.noreply.github.com> Date: Fri, 9 Aug 2024 15:07:45 -0400 Subject: [PATCH 3/3] upgrade sidecar to 1.0.8 --- protocol/contrib/slinky/oracle.json | 2 +- protocol/docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/contrib/slinky/oracle.json b/protocol/contrib/slinky/oracle.json index 73a1731448..e00f2f4da5 100644 --- a/protocol/contrib/slinky/oracle.json +++ b/protocol/contrib/slinky/oracle.json @@ -36,7 +36,7 @@ "atomic": false, "endpoints": [ { - "url": "https://clob.polymarket.com/price?token_id=%s&side=BUY", + "url": "https://clob.polymarket.com/midpoint?token_id=%s", "authentication": { "apiKey": "", "apiKeyHeader": "" diff --git a/protocol/docker-compose.yml b/protocol/docker-compose.yml index 19a26dbe12..d38549e0b7 100644 --- a/protocol/docker-compose.yml +++ b/protocol/docker-compose.yml @@ -113,7 +113,7 @@ services: volumes: - ./localnet/dydxprotocol3:/dydxprotocol/chain/.dave/data slinky0: - image: ghcr.io/skip-mev/slinky-sidecar:v1.0.6 + image: ghcr.io/skip-mev/slinky-sidecar:v1.0.8 entrypoint: > sh -c "slinky --marketmap-provider dydx_migration_api --oracle-config /etc/slinky/oracle.json --log-std-out-level error" environment: