ghost-portal/packages/apps-config/src/api/index.ts
aniiantt c08f874962
Acala upgrade testnet (#3857)
* upgrade acala types

* upgrade to acala tc5

* fix lint

* delete acala typesspec

* use singlequote  quotes
2020-10-14 07:52:08 +02:00

20 lines
505 B
TypeScript

// Copyright 2017-2020 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import typesChain from './chain';
import typesSpec from './spec';
import typesBundle from './bundle';
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,
typesBundle
};