From de4776c10f7bb7fb0c632c80ea561c216cca6bc8 Mon Sep 17 00:00:00 2001 From: Caleb Kniffen Date: Mon, 27 Nov 2023 10:49:30 -0600 Subject: [PATCH 1/2] feat: remove AMM devnet The dev network will be decommissioned on the 12/8 --- .env.example | 1 - src/containers/Header/NetworkPicker/NetworkPicker.scss | 6 +----- src/containers/Header/NetworkPicker/NetworkPicker.tsx | 1 - src/containers/shared/NetworkContext.tsx | 1 - 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.env.example b/.env.example index af376aab6..3538fb224 100644 --- a/.env.example +++ b/.env.example @@ -11,7 +11,6 @@ VITE_OSANO_ID= VITE_MAINNET_LINK= VITE_TESTNET_LINK= VITE_DEVNET_LINK= -VITE_AMM_LINK= VITE_XAHAU_MAINNET_LINK= VITE_XAHAU_TESTNET_LINK= VITE_CUSTOMNETWORK_LINK= diff --git a/src/containers/Header/NetworkPicker/NetworkPicker.scss b/src/containers/Header/NetworkPicker/NetworkPicker.scss index dc6883df6..9a60d0100 100644 --- a/src/containers/Header/NetworkPicker/NetworkPicker.scss +++ b/src/containers/Header/NetworkPicker/NetworkPicker.scss @@ -50,15 +50,11 @@ @include dropdown-network-item($devnet, $blue-purple-40); } - &.network-amm { - @include dropdown-network-item($amm, $blue-60); - } - /* stylelint-disable-next-line selector-class-pattern -- needed here for variables */ &.network-xahau_mainnet { @include dropdown-network-item($xahau-mainnet, $green-50); } - + /* stylelint-disable-next-line selector-class-pattern -- needed here for variables */ &.network-xahau_testnet { @include dropdown-network-item($xahau-testnet, $magenta-40); diff --git a/src/containers/Header/NetworkPicker/NetworkPicker.tsx b/src/containers/Header/NetworkPicker/NetworkPicker.tsx index aa8086f3c..f552e0471 100644 --- a/src/containers/Header/NetworkPicker/NetworkPicker.tsx +++ b/src/containers/Header/NetworkPicker/NetworkPicker.tsx @@ -17,7 +17,6 @@ const STATIC_ENV_LINKS: Record = { mainnet: process.env.VITE_MAINNET_LINK, testnet: process.env.VITE_TESTNET_LINK, devnet: process.env.VITE_DEVNET_LINK, - amm: process.env.VITE_AMM_LINK, xahau_mainnet: process.env.VITE_XAHAU_MAINNET_LINK, xahau_testnet: process.env.VITE_XAHAU_TESTNET_LINK, } diff --git a/src/containers/shared/NetworkContext.tsx b/src/containers/shared/NetworkContext.tsx index 1617a74d8..c14e16e39 100644 --- a/src/containers/shared/NetworkContext.tsx +++ b/src/containers/shared/NetworkContext.tsx @@ -6,7 +6,6 @@ const ENV_NETWORK_MAP: Record = { mainnet: 'main', testnet: 'test', devnet: 'dev', - amm: 'amm-dev', xahau_mainnet: 'xahau-main', xahau_testnet: 'xahau-test', } From 47bf942c0519929a699cfab7b966ba1445f24ef4 Mon Sep 17 00:00:00 2001 From: Caleb Kniffen Date: Mon, 27 Nov 2023 10:50:49 -0600 Subject: [PATCH 2/2] remove translations --- public/locales/en-US/translations.json | 1 - public/locales/es-ES/translations.json | 1 - public/locales/fr-FR/translations.json | 1 - public/locales/ja-JP/translations.json | 1 - public/locales/ko-KR/translations.json | 1 - 5 files changed, 5 deletions(-) diff --git a/public/locales/en-US/translations.json b/public/locales/en-US/translations.json index 2e919c2d7..37e146efd 100644 --- a/public/locales/en-US/translations.json +++ b/public/locales/en-US/translations.json @@ -11,7 +11,6 @@ "network_name_testnet": "Testnet", "network_name_mainnet": "Mainnet", "network_name_devnet": "Devnet", - "network_name_amm": "AMM-Devnet", "network_name_xahau_mainnet": "Xahau Mainnet", "network_name_xahau_testnet": "Xahau Testnet", "network_name_custom": "Custom", diff --git a/public/locales/es-ES/translations.json b/public/locales/es-ES/translations.json index 6bb1d8ba2..641288eec 100644 --- a/public/locales/es-ES/translations.json +++ b/public/locales/es-ES/translations.json @@ -11,7 +11,6 @@ "network_name_testnet": "Testnet", "network_name_mainnet": "Mainnet", "network_name_devnet": "Devnet", - "network_name_amm": "AMM-Devnet", "network_name_xahau_mainnet": "Xahau Mainnet", "network_name_xahau_testnet": "Xahau Testnet", "network_name_custom": "Personalizada", diff --git a/public/locales/fr-FR/translations.json b/public/locales/fr-FR/translations.json index 7d2cfcd41..aed108c5c 100644 --- a/public/locales/fr-FR/translations.json +++ b/public/locales/fr-FR/translations.json @@ -11,7 +11,6 @@ "network_name_testnet": "Testnet", "network_name_mainnet": "Mainnet", "network_name_devnet": "Devnet", - "network_name_amm": "AMM-Devnet", "network_name_xahau_mainnet": "Xahau Mainnet", "network_name_xahau_testnet": "Xahau Testnet", "network_name_custom": "Personnalisé", diff --git a/public/locales/ja-JP/translations.json b/public/locales/ja-JP/translations.json index 4ff42182e..7cc71f5de 100644 --- a/public/locales/ja-JP/translations.json +++ b/public/locales/ja-JP/translations.json @@ -11,7 +11,6 @@ "network_name_testnet": "Testnet", "network_name_mainnet": "Mainnet", "network_name_devnet": "Devnet", - "network_name_amm": "AMM-Devnet", "network_name_xahau_mainnet": "Xahau Mainnet", "network_name_xahau_testnet": "Xahau Testnet", "network_name_custom": "Custom", diff --git a/public/locales/ko-KR/translations.json b/public/locales/ko-KR/translations.json index 671caab68..6ffb1124c 100644 --- a/public/locales/ko-KR/translations.json +++ b/public/locales/ko-KR/translations.json @@ -13,7 +13,6 @@ "network_name_testnet": "Testnet", "network_name_mainnet": "Mainnet", "network_name_devnet": "Devnet", - "network_name_amm": "AMM-Devnet", "network_name_xahau_mainnet": "Xahau Mainnet", "network_name_xahau_testnet": "Xahau Testnet", "network_name_custom": "Custom",