From 14d6b9c7baacdb163b5088499dc12db0008813cb 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 000000000..86400d5ed --- /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 ba6afd39e..51d2c107a 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 as 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 6a0453bd0..5ab5bd21a 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 as 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 965932554..0324853be 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]: {