ghost-portal/packages/apps-config/src/endpoints/production.ts
Lay Hunt 2286b2d3d7
Update Uniarts Chain types & logo & main net (#5253)
* Update test uart types

* Update packages/apps-config/src/api/spec/uart.ts

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Update the uart type for the second time

* update types

* update logo

* update colors & add mainnet

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-05-11 14:49:30 +02:00

171 lines
5.0 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
// alphabetical based on chain name
export function createProduction (t: TFunction): LinkOption[] {
return expandEndpoints(t, [
{
dnslink: 'centrifuge',
info: 'centrifuge',
text: t('rpc.centrifuge', 'Centrifuge', { ns: 'apps-config' }),
providers: {
Centrifuge: 'wss://fullnode.centrifuge.io'
}
},
{
info: 'crab',
text: t('rpc.crab', 'Darwinia Crab', { ns: 'apps-config' }),
providers: {
'Darwinia Network': 'wss://crab-rpc.darwinia.network'
}
},
{
info: 'chainx',
text: t('rpc.chainx', 'ChainX', { ns: 'apps-config' }),
providers: {
ChainX: 'wss://mainnet.chainx.org/ws',
'Patract Elara': 'wss://chainx.elara.patract.io'
}
},
{
info: 'darwinia',
text: t('rpc.darwinia', 'Darwinia', { ns: 'apps-config' }),
providers: {
'Darwinia Network': 'wss://rpc.darwinia.network',
'Patract Elara': 'wss://darwinia.elara.patract.io'
}
},
{
info: 'dock-mainnet',
text: t('rpc.dock-mainnet', 'Dock', { ns: 'apps-config' }),
providers: {
'Dock Association': 'wss://mainnet-node.dock.io',
'Patract Elara': 'wss://dock.elara.patract.io'
}
},
{
dnslink: 'edgeware',
info: 'edgeware',
text: t('rpc.edgeware', 'Edgeware', { ns: 'apps-config' }),
providers: {
'Commonwealth Labs': 'wss://mainnet1.edgewa.re',
'Patract Elara': 'wss://edgeware.elara.patract.io',
OnFinality: 'wss://edgeware.api.onfinality.io/public-ws'
}
},
{
info: 'equilibrium',
text: t('rpc.equilibrium', 'Equilibrium', { ns: 'apps-config' }),
providers: {
Equilibrium: 'wss://node.equilibrium.io'
}
},
{
info: 'hanonycash',
text: t('rpc.hanonycash', 'Hanonycash', { ns: 'apps-config' }),
providers: {
Hanonycash: 'wss://rpc.hanonycash.com'
}
},
{
info: 'snakenet',
text: t('rpc.hydra', 'HydraDX', { ns: 'apps-config' }),
providers: {
HydraDX: 'wss://rpc-01.snakenet.hydradx.io',
'Galactic Council': 'wss://rpc-02.snakenet.hydradx.io',
Archives: 'wss://archive.snakenet.hydradx.io'
}
},
{
dnslink: 'kulupu',
info: 'kulupu',
text: t('rpc.kulupu', 'Kulupu', { ns: 'apps-config' }),
providers: {
Kulupu: 'wss://rpc.kulupu.corepaper.org/ws',
'Patract Elara': 'wss://kulupu.elara.patract.io'
}
},
{
info: 'neatcoin',
text: t('rpc.neatcoin', 'Neatcoin', { ns: 'apps-config' }),
providers: {
Neatcoin: 'wss://rpc.neatcoin.org/ws'
}
},
{
info: 'nodle',
text: t('rpc.nodle-main', 'Nodle', { ns: 'apps-config' }),
providers: {
Nodle: 'wss://main3.nodleprotocol.io',
'Patract Elara': 'wss://nodle.elara.patract.io'
}
},
{
info: 'plasm',
text: t('rpc.plasm', 'Plasm', { ns: 'apps-config' }),
providers: {
'Stake Technologies': 'wss://rpc.plasmnet.io/',
'Patract Elara': 'wss://plasm.elara.patract.io'
}
},
{
info: 'riochain',
text: t('rpc.riochain', 'RioChain', { ns: 'apps-config' }),
providers: {
RioChain: 'wss://node.v1.riochain.io'
}
},
{
info: 'sora-substrate',
text: t('rpc.sora-substrate', 'SORA', { ns: 'apps-config' }),
providers: {
Soramitsu: 'wss://ws.sora2.soramitsu.co.jp'
}
},
{
info: 'stafi',
isDisabled: true, // Cannot find type ChainId
text: t('rpc.stafi', 'Stafi', { ns: 'apps-config' }),
providers: {
'Stafi Foundation': 'wss://mainnet-rpc.stafi.io',
'Patract Elara': 'wss://stafi.elara.patract.io'
}
},
{
info: 'subsocial',
text: t('rpc.subsocial', 'Subsocial', { ns: 'apps-config' }),
providers: {
DappForce: 'wss://rpc.subsocial.network',
'Patract Elara': 'wss://subsocial.elara.patract.io'
}
},
{
info: 'uniarts',
text: t('rpc.uniarts', 'UniArts', { ns: 'apps-config' }),
providers: {
UniArts: 'wss://mainnet.uniarts.vip:9443'
}
},
{
info: 'westlake',
text: t('rpc.westlake', 'Westlake', { ns: 'apps-config' }),
providers: {
DataHighway: 'wss://westlake.datahighway.com'
}
}
]);
}