forked from reef-chain/console-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commonwealth.ts
28 lines (24 loc) · 848 Bytes
/
commonwealth.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
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type BN from 'bn.js';
import { externalLogos } from '../ui/logos';
const HASH_PATHS = ['proposal/councilmotion'];
export default {
chains: {
Edgeware: 'edgeware',
Kulupu: 'kulupu',
Kusama: 'kusama',
'Kusama CC3': 'kusama'
},
create: (chain: string, path: string, data: BN | number | string, hash?: string): string =>
`https://commonwealth.im/${chain}/${path}/${HASH_PATHS.includes(path) ? (hash || '') : data.toString()}`,
isActive: true,
logo: externalLogos.commonwealth as string,
paths: {
council: 'proposal/councilmotion',
proposal: 'proposal/democracyproposal',
referendum: 'proposal/referendum',
treasury: 'proposal/treasuryproposal'
},
url: 'https://commonwealth.im/'
};