Files
pezkuwi-apps/packages/apps-config/src/links/singular.ts
T
pezkuwichain 45320e6f27 refactor: remove non-Pezkuwi blockchains from menu and update external service URLs
- 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)
2026-01-08 11:16:24 +03:00

39 lines
1.0 KiB
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 { externalSingularSVG } from '../ui/logos/external/index.js';
const getNetwork = (_chain: string) => {
switch (_chain) {
case 'statemine':
return 'statemine/';
default:
return '';
}
};
export const Singular: ExternalDef = {
// Note: Singular may not support Pezkuwi networks yet. These are placeholder entries.
chains: {
Dicle: 'dicle',
'Dicle Asset Hub': 'statemine',
Pezkuwi: 'pezkuwi',
'Pezkuwi Asset Hub': 'statemint',
Zagros: 'zagros',
'Zagros Asset Hub': 'statemint'
},
create: (_chain: string, _path: string, data: BN | number | string): string =>
`https://singular.app/space/${getNetwork(_chain)}${data.toString()}`,
homepage: 'https://singular.app',
isActive: false,
paths: {
address: 'account'
},
ui: {
logo: externalSingularSVG
}
};