forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subscan.ts
44 lines (41 loc) · 1.17 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
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import BN from 'bn.js';
import { externalLogos } from '../ui/logos';
export default {
chains: {
'Acala Mandala TC5': 'acala-testnet',
'Bifrost Asgard Nightly': 'bitfrost',
'Centrifuge Mainnet': 'centrifuge',
ChainX: 'chainx',
'Crust Maxwell': 'crust',
'Darwinia CC1': 'darwinia-cc1',
'Darwinia Crab': 'crab',
Edgeware: 'edgeware',
Equilibrium: 'equilibrium',
Kulupu: 'kulupu',
Kusama: 'kusama',
'Laminar Turbulence TC2': 'laminar-testnet',
'Phala PoC-3': 'phala',
Plasm: 'plasm',
Polkadot: 'polkadot',
Rococo: 'rococo',
Stafi: 'stafi',
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'
},
url: 'https://subscan.io/'
};