Fix External Links (#11485)

* chore: removing polkascan link from ui

* chore: update KodaDot chains configuration by removing Kusama and adjusting asset hub mappings

* chore: update SubId chains configuration

* chore: hiding singular
This commit is contained in:
Arjun Porwal 2025-04-17 09:41:02 +05:30 committed by GitHub
parent 220c90b5c1
commit fd1a5f0ac4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 10 deletions

View File

@ -9,9 +9,7 @@ import { Dotreasury } from './dotreasury.js';
import { Edgscan } from './edgscan.js';
import { KodaDot } from './kodadot.js';
import { MoonbeamApps } from './moonbeamApps.js';
import { Polkascan } from './polkascan.js';
import { PolkassemblyIo, PolkassemblyNetwork } from './polkassembly.js';
import { Singular } from './singular.js';
import { Statescan } from './statescan.js';
import { SubId } from './subid.js';
import { Subscan } from './subscan.js';
@ -24,10 +22,8 @@ export const externalLinks: Record<string, ExternalDef> = {
Edgscan,
KodaDot,
MoonbeamApps,
Polkascan,
PolkassemblyIo,
PolkassemblyNetwork,
'Singular (NFTs)': Singular,
Statescan,
SubId,
Subscan,

View File

@ -9,7 +9,6 @@ import { externalKodadotSVG } from '../ui/logos/external/index.js';
const getNetwork = (_chain: string) => {
const chain = {
basilisk: 'bsx',
kusama: 'rmrk',
statemine: 'ahk',
statemint: 'ahp'
}[_chain];
@ -20,9 +19,8 @@ const getNetwork = (_chain: string) => {
export const KodaDot: ExternalDef = {
chains: {
Basilisk: 'basilisk',
Kusama: 'kusama',
Statemine: 'statemine',
Statemint: 'statemint'
'Kusama Asset Hub': 'statemine',
'Polkadot Asset Hub': 'statemint'
},
create: (_chain: string, _path: string, data: BN | number | string): string =>
`${getNetwork(_chain)}${data.toString()}`,

View File

@ -25,14 +25,14 @@ export const SubId: ExternalDef = {
Karura: 'karura',
Khala: 'khala',
Kusama: 'kusama',
'Kusama Asset Hub': 'statemine',
Nodle: 'nodle',
Picasso: 'picasso',
'Pioneer Network': 'pioneer',
Polkadot: 'polkadot',
'Polkadot Asset Hub': 'statemint',
SORA: 'sora-substrate',
Shiden: 'shiden',
Statemine: 'statemine',
Statemint: 'statemint',
Subsocial: 'subsocial',
Zeitgeist: 'zeitgeist'
},