ghost-portal/packages/apps-config/src/api/index.ts
Jaco Greeff e4fc6b7aea
Move moonbeam/sora RPCs to bundle-only (#4174)
* Move moonbeam/sora RPCs to bundle-only

* Update packages/react-components/src/InputRpc/useRpcs.ts
2020-12-08 16:38:01 +01:00

22 lines
561 B
TypeScript

// Copyright 2017-2020 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import typesChain from './chain';
import typesSpec from './spec';
export { default as typesBundle } from './bundle';
export * from './constants';
export * from './params';
export function getChainTypes (specName: string, chainName: string): Record<string, string | Record<string, unknown>> {
return {
...(typesSpec[specName as 'edgeware'] || {}),
...(typesChain[chainName as 'Beresheet'] || {})
};
}
export {
typesChain,
typesSpec
};