From b7217c958b355ee94e6254e9acc9db7e0f21e601 Mon Sep 17 00:00:00 2001 From: Slava Startsev Date: Tue, 18 Jun 2024 15:14:54 +0300 Subject: [PATCH] Add event horizon test network (#261) * feat: add event horizon test network * chore: bump v --- 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 f628cfe..50a3770 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.22.5", + "version": "0.22.6", "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 4afb939..5d2b030 100644 --- a/src/config/chains.json +++ b/src/config/chains.json @@ -64,6 +64,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": "" + } + }, "42161": { "chainId": "42161", "explorer": "https://arbiscan.io/", diff --git a/src/config/envs.json b/src/config/envs.json index 445649e..442f771 100644 --- a/src/config/envs.json +++ b/src/config/envs.json @@ -244,6 +244,24 @@ "http": "/orion-indexer/" } } + }, + "123420000034": { + "api": "https://testing.orion.xyz/event-horizon", + "services": { + "aggregator": { + "http": "/backend", + "ws": "/v1" + }, + "blockchain": { + "http": "" + }, + "priceFeed": { + "all": "/price-feed" + }, + "indexer": { + "http": "/orion-indexer/" + } + } } } }, diff --git a/src/constants/chains.ts b/src/constants/chains.ts index 621b947..d875c3f 100644 --- a/src/constants/chains.ts +++ b/src/constants/chains.ts @@ -3,6 +3,7 @@ import { SupportedChainId } from '../types.js'; export const developmentChains = [ SupportedChainId.BSC_TESTNET, SupportedChainId.SEPOLIA, + SupportedChainId.EVENT_HORIZON, ]; export const productionChains = [ SupportedChainId.MAINNET, diff --git a/src/types.ts b/src/types.ts index 72ec8dc..54fdbf4 100644 --- a/src/types.ts +++ b/src/types.ts @@ -95,6 +95,7 @@ export enum SupportedChainId { BSC_TESTNET = '97', SEPOLIA = '11155111', + EVENT_HORIZON = '123420000034', // For testing and debug purpose // BROKEN = '0',