Skip to content

Commit

Permalink
update sidecar in localnet to support polymarket (#2043)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyaoy committed Oct 4, 2024
1 parent 6ef34ad commit 7f08bbb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
23 changes: 23 additions & 0 deletions protocol/contrib/slinky/oracle.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/midpoint?token_id=%s",
"authentication": {
"apiKey": "",
"apiKeyHeader": ""
}
}
],
"batchSize": 0
}
}
}
4 changes: 3 additions & 1 deletion protocol/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,13 @@ 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.8
entrypoint: >
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:
Expand Down

0 comments on commit 7f08bbb

Please sign in to comment.