forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubscan.ts
103 lines (100 loc) · 2.92 KB
/
subscan.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
// Copyright 2017-2022 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { BN } from '@polkadot/util';
import { externalLogos } from '../ui/logos';
export default {
chains: {
Acala: 'acala',
'Acala Mandala TC5': 'acala-testnet',
'Aleph Zero': 'alephzero',
Altair: 'altair',
Arctic: 'arctic',
Astar: 'astar',
Basilisk: 'basilisk',
Bifrost: 'bifrost-kusama',
'Bifrost Polkadot': 'bifrost',
'Calamari Parachain': 'calamari',
Centrifuge: 'centrifuge',
ChainX: 'chainx',
Clover: 'clv',
'Composable Finance': 'composable',
'Crab Parachain': 'crab-parachain',
Crust: 'crust',
'Crust Maxwell': 'maxwell',
'Crust Shadow': 'shadow',
'Dali Testnet (Rococo Relay)': 'dali',
Darwinia: 'darwinia',
'Darwinia Crab': 'crab',
'Darwinia Parachain': 'darwinia-parachain',
'DataHighway Tanganika Kusama Parachain': 'datahighway',
Dock: 'dock',
'Dolphin Parachain Testnet': 'dolphin',
// Edgeware: 'edgeware',
Efinity: 'efinity',
'Encointer on Kusama': 'encointer',
'Equilibrium parachain': 'equilibrium',
Genshiro: 'genshiro',
HydraDX: 'hydradx',
'Integritee Network (Kusama)': 'integritee',
Interlay: 'interlay',
'KILT Peregrine': 'kilt-testnet',
'KILT Spiritnet': 'spiritnet',
Karura: 'karura',
Khala: 'khala',
Kulupu: 'kulupu',
Kusama: 'kusama',
Litmus: 'litmus',
'Mangata Kusama Mainnet': 'mangatax',
'Mangata Public Testnet': 'mangata-testnet',
Moonbase: 'moonbase',
Moonbeam: 'moonbeam',
Moonriver: 'moonriver',
'Nodle Parachain': 'nodle',
Pangolin: 'pangolin',
'Pangolin Parachain': 'pangolin-parachain',
Pangoro: 'pangoro',
Parallel: 'parallel',
'Parallel Heiko': 'parallel-heiko',
Phala: 'phala',
Picasso: 'picasso',
'Pioneer Network': 'pioneer',
Polkadex: 'polkadex',
Polkadot: 'polkadot',
Polymesh: 'polymesh',
'Polymesh Testnet': 'polymesh-testnet',
'QUARTZ by UNIQUE': 'quartz',
Robonomics: 'robonomics',
Rockmine: 'rockmine',
Rococo: 'rococo',
SORA: 'sora',
'Shibuya Testnet': 'shibuya',
Shiden: 'shiden',
Stafi: 'stafi',
Statemine: 'statemine',
Statemint: 'statemint',
'Subspace Gemini 2a': 'subspace',
'Turing Network': 'turing',
UNIQUE: 'unique',
Westend: 'westend',
Zeitgeist: 'zeitgeist',
kintsugi: 'kintsugi'
},
create: (chain: string, path: string, data: BN | number | string): string =>
`https://${chain}.subscan.io/${path}/${data.toString()}`,
isActive: true,
logo: externalLogos.subscan as string,
paths: {
address: 'account',
block: 'block',
bounty: 'bounty',
council: 'council',
extrinsic: 'extrinsic',
proposal: 'democracy_proposal',
referendum: 'referenda',
techcomm: 'tech',
tip: 'treasury_tip',
treasury: 'treasury',
validator: 'validator'
},
url: 'https://subscan.io/'
};