// Copyright 2017-2025 @pezkuwi/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { BN } from '@pezkuwi/util';
import type { ExternalDef } from './types.js';

import { externalSubidSVG } from '../ui/logos/external/index.js';

export const SubId: ExternalDef = {
  chains: {
    Acala: 'acala',
    Altair: 'altair',
    Astar: 'astar',
    Basilisk: 'basilisk',
    Bifrost: 'bifrost',
    Centrifuge: 'centrifuge',
    'Centrifuge Mainnet': 'centrifuge',
    ChainX: 'chainx',
    'Composable Finance': 'composable',
    Edgeware: 'edgeware',
    Hydration: 'hydration',
    Interlay: 'interlay',
    InvArch: 'invarch',
    'KILT Spiritnet': 'kilt',
    Karura: 'karura',
    Khala: 'khala',
    Dicle: 'dicle',
    'Dicle Asset Hub': 'statemine',
    Nodle: 'nodle',
    Picasso: 'picasso',
    'Pioneer Network': 'pioneer',
    Pezkuwi: 'pezkuwi',
    'Pezkuwi Asset Hub': 'statemint',
    SORA: 'sora-bizinikiwi',
    Shiden: 'shiden',
    Subsocial: 'subsocial',
    Zeitgeist: 'zeitgeist'
  },
  create: (_chain: string, _path: string, data: BN | number | string): string =>
    `https://sub.id/${data.toString()}`,
  homepage: 'https://sub.id',
  isActive: true,
  paths: {
    address: 'account'
  },
  ui: {
    logo: externalSubidSVG
  }
};
