diff --git a/protocol/contrib/slinky/oracle.json b/protocol/contrib/slinky/oracle.json new file mode 100644 index 0000000000..9636c1c6d1 --- /dev/null +++ b/protocol/contrib/slinky/oracle.json @@ -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" + } + } +} \ No newline at end of file diff --git a/protocol/docker-compose.yml b/protocol/docker-compose.yml index 09ab7ca45f..937548306e 100644 --- a/protocol/docker-compose.yml +++ b/protocol/docker-compose.yml @@ -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