diff --git a/packages/apps-config/src/endpoints/index.ts b/packages/apps-config/src/endpoints/index.ts index 939ad6896a..69a5b659fc 100644 --- a/packages/apps-config/src/endpoints/index.ts +++ b/packages/apps-config/src/endpoints/index.ts @@ -6,9 +6,9 @@ import type { LinkOption } from './types'; import { createCustom, createDev, createOwn } from './development'; import { createProduction } from './production'; -import { createProductionRelays } from './productionRelays'; +import { createKusamaRelay, createPolkadotRelay } from './productionRelays'; import { createTesting } from './testing'; -import { createRococoRelays, createWestendRelays } from './testingRelays'; +import { createRococoRelay, createWestendRelay } from './testingRelays'; export { CUSTOM_ENDPOINT_KEY } from './development'; @@ -19,33 +19,41 @@ export function createWsEndpoints (t: TFunction, firstOnly?: boolean): LinkOptio isDisabled: false, isHeader: true, isSpaced: true, - text: t('rpc.header.live.relay', 'Live relays & parachains', { ns: 'apps-config' }), + text: t('rpc.header.polkadot.relay', 'Polkadot & parachains', { ns: 'apps-config' }), textBy: '', value: '' }, - ...createProductionRelays(t, firstOnly), + ...createPolkadotRelay(t, firstOnly), { isDisabled: false, isHeader: true, - text: t('rpc.header.test.relay', 'Test relays & parachains', { ns: 'apps-config' }), + text: t('rpc.header.kusama.relay', 'Kusama & parachains', { ns: 'apps-config' }), textBy: '', value: '' }, - ...createRococoRelays(t, firstOnly), + ...createKusamaRelay(t, firstOnly), { isDisabled: false, isHeader: true, isSpaced: true, - text: t('rpc.header.rococo.relay', 'Rococo test & parachains', { ns: 'apps-config' }), + text: t('rpc.header.westend.relay', 'Test Westend & parachains', { ns: 'apps-config' }), textBy: '', value: '' }, - ...createWestendRelays(t, firstOnly), + ...createWestendRelay(t, firstOnly), + { + isDisabled: false, + isHeader: true, + text: t('rpc.header.rococo.relay', 'Test Rococo & parachains', { ns: 'apps-config' }), + textBy: '', + value: '' + }, + ...createRococoRelay(t, firstOnly), { isDisabled: false, isHeader: true, isSpaced: true, - text: t('rpc.header.westend.relay', 'Westend test & parachains', { ns: 'apps-config' }), + text: t('rpc.header.live', 'Live networks', { ns: 'apps-config' }), textBy: '', value: '' }, diff --git a/packages/apps-config/src/endpoints/productionRelays.ts b/packages/apps-config/src/endpoints/productionRelays.ts index 6076fa3e5d..86387ac1ca 100644 --- a/packages/apps-config/src/endpoints/productionRelays.ts +++ b/packages/apps-config/src/endpoints/productionRelays.ts @@ -8,9 +8,10 @@ import { createKusama } from './productionRelayKusama'; import { createPolkadot } from './productionRelayPolkadot'; import { expandEndpoints } from './util'; -export function createProductionRelays (t: TFunction, firstOnly?: boolean): LinkOption[] { - return expandEndpoints(t, [ - createPolkadot(t), - createKusama(t) - ], firstOnly); +export function createKusamaRelay (t: TFunction, firstOnly?: boolean): LinkOption[] { + return expandEndpoints(t, [createKusama(t)], firstOnly); +} + +export function createPolkadotRelay (t: TFunction, firstOnly?: boolean): LinkOption[] { + return expandEndpoints(t, [createPolkadot(t)], firstOnly); } diff --git a/packages/apps-config/src/endpoints/testingRelays.ts b/packages/apps-config/src/endpoints/testingRelays.ts index 91b34d7fa7..650753f67c 100644 --- a/packages/apps-config/src/endpoints/testingRelays.ts +++ b/packages/apps-config/src/endpoints/testingRelays.ts @@ -8,10 +8,10 @@ import { createRococo } from './testingRelayRococo'; import { createWestend } from './testingRelayWestend'; import { expandEndpoints } from './util'; -export function createRococoRelays (t: TFunction, firstOnly?: boolean): LinkOption[] { +export function createRococoRelay (t: TFunction, firstOnly?: boolean): LinkOption[] { return expandEndpoints(t, [createRococo(t)], firstOnly); } -export function createWestendRelays (t: TFunction, firstOnly?: boolean): LinkOption[] { +export function createWestendRelay (t: TFunction, firstOnly?: boolean): LinkOption[] { return expandEndpoints(t, [createWestend(t)], firstOnly); }