From 0bef2439d2ecdc70068dc035d153eb4a47ece033 Mon Sep 17 00:00:00 2001 From: Chris Maniewski Date: Mon, 15 Jul 2024 22:33:31 +0200 Subject: [PATCH] feat: add network ids for all supported networks --- packages/core/src/constants.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/core/src/constants.ts b/packages/core/src/constants.ts index 4c49b653d..9f2e16227 100644 --- a/packages/core/src/constants.ts +++ b/packages/core/src/constants.ts @@ -20,6 +20,25 @@ export enum Network { ArbitrumSepolia = 'ArbitrumSepolia', } +export enum NetworkId { + /** Use this to specify an own main ColonyNetwork address in the options */ + Custom = 0x0, + /** Ethereum Mainnet */ + Mainnet = 0x1, + /** Goerli testnet */ + Goerli = 0x5, + /** Gnosis chain */ + Gnosis = 0x64, + /** Gnosis chain (alias) */ + Xdai = 0x64, + /** Gnosis chain custom fork */ + XdaiQa = 0x64, + /** Arbitrum Testnet */ + ArbitrumSepolia = 0x66eee, + /** Arbitrum One Mainnet */ + ArbitrumOne = 0xa4b1, +} + /** * Addresses of the deployed ColonyNetwork EtherRouter contracts in all networks */