ghost-portal/packages/apps-config/src/links/polkassembly.ts
Jaco 8a95b1a93b
Handle BN type-only imports correctly (#5428)
* Handle BN type-only imports correctly

* lint fixes
2021-06-03 10:41:55 +02:00

28 lines
698 B
TypeScript

// 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';
export default {
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/'
};