From a945fc2dba35b3b043c809375967d14df0fd33a4 Mon Sep 17 00:00:00 2001 From: kasrakhosravi Date: Tue, 24 Jan 2023 20:41:57 +0100 Subject: [PATCH] feat: added horizen testnet chain --- packages/chains/src/index.ts | 24 +++++++++++++++++++++ packages/common/src/constants/chain-id.ts | 1 + packages/common/src/constants/currencies.ts | 8 +++++++ 3 files changed, 33 insertions(+) diff --git a/packages/chains/src/index.ts b/packages/chains/src/index.ts index 939052b8..070661ee 100644 --- a/packages/chains/src/index.ts +++ b/packages/chains/src/index.ts @@ -511,6 +511,30 @@ const newChains: Chain[] = [ }, testnet: true, }, + { + id: 1661, + name: 'Horizen EON Testnet', + network: 'horizenEON', + nativeCurrency: { + name: 'ZEN', + symbol: 'ZEN', + decimals: 18, + }, + rpcUrls: { + default: { http: ['https://evm-tn-m2.horizenlabs.io/ethv1'] }, + }, + blockExplorers: { + etherscan: { + name: 'Horizen EON explorer', + url: 'https://dune-explorer.horizen.io/', + }, + default: { + name: 'Horizen EON explorer', + url: 'https://dune-explorer.horizen.io/', + }, + }, + testnet: true, + }, ]; export const FLAIR_CHAINS: Chain[] = [ diff --git a/packages/common/src/constants/chain-id.ts b/packages/common/src/constants/chain-id.ts index 3f6ce943..aefe93db 100644 --- a/packages/common/src/constants/chain-id.ts +++ b/packages/common/src/constants/chain-id.ts @@ -40,4 +40,5 @@ export enum ChainId { AURORA_BETANET = 1313161556, METIS_MAINNET = 1088, METIS_GOERLI = 599, + HORIZON_EON_TESTNET = 1661, } diff --git a/packages/common/src/constants/currencies.ts b/packages/common/src/constants/currencies.ts index 29da2491..8d65d3b4 100644 --- a/packages/common/src/constants/currencies.ts +++ b/packages/common/src/constants/currencies.ts @@ -155,4 +155,12 @@ export const KNOWN_CRYPTO_CURRENCIES: CryptoCurrency[] = [ coinGeckoId: 'metis-token', coinMarketCapSymbol: 'METIS', }, + { + nativeChainIds: [ChainId.HORIZON_EON_TESTNET, ChainId.HORIZON_EON_TESTNET], + symbol: 'ZEN', + name: 'ZEN', + icon: 'ZEN', + coinGeckoId: 'zencash', + coinMarketCapSymbol: 'ZEN', + }, ];