From 860413dcfb6468863a39d472200432f5f570502c Mon Sep 17 00:00:00 2001 From: Privilege Mendes Date: Mon, 30 Oct 2023 13:16:45 +0100 Subject: [PATCH] added missing constants for network selector. --- frontend/src/constants.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/frontend/src/constants.ts b/frontend/src/constants.ts index cf0bd9c5f..fb26e6d39 100644 --- a/frontend/src/constants.ts +++ b/frontend/src/constants.ts @@ -95,9 +95,7 @@ export const METRICS_CHARACTER = [ export const METRICS_ITEM = ["sales", "collection size", "floor price", "avg. item price", "avg. item level", "avg. marketplace level"]; -export const EXCLUDE_ITEMS_SHOP = [ - ["hair", ["legendary"]], -] as [[Category, Rarity[]]]; +export const EXCLUDE_ITEMS_SHOP = [["hair", ["legendary"]]] as [[Category, Rarity[]]]; /***************************************************************************/ @@ -139,8 +137,13 @@ export type InteractionMode = typeof ITEM_MODE | typeof MAIN_MODE | typeof CATEG export const CHARACTER_HEIGHT = 1190.5511 as const; export const CHARACTER_WIDTH = 841.8898 as const; -export const NETWORK_CONFIG = import.meta.env.VITE_NETWORK_CONFIG || ("https://emerynet.agoric.net/network-config" as const); -// export const NETWORK_CONFIG = import.meta.env.VITE_NETWORK_CONFIG || ("https://main.agoric.net/network-config" as const); +export const networkOptions = [ + { label: "local", value: "https://wallet.agoric.app/wallet/network-config" }, + { label: "emerynet", value: "https://emerynet.agoric.net/network-config" }, + { label: "mainnet", value: "https://main.agoric.net/network-config" }, +] as const; +export const DEFAULT_NETWORK_CONFIG = import.meta.env.VITE_NETWORK_CONFIG || ("https://emerynet.agoric.net/network-config" as const); +export const NETWORK_CONFIG = import.meta.env.VITE_NETWORK_CONFIG || ("https://main.agoric.net/network-config" as const); export const localBridgeHref = "http://localhost:3000/wallet/bridge.html" as const; export const prodBridgeHref = "https://wallet.agoric.app/wallet/bridge.html" as const;