ghost-portal/packages/apps-config/src/endpoints/productionRelays.ts
2021-06-22 17:16:21 +02:00

18 lines
652 B
TypeScript

// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { TFunction } from 'i18next';
import type { LinkOption } from './types';
import { createKusama } from './productionRelayKusama';
import { createPolkadot } from './productionRelayPolkadot';
import { expandEndpoints } from './util';
export function createKusamaRelay (t: TFunction, firstOnly?: boolean): LinkOption[] {
return expandEndpoints(t, [createKusama(t)], firstOnly);
}
export function createPolkadotRelay (t: TFunction, firstOnly?: boolean): LinkOption[] {
return expandEndpoints(t, [createPolkadot(t)], firstOnly);
}