forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
708 lines (697 loc) · 23.8 KB
/
index.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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* eslint sort-keys: ["error", "asc", { caseSensitive: false }] */
// The mapping here is done on the actual chain name (system.chain RPC) or
// the actual RPC node it is corrected to (system.name RPC)
// anything for a specific chain, most would probably fit into the node category (but allow for chain-specific)
// alphabetical
import { sanitize } from '../util';
import chainAcala from './chains/acala.svg';
import chainAleph from './chains/aleph.svg';
import chainAltair from './chains/altair.svg';
import chainAstar from './chains/astar.png';
import chainCoinversation from './chains/coinversation.png';
import chainCrownSterling from './chains/crown-sterling.png';
import chainDusty from './chains/dusty.png';
import chainEfinity from './chains/efinity.svg';
import chainEquilibrium from './chains/equilibrium.svg';
import chainGenshiro from './chains/genshiro.svg';
import chainHydrate from './chains/hydrate.png';
import chainInterBTC from './chains/interbtc.png';
import chainKarura from './chains/karura.svg';
import chainKintsugi from './chains/kintsugi.png';
import chainKusama from './chains/kusama-128.gif';
import chainOpal from './chains/opal-logo.png';
import chainParallel from './chains/parallel.svg';
import chainComposable from './chains/picasso.svg';
import chainQuartz from './chains/quartz.png';
import chainRococo from './chains/rococo.svg';
import chainRococoTick from './chains/rococo-tick.svg';
import chainRococoTrack from './chains/rococo-track.svg';
import chainRococoTrick from './chains/rococo-trick.svg';
import chainShiden from './chains/shiden.png';
import chainSnakenet from './chains/snakenet.svg';
import chainSpanner from './chains/spanner.png';
import chainStandard from './chains/standard.png';
import chainUnique from './chains/unique.svg';
import chainUnorthodox from './chains/unorthodox.png';
import extensionPolkadotJs from './extensions/polkadot-js.svg';
import externalCommonwealth from './external/commonwealth.png';
import externalDotreasury from './external/dotreasury.svg';
import externalDotScanner from './external/dotscanner.png';
import externalPolkascan from './external/polkascan.png';
import externalPolkassembly from './external/polkassembly.png';
import externalPolkastats from './external/polkastats.png';
import externalStatescan from './external/statescan.svg';
import externalSubId from './external/subid.svg';
import externalSubscan from './external/subscan.svg';
import nodeApron from './nodes/apron.png';
import nodeAres from './nodes/ares.svg';
import nodeAresGladios from './nodes/ares-gladios.svg';
import nodeAresMars from './nodes/ares-mars.png';
import nodeAstar from './nodes/astar.png';
import nodeAutomata from './nodes/automata.png';
import nodeBasilisk from './nodes/basilisk.png';
import nodeBeast from './nodes/beast.svg';
import nodeBifrost from './nodes/bifrost.svg';
import nodeBitCountry from './nodes/bitcountry.svg';
import nodeCalamari from './nodes/calamari.png';
import nodeCanvas from './nodes/canvas-2.png';
import nodeCentrifuge from './nodes/centrifuge.png';
import nodeChainx from './nodes/chainx.svg';
import nodeClover from './nodes/clover.svg';
import nodeCoinversation from './nodes/coinversation.png';
import nodeCrab from './nodes/crab.svg';
import nodeCrownSterling from './nodes/crown-sterling.png';
import nodeCrust from './nodes/crust.svg';
import nodeCrustMaxwell from './nodes/crust-maxwell.svg';
import nodeCrustParachain from './nodes/crustParachain.svg';
import nodeDarwinia from './nodes/darwinia.png';
import nodeDataHighway from './nodes/datahighway.png';
import nodeDockMainnet from './nodes/dock-mainnet.png';
import nodeDockTestnet from './nodes/dock-testnet.png';
import nodeDotMog from './nodes/dotmog.svg';
import nodeEave from './nodes/eave.svg';
import nodeEdgeware from './nodes/edgeware-white.png';
import nodeEfinity from './nodes/efinity.svg';
import nodeEncointer from './nodes/encointer-blue.svg';
import nodeFantour from './nodes/fantour.png';
import nodeGalital from './nodes/galital-logo.png';
import nodeGamePower from './nodes/gamepower.svg';
import nodeGeek from './nodes/geek.svg';
import nodeHanonycash from './nodes/hanonycash.svg';
import nodeIdavoll from './nodes/idavoll.png';
import nodeIntegritee from './nodes/integritee.svg';
import nodeInterBTC from './nodes/interbtc.png';
import nodeIpse from './nodes/ipse.png';
import nodeJupiter from './nodes/jupiter.svg';
import nodeKhala from './nodes/khala.svg';
import nodeKilt from './nodes/kilt.png';
import nodeKlug from './nodes/klug.png';
import nodeKonomi from './nodes/konomi.png';
import nodeKulupu from './nodes/kulupu.svg';
import nodeKylin from './nodes/kylin.png';
import nodeLaminar from './nodes/laminar-circle.svg';
import nodeLitentry from './nodes/litentry.png';
import nodeLoomNetwork from './nodes/loom_network.png';
import nodeManta from './nodes/manta.png';
import nodeMath from './nodes/math.svg';
import moonbeam from './nodes/moonbeam.png';
import moonriver from './nodes/moonriver.svg';
import nodeMoonrock from './nodes/moonrock.png';
import moonshadow from './nodes/moonshadow.png';
import mybank from './nodes/mybank.png';
import nodeNFTMart from './nodes/nftmart.png';
import nodeNodle from './nodes/nodle.svg';
import oakTestnet from './nodes/oak-testnet.png';
import nodeUniqueWestend from './nodes/opal-logo.png';
import nodeOpportunity from './nodes/opportunity.png';
import nodeOriginTrail from './nodes/origintrail.png';
import nodePangolin from './nodes/pangolin.svg';
import nodePangoro from './nodes/pangoro.svg';
import nodeParallel from './nodes/parallel.svg';
import nodeParami from './nodes/parami.png';
import nodePhala from './nodes/phala.svg';
import nodePhoenix from './nodes/phoenix.png';
import nodePichiu from './nodes/pichiu.png';
import nodePioneerNetwork from './nodes/pioneer.png';
import nodePlasm from './nodes/plasm.png';
import nodePolkadex from './nodes/polkadex.svg';
import nodePolkadot from './nodes/polkadot-circle.svg';
import nodePolkadotJs from './nodes/polkadot-js.svg';
import nodePolkaFoundry from './nodes/polkafoundry.svg';
import nodePolkaSmith from './nodes/polkasmith.svg';
import nodePolymesh from './nodes/polymesh.svg';
import nodePontem from './nodes/pontem.svg';
import nodePrism from './nodes/prism.png';
import nodeQuartz from './nodes/quartz.png';
import nodeRealis from './nodes/realis.png';
import nodeRiochain from './nodes/riochain.svg';
import nodeRobonomics from './nodes/robonomics.svg';
import nodeSakura from './nodes/sakura.svg';
import nodeShadow from './nodes/shadow.svg';
import nodeShell from './nodes/shell.svg';
import nodeSingLavender from './nodes/singlavender.svg';
import nodeSora from './nodes/sora-substrate.svg';
import nodeStafi from './nodes/stafi.png';
import nodeStatemine from './nodes/statemine.svg';
import nodeSubDAO from './nodes/subdao.png';
import nodeSubGame from './nodes/subgame.svg';
import nodeSubsocial from './nodes/subsocial.svg';
import nodeSubspace from './nodes/subspace.png';
import nodeSubstrateContractsNode from './nodes/substrate-contracts-node.png';
import nodeSubstrate from './nodes/substrate-hexagon.svg';
import nodeTernoa from './nodes/ternoa.svg';
import nodeTrustBase from './nodes/trustbase.png';
import nodeUniarts from './nodes/uniarts.png';
import nodeUnique from './nodes/unique.svg';
import nodeUnitv from './nodes/unitv.png';
import nodeVln from './nodes/valiu.png';
import nodeWeb3games from './nodes/web3games.svg';
import nodeWestend from './nodes/westend_colour.svg';
import nodeWestlake from './nodes/westlake.png';
import nodeWhala from './nodes/whala.svg';
import nodeZCloak from './nodes/zCloak.svg';
import nodeZeitgeist from './nodes/zeitgeist.png';
import nodeZenlink from './nodes/zenlink.svg';
import nodeZero from './nodes/zero.svg';
import emptyLogo from './empty.svg';
// last-resort fallback, just something empty
// Alphabetical overrides based on the actual matched chain name
// NOTE: This is as retrieved via system.chain RPC
export const chainLogos = Object.entries({
'Aleph Zero': chainAleph,
'Aleph Zero Testnet': chainAleph,
Altair: chainAltair,
'Apron PC1': nodeApron,
'Ares Gladios': nodeAresGladios,
'Ares Odyssey': nodeAresGladios,
'Ares PC1': nodeAres,
Astar: chainAstar,
Automata: nodeAutomata,
'Automata ContextFree': nodeAutomata,
'Beast Developer': nodeBeast,
Bifrost: nodeBifrost,
'Bifrost Asgard CC4': nodeBifrost,
'Calamari Parachain': nodeCalamari,
'Calamari Parachain Development': nodeCalamari,
'Calamari Parachain Local': nodeCalamari,
'Calamari Parachain Testnet': nodeCalamari,
ChainX: nodeChainx,
'Charcoal Testnet': nodeCentrifuge,
Coinversation: chainCoinversation,
'Crown Sterling': chainCrownSterling,
'Crust Maxwell': nodeCrustMaxwell,
'Crust PC1': nodeCrust,
'darwinia crab': nodeCrab,
'Darwinia Crab PC2': nodeCrab,
'Darwinia PC2': nodeDarwinia,
DataHighway: nodeDataHighway,
Dusty: chainDusty,
Efinity: chainEfinity,
Equilibrium: chainEquilibrium,
EquilibriumTestnet: chainEquilibrium,
Galital: nodeGalital,
'GamePower Network': nodeGamePower,
GEEK: nodeGeek,
Genshiro: chainGenshiro,
'Genshiro Rococo Testnet': chainEquilibrium,
'HydraDX Hydrate': chainHydrate,
'HydraDX Snakenet': chainSnakenet,
'HydraDX Snakenet Gen2': chainSnakenet,
'HydraDX Snakenet Gen3': chainSnakenet,
Idavoll: nodeIdavoll,
InterBTC: nodeInterBTC,
'InterBTC Staging': nodeInterBTC,
IpseTestnet: nodeIpse,
'Jupiter A1': nodeJupiter,
'Jupiter PC1': nodeJupiter,
Karura: chainKarura,
KILT: nodeKilt,
'KILT Local': nodeKilt,
'KILT Peregrine': nodeKilt,
'KILT Testnet': nodeKilt,
Kintsugi: chainKintsugi,
KlugDossier: nodeKlug,
Konomi: nodeKonomi,
Kpron: nodeApron,
Kusama: chainKusama, // new name after CC3
'Kusama CC1': chainKusama,
'Kusama CC2': chainKusama,
'Kusama CC3': chainKusama,
'Kylin Testnet': nodeKylin,
Litentry: nodeLitentry,
'Loom Network Local': nodeLoomNetwork,
LoomNetwork: nodeLoomNetwork,
'Manta Parachain': nodeManta,
'Manta Parachain Development': nodeManta,
'Manta Parachain Local': nodeManta,
'Manta Parachain Testnet': nodeManta,
Mars: nodeAresMars,
MathChain: nodeMath,
'MathChain PC1': nodeMath,
'mathchain-galois': nodeMath,
'Moonbase Alpha': moonbeam,
'Moonbase Development Testnet': moonbeam,
'Moonbase Stage': moonbeam,
Moonbeam: moonbeam,
Moonriver: moonriver,
Moonrock: nodeMoonrock,
Moonshadow: moonshadow,
'mybank.network PC1': mybank,
NFTMart: nodeNFTMart,
'NFTMart Staging': nodeNFTMart,
'NFTMart Testnet': nodeNFTMart,
'OAK Testnet': oakTestnet,
'OPAL by UNIQUE': chainOpal,
'OriginTrail Parachain': nodeOriginTrail,
'OriginTrail Parachain Testnet': nodeOriginTrail,
Pangolin: nodePangolin,
Pangoro: nodePangoro,
Parallel: chainParallel,
'Parallel Heiko': chainParallel,
'Parami PC2': nodeParami,
'Phala PC1': nodePhala,
'PHOENIX PC1': nodePhoenix,
'Pichiu Testnet': nodePichiu,
'Pioneer Network': nodePioneerNetwork,
'Polkadex Mainnet': nodePolkadex,
'Polkadex Testnet': nodePolkadex,
'PolkaFoundry PC1': nodePolkaFoundry,
'Pontem Testnet': nodePontem,
'Prism PC1': nodePrism,
'Prism Testnet': nodePrism,
'QUARTZ by UNIQUE': chainQuartz,
'ReAlis Network': nodeRealis,
'RioChain CC-1': nodeRiochain,
'RioChain Staging': nodeRiochain,
Rococo: chainRococo,
Shiden: chainShiden,
SingLavender: nodeSingLavender,
Spanner: chainSpanner,
Statemine: nodeStatemine,
'Statemine Test': nodeStatemine,
'Statemint Test': nodeStatemine,
'Steam PC': nodeEave,
subdao: nodeSubDAO,
'SubDAO PC1': nodeSubDAO,
'SubDAO Staging': nodeSubDAO,
subgame: nodeSubGame,
'SubGame Gamma': nodeSubGame,
'SubGame Staging': nodeSubGame,
Subsocial: nodeSubsocial,
'Subsocial PC': nodeSubsocial,
subspace: nodeSubspace,
Tick: chainRococoTick,
Track: chainRococoTrack,
Trick: chainRococoTrick,
trustbase: nodeTrustBase,
'TrustBase PC1': nodeTrustBase,
'uni arts staging network': nodeUniarts,
'UniArts Mainnet': nodeUniarts,
Unique: chainUnique,
'Unit Network': nodeUnitv,
Unorthodox: chainUnorthodox,
Vln: nodeVln,
'VLN PC': nodeVln,
'Web3Games Plum': nodeWeb3games,
Westend: nodeWestend,
Westlake: nodeWestlake,
Westmint: nodeStatemine,
'Westmint Test': nodeStatemine,
WILT: nodeKilt,
'zcloak poc1': nodeZCloak
}).reduce<Record<string, unknown>>((logos, [chain, logo]) => ({
...logos,
[sanitize(chain)]: logo
}), {});
// Alphabetical overrides based on the actual software node type
// NOTE: This is as retrieved via system.name RPC
export const nodeLogos = Object.entries({
'Acala Node': chainAcala,
'Apron Node': nodeApron,
'Apron Parachain Collator': nodeApron,
'Ares Gladios': nodeAresGladios,
'Ares Node': nodeAres,
'Ares Parachain Collator': nodeAres,
Astar: nodeAstar,
'Automata ContextFree Node': nodeAutomata,
'Automata Node': nodeAutomata,
Basilisk: nodeBasilisk,
'Beast Node': nodeBeast,
Bifrost: nodeBifrost,
'Bifrost Node': nodeBifrost,
'Bit Country Tewai Parachain Collator': nodeBitCountry,
'Bit.Country': nodeBitCountry,
'BitCountry Node': nodeBitCountry,
'Calamari Parachain Collator': nodeCalamari,
'Canvas Node': nodeCanvas,
'centrifuge chain': nodeCentrifuge,
'Centrifuge Chain Node': nodeCentrifuge,
'ChainX Node': nodeChainx,
'Clover Node': nodeClover,
Coinversation: nodeCoinversation,
'Crown Sterling': nodeCrownSterling,
crust: nodeCrust,
'Crust Collator': nodeCrust,
'Crust Maxwell': nodeCrustMaxwell,
darwinia: nodeDarwinia,
'darwinia crab': nodeCrab,
'darwinia parachain': nodeDarwinia,
'Darwinia Runtime Module Library': nodeDarwinia,
DataHighway: nodeDataHighway,
'DataHighway Node': nodeDataHighway,
'DataHighway Parachain Collator': nodeDataHighway,
'Dock Full Node': nodeDockMainnet,
'DOTMog Node': nodeDotMog,
'Eave Node': nodeEave,
'Edgeware Node': nodeEdgeware,
'Efinity Node': nodeEfinity,
'Encointer collator': nodeEncointer,
'Encointer Node noTEE': nodeEncointer,
'Fantour Node': nodeFantour,
'Galital Parachain Collator': nodeGalital,
'GamePower Node': nodeGamePower,
GEEK: nodeGeek,
'Halongbay Parachain Collator': nodePolkaFoundry,
hanonycash: nodeHanonycash,
'Idavoll Node': nodeIdavoll,
'Integritee Collator': nodeIntegritee,
IpseTestnet: nodeIpse,
Khala: nodeKhala,
'Khala Node': nodeKhala,
KILT: nodeKilt,
'KILT Local': nodeKilt,
'KILT Peregrine': nodeKilt,
Kintsugi: chainKintsugi,
'Klug Dossier Node': nodeKlug,
'Kpron Collator': nodeApron,
kulupu: nodeKulupu,
'Kylin Node': nodeKylin,
'Laminar Node': nodeLaminar,
Litentry: nodeLitentry,
'Litentry Collator': nodeLitentry,
'mandala node': chainAcala,
'Manta Node': nodeManta,
'Manta Parachain Collator': nodeManta,
MathChain: nodeMath,
'mathChain-galois': nodeMath,
Moonrock: nodeMoonrock,
'mybank.network': mybank,
NFTMart: nodeNFTMart,
'NFTMart Staging': nodeNFTMart,
'NFTMart Testnet': nodeNFTMart,
'node-template': nodeSubstrate,
'Nodle Chain Node': nodeNodle,
'OAK Testnet': oakTestnet,
'Opal Node': nodeUniqueWestend,
'Opportunity Standalone Testnet': nodeOpportunity,
'OriginTrail Parachain': nodeOriginTrail,
'OriginTrail Parachain Testnet': nodeOriginTrail,
Pangolin: nodePangolin,
Pangoro: nodePangoro,
Parallel: nodeParallel,
'Parallel Heiko': nodeParallel,
Parami: nodeParami,
'parity-polkadot': nodePolkadot,
'Patract Node': nodeJupiter,
'Phala Collator': nodePhala,
'phala-substrate-node': nodePhala,
'PHOENIX Collator': nodePhoenix,
'PHOENIX Node': nodePhoenix,
'Pichiu Node': nodePichiu,
'Pioneer Network Collator Node': nodePioneerNetwork,
Plasm: nodePlasm,
'Plasm Node': nodePlasm,
'Plasm Parachain Collator': nodePlasm,
'Polkadex Node': nodePolkadex,
'polkadot-js': nodePolkadotJs,
'PolkaFoundry Node': nodePolkaFoundry,
'PolkaFoundry Parachain Collator': nodePolkaFoundry,
'PolkaSmith Parachain Collator': nodePolkaSmith,
'Pontem Testnet': nodePontem,
'Prism Collator': nodePrism,
'Prism Node': nodePrism,
'Quartz Node': nodeQuartz,
'ReAlis Network': nodeRealis,
'Rio Defi Chain Node': nodeRiochain,
'RioChain Staging': nodeRiochain,
robonomics: nodeRobonomics,
Sakura: nodeSakura,
Shadow: nodeShadow,
sherpax: nodeChainx,
'Shiden Collator': chainShiden,
'SingLavender Parachain Collator': nodeSingLavender,
SORA: nodeSora,
Stafi: nodeStafi,
'Stafi Node': nodeStafi,
'Statemine Collator': nodeStatemine,
'Statemint Collator': nodeStatemine,
subdao: nodeSubDAO,
'SubDAO Collator': nodeSubDAO,
'SubDAO Staging': nodeSubDAO,
subgame: nodeSubGame,
'SubGame Gamma': nodeSubGame,
'SubGame Staging': nodeSubGame,
'Subsocial Node': nodeSubsocial,
'Subsocial PC': nodeSubsocial,
'subsocial-node': nodeSubsocial,
subspace: nodeSubspace,
'substrate-contracts-node': nodeSubstrateContractsNode,
'substrate-node': nodeSubstrate,
'subzero node': nodeZero,
'Ternoa Node': nodeTernoa,
'TrustBase Collator': nodeTrustBase,
'TrustBase Node': nodeTrustBase,
'uni arts node': nodeUniarts,
'UniArts Node': nodeUniarts,
'Unique Node': nodeUnique,
'Unit Collator': nodeUnitv,
'Unit Node': nodeUnitv,
Vln: nodeVln,
'VLN PC': nodeVln,
'Web3Games Node': nodeWeb3games,
Westend: nodeWestend,
Westlake: nodeWestlake,
'Westmint Collator': nodeStatemine,
Whala: nodeWhala,
'Whala Node': nodeWhala,
WILT: nodeKilt,
'zcloak node': nodeZCloak,
'Zeitgeist Collator': nodeZeitgeist,
'Zeitgeist Node': nodeZeitgeist,
Zenlink: nodeZenlink,
'Zenlink Collator': nodeZenlink
}).reduce<Record<string, unknown>>((logos, [node, logo]) => ({
...logos,
[sanitize(node)]: logo
}), {});
// Alphabetical overrides based on the actual specName
export const specLogos = Object.entries({
shell: nodeShell,
statemine: nodeStatemine,
statemint: nodeStatemine,
westmint: nodeStatemine
}).reduce<Record<string, unknown>>((logos, [spec, logo]) => ({
...logos,
[sanitize(spec)]: logo
}), {});
// Alphabetical overrides when we pass an explicit logo name
// NOTE: Matches with what is defined as "info" in settings/endpoints.ts
// (Generally would be the 'network' key in the known ss58 as per
// https://github.com/polkadot-js/common/blob/master/packages/networks/src/index.ts)
export const namedLogos: Record<string, unknown> = {
acala: chainAcala,
aleph: chainAleph,
alexander: nodePolkadot,
altair: chainAltair,
'Ares Gladios': nodeAresGladios,
astar: chainAstar,
automata: nodeAutomata,
'automata-contextfree': nodeAutomata,
basilisk: nodeBasilisk,
beast: nodeBeast,
bifrost: nodeBifrost,
bitcountry: nodeBitCountry,
bitcountryPioneer: nodePioneerNetwork,
calamari: nodeCalamari,
canvas: nodeCanvas,
centrifuge: nodeCentrifuge,
chainx: nodeChainx,
charcoal: nodeCentrifuge,
clover: nodeClover,
coinversation: chainCoinversation,
crab: nodeCrab,
'crown-sterling': chainCrownSterling,
crust: nodeCrust,
'Crust Maxwell': nodeCrustMaxwell,
crustParachain: nodeCrustParachain,
darwinia: nodeDarwinia,
datahighway: nodeDataHighway,
'dock-pos-mainnet': nodeDockMainnet,
'dock-pos-testnet': nodeDockTestnet,
dotmog: nodeDotMog,
dusty: chainDusty,
eave: nodeEave,
edgeware: nodeEdgeware,
efinity: nodeEfinity,
empty: emptyLogo,
encointer: nodeEncointer,
equilibrium: chainEquilibrium,
fantour: nodeFantour,
galital: nodeGalital,
galois: nodeMath,
gamepower: nodeGamePower,
geek: nodeGeek,
genshiro: chainGenshiro,
halongbay: nodePolkaFoundry,
hanonycash: nodeHanonycash,
heiko: chainParallel,
idavoll: nodeIdavoll,
integritee: nodeIntegritee,
interbtc: nodeInterBTC,
ipse: nodeIpse,
jupiter: nodeJupiter,
karura: chainKarura,
khala: nodeKhala,
kilt: nodeKilt,
kintsugi: chainKintsugi,
klugdossier: nodeKlug,
kpron: nodeApron,
kulupu: nodeKulupu,
kusama: chainKusama,
kylin: nodeKylin,
laminar: nodeLaminar,
litentry: nodeLitentry,
loomNetwork: nodeLoomNetwork,
manta: nodeManta,
mars: nodeAresMars,
mathchain: nodeMath,
moonbaseAlpha: moonbeam,
moonbeam: moonbeam,
moonriver: moonriver,
moonrock: nodeMoonrock,
moonshadow: moonshadow,
mybank: mybank,
nftmart: nodeNFTMart,
nodle: nodeNodle,
'oak-testnet': oakTestnet,
odyssey: nodeAresGladios,
opal: nodeUniqueWestend,
opportunity: nodeOpportunity,
'origintrail-parachain-testnet': nodeOriginTrail,
pangolin: nodePangolin,
pangoro: nodePangoro,
parallel: chainParallel,
phala: nodePhala,
phoenix: nodePhoenix,
picasso: chainComposable,
plasm: nodePlasm,
polkadex: nodePolkadex,
polkadot: nodePolkadot,
polkafoundry: nodePolkaFoundry,
polkasmith: nodePolkaSmith,
polymesh: nodePolymesh,
pontem: nodePontem,
prism: nodePrism,
quartz: nodeQuartz,
realis: nodeRealis,
riochain: nodeRiochain,
robonomics: nodeRobonomics,
rocky: nodeCrust,
rococo: chainRococo,
rococoAcala: chainAcala,
rococoApron: nodeApron,
rococoAres: nodeAres,
rococoBifrost: nodeBifrost,
rococoBitCountry: nodeBitCountry,
rococoChainX: nodeChainx,
rococoClover: nodeClover,
rococoCrab: nodeCrab,
rococoCrust: nodeCrust,
rococoDarwinia: nodeDarwinia,
rococoDataHighway: nodeDataHighway,
rococoEave: nodeEave,
rococoEncointer: nodeEncointer,
rococoGalital: nodeGalital,
rococoGenshiro: chainGenshiro,
rococoHydrate: chainHydrate,
rococoIdavoll: nodeIdavoll,
rococoInterBTC: chainInterBTC,
rococoJupiter: nodeJupiter,
rococoKilt: nodeKilt,
rococoKonomi: nodeKonomi,
rococoKylin: nodeKylin,
rococoLaminar: nodeLaminar,
rococoLitentry: nodeLitentry,
rococoLoomNetwork: nodeLoomNetwork,
rococoManta: nodeManta,
rococoMathChain: nodeMath,
rococoMoonrock: nodeMoonrock,
rococoOriginTrail: nodeOriginTrail,
rococoParami: nodeParami,
rococoPhala: nodePhala,
rococoPhoenix: nodePhoenix,
rococoPlasm: nodePlasm,
rococoPolkaFoundry: nodePolkaFoundry,
rococoPrism: nodePrism,
rococoSingLavender: nodeSingLavender,
rococoStandard: chainStandard,
rococoStatemint: nodeStatemine,
rococoSubDAO: nodeSubDAO,
rococoSubsocial: nodeSubsocial,
rococoTick: chainRococoTick,
rococoTrack: chainRococoTrack,
rococoTrick: chainRococoTrick,
rococoTrustBase: nodeTrustBase,
rococoUnitv: nodeUnitv,
rococoVln: nodeVln,
rococoZeitgeist: nodeZeitgeist,
rococoZenlink: nodeZenlink,
sakura: nodeSakura,
shadow: nodeShadow,
shell: nodeShell,
sherpax: nodeChainx,
shibuya: chainShiden,
shiden: chainShiden,
singLavender: nodeSingLavender,
snakenet: chainSnakenet,
'sora-substrate': nodeSora,
spanner: chainSpanner,
stafi: nodeStafi,
statemine: nodeStatemine,
statemint: nodeStatemine,
subdao: nodeSubDAO,
'SubDAO PC1': nodeSubDAO,
'SubDAO Staging': nodeSubDAO,
subgame: nodeSubGame,
'SubGame Gamma': nodeSubGame,
'SubGame Staging': nodeSubGame,
subsocial: nodeSubsocial,
subspace: nodeSubspace,
substrate: nodeSubstrate,
substrateContractsNode: nodeSubstrateContractsNode,
'ternoa-testnet': nodeTernoa,
trustbase: nodeTrustBase,
uniarts: nodeUniarts,
unique: nodeUnique,
unitv: nodeUnitv,
unorthodox: chainUnorthodox,
vln: nodeVln,
web3games: nodeWeb3games,
westend: nodeWestend,
westendPichiu: nodePichiu,
westendStandard: chainStandard,
westlake: nodeWestlake,
westmint: nodeStatemine,
whala: nodeWhala,
zCloak: nodeZCloak,
zeitgeist: nodeZeitgeist,
zero: nodeZero
};
// extension logos
export const extensionLogos: Record<string, unknown> = {
'polkadot-js': extensionPolkadotJs
};
// external logos, i.e. for explorers
export const externalLogos: Record<string, unknown> = {
commonwealth: externalCommonwealth,
dotreasury: externalDotreasury,
dotscanner: externalDotScanner,
polkascan: externalPolkascan,
polkassembly: externalPolkassembly,
polkastats: externalPolkastats,
statescan: externalStatescan,
subid: externalSubId,
subscan: externalSubscan
};
// empty logos
export const emptyLogos: Record<string, unknown> = {
empty: emptyLogo
};
// preload all
[chainLogos, extensionLogos, externalLogos, namedLogos, nodeLogos, emptyLogos].forEach((imageSet): void => {
Object.values(imageSet).forEach((src): void => {
new Image().src = src as string;
});
});