Know-types for Rococo v1 (#2795)
This commit is contained in:
@@ -3,20 +3,34 @@
|
|||||||
|
|
||||||
import { OverrideVersionedType } from '@polkadot/types/types';
|
import { OverrideVersionedType } from '@polkadot/types/types';
|
||||||
|
|
||||||
|
// structs need to be in order
|
||||||
|
/* eslint-disable sort-keys */
|
||||||
|
|
||||||
const sharedTypes = {
|
const sharedTypes = {
|
||||||
Address: 'AccountId',
|
Address: 'AccountId',
|
||||||
Keys: 'SessionKeys5',
|
Keys: 'SessionKeys5',
|
||||||
LookupSource: 'AccountId',
|
LookupSource: 'AccountId'
|
||||||
RewardDestination: 'RewardDestinationTo257'
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const versioned: OverrideVersionedType[] = [
|
const versioned: OverrideVersionedType[] = [
|
||||||
{
|
{
|
||||||
minmax: [0, undefined],
|
minmax: [0, 9],
|
||||||
types: {
|
types: {
|
||||||
...sharedTypes,
|
...sharedTypes,
|
||||||
CompactAssignments: 'CompactAssignmentsTo257',
|
CompactAssignments: 'CompactAssignmentsTo257',
|
||||||
RefCount: 'RefCountTo259'
|
RefCount: 'RefCountTo259',
|
||||||
|
RewardDestination: 'RewardDestinationTo257'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
minmax: [10, undefined],
|
||||||
|
types: {
|
||||||
|
...sharedTypes,
|
||||||
|
ParaGenesisArgs: {
|
||||||
|
genesisHead: 'Bytes',
|
||||||
|
validationCode: 'Bytes',
|
||||||
|
parachain: 'bool'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user