ghost-portal/packages/apps-config/src/links/dotscanner.ts
Dee Evans d3af03f027
dotscanner block support (#5182)
* Adding support for dotscanner.com

DotScanner doesnt support the hash lookup of a block (only number) - once thats supported I will open another PR to add block to the paths list in `dotscanner.ts`

* fixing import sorting on logos and links

for the linter

* dotscanner block support
2021-05-01 10:44:55 +02:00

22 lines
531 B
TypeScript

// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import BN from 'bn.js';
import { externalLogos } from '../ui/logos';
export default {
chains: {
Polkadot: 'polkadot'
},
create: (chain: string, path: string, data: BN | number | string): string =>
`https://dotscanner.com/${path}/${data.toString()}`,
isActive: true,
logo: externalLogos.dotscanner as string,
paths: {
address: 'account',
block: 'block'
},
url: 'https://dotscanner.com/'
};