From 51a7c69ea383bde50d187a35a1b2c286a648234f Mon Sep 17 00:00:00 2001 From: Michal Zielenkiewicz Date: Wed, 12 Jul 2023 10:09:16 +0200 Subject: [PATCH] Disable Emerald Mainnet --- .changelog/722.internal.md | 1 + src/app/components/Search/search-utils.ts | 1 + src/app/pages/ParatimeDashboardPage/LearningMaterials.tsx | 1 + src/app/utils/route-utils.ts | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .changelog/722.internal.md diff --git a/.changelog/722.internal.md b/.changelog/722.internal.md new file mode 100644 index 0000000000..86400d5edf --- /dev/null +++ b/.changelog/722.internal.md @@ -0,0 +1 @@ +Disable Emerald Mainnet diff --git a/src/app/components/Search/search-utils.ts b/src/app/components/Search/search-utils.ts index ba6afd39e2..925356bece 100644 --- a/src/app/components/Search/search-utils.ts +++ b/src/app/components/Search/search-utils.ts @@ -21,6 +21,7 @@ type LayerSuggestions = { export const searchSuggestionTerms: Record>> = { mainnet: { + // @ts-expect-error Emerald will be enabled as soon Nexus re-indexing will be finished emerald: { suggestedBlock: '4260', suggestedTransaction: '0x2f461f83745e1fa1177138aa815e210e1c69305db8065af9015b2e490a5033f1', diff --git a/src/app/pages/ParatimeDashboardPage/LearningMaterials.tsx b/src/app/pages/ParatimeDashboardPage/LearningMaterials.tsx index 6a0453bd02..c281347de6 100644 --- a/src/app/pages/ParatimeDashboardPage/LearningMaterials.tsx +++ b/src/app/pages/ParatimeDashboardPage/LearningMaterials.tsx @@ -50,6 +50,7 @@ const getContent = (t: TFunction): Record => { return { [Network.mainnet]: { + // @ts-expect-error Emerald will be enabled as soon Nexus re-indexing will be finished [Layer.emerald]: { primary: { description: t('learningMaterials.emerald.description'), diff --git a/src/app/utils/route-utils.ts b/src/app/utils/route-utils.ts index 965932554c..0324853bea 100644 --- a/src/app/utils/route-utils.ts +++ b/src/app/utils/route-utils.ts @@ -15,7 +15,7 @@ export type SpecifiedPerEnabledLayer = { export abstract class RouteUtils { private static ENABLED_LAYERS_FOR_NETWORK = { [Network.mainnet]: { - [Layer.emerald]: true, + // [Layer.emerald]: true, [Layer.sapphire]: true, }, [Network.testnet]: {