// Copyright 2017-2021 @polkadot/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 import typesChain from './chain'; import typesSpec from './spec'; import specVersioned from './specVersioned'; export * from './constants'; export * from './params'; export function getChainTypes (specName: string, chainName: string): Record> { return { ...(typesSpec[specName as keyof typeof typesSpec] || {}), ...(typesChain[chainName as keyof typeof typesChain] || {}) }; } export const typesBundle = { spec: specVersioned }; export { typesChain, typesSpec };