ghost-portal/packages/apps-config/src/endpoints/testing.ts
Zombieliu 00d3c6237b
add sgc testnet (#4681)
* add jupiter testnet

* add sgc testnet

* Revert "add sgc testnet"

This reverts commit 548895501a7d1f2079755d6881df8de7958afd17.

* second add sgc testnet

* second add sgc testnet

* third add sgc testnet

* four add sgc testnet

* updating

* change

* OK

* amazing
2021-02-17 14:58:22 +01:00

244 lines
6.7 KiB
TypeScript

// 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/'
}
},
{
info: 'datahighway',
isDisabled: true,
text: t('rpc.datahighway.harbour', 'Harbour', { ns: 'apps-config' }),
providers: {
MXC: 'wss://testnet-harbour.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: '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://api.mvp.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.maiziqianbao.net/ws'
}
},
{
info: 'jupiter',
text: t('rpc.jupiter', 'Jupiter', { ns: 'apps-config' }),
providers: {
Elara: 'wss://jupiter.elara.patract.io',
Patract: 'wss://ws.jupiter.patract.cn'
}
},
{
info: 'acala',
text: t('rpc.mandala', 'Mandala', { ns: 'apps-config' }),
providers: {
Acala: 'wss://node-6714447553211260928.rz.onfinality.io/ws',
'Patract Elara': 'wss://mandala.elara.patract.io'
}
},
{
info: 'kilt',
text: t('rpc.kilt', 'Mashnet', { ns: 'apps-config' }),
providers: {
'KILT Protocol': 'wss://full-nodes.kilt.io:9944/'
}
},
{
info: 'moonbaseAlpha',
text: t('rpc.moonbeam', 'Moonbase Alpha', { ns: 'apps-config' }),
providers: {
'Moonbeam Network': 'wss://wss.testnet.moonbeam.network'
}
},
{
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://alpha.polkabtc.io/api/parachain'
}
},
{
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'
}
},
{
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-0.zero.io'
}
}
]);
}