Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
RefCount change to u32
  • Loading branch information
jacogr committed Sep 22, 2020
commit 0f99d4e73e2842a5167e0ee1f321ab97195e4f02
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

## 1.35.0-beta.x

- **Breaking change** The `RefCount` type (used by `query.system.accounts`) has been changed to a `u32`. On older chains supply the `RefCount: 'RefCountTo259'` override

Changes:

- Adjust `RefCount` type as per substrate 2.0
- Add bounty type definitions from treasury
- Add support for `grandpa_proveFinality` RPC

Expand Down
1 change: 1 addition & 0 deletions packages/types-known/src/spec/centrifuge-chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const sharedTypes = {
leafHash: 'H256',
sortedHashes: 'H256'
},
RefCount: 'RefCountTo259',
ReferendumInfo: 'ReferendumInfoTo239',
StakingLedger: 'StakingLedgerTo240',
Weight: 'u32'
Expand Down
11 changes: 10 additions & 1 deletion packages/types-known/src/spec/kusama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const versioned: OverrideVersionedType[] = [
Keys: 'SessionKeys5',
Multiplier: 'Fixed64',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
ReferendumInfo: 'ReferendumInfoTo239',
RewardDestination: 'RewardDestinationTo257',
SlashingSpans: 'SlashingSpansTo204',
Expand All @@ -43,6 +44,7 @@ const versioned: OverrideVersionedType[] = [
Keys: 'SessionKeys5',
Multiplier: 'Fixed64',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
ReferendumInfo: 'ReferendumInfoTo239',
RewardDestination: 'RewardDestinationTo257',
SlashingSpans: 'SlashingSpansTo204',
Expand All @@ -62,6 +64,7 @@ const versioned: OverrideVersionedType[] = [
Keys: 'SessionKeys5',
Multiplier: 'Fixed64',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
ReferendumInfo: 'ReferendumInfoTo239',
RewardDestination: 'RewardDestinationTo257',
StakingLedger: 'StakingLedgerTo223',
Expand All @@ -78,6 +81,7 @@ const versioned: OverrideVersionedType[] = [
DispatchInfo: 'DispatchInfoTo244',
Multiplier: 'Fixed64',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
ReferendumInfo: 'ReferendumInfoTo239',
RewardDestination: 'RewardDestinationTo257',
StakingLedger: 'StakingLedgerTo240',
Expand All @@ -92,6 +96,7 @@ const versioned: OverrideVersionedType[] = [
DispatchInfo: 'DispatchInfoTo244',
Multiplier: 'Fixed64',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257',
StakingLedger: 'StakingLedgerTo240',
Weight: 'u32'
Expand All @@ -104,6 +109,7 @@ const versioned: OverrideVersionedType[] = [
CompactAssignments: 'CompactAssignmentsTo257',
DispatchInfo: 'DispatchInfoTo244',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257'
}
},
Expand All @@ -113,6 +119,7 @@ const versioned: OverrideVersionedType[] = [
...sharedTypes,
CompactAssignments: 'CompactAssignmentsTo257',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257'
}
},
Expand All @@ -121,13 +128,15 @@ const versioned: OverrideVersionedType[] = [
types: {
...sharedTypes,
CompactAssignments: 'CompactAssignmentsTo257',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257'
}
},
{
minmax: [2023, undefined],
types: {
...sharedTypes
...sharedTypes,
RefCount: 'RefCountTo259'
}
}
];
Expand Down
5 changes: 4 additions & 1 deletion packages/types-known/src/spec/polkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const versioned: OverrideVersionedType[] = [
...sharedTypes,
CompactAssignments: 'CompactAssignmentsTo257',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257'
}
},
Expand All @@ -29,13 +30,15 @@ const versioned: OverrideVersionedType[] = [
types: {
...sharedTypes,
CompactAssignments: 'CompactAssignmentsTo257',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257'
}
},
{
minmax: [23, undefined],
types: {
...sharedTypes
...sharedTypes,
RefCount: 'RefCountTo259'
}
}
];
Expand Down
3 changes: 2 additions & 1 deletion packages/types-known/src/spec/rococo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const versioned: OverrideVersionedType[] = [
minmax: [0, undefined],
types: {
...sharedTypes,
CompactAssignments: 'CompactAssignmentsTo257'
CompactAssignments: 'CompactAssignmentsTo257',
RefCount: 'RefCountTo259'
}
}
];
Expand Down
6 changes: 5 additions & 1 deletion packages/types-known/src/spec/westend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const versioned: OverrideVersionedType[] = [
CompactAssignments: 'CompactAssignmentsTo257',
Multiplier: 'Fixed64',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257',
Weight: 'u32'
}
Expand All @@ -31,6 +32,7 @@ const versioned: OverrideVersionedType[] = [
...sharedTypes,
CompactAssignments: 'CompactAssignmentsTo257',
OpenTip: 'OpenTipTo225',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257'
}
},
Expand All @@ -39,13 +41,15 @@ const versioned: OverrideVersionedType[] = [
types: {
...sharedTypes,
CompactAssignments: 'CompactAssignmentsTo257',
RefCount: 'RefCountTo259',
RewardDestination: 'RewardDestinationTo257'
}
},
{
minmax: [43, undefined],
types: {
...sharedTypes
...sharedTypes,
RefCount: 'RefCountTo259'
}
}
];
Expand Down
3 changes: 2 additions & 1 deletion packages/types/src/interfaces/system/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ export default {
Initialization: 'Null'
}
},
RefCount: 'u8',
RefCount: 'u32',
RefCountTo259: 'u8',
TransactionValidityError: {
_enum: {
Invalid: 'InvalidTransaction',
Expand Down