8000 Fix External Links by ap211unitech · Pull Request #11485 · polkadot-js/apps · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix External Links #11485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions packages/apps-config/src/links/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -24,10 +22,8 @@ export const externalLinks: Record<string, ExternalDef> = {
Edgscan,
KodaDot,
MoonbeamApps,
Polkascan,
PolkassemblyIo,
PolkassemblyNetwork,
'Singular (NFTs)': Singular,
Statescan,
SubId,
Subscan,
Expand Down
6 changes: 2 additions & 4 deletions packages/apps-config/src/links/kodadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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()}`,
Expand Down
4 changes: 2 additions & 2 deletions packages/apps-config/src/links/subid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
},
Expand Down
0