forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testingRelayWestend.ts
205 lines (200 loc) · 5.35 KB
/
testingRelayWestend.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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { EndpointOption } from './types';
import { WESTEND_GENESIS } from '../api/constants';
import { chainsKaruraSVG, chainsStandardPNG } from '../ui/logos/chains';
import { nodesBridgeHubBlackSVG, nodesCentrifugePNG, nodesIntegriteeSVG, nodesInterlaySVG, nodesKhalaSVG, nodesKiltPNG, nodesKylinPNG, nodesMoonshadowPNG, nodesPangoroSVG, nodesStatemineSVG, nodesWestendColourSVG } from '../ui/logos/nodes';
import { getTeleports } from './util';
// 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
// providers: The actual hosted secure websocket endpoint
//
// IMPORTANT: Alphabetical based on text
export const testParasWestend: EndpointOption[] = [
{
info: 'charcoal',
paraId: 2086,
providers: {
// Centrifuge: 'wss://fullnode-collator.charcoal.centrifuge.io' // https://github.com/polkadot-js/apps/issues/8219
},
text: 'Charcoal',
ui: {
logo: nodesCentrifugePNG
}
},
{
info: 'integritee',
paraId: 2081,
providers: {
// Integritee: 'wss://teerw1.integritee.network' // https://github.com/polkadot-js/apps/issues/8937
},
text: 'Integritee Network',
ui: {
color: '#658ea9',
logo: nodesIntegriteeSVG
}
},
{
info: 'interlay',
paraId: 2094,
providers: {
// Interlay: 'wss://api-westend.interlay.io/parachain' // https://github.com/polkadot-js/apps/issues/6261
},
text: 'Interlay',
ui: {
logo: nodesInterlaySVG
}
},
{
info: 'moonshadow',
paraId: 2002,
providers: {
// PureStake: 'wss://wss.moonshadow.testnet.moonbeam.network' // https://github.com/polkadot-js/apps/issues/6181
},
text: 'Moonshadow',
ui: {
color: '#53cbc9',
logo: nodesMoonshadowPNG
}
},
{
homepage: 'https://darwinia.network/',
info: 'pangoro',
paraId: 2102,
providers: {
// Darwinia: 'wss://pangoro-parachain-rpc.darwinia.network' // https://github.com/polkadot-js/apps/issues/6530
},
text: 'Pangoro',
ui: {
color: '#4B30DD',
logo: nodesPangoroSVG
}
},
{
homepage: 'https://kylin.network/',
info: 'westendPichiu',
paraId: 2112,
providers: {
// 'Kylin Network': 'wss://westend.kylin-node.co.uk' // https://github.com/polkadot-js/apps/issues/8710
},
text: 'Pichiu',
ui: {
logo: nodesKylinPNG
}
},
{
info: 'westendStandard',
paraId: 2094,
providers: {
// 'Standard Protocol': 'wss://rpc.westend.standard.tech' // https://github.com/polkadot-js/apps/issues/8525
},
text: 'Standard',
ui: {
logo: chainsStandardPNG
}
},
{
info: 'karura',
paraId: 2005,
providers: {
// 'Acala Foundation': 'wss://karura-westend-rpc.aca-staging.network' // https://github.com/polkadot-js/apps/issues/5830
},
text: 'Wendala',
ui: {
logo: chainsKaruraSVG
}
},
{
info: 'whala',
paraId: 2013,
providers: {
// Phala: 'wss://whala.phala.network/ws' // https://github.com/polkadot-js/apps/issues/6181
},
text: 'Whala',
ui: {
color: '#03f3f3',
logo: nodesKhalaSVG
}
},
{
homepage: 'https://www.kilt.io/',
info: 'kilt',
paraId: 2085,
providers: {
'KILT Protocol': 'wss://westend.kilt.io:9977'
},
text: 'WILT',
ui: {
color: '#8c145a',
logo: nodesKiltPNG
}
}
];
export const testParasWestendCommon: EndpointOption[] = [
{
info: 'westmint',
paraId: 1000,
providers: {
Dwellir: 'wss://westmint-rpc.dwellir.com',
'Dwellir Tunisia': 'wss://westmint-rpc-tn.dwellir.com',
Parity: 'wss://westmint-rpc.polkadot.io'
},
teleport: [-1],
text: 'Westmint',
ui: {
color: '#77bb77',
logo: nodesStatemineSVG
}
},
{
info: 'westendCollectives',
paraId: 1001,
providers: {
Parity: 'wss://westend-collectives-rpc.polkadot.io'
},
teleport: [-1],
text: 'Collectives',
ui: {
color: '#e6777a',
logo: 'fa;people-group'
}
},
{
info: 'westendBridgeHub',
paraId: 1002,
providers: {
Parity: 'wss://westend-bridge-hub-rpc.polkadot.io'
},
text: 'BridgeHub',
ui: {
logo: nodesBridgeHubBlackSVG
}
}
];
export const testRelayWestend: EndpointOption = {
dnslink: 'westend',
genesisHash: WESTEND_GENESIS,
info: 'westend',
linked: [
...testParasWestendCommon,
...testParasWestend
],
providers: {
'Dotters Net': 'wss://rpc.dotters.network/westend',
Dwellir: 'wss://westend-rpc.dwellir.com',
'Dwellir Tunisia': 'wss://westend-rpc-tn.dwellir.com',
'IBP Network': 'wss://rpc.ibp.network/westend',
OnFinality: 'wss://westend.api.onfinality.io/public-ws',
Parity: 'wss://westend-rpc.polkadot.io',
Pinknode: 'wss://rpc.pinknode.io/westend/explorer',
'light client': 'light://substrate-connect/westend'
},
teleport: getTeleports(testParasWestendCommon),
text: 'Westend',
ui: {
color: '#da68a7',
logo: nodesWestendColourSVG
}
};