Skip to content

Commit

Permalink
Update constants for testnet #3. (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwschau authored Sep 15, 2023
1 parent 9273112 commit 39b3639
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion v4-client-js/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
8 changes: 4 additions & 4 deletions v4-client-js/src/clients/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion v4-client-py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
license = "BSL-1.1"
Expand Down
6 changes: 3 additions & 3 deletions v4-client-py/v4_client_py/clients/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'

Expand Down

0 comments on commit 39b3639

Please sign in to comment.