From 81e96f5a74815e4b709af9e894aa1f492292cc7a Mon Sep 17 00:00:00 2001 From: Raid Ateir Date: Tue, 16 Jan 2024 02:28:30 +0100 Subject: [PATCH] add dev and qanet --- src/config/networks.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/config/networks.ts b/src/config/networks.ts index c3164f81d0..bee5b97dd6 100644 --- a/src/config/networks.ts +++ b/src/config/networks.ts @@ -62,6 +62,26 @@ const cereTestnet = { cereStatsEndpoint: 'wss://hasura.stats.dev.cere.network/v1/graphql', }; +const cereDevnet = { + ...cereMainnet, + name: 'Cere Devnet', + endpoints: { + rpc: 'wss://archive.devnet.cere.network/ws', + lightClient: WellKnownChain.polkadot, + }, + cereStatsEndpoint: 'wss://hasura.stats.dev.cere.network/v1/graphql', +}; + +const cereQAnet = { + ...cereMainnet, + name: 'Cere Qanet', + endpoints: { + rpc: 'wss://archive.qanet.cere.network/ws', + lightClient: WellKnownChain.polkadot, + }, + cereStatsEndpoint: 'wss://hasura.stats.dev.cere.network/v1/graphql', +}; + // Determine if the testnet should be included based on the REACT_APP_INCLUDE_TESTNET environment variable // By default, includeTestnet is true or undefined unless REACT_APP_INCLUDE_TESTNET is explicitly set to 'false' const includeTestnet = process.env.REACT_APP_INCLUDE_TESTNET !== 'false'; @@ -72,4 +92,6 @@ const includeTestnet = process.env.REACT_APP_INCLUDE_TESTNET !== 'false'; export const NETWORKS: Networks = { cereMainnet, ...(includeTestnet ? { cereTestnet } : {}), + cereDevnet, + cereQAnet, };