From 58bd952d4924dde4709de339e2abe0757e9a3030 Mon Sep 17 00:00:00 2001 From: Slava Startsev Date: Tue, 18 Jun 2024 14:56:43 +0300 Subject: [PATCH] feat: add event horizon test network --- package.json | 2 +- src/config/chains.json | 13 +++++++++++++ src/config/envs.json | 18 ++++++++++++++++++ src/constants/chains.ts | 1 + src/types.ts | 1 + 5 files changed, 34 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 01d4e75..cb12005 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.19.92-rc114", + "version": "0.19.92-rc115", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/config/chains.json b/src/config/chains.json index 853c771..dff233a 100644 --- a/src/config/chains.json +++ b/src/config/chains.json @@ -89,6 +89,19 @@ "curveRegistry": "" } }, + "123420000034": { + "chainId": "123420000034", + "explorer": "https://blockscout-123420000034.raas-testnet.gelato.digital/", + "label": "Event Horizon Testnet", + "shortName": "EH-Testnet", + "code": "eth", + "rpc": "https://rpc-123420000034.raas-testnet.gelato.digital/", + "baseCurrencyName": "ETH", + "contracts": { + "WETH": "0x4200000000000000000000000000000000000006", + "curveRegistry": "" + } + }, "421613": { "chainId": "421613", "explorer": "https://goerli.arbiscan.io/", diff --git a/src/config/envs.json b/src/config/envs.json index e8533db..d8ad0bb 100644 --- a/src/config/envs.json +++ b/src/config/envs.json @@ -245,6 +245,24 @@ } } }, + "123420000034": { + "api": "https://testing.orion.xyz/event-horizon", + "services": { + "aggregator": { + "http": "/backend", + "ws": "/v1" + }, + "blockchain": { + "http": "" + }, + "priceFeed": { + "all": "/price-feed" + }, + "indexer": { + "http": "/orion-indexer/" + } + } + }, "421613": { "api": "https://testing.orion.xyz/arbitrum-goerli", "services": { diff --git a/src/constants/chains.ts b/src/constants/chains.ts index df0bd2f..a17b916 100644 --- a/src/constants/chains.ts +++ b/src/constants/chains.ts @@ -9,6 +9,7 @@ export const developmentChains = [ SupportedChainId.FANTOM_TESTNET, SupportedChainId.POLYGON_TESTNET, SupportedChainId.OKC_TESTNET, + SupportedChainId.EVENT_HORIZON, ]; export const productionChains = [ SupportedChainId.MAINNET, diff --git a/src/types.ts b/src/types.ts index ce987c8..944ed78 100644 --- a/src/types.ts +++ b/src/types.ts @@ -103,6 +103,7 @@ export enum SupportedChainId { OKC_TESTNET = '65', DRIP_TESTNET = '56303', ARBITRUM_GOERLI = '421613', + EVENT_HORIZON = '123420000034', // For testing and debug purpose // BROKEN = '0',