forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
polkassembly.ts
57 lines (53 loc) · 1.53 KB
/
polkassembly.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
// 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 const PolkassemblyIo = {
chains: {
Altair: 'Altair',
Astar: 'astar',
'Bifrost Polkadot': 'bifrost',
Calamari: 'calamari',
'Centrifuge Mainnet': 'centrifuge',
Khala: 'khala',
Kusama: 'kusama',
'Kusama CC3': 'kusama',
Parallel: 'parallel',
'Parallel Heiko': 'heiko',
'Pioneer Network': 'pioneer',
Polkadex: 'polkadex',
Polkadot: 'polkadot',
Robonomics: 'robonomics',
Shibuya: 'shibuya',
Shiden: 'shiden'
},
create: (chain: string, path: string, data: BN | number | string): string =>
`https://${chain}.polkassembly.io/${path}/${data.toString()}`,
isActive: true,
logo: externalLogos.polkassembly as string,
paths: {
bounty: 'bounty',
council: 'motion',
proposal: 'proposal',
referenda: 'referenda',
referendum: 'referendum',
tip: 'tip',
treasury: 'treasury'
},
url: 'https://polkassembly.io/'
};
export const PolkassemblyNetwork = {
...PolkassemblyIo,
chains: {
Bifrost: 'bifrost',
'KILT Spiritnet': 'kilt',
Karura: 'karura',
'Khala Network': 'khala',
Moonbase: 'moonbase',
Moonbeam: 'moonbeam',
Moonriver: 'moonriver'
},
create: (chain: string, path: string, data: BN | number | string): string =>
`https://${chain}.polkassembly.network/${path}/${data.toString()}`,
url: 'https://polkassembly.network/'
};