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

import type { EndpointOption } from './types.js';

import { PEZKUWI_GENESIS } from '../api/constants.js';
import { chainsPezkuwiSVG } from '../ui/logos/chains/index.js';
import { getTeleports } from './util.js';

// Pezkuwi Network Endpoints
// These are the official PezkuwiChain network endpoints

export const prodParasPezkuwi: Omit<EndpointOption, 'teleport'>[] = [
  {
    homepage: 'https://pezkuwichain.io',
    info: 'asset-hub-pezkuwi',
    isPeopleForIdentity: true,
    paraId: 1000,
    providers: {
      'Pezkuwi Foundation': 'wss://zagros-asset-hub-rpc.pezkuwichain.io'
    },
    relayName: 'pezkuwi',
    text: 'Asset Hub',
    ui: {
      color: '#86e62a',
      logo: chainsPezkuwiSVG
    }
  },
  {
    homepage: 'https://pezkuwichain.io',
    info: 'bridge-hub-pezkuwi',
    paraId: 1002,
    providers: {
      'Pezkuwi Foundation': 'wss://zagros-bridge-hub-rpc.pezkuwichain.io'
    },
    relayName: 'pezkuwi',
    text: 'Bridge Hub',
    ui: {
      color: '#86e62a',
      logo: chainsPezkuwiSVG
    }
  },
  {
    homepage: 'https://pezkuwichain.io',
    info: 'collectives-pezkuwi',
    paraId: 1001,
    providers: {
      'Pezkuwi Foundation': 'wss://zagros-collectives-rpc.pezkuwichain.io'
    },
    relayName: 'pezkuwi',
    text: 'Collectives',
    ui: {
      color: '#86e62a',
      logo: chainsPezkuwiSVG
    }
  },
  {
    homepage: 'https://pezkuwichain.io',
    info: 'coretime-pezkuwi',
    paraId: 1005,
    providers: {
      'Pezkuwi Foundation': 'wss://zagros-coretime-rpc.pezkuwichain.io'
    },
    relayName: 'pezkuwi',
    text: 'Coretime',
    ui: {
      color: '#86e62a',
      logo: chainsPezkuwiSVG
    }
  },
  {
    homepage: 'https://pezkuwichain.io',
    info: 'people-pezkuwi',
    isPeople: true,
    paraId: 1004,
    providers: {
      'Pezkuwi Foundation': 'wss://zagros-people-rpc.pezkuwichain.io'
    },
    relayName: 'pezkuwi',
    text: 'People',
    ui: {
      color: '#86e62a',
      logo: chainsPezkuwiSVG
    }
  }
];

export const prodRelayPezkuwi: EndpointOption = {
  dnslink: 'pezkuwi',
  genesisHash: PEZKUWI_GENESIS,
  info: 'pezkuwi',
  isRelay: true,
  isPeopleForIdentity: true,
  linked: [
    ...getTeleports(prodParasPezkuwi)
  ],
  providers: {
    'Pezkuwi Foundation': 'wss://rpc.pezkuwichain.io',
    'Pezkuwi Zagros': 'wss://zagros-rpc.pezkuwichain.io',
    'Local': 'ws://127.0.0.1:9944'
  },
  teleport: [1000],
  text: 'Pezkuwi',
  ui: {
    color: '#e6007a',
    identityIcon: 'jdenticon',
    logo: chainsPezkuwiSVG
  }
};
