From 064d85be711949563893802000859ef73b2ad44f Mon Sep 17 00:00:00 2001 From: Eliott Teissonniere <10683430+ETeissonniere@users.noreply.github.com> Date: Wed, 19 Aug 2020 10:57:30 -0700 Subject: [PATCH] expose endpoint for nodle mainnet (#3450) * expose endpoint for nodle mainnet * lint * fix translation strings --- packages/apps-config/src/api/chain/index.ts | 2 -- packages/apps-config/src/api/spec/index.ts | 2 ++ .../src/api/{chain/arcadia.ts => spec/nodle.ts} | 0 packages/apps-config/src/settings/endpoints.ts | 7 ++++++- packages/apps/public/locales/en/apps-config.json | 2 +- packages/apps/public/locales/es/translation.json | 2 +- packages/apps/public/locales/ja/translation.json | 2 +- packages/apps/public/locales/pt/translation.json | 2 +- packages/apps/public/locales/ru/translation.json | 2 +- 9 files changed, 13 insertions(+), 8 deletions(-) rename packages/apps-config/src/api/{chain/arcadia.ts => spec/nodle.ts} (100%) diff --git a/packages/apps-config/src/api/chain/index.ts b/packages/apps-config/src/api/chain/index.ts index 3d1b4d8141..ae80ac7153 100644 --- a/packages/apps-config/src/api/chain/index.ts +++ b/packages/apps-config/src/api/chain/index.ts @@ -2,10 +2,8 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import Arcadia from './arcadia'; import Beresheet from './beresheet'; export default { - 'Arcadia Nodle Network': Arcadia, Beresheet }; diff --git a/packages/apps-config/src/api/spec/index.ts b/packages/apps-config/src/api/spec/index.ts index 7e24edb87c..cb36da48a7 100644 --- a/packages/apps-config/src/api/spec/index.ts +++ b/packages/apps-config/src/api/spec/index.ts @@ -11,9 +11,11 @@ import encointerNodeTeeproxy from './encointer-node-teeproxy'; import kilt from './kilt'; import kulupu from './kulupu'; import nodeTemplate from './node-template'; +import nodle from './nodle'; import stablePoc from './stable-poc'; export default { + 'Nodle Chain Node': nodle, acala, 'centrifuge-chain': centrifugeChain, 'cumulus-test-parachain': testPara, diff --git a/packages/apps-config/src/api/chain/arcadia.ts b/packages/apps-config/src/api/spec/nodle.ts similarity index 100% rename from packages/apps-config/src/api/chain/arcadia.ts rename to packages/apps-config/src/api/spec/nodle.ts diff --git a/packages/apps-config/src/settings/endpoints.ts b/packages/apps-config/src/settings/endpoints.ts index 875e4bdc73..300f11f482 100644 --- a/packages/apps-config/src/settings/endpoints.ts +++ b/packages/apps-config/src/settings/endpoints.ts @@ -102,6 +102,11 @@ function createLive (t: TFunction): LinkOption[] { info: 'kulupu', text: t('rpc.kulupu', 'Kulupu (Kulupu Mainnet, hosted by Kulupu)', { ns: 'apps-config' }), value: 'wss://rpc.kulupu.corepaper.org/ws' + }, + { + info: 'nodle', + text: t('rpc.nodle-main', 'Nodle Main (Nodle Mainnet, hosted by Nodle)', { ns: 'apps-config' }), + value: 'wss://main1.nodleprotocol.io' } ]; } @@ -147,7 +152,7 @@ function createTest (t: TFunction): LinkOption[] { }, { info: 'nodle', - text: t('rpc.arcadia', 'Arcadia (Nodle Testnet, hosted by Nodle)', { ns: 'apps-config' }), + text: t('rpc.nodle-arcadia', 'Arcadia (Nodle Testnet, hosted by Nodle)', { ns: 'apps-config' }), value: 'wss://arcadia1.nodleprotocol.io' }, { diff --git a/packages/apps/public/locales/en/apps-config.json b/packages/apps/public/locales/en/apps-config.json index 7771ba9d0f..a2a19b1b10 100644 --- a/packages/apps/public/locales/en/apps-config.json +++ b/packages/apps/public/locales/en/apps-config.json @@ -1,6 +1,6 @@ { "lng.detect": "Default browser language (auto-detect)", - "rpc.arcadia": "Arcadia (Nodle Testnet, hosted by Nodle)", + "rpc.nodle-arcadia": "Arcadia (Nodle Testnet, hosted by Nodle)", "rpc.beresheet": "Beresheet (Edgeware Testnet, hosted by Commonwealth Labs)", "rpc.custom": "Custom environment", "rpc.edgeware": "Edgeware (Edgeware Mainnet, hosted by Commonwealth Labs)", diff --git a/packages/apps/public/locales/es/translation.json b/packages/apps/public/locales/es/translation.json index 4c1b522ba7..7553425afb 100644 --- a/packages/apps/public/locales/es/translation.json +++ b/packages/apps/public/locales/es/translation.json @@ -953,7 +953,7 @@ "riot name": "nombre de riot", "role": "rol", "rotation": "rotación", - "rpc.arcadia": "Arcadia (Testnet Nodle, ofrecido por Nodle)", + "rpc.nodle-arcadia": "Arcadia (Testnet Nodle, ofrecido por Nodle)", "rpc.beresheet": "Beresheet (Testnet Edgeware, ofrecido por Commonwealth Labs)", "rpc.custom": "Entorno personalizado", "rpc.edgeware": "Edgeware (red principal Edgeware, ofrecido por Commonwealth Labs)", diff --git a/packages/apps/public/locales/ja/translation.json b/packages/apps/public/locales/ja/translation.json index 4d467afde0..92757e80d5 100644 --- a/packages/apps/public/locales/ja/translation.json +++ b/packages/apps/public/locales/ja/translation.json @@ -492,7 +492,7 @@ "remote node/endpoint to connect to": "リモートノード・エンドポイント", "riot": "riot", "riot name": "riot名", - "rpc.arcadia": "Arcadia (Nodle Testnet, hosted by Nodle)", + "rpc.nodle-arcadia": "Arcadia (Nodle Testnet, hosted by Nodle)", "rpc.beresheet": "Beresheet (Edgeware Testnet, hosted by Commonwealth Labs)", "rpc.custom": "カスタムエンドポイント", "rpc.edgeware": "Edgeware (Edgeware Mainnet, hosted by Commonwealth Labs)", diff --git a/packages/apps/public/locales/pt/translation.json b/packages/apps/public/locales/pt/translation.json index 63266f416d..46a22735fb 100644 --- a/packages/apps/public/locales/pt/translation.json +++ b/packages/apps/public/locales/pt/translation.json @@ -958,7 +958,7 @@ "riot name": "nome no riot", "role": "Função", "rotation": "rotação", - "rpc.arcadia": "Arcadia (Nodle Testnet, hospedado por Nodle)", + "rpc.nodle-arcadia": "Arcadia (Nodle Testnet, hospedado por Nodle)", "rpc.beresheet": "Beresheet (Edgeware Testnet, hospedado pelo Commonwealth Labs)", "rpc.custom": "Ambiente personalizado", "rpc.edgeware": "Edgeware (Edgeware Mainnet, hospedado pelo Commonwealth Labs)", diff --git a/packages/apps/public/locales/ru/translation.json b/packages/apps/public/locales/ru/translation.json index e1ef12c1f0..3bd43ebbde 100644 --- a/packages/apps/public/locales/ru/translation.json +++ b/packages/apps/public/locales/ru/translation.json @@ -971,7 +971,7 @@ "riot name": "имя в riot", "role": "роль", "rotation": "ротация", - "rpc.arcadia": "Arcadia (Nodle Testnet, hosted by Nodle)", + "rpc.nodle-arcadia": "Arcadia (Nodle Testnet, hosted by Nodle)", "rpc.beresheet": "Beresheet (Edgeware Testnet, hosted by Commonwealth Labs)", "rpc.custom": "Пользовательская среда", "rpc.edgeware": "Edgeware (Edgeware Mainnet, hosted by Commonwealth Labs)",