From 463e1b8e4c419eb10a2721b5434f339f5d2bbfc8 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sat, 29 Aug 2020 12:05:21 +0200 Subject: [PATCH] Alphabetical RPCs (test) (#3566) --- .../apps-config/src/settings/endpoints.ts | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/packages/apps-config/src/settings/endpoints.ts b/packages/apps-config/src/settings/endpoints.ts index 43bf00cd78..e7c63bbce5 100644 --- a/packages/apps-config/src/settings/endpoints.ts +++ b/packages/apps-config/src/settings/endpoints.ts @@ -51,7 +51,7 @@ function createDev (t: TFunction): LinkOption[] { ]; } -function createLive (t: TFunction): LinkOption[] { +function createLiveNetworks (t: TFunction): LinkOption[] { return [ // fixed, polkadot { @@ -124,9 +124,9 @@ function createLive (t: TFunction): LinkOption[] { ]; } -function createTest (t: TFunction): LinkOption[] { +function createTestNetworks (t: TFunction): LinkOption[] { return [ - // polkadot + // polkadot test relays { dnslink: 'rococo', info: 'rococo', @@ -163,12 +163,6 @@ function createTest (t: TFunction): LinkOption[] { text: t('rpc.rococo.darwinia', 'Darwinia PC1 (Darwinia Testpara, hosted by Darwinia Network)', { ns: 'apps-config' }), value: 'wss://parachain-rpc.darwinia.network' }, - { - info: 'rococoLaminar', - isChild: true, - text: t('rpc.rococo.laminar', 'Turbulence PC1 (Laminar Testpara, hosted by Laminar)', { ns: 'apps-config' }), - value: 'wss://rococo-1.laminar-chain.laminar.one' - }, { info: 'rococoPlasm', isChild: true, @@ -176,10 +170,10 @@ function createTest (t: TFunction): LinkOption[] { value: 'wss://rpc.parachain.plasmnet.io' }, { - dnslink: 'westend', - info: 'westend', - text: t('rpc.westend', 'Westend (Polkadot Testnet, hosted by Parity)', { ns: 'apps-config' }), - value: 'wss://westend-rpc.polkadot.io' + info: 'rococoLaminar', + isChild: true, + text: t('rpc.rococo.laminar', 'Turbulence PC1 (Laminar Testpara, hosted by Laminar)', { ns: 'apps-config' }), + value: 'wss://rococo-1.laminar-chain.laminar.one' }, // alphabetical based on chain name { @@ -197,11 +191,6 @@ function createTest (t: TFunction): LinkOption[] { text: t('rpc.beresheet', 'Beresheet (Edgeware Testnet, hosted by Commonwealth Labs)', { ns: 'apps-config' }), value: 'wss://beresheet1.edgewa.re' }, - { - info: 'substrate', - text: t('rpc.flamingfir', 'Flaming Fir (Substrate Testnet, hosted by Parity)', { ns: 'apps-config' }), - value: 'wss://substrate-rpc.parity.io' - }, { info: 'datahighway', isDisabled: true, @@ -213,6 +202,11 @@ function createTest (t: TFunction): LinkOption[] { text: t('rpc.dusty', 'Dusty (Plasm Testnet, hosted by Stake Technologies)', { ns: 'apps-config' }), value: 'wss://rpc.dusty.plasmnet.io/' }, + { + info: 'substrate', + text: t('rpc.flamingfir', 'Flaming Fir (Substrate Testnet, hosted by Parity)', { ns: 'apps-config' }), + value: 'wss://substrate-rpc.parity.io' + }, { info: 'acala', text: t('rpc.mandala', 'Mandala (Acala Testnet, hosted by Acala)', { ns: 'apps-config' }), @@ -223,15 +217,21 @@ function createTest (t: TFunction): LinkOption[] { text: t('rpc.kilt', 'Mashnet (KILT Canary, hosted by KILT Protocol)', { ns: 'apps-config' }), value: 'wss://full-nodes.kilt.io:9944/' }, + { + info: 'phala', + text: t('rpc.phala', 'Phala PoC-2 (Phala Testnet, hosted by Phala Network)', { ns: 'apps-config' }), + value: 'wss://poc2.phala.network/ws' + }, { info: 'laminar', text: t('rpc.turbulence', 'Turbulence (Laminar Testnet, hosted by Laminar)', { ns: 'apps-config' }), value: 'wss://testnet-node-1.laminar-chain.laminar.one/ws' }, { - info: 'phala', - text: t('rpc.phala', 'Phala PoC-2 (Phala Testnet, hosted by Phala Network)', { ns: 'apps-config' }), - value: 'wss://poc2.phala.network/ws' + dnslink: 'westend', + info: 'westend', + text: t('rpc.westend', 'Westend (Polkadot Testnet, hosted by Parity)', { ns: 'apps-config' }), + value: 'wss://westend-rpc.polkadot.io' } ]; } @@ -271,13 +271,13 @@ export default function create (t: TFunction): LinkOption[] { text: t('rpc.header.live', 'Live networks', { ns: 'apps-config' }), value: '' }, - ...createLive(t), + ...createLiveNetworks(t), { isHeader: true, text: t('rpc.header.test', 'Test networks', { ns: 'apps-config' }), value: '' }, - ...createTest(t), + ...createTestNetworks(t), { isDevelopment: true, isHeader: true,