* 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
36 lines
872 B
TypeScript
36 lines
872 B
TypeScript
// Copyright 2017-2025 @polkadot/apps-config authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { BN } from '@polkadot/util';
|
|
import type { ExternalDef } from './types.js';
|
|
|
|
import { externalKodadotSVG } from '../ui/logos/external/index.js';
|
|
|
|
const getNetwork = (_chain: string) => {
|
|
const chain = {
|
|
basilisk: 'bsx',
|
|
statemine: 'ahk',
|
|
statemint: 'ahp'
|
|
}[_chain];
|
|
|
|
return `https://kodadot.xyz/${chain}/u/`;
|
|
};
|
|
|
|
export const KodaDot: ExternalDef = {
|
|
chains: {
|
|
Basilisk: 'basilisk',
|
|
'Kusama Asset Hub': 'statemine',
|
|
'Polkadot Asset Hub': 'statemint'
|
|
},
|
|
create: (_chain: string, _path: string, data: BN | number | string): string =>
|
|
`${getNetwork(_chain)}${data.toString()}`,
|
|
homepage: 'https://kodadot.xyz',
|
|
isActive: true,
|
|
paths: {
|
|
address: 'account'
|
|
},
|
|
ui: {
|
|
logo: externalKodadotSVG
|
|
}
|
|
};
|