forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduction.ts
171 lines (166 loc) · 5.27 KB
/
production.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { TFunction } from 'i18next';
import type { LinkOption } from './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, firstOnly?: boolean): LinkOption[] {
return expandEndpoints(t, [
{
dnslink: 'centrifuge',
info: 'centrifuge',
text: t('rpc.prod.centrifuge', 'Centrifuge', { ns: 'apps-config' }),
providers: {
Centrifuge: 'wss://fullnode.centrifuge.io'
}
},
{
info: 'crab',
text: t('rpc.prod.crab', 'Darwinia Crab', { ns: 'apps-config' }),
providers: {
'Darwinia Network': 'wss://crab-rpc.darwinia.network'
}
},
{
info: 'chainx',
text: t('rpc.prod.chainx', 'ChainX', { ns: 'apps-config' }),
providers: {
ChainX: 'wss://mainnet.chainx.org/ws',
'Patract Elara': 'wss://chainx.elara.patract.io'
}
},
{
info: 'darwinia',
text: t('rpc.prod.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.prod.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.prod.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.prod.equilibrium', 'Equilibrium', { ns: 'apps-config' }),
providers: {
Equilibrium: 'wss://node.equilibrium.io'
}
},
{
info: 'hanonycash',
isUnreachable: true, // https://github.com/polkadot-js/apps/runs/2755409009?check_suite_focus=true
text: t('rpc.prod.hanonycash', 'Hanonycash', { ns: 'apps-config' }),
providers: {
Hanonycash: 'wss://rpc.hanonycash.com'
}
},
{
info: 'snakenet',
text: t('rpc.prod.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.prod.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.prod.neatcoin', 'Neatcoin', { ns: 'apps-config' }),
providers: {
Neatcoin: 'wss://rpc.neatcoin.org/ws'
}
},
{
info: 'nodle',
text: t('rpc.prod.nodle-main', 'Nodle', { ns: 'apps-config' }),
providers: {
Nodle: 'wss://main3.nodleprotocol.io',
'Patract Elara': 'wss://nodle.elara.patract.io'
}
},
{
info: 'plasm',
text: t('rpc.prod.plasm', 'Plasm', { ns: 'apps-config' }),
providers: {
'Stake Technologies': 'wss://rpc.plasmnet.io/',
'Patract Elara': 'wss://plasm.elara.patract.io'
}
},
{
info: 'riochain',
text: t('rpc.prod.riochain', 'RioChain', { ns: 'apps-config' }),
providers: {
RioChain: 'wss://node.v1.riochain.io'
}
},
{
info: 'sora-substrate',
text: t('rpc.prod.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.prod.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.prod.subsocial', 'Subsocial', { ns: 'apps-config' }),
providers: {
DappForce: 'wss://rpc.subsocial.network',
'Patract Elara': 'wss://subsocial.elara.patract.io'
}
},
{
info: 'uniarts',
text: t('rpc.prod.uniarts', 'UniArts', { ns: 'apps-config' }),
providers: {
UniArts: 'wss://mainnet.uniarts.vip:9443'
}
},
{
info: 'datahighway-westlake-chain-mainnet',
text: t('rpc.prod.westlake', 'DataHighway Westlake', { ns: 'apps-config' }),
providers: {
DataHighway: 'wss://westlake.datahighway.com'
}
}
], firstOnly);
}