* Bumps w/ eslint * Additional * Additional * Additional * Additional * Remove style props * Additional * Additional * Additional * Additional (< 100) * eslint passes, tsc next * tsc fixes * Update deps * Update i18n
26 lines
819 B
TypeScript
26 lines
819 B
TypeScript
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
|
|
// This software may be modified and distributed under the terms
|
|
// of the Apache-2.0 license. See the LICENSE file for details.
|
|
|
|
import BN from 'bn.js';
|
|
|
|
const HASH_PATHS = ['proposal/councilmotion'];
|
|
|
|
export default {
|
|
chains: {
|
|
Edgeware: 'edgeware',
|
|
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,
|
|
paths: {
|
|
council: 'proposal/councilmotion',
|
|
proposal: 'proposal/democracyproposal',
|
|
referendum: 'proposal/referendum',
|
|
treasury: 'proposal/treasuryproposal'
|
|
},
|
|
url: 'https://commonwealth.im/'
|
|
};
|