RefCount change to u32 (#2635)

This commit is contained in:
Jaco Greeff
2020-09-23 15:17:12 +02:00
committed by GitHub
parent ad20decbbc
commit 9f4007bd4b
7 changed files with 27 additions and 5 deletions
@@ -32,6 +32,7 @@ const sharedTypes = {
leafHash: 'H256',
sortedHashes: 'H256'
},
RefCount: 'RefCountTo259',
ResourceId: '[u8; 32]',
'chainbridge::ChainId': 'u8'
};
+10 -1
View File
@@ -25,6 +25,7 @@ const versioned: OverrideVersionedType[] = [
Keys: 'SessionKeys5',
Multiplier: 'Fixed64',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
ReferendumInfo: 'ReferendumInfoTo239',
RewardDestination: 'RewardDestinationTo257',
SlashingSpans: 'SlashingSpansTo204',
@@ -43,6 +44,7 @@ const versioned: OverrideVersionedType[] = [
Keys: 'SessionKeys5',
Multiplier: 'Fixed64',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
ReferendumInfo: 'ReferendumInfoTo239',
RewardDestination: 'RewardDestinationTo257',
SlashingSpans: 'SlashingSpansTo204',
@@ -62,6 +64,7 @@ const versioned: OverrideVersionedType[] = [
Keys: 'SessionKeys5',
Multiplier: 'Fixed64',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
ReferendumInfo: 'ReferendumInfoTo239',
RewardDestination: 'RewardDestinationTo257',
StakingLedger: 'StakingLedgerTo223',
@@ -78,6 +81,7 @@ const versioned: OverrideVersionedType[] = [
DispatchInfo: 'DispatchInfoTo244',
Multiplier: 'Fixed64',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
ReferendumInfo: 'ReferendumInfoTo239',
RewardDestination: 'RewardDestinationTo257',
StakingLedger: 'StakingLedgerTo240',
@@ -92,6 +96,7 @@ const versioned: OverrideVersionedType[] = [
DispatchInfo: 'DispatchInfoTo244',
Multiplier: 'Fixed64',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257',
StakingLedger: 'StakingLedgerTo240',
Weight: 'u32'
@@ -104,6 +109,7 @@ const versioned: OverrideVersionedType[] = [
CompactAssignments: 'CompactAssignmentsTo257',
DispatchInfo: 'DispatchInfoTo244',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257'
}
},
@@ -113,6 +119,7 @@ const versioned: OverrideVersionedType[] = [
...sharedTypes,
CompactAssignments: 'CompactAssignmentsTo257',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257'
}
},
@@ -121,13 +128,15 @@ const versioned: OverrideVersionedType[] = [
types: {
...sharedTypes,
CompactAssignments: 'CompactAssignmentsTo257',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257'
}
},
{
minmax: [2023, undefined],
types: {
...sharedTypes
...sharedTypes,
RefCount: 'RefCountTo259'
}
}
];
+4 -1
View File
@@ -21,6 +21,7 @@ const versioned: OverrideVersionedType[] = [
...sharedTypes,
CompactAssignments: 'CompactAssignmentsTo257',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257'
}
},
@@ -29,13 +30,15 @@ const versioned: OverrideVersionedType[] = [
types: {
...sharedTypes,
CompactAssignments: 'CompactAssignmentsTo257',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257'
}
},
{
minmax: [23, undefined],
types: {
...sharedTypes
...sharedTypes,
RefCount: 'RefCountTo259'
}
}
];
+2 -1
View File
@@ -15,7 +15,8 @@ const versioned: OverrideVersionedType[] = [
minmax: [0, undefined],
types: {
...sharedTypes,
CompactAssignments: 'CompactAssignmentsTo257'
CompactAssignments: 'CompactAssignmentsTo257',
RefCount: 'RefCountTo259'
}
}
];
+5 -1
View File
@@ -21,6 +21,7 @@ const versioned: OverrideVersionedType[] = [
CompactAssignments: 'CompactAssignmentsTo257',
Multiplier: 'Fixed64',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257',
Weight: 'u32'
}
@@ -31,6 +32,7 @@ const versioned: OverrideVersionedType[] = [
...sharedTypes,
CompactAssignments: 'CompactAssignmentsTo257',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257'
}
},
@@ -39,13 +41,15 @@ const versioned: OverrideVersionedType[] = [
types: {
...sharedTypes,
CompactAssignments: 'CompactAssignmentsTo257',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257'
}
},
{
minmax: [43, undefined],
types: {
...sharedTypes
...sharedTypes,
RefCount: 'RefCountTo259'
}
}
];
@@ -274,7 +274,8 @@ export default {
Initialization: 'Null'
}
},
RefCount: 'u8',
RefCount: 'u32',
RefCountTo259: 'u8',
TransactionValidityError: {
_enum: {
Invalid: 'InvalidTransaction',