diff --git a/CHANGELOG.md b/CHANGELOG.md index f80796da32..ea11646e98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ Changes: - Add support for `DisallowSigned` (as per shell runtime) extension - Display small hex-slice with u8a decoding failures - Add `state_getChildReadProof` RPC +- Cleanup Rococo known types (only as used) ## 4.10.1 May 17, 2021 diff --git a/packages/types-known/src/spec/index.ts b/packages/types-known/src/spec/index.ts index 106f51f206..65b55fa7fc 100644 --- a/packages/types-known/src/spec/index.ts +++ b/packages/types-known/src/spec/index.ts @@ -9,6 +9,7 @@ import node from './node'; import nodeTemplate from './node-template'; import polkadot from './polkadot'; import rococo from './rococo'; +import shell from './shell'; import statemint from './statemint'; import westend from './westend'; @@ -20,6 +21,8 @@ const typesSpec: Record = { 'node-template': nodeTemplate, polkadot, rococo, + shell, + statemine: statemint, statemint, westend }; diff --git a/packages/types-known/src/spec/rococo.ts b/packages/types-known/src/spec/rococo.ts index eb7f18edc8..2c3c301659 100644 --- a/packages/types-known/src/spec/rococo.ts +++ b/packages/types-known/src/spec/rococo.ts @@ -20,39 +20,25 @@ const versioned: OverrideVersionedType[] = [ ...sharedTypes, AccountInfo: 'AccountInfoWithDualRefCount', Address: 'AccountId', - CompactAssignments: 'CompactAssignmentsWith16', - LookupSource: 'AccountId', - RawSolution: 'RawSolutionWith16' + LookupSource: 'AccountId' } }, { minmax: [201, 214], types: { ...sharedTypes, - AccountInfo: 'AccountInfoWithDualRefCount', - CompactAssignments: 'CompactAssignmentsWith16', - RawSolution: 'RawSolutionWith16' + AccountInfo: 'AccountInfoWithDualRefCount' } }, { minmax: [215, 228], types: { ...sharedTypes, - CompactAssignments: 'CompactAssignmentsWith16', - Keys: 'SessionKeys6', - RawSolution: 'RawSolutionWith16' + Keys: 'SessionKeys6' } }, { - minmax: [229, 9000], - types: { - ...sharedTypes, - CompactAssignments: 'CompactAssignmentsWith16', - RawSolution: 'RawSolutionWith16' - } - }, - { - minmax: [9010, undefined], + minmax: [229, undefined], types: { ...sharedTypes } diff --git a/packages/types-known/src/spec/shell.ts b/packages/types-known/src/spec/shell.ts new file mode 100644 index 0000000000..c394430099 --- /dev/null +++ b/packages/types-known/src/spec/shell.ts @@ -0,0 +1,17 @@ +// Copyright 2017-2021 @polkadot/types-known authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +/* eslint-disable sort-keys */ + +import type { OverrideVersionedType } from '@polkadot/types/types'; + +const versioned: OverrideVersionedType[] = [ + { + minmax: [0, undefined], + types: { + // nothing, limited runtime + } + } +]; + +export default versioned;