// Copyright 2017-2021 @polkadot/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { TFunction } from 'i18next'; import type { LinkOption } from '../settings/types'; import { expandEndpoints } from './util'; /* eslint-disable sort-keys */ // The available endpoints that will show in the dropdown. For the most part (with the exception of // Polkadot) we try to keep this to live chains only, with RPCs hosted by the community/chain vendor // info: The chain logo name as defined in ../ui/logos/index.ts in namedLogos (this also needs to align with @polkadot/networks) // text: The text to display on the dropdown // value: The actual hosted secure websocket endpoint export function createTesting (t: TFunction): LinkOption[] { return expandEndpoints(t, [ // alphabetical based on chain name, e.g. Amber, Arcadia, Beresheet, ... { info: 'centrifuge', text: t('rpc.amber', 'Amber', { ns: 'apps-config' }), providers: { Centrifuge: 'wss://fullnode.amber.centrifuge.io' } }, { info: 'nodle', text: t('rpc.nodle-arcadia', 'Arcadia', { ns: 'apps-config' }), providers: { Nodle: 'wss://arcadia1.nodleprotocol.io' } }, { info: 'edgeware', text: t('rpc.beresheet', 'Beresheet', { ns: 'apps-config' }), providers: { 'Commonwealth Labs': 'wss://beresheet1.edgewa.re' } }, { info: 'bitcountry', text: t('rpc.bitcountry', 'Bit.Country Tewai', { ns: 'apps-config' }), providers: { 'Bit.Country': 'wss://whenua.bit.country' } }, { info: 'bifrost', text: t('rpc.bifrost', 'Bifrost Asgard', { ns: 'apps-config' }), providers: { Bifrost: 'wss://testnet.liebi.com' } }, { info: 'canvas', text: t('rpc.canvas', 'Canvas', { ns: 'apps-config' }), providers: { Parity: 'wss://canvas-rpc.parity.io' } }, { info: 'clover', text: t('rpc.clover.finance', 'Clover', { ns: 'apps-config' }), providers: { Clover: 'wss://api.clover.finance/' } }, { info: 'crust', text: t('rpc.crust.network', 'Crust Maxwell', { ns: 'apps-config' }), providers: { 'Crust Network': 'wss://api.crust.network/', 'DCloud Foundation': 'wss://api.decloudf.com/' } }, { info: 'datahighway', isDisabled: true, text: t('rpc.datahighway.spreehafen', 'Spreehafen', { ns: 'apps-config' }), providers: { MXC: 'wss://spreehafen.datahighway.com' } }, { info: 'dock-testnet', text: t('rpc.dock-testnet', 'Dock', { ns: 'apps-config' }), providers: { 'Dock Association': 'wss://danforth-1.dock.io' } }, { info: 'dotmog', text: t('rpc.dotmog', 'DOTMog', { ns: 'apps-config' }), providers: { DOTMog: 'wss://mogiway-01.dotmog.com' } }, { info: 'phoenix', text: t('rpc.phoenix', 'Phoenix Mashnet', { ns: 'apps-config' }), providers: { 'phoenix Protocol': 'wss://phoenix-ws.coinid.pro/' } }, { info: 'dusty', text: t('rpc.dusty', 'Dusty', { ns: 'apps-config' }), providers: { 'Stake Technologies': 'wss://rpc.dusty.plasmnet.io/' } }, { info: 'encointer_cantillon', text: t('rpc.encointer.cantillon', 'Encointer Cantillon', { ns: 'apps-config' }), providers: { 'Encointer Association': 'wss://cantillon.encointer.org' } }, { info: 'encointer_gesell', text: t('rpc.encointer.gesell', 'Encointer Gesell', { ns: 'apps-config' }), providers: { 'Encointer Association': 'wss://gesell.encointer.org' } }, { info: 'equilibrium', text: t('rpc.equilibriumtestnet', 'Equilibrium', { ns: 'apps-config' }), providers: { Equilibrium: 'wss://testnet.equilibrium.io' } }, { info: 'substrate', text: t('rpc.flamingfir', 'Flaming Fir', { ns: 'apps-config' }), providers: { Parity: 'wss://substrate-rpc.parity.io' } }, { info: 'galois', text: t('rpc.galois', 'Galois', { ns: 'apps-config' }), providers: { MathWallet: 'wss://galois-hk.maiziqianbao.net/ws', 'MathWallet Backup': 'wss://galois.maiziqianbao.net/ws' } }, { info: 'jupiter', text: t('rpc.jupiter', 'Jupiter', { ns: 'apps-config' }), providers: { Elara: 'wss://jupiter-poa.elara.patract.io', Patract: 'wss://ws.jupiter-poa.patract.cn' } }, { info: 'acala', text: t('rpc.mandala', 'Mandala', { ns: 'apps-config' }), providers: { Acala: 'wss://acala-mandala.api.onfinality.io/public-ws', 'Patract Elara': 'wss://mandala.elara.patract.io' } }, { info: 'kilt', text: t('rpc.kilt', 'KILT Mashnet', { ns: 'apps-config' }), providers: { 'KILT Protocol': 'wss://full-nodes.kilt.io:9944/' } }, { info: 'litentry', text: t('rpc.litentry.test', 'Litentry Testnet', { ns: 'apps-config' }), providers: { Litentry: 'wss://testnet.litentry.io' } }, { info: 'moonbaseAlpha', text: t('rpc.moonbeam', 'Moonbase Alpha', { ns: 'apps-config' }), providers: { 'Moonbeam Network': 'wss://wss.testnet.moonbeam.network', OnFinality: 'wss://moonbeam-alpha.api.onfinality.io/public-ws' } }, { info: 'phala', text: t('rpc.phala', 'Phala PoC-3', { ns: 'apps-config' }), providers: { 'Phala Network': 'wss://poc3a.phala.network/ws' } }, { info: 'polkadex', text: t('rpc.polkadex', 'Polkadex', { ns: 'apps-config' }), providers: { 'Polkadex Team': 'wss://blockchain.polkadex.trade' } }, { info: 'polkabtc', text: t('rpc.polkabtc', 'PolkaBTC', { ns: 'apps-config' }), providers: { Interlay: 'wss://beta.polkabtc.io/api/parachain' } }, { info: 'realis', text: t('rpc.realis', 'Realis.Network', { ns: 'apps-config' }), providers: { 'Realis.Network': 'wss://rpc.realis.network/' } }, { info: 'sgc', text: t('rpc.sgc', 'Sgc', { ns: 'apps-config' }), providers: { SGC: 'wss://substrate.org.cn:4443' } }, { info: 'sora-substrate', text: t('rpc.sora-substrate', 'SORA-staging', { ns: 'apps-config' }), providers: { Soramitsu: 'wss://ws.stage.sora2.soramitsu.co.jp' } }, { info: 'ternoa-chaos', text: t('rpc.ternoa-chaos', 'Ternoa Chaos', { ns: 'apps-config' }), providers: { CapsuleCorp: 'wss://chaos.ternoa.com' } }, { info: 'laminar', text: t('rpc.turbulence', 'Turbulence', { ns: 'apps-config' }), providers: { Laminar: 'wss://testnet-node-1.laminar-chain.laminar.one/ws' } }, { info: 'uniarts', text: t('rpc.uniarts', 'Uniarts', { ns: 'apps-config' }), providers: { Uniarts: 'wss://testnet.uniarts.me' } }, { info: 'unique', text: t('rpc.unique', 'Unique', { ns: 'apps-config' }), providers: { Unique: 'wss://testnet2.uniquenetwork.io' } }, { info: 'vln', text: t('rpc.vln', 'Valiu Liquidity Network', { ns: 'apps-config' }), providers: { Valiu: 'wss://vln.valiu.dev' } }, { dnslink: 'westend', info: 'westend', text: t('rpc.westend', 'Westend', { ns: 'apps-config' }), providers: { Parity: 'wss://westend-rpc.polkadot.io', 'NodeFactory(Vedran)': 'wss://westend.vedran.nodefactory.io/ws' } }, { info: 'zero', text: t('rpc.zero', 'Zero', { ns: 'apps-config' }), providers: { ZERO: 'wss://alphaville.zero.io' } } ]); }