Add statescan to external links (#6000)
* Add statescan to external links * Fix Object keys in ascending order
This commit is contained in:
parent
5157215615
commit
dcf1342d78
@ -8,6 +8,7 @@ import DotScanner from './dotscanner';
|
||||
import Polkascan from './polkascan';
|
||||
import Polkassembly from './polkassembly';
|
||||
import Polkastats from './polkastats';
|
||||
import Statescan from './statescan';
|
||||
import Subscan from './subscan';
|
||||
|
||||
export const externalLinks: Record<string, ExternalDef> = {
|
||||
@ -16,5 +17,6 @@ export const externalLinks: Record<string, ExternalDef> = {
|
||||
Polkascan,
|
||||
Polkassembly,
|
||||
Polkastats,
|
||||
Statescan,
|
||||
Subscan
|
||||
};
|
||||
|
||||
22
packages/apps-config/src/links/statescan.ts
Normal file
22
packages/apps-config/src/links/statescan.ts
Normal file
@ -0,0 +1,22 @@
|
||||
// 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: {
|
||||
Statemine: 'statemine',
|
||||
Westmint: 'westmint'
|
||||
},
|
||||
create: (chain: string, path: string, data: BN | number | string): string =>
|
||||
`https://${chain}.statescan.io/${path}/${data.toString()}`,
|
||||
isActive: true,
|
||||
logo: externalLogos.statescan as string,
|
||||
paths: {
|
||||
address: 'account',
|
||||
block: 'block'
|
||||
},
|
||||
url: 'https://statescan.io/'
|
||||
};
|
||||
4
packages/apps-config/src/ui/logos/external/statescan.svg
vendored
Normal file
4
packages/apps-config/src/ui/logos/external/statescan.svg
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<svg width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M265.038 141.74C257.896 92.5232 215.045 62.0889 142.122 62.0889C68.2597 62.0889 19.582 93.7406 19.7699 145.218C19.582 185.218 46.834 211.13 103.217 221.565L153.211 230.782C178.395 235.478 189.86 243.999 190.236 257.391C189.86 273.216 171.254 284.521 143.25 284.521C114.682 284.521 95.6997 273.216 90.8131 251.478L12.0642 255.304C19.582 306.433 66.5682 337.911 143.062 337.911C217.864 337.911 271.428 302.607 271.616 249.912C271.428 211.304 244.176 188.174 188.169 177.566L135.92 167.827C109.044 162.435 99.0827 153.914 99.2706 141.044C99.0827 125.045 118.629 114.61 143.438 114.61C171.254 114.61 187.793 128.697 191.74 145.914L265.038 141.74Z" fill="#111111"/>
|
||||
<path d="M361.936 301.698C361.936 321.698 345.723 337.911 325.723 337.911C305.723 337.911 289.509 321.698 289.509 301.698C289.509 281.698 305.723 265.485 325.723 265.485C345.723 265.485 361.936 281.698 361.936 301.698Z" fill="#F22279"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1014 B |
@ -32,6 +32,7 @@ import externalDotScanner from './external/dotscanner.png';
|
||||
import externalPolkascan from './external/polkascan.png';
|
||||
import externalPolkassembly from './external/polkassembly.png';
|
||||
import externalPolkastats from './external/polkastats.png';
|
||||
import externalStatescan from './external/statescan.svg';
|
||||
import externalSubscan from './external/subscan.svg';
|
||||
import nodeAcala from './nodes/acala-circle.svg';
|
||||
import nodeApron from './nodes/apron.png';
|
||||
@ -582,6 +583,7 @@ export const externalLogos: Record<string, unknown> = {
|
||||
polkascan: externalPolkascan,
|
||||
polkassembly: externalPolkassembly,
|
||||
polkastats: externalPolkastats,
|
||||
statescan: externalStatescan,
|
||||
subscan: externalSubscan
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user