chore: replace spec-based with name-based declarations for KILT (#8696)
* Update type-definitions dependency and remove outdated type definitions * Move KILT declarations from spec-based to name-based
This commit is contained in:
parent
3f5047a025
commit
6c3ea6b619
@ -3,7 +3,15 @@
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import kilt from './kilt';
|
||||
|
||||
// NOTE: The mapping is done from chain name in system.chain
|
||||
const chain: Record<string, OverrideBundleDefinition> = {};
|
||||
const chain: Record<string, OverrideBundleDefinition> = {
|
||||
'KILT Mashnet': kilt['KILT Mashnet'],
|
||||
'KILT Peregrine': kilt['KILT Peregrine'],
|
||||
'KILT Peregrine Stagenet': kilt['KILT Peregrine Stagenet'],
|
||||
'KILT Spiritnet': kilt['KILT Spiritnet'],
|
||||
'KILT Spiritnet Develop': kilt['KILT Spiritnet Develop']
|
||||
};
|
||||
|
||||
export default chain;
|
||||
|
||||
@ -5,4 +5,4 @@ import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import { typesBundle } from '@kiltprotocol/type-definitions';
|
||||
|
||||
export default typesBundle.chain?.['KILT Spiritnet'] as OverrideBundleDefinition;
|
||||
export default typesBundle.chain as Record<string, OverrideBundleDefinition>;
|
||||
@ -61,7 +61,6 @@ import jupiter from './jupiter';
|
||||
import jupiterRococo from './jupiter-rococo';
|
||||
import jur from './jur';
|
||||
import khala from './khala';
|
||||
import kilt from './kilt';
|
||||
import konomi from './konomi';
|
||||
import kpron from './kpron';
|
||||
import kulupu from './kulupu';
|
||||
@ -208,7 +207,6 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
'jur-chain': jur,
|
||||
kerria: parallel,
|
||||
khala,
|
||||
'kilt-spiritnet': kilt,
|
||||
'kintsugi-parachain': interbtc,
|
||||
konomi,
|
||||
kpron,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user