mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-11-06 07:21:11 +00:00
- Remove Paseo, prodChains, testChains from sidebar menu - Keep only Pezkuwi, Dicle, Zagros networks and their parachains - Update external service links to use Pezkuwi domains: - explorer.pezkuwichain.io (block explorer) - scan.pezkuwichain.io (blockchain scanner) - statescan.pezkuwichain.io (state explorer) - stats.pezkuwichain.io (validator stats) - treasury.pezkuwichain.io (treasury dashboard) - governance.pezkuwichain.io (governance portal) - Disable non-applicable external services (Subsquare, KodaDot, etc.) - Fix eslint errors (key ordering, unsafe member access)
37 lines
968 B
TypeScript
37 lines
968 B
TypeScript
// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { BN } from '@pezkuwi/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 = {
|
|
// Note: KodaDot may not support Pezkuwi networks yet. These are placeholder entries.
|
|
chains: {
|
|
'Dicle Asset Hub': 'statemine',
|
|
'Pezkuwi Asset Hub': 'statemint',
|
|
'Zagros Asset Hub': 'statemint'
|
|
},
|
|
create: (_chain: string, _path: string, data: BN | number | string): string =>
|
|
`${getNetwork(_chain)}${data.toString()}`,
|
|
homepage: 'https://kodadot.xyz',
|
|
isActive: false,
|
|
paths: {
|
|
address: 'account'
|
|
},
|
|
ui: {
|
|
logo: externalKodadotSVG
|
|
}
|
|
};
|