add Singular profile urls for Kusama and Statemine (#6702)
* add a url to singular profile for Kusama and Statemine chains * remove whitespace * lint
This commit is contained in:
parent
95911f17b3
commit
abc75126a8
@ -9,6 +9,7 @@ import DotScanner from './dotscanner';
|
||||
import Polkascan from './polkascan';
|
||||
import { PolkassemblyIo, PolkassemblyNetwork } from './polkassembly';
|
||||
import Polkastats from './polkastats';
|
||||
import Singular from './singular';
|
||||
import Statescan from './statescan';
|
||||
import SubId from './subid';
|
||||
import Subscan from './subscan';
|
||||
@ -22,6 +23,7 @@ export const externalLinks: Record<string, ExternalDef> = {
|
||||
PolkassemblyIo,
|
||||
PolkassemblyNetwork,
|
||||
Polkastats,
|
||||
'Singular (NFTs)': Singular,
|
||||
Statescan,
|
||||
SubId,
|
||||
Subscan,
|
||||
|
||||
@ -10,6 +10,7 @@ export default {
|
||||
Kusama: 'kusama',
|
||||
Polkadot: 'polkadot',
|
||||
Westend: 'westend'
|
||||
|
||||
},
|
||||
create: (chain: string, path: string, data: BN | number | string): string =>
|
||||
`https://${chain}.polkastats.io/${path}/${data.toString()}`,
|
||||
|
||||
29
packages/apps-config/src/links/singular.ts
Normal file
29
packages/apps-config/src/links/singular.ts
Normal file
@ -0,0 +1,29 @@
|
||||
// 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';
|
||||
|
||||
const getNetwork = (_chain: string) => {
|
||||
switch (_chain) {
|
||||
case 'statemine':
|
||||
return 'statemine/';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
};
|
||||
|
||||
export default {
|
||||
chains: {
|
||||
Kusama: 'kusama',
|
||||
Statemine: 'statemine'
|
||||
},
|
||||
create: (_chain: string, _path: string, data: BN | number | string): string => `https://singular.rmrk.app/space/${getNetwork(_chain)}${data.toString()}`,
|
||||
isActive: true,
|
||||
logo: externalLogos.singular as string,
|
||||
paths: {
|
||||
address: 'account'
|
||||
},
|
||||
url: 'https://singular.rmrk.app'
|
||||
};
|
||||
3
packages/apps-config/src/ui/logos/external/singular.svg
vendored
Normal file
3
packages/apps-config/src/ui/logos/external/singular.svg
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<svg viewBox="152.688 152.688 194.624 194.624" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M 323.091 287.28 L 304.168 287.42 C 304.905 284.059 305.28 280.629 305.291 277.19 L 305.291 269.341 C 303.889 246.775 287.351 231.78 263.245 231.78 L 235.775 231.78 C 230.952 231.478 227.267 227.357 227.505 222.528 C 227.263 217.203 231.563 212.773 236.897 212.858 L 305.009 212.858 C 311.59 212.858 316.923 207.525 316.923 200.946 L 316.923 183.567 C 316.923 182.483 316.045 181.605 314.962 181.605 L 236.897 181.605 C 212.789 181.605 196.25 196.602 194.85 219.166 L 194.85 225.052 C 194.983 227.217 195.264 229.372 195.691 231.499 L 176.91 231.499 C 180.835 250.419 196.393 262.612 218.115 262.612 L 260.442 262.612 C 266.328 262.612 272.917 265.276 272.917 273.966 C 273.234 281.228 267.432 287.286 260.162 287.28 L 208.444 287.28 C 201.866 287.28 196.531 292.615 196.531 299.194 L 196.531 316.434 C 196.531 317.515 197.411 318.394 198.492 318.394 L 278.942 318.394 C 301.646 318.394 318.606 306.481 323.091 287.28 Z" fill="#eb3089" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@ -48,6 +48,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 externalSingular from './external/singular.svg';
|
||||
import externalStatescan from './external/statescan.svg';
|
||||
import externalSubId from './external/subid.svg';
|
||||
import externalSubscan from './external/subscan.svg';
|
||||
@ -721,6 +722,7 @@ export const externalLogos: Record<string, unknown> = {
|
||||
polkascan: externalPolkascan,
|
||||
polkassembly: externalPolkassembly,
|
||||
polkastats: externalPolkastats,
|
||||
singular: externalSingular,
|
||||
statescan: externalStatescan,
|
||||
subid: externalSubId,
|
||||
subscan: externalSubscan,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user