Skip to content

Commit

Permalink
[TRA-523] Switch localnet to use dydx_migration_api marketmap provider (
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyaoy committed Oct 4, 2024
1 parent 18c72e1 commit 6ef34ad
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
26 changes: 26 additions & 0 deletions protocol/contrib/slinky/oracle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"providers": {
"dydx_migration_api": {
"name": "dydx_migration_api",
"api": {
"enabled": true,
"timeout": 20000000000,
"interval": 10000000000,
"reconnectTimeout": 2000000000,
"maxQueries": 1,
"atomic": true,
"endpoints": [
{
"url": "http://dydxprotocold0:1317"
},
{
"url": "dydxprotocold0:9090"
}
],
"batchSize": 0,
"name": "dydx_migration_api"
},
"type": "market_map_provider"
}
}
}
6 changes: 4 additions & 2 deletions 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.1
image: ghcr.io/skip-mev/slinky-sidecar:v1.0.5
entrypoint: >
sh -c "slinky --marketmap-provider dydx_api --market-map-endpoint http://dydxprotocold0:1317 --update-market-config-path /etc/market.json --log-std-out-level error"
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}
volumes:
- ./contrib/slinky:/etc/slinky
ports:
- "8080:8080"
- "8002:8002" # metrics
Expand Down

0 comments on commit 6ef34ad

Please sign in to comment.