-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubscan.ts
67 lines (64 loc) · 1.73 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
// 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',
Altair: 'altair',
'Ares Gladios': 'ares-testnet',
Astar: 'astar',
Bifrost: 'bifrost',
Calamari: 'calamari',
'Centrifuge Mainnet': 'centrifuge',
ChainX: 'chainx',
Clover: 'clv',
'Crust Maxwell': 'crust',
Darwinia: 'darwinia',
'Darwinia Crab': 'crab',
Edgeware: 'edgeware',
Equilibrium: 'equilibrium',
'KILT Peregrine': 'kilt-testnet',
'KILT Spiritnet': 'spiritnet',
Kapex: 'kapex',
Karura: 'karura',
Khala: 'khala',
Kulupu: 'kulupu',
Kusama: 'kusama',
'Laminar Turbulence TC2': 'laminar-testnet',
Litmus: 'litmus',
Moonbase: 'moonbase',
Moonbeam: 'moonbeam',
Moonriver: 'moonriver',
Parallel: 'parallel',
'Phala PoC-4': 'phala',
Plasm: 'plasm',
Polkadot: 'polkadot',
Rococo: 'rococo',
SORA: 'sora',
'Shibuya Testnet': 'shibuya',
Shiden: 'shiden',
Stafi: 'stafi',
Statemine: 'statemine',
Subgame: 'subgame',
Uniarts: 'uniarts',
Westend: 'westend'
},
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',
council: 'council',
extrinsic: 'extrinsic',
proposal: 'democracy_proposal',
referendum: 'referenda',
techcomm: 'tech',
treasury: 'treasury',
validator: 'validator'
},
url: 'https://subscan.io/'
};