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:
Antonio 2023-01-05 16:08:20 +01:00 committed by GitHub
parent 3f5047a025
commit 6c3ea6b619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15395 additions and 3086 deletions

View File

@ -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;

View File

@ -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>;

View File

@ -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