forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpolkassembly.ts
41 lines (37 loc) · 1.1 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
// 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: {
Kusama: 'kusama',
'Kusama CC3': 'kusama',
Polkadot: 'polkadot'
},
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',
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',
Moonriver: 'moonriver'
},
create: (chain: string, path: string, data: BN | number | string): string =>
`https://${chain}.polkassembly.network/${path}/${data.toString()}`,
url: 'https://polkassembly.network/'
};