Skip to content

Commit

Permalink
add dev and qanet
Browse files Browse the repository at this point in the history
  • Loading branch information
Raid5594 committed Jan 16, 2024
1 parent f89900e commit 81e96f5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/config/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -72,4 +92,6 @@ const includeTestnet = process.env.REACT_APP_INCLUDE_TESTNET !== 'false';
export const NETWORKS: Networks = {
cereMainnet,
...(includeTestnet ? { cereTestnet } : {}),
cereDevnet,
cereQAnet,
};

0 comments on commit 81e96f5

Please sign in to comment.