Cleanup Rococo known types (#3555)

* Clenup Rococo known types

* CHANGELOG
This commit is contained in:
Jaco
2021-05-21 07:28:35 +02:00
committed by GitHub
parent 9cef1febe1
commit 60e0d0eae4
4 changed files with 25 additions and 18 deletions
+1
View File
@@ -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
+3
View File
@@ -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<string, OverrideVersionedType[]> = {
'node-template': nodeTemplate,
polkadot,
rococo,
shell,
statemine: statemint,
statemint,
westend
};
+4 -18
View File
@@ -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
}
+17
View File
@@ -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;