ghost-portal/packages/react-api/src/light/index.ts
Tarik Gul 384049fb6b
2025 (#11172)
* 2025

* update ci scripts to add access to scripts
2025-01-03 03:59:53 +02:00

28 lines
828 B
TypeScript

// Copyright 2017-2025 @polkadot/react-api authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { WellKnownChain } from '@substrate/connect';
import { specs as kusama } from './kusama/index.js';
import { specs as polkadot } from './polkadot/index.js';
export const lightSpecs: Record<string, Record<string, string>> =
Object
.entries({ kusama, polkadot })
.reduce((all: Record<string, Record<string, string>>, [r, v]) => {
all[r] = v.reduce((specs: Record<string, string>, k) => {
specs[k] = `./light/${r}/${k}.json`;
return specs;
}, {});
return all;
}, {});
export const relaySpecs: Record<string, string> = {
kusama: WellKnownChain.ksmcc3,
polkadot: WellKnownChain.polkadot,
rococo: WellKnownChain.rococo_v2_2,
westend: WellKnownChain.westend2
};