forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubsquare.ts
45 lines (42 loc) · 1.22 KB
/
subsquare.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
// 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',
Altair: 'altair',
Basilisk: 'basilisk',
Bifrost: 'bifrost',
Centrifuge: 'centrifuge',
Crust: 'crust',
'Darwinia Crab': 'crab',
HydraDX: 'hydradx',
Interlay: 'interlay',
Karura: 'karura',
Khala: 'khala',
Kusama: 'kusama',
Litmus: 'litmus',
Phala: 'phala',
Polkadot: 'polkadot',
'Turing Network': 'turing',
Zeitgeist: 'zeitgeist',
kintsugi: 'kintsugi'
},
create: (chain: string, path: string, data: BN | number | string): string =>
`https://${chain}.subsquare.io/${path}/${data.toString()}`,
isActive: true,
logo: externalLogos.subsquare as string,
paths: {
bounty: 'treasury/bounty',
council: 'council/motion',
external: 'democracy/external',
fellowshipReferenda: 'fellowship/referendum',
proposal: 'democracy/proposal',
referenda: 'referenda/referendum',
referendum: 'democracy/referendum',
tip: 'treasury/tip',
treasury: 'treasury/proposal'
},
url: 'https://subsquare.io/'
};