From 39b363922d2f23874d56b69deae925fa0cf5fe8c Mon Sep 17 00:00:00 2001 From: vincentwschau <99756290+vincentwschau@users.noreply.github.com> Date: Fri, 15 Sep 2023 17:15:44 -0400 Subject: [PATCH] Update constants for testnet #3. (#31) --- v4-client-js/package.json | 2 +- v4-client-js/src/clients/constants.ts | 8 ++++---- v4-client-py/pyproject.toml | 2 +- v4-client-py/v4_client_py/clients/constants.py | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/v4-client-js/package.json b/v4-client-js/package.json index fd47e3fb..409ae0ad 100644 --- a/v4-client-js/package.json +++ b/v4-client-js/package.json @@ -1,6 +1,6 @@ { "name": "@dydxprotocol/v4-client-js", - "version": "0.36.0", + "version": "0.36.1", "description": "General client library for the new dYdX system (v4 decentralized)", "main": "build/src/index.js", "scripts": { diff --git a/v4-client-js/src/clients/constants.ts b/v4-client-js/src/clients/constants.ts index 29cd3a85..a0cc748f 100644 --- a/v4-client-js/src/clients/constants.ts +++ b/v4-client-js/src/clients/constants.ts @@ -8,20 +8,20 @@ export * from '../lib/constants'; // Chain ID export const DEV_CHAIN_ID = 'dydxprotocol-testnet'; export const STAGING_CHAIN_ID = 'dydxprotocol-testnet'; -export const TESTNET_CHAIN_ID = 'dydx-testnet-2'; +export const TESTNET_CHAIN_ID = 'dydx-testnet-3'; // ------------ API URLs ------------ export enum IndexerApiHost { DEV = 'https://indexer.v4dev.dydx.exchange', STAGING = 'https://indexer.v4staging.dydx.exchange', - TESTNET = 'https://indexer.v4testnet.dydx.exchange', + TESTNET = 'https://dydx-testnet.imperator.co', // TODO: Add MAINNET } export enum IndexerWSHost { DEV = 'wss://indexer.v4dev.dydx.exchange/v4/ws', STAGING = 'wss://indexer.v4staging.dydx.exchange/v4/ws', - TESTNET = 'wss://indexer.v4testnet.dydx.exchange/v4/ws', + TESTNET = 'wss://dydx-testnet.imperator.co/v4/ws', // TODO: Add MAINNET } @@ -34,7 +34,7 @@ export enum FaucetApiHost { export enum ValidatorApiHost { DEV = 'https://validator.v4dev.dydx.exchange', STAGING = 'https://validator.v4staging.dydx.exchange', - TESTNET = 'https://validator.v4testnet.dydx.exchange', + TESTNET = 'https://dydx-testnet-archive.allthatnode.com', // TODO: Add MAINNET } diff --git a/v4-client-py/pyproject.toml b/v4-client-py/pyproject.toml index cd59ede8..9c0507ef 100644 --- a/v4-client-py/pyproject.toml +++ b/v4-client-py/pyproject.toml @@ -5,7 +5,7 @@ package-dir = {"" = "v4_client_py"} [tool.poetry] name = "v4-client-py" -version = "0.6.0" +version = "0.6.1" description = "dYdX v4 Client" authors = ["John Huang "] license = "BSL-1.1" diff --git a/v4-client-py/v4_client_py/clients/constants.py b/v4-client-py/v4_client_py/clients/constants.py index d092c974..4a1ba0ba 100644 --- a/v4-client-py/v4_client_py/clients/constants.py +++ b/v4-client-py/v4_client_py/clients/constants.py @@ -4,7 +4,7 @@ # ------------ API URLs ------------ INDEXER_API_HOST_MAINNET = None -INDEXER_API_HOST_TESTNET = 'https://indexer.v4testnet.dydx.exchange' +INDEXER_API_HOST_TESTNET = 'https://dydx-testnet.imperator.co' INDEXER_API_HOST_STAGING = 'https://indexer.v4staging.dydx.exchange' INDEXER_API_HOST_DEV = 'https://indexer.v4dev.dydx.exchange' INDEXER_WS_HOST_MAINNET = None @@ -17,12 +17,12 @@ FAUCET_API_HOST_DEV = 'https://faucet.v4dev.expotrading.com' VALIDATOR_API_HOST_MAINNET = None -VALIDATOR_API_HOST_TESTNET = 'https://validator.v4testnet.dydx.exchange' +VALIDATOR_API_HOST_TESTNET = 'https://dydx-testnet-archive.allthatnode.com' VALIDATOR_API_HOST_STAGING = 'https://validator.v4staging.dydx.exchange' VALIDATOR_API_HOST_DEV = 'https://validator.v4dev.dydx.exchange' VALIDATOR_GRPC_MAINNET = None -VALIDATOR_GRPC_TESTNET = 'validator.v4testnet2.dydx.exchange:9090' +VALIDATOR_GRPC_TESTNET = 'dydx-testnet-archive.allthatnode.com:9090' VALIDATOR_GRPC_STAGING = '54.249.255.18:9090' VALIDATOR_GRPC_DEV = '52.192.187.113:9090'