ghost-portal/packages/apps-config/src/links/dotreasury.ts
2022-01-01 09:30:15 +02:00

24 lines
600 B
TypeScript

// 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 default {
chains: {
Kusama: 'ksm',
Polkadot: 'dot'
},
create: (chain: string, path: string, data: BN | number | string): string =>
`https://www.dotreasury.com/${chain}/${path}/${data.toString()}`,
isActive: true,
logo: externalLogos.dotreasury as string,
paths: {
bounty: 'bounties',
tip: 'tips',
treasury: 'proposals'
},
url: 'https://dotreasury.com/'
};