* 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 * updated dotscanner url scheme * dotscanner kusama support * dotscanner tracking * Update packages/apps-config/src/links/dotscanner.ts Co-authored-by: Jaco <jacogr@gmail.com> Co-authored-by: Jaco <jacogr@gmail.com>
23 lines
589 B
TypeScript
23 lines
589 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',
|
|
Polkadot: 'polkadot'
|
|
},
|
|
create: (chain: string, path: string, data: BN | number | string): string =>
|
|
`https://dotscanner.com/${chain}/${path}/${data.toString()}?utm_source=polkadotjs`,
|
|
isActive: true,
|
|
logo: externalLogos.dotscanner as string,
|
|
paths: {
|
|
address: 'account',
|
|
block: 'block'
|
|
},
|
|
url: 'https://dotscanner.com/'
|
|
};
|