Skip to content

Commit

Permalink
Add PalletVersion struct (polkadot-js#2652)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored and woss committed Apr 23, 2021
1 parent 393312c commit 48caf64
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
15 changes: 9 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@

## 1.35.0-beta.x

- **Important** Metadata versions before v9 is not supported anymore. v4 was the first version to go with the Substrate 1.0 while Kusama itself starts at v9 as the earliest version. This means that Substrate 1.x chains that have not had any upgrades are not supported in this version of the API anymore.
- **Breaking change** The `RefCount` type (used by `query.system.accounts`) has been changed to a `u32`. On older chains supply the `RefCount: 'RefCountTo259'` override
Upgrade priority: Medium. Required for all teams building on Substrate 2.0 for full compatibility.

- **Important** The `RefCount` type (used by `query.system.accounts`) has been changed to a `u32`. On older chains supply the `RefCount: 'RefCountTo259'` override
- **Breaking change** Metadata versions before v9 as not supported anymore. v4 was the first version to go with the Substrate 1.0 while Kusama itself starts at v9 as the earliest version. This means that Substrate 1.x chains that have not had any upgrades are not supported in this version of the API anymore.
- **Breaking change** Support for the old-style linked-map retrievals via `query.<module>.map()` have been dropped, only the existing `.keys()/.entries()` are available for map iteration.

Changes:

- Drop support for Substrate 1.0 metadata versions 0-4
- Adjust `RefCount` type as per substrate 2.0
- Add bounty type definitions from treasury
- Drop support for Substrate 1.0 metadata versions 0-8
- Add support for `grandpa_proveFinality` RPC
- Drop support for linked maps (deprecated since early versions of Substrate 2)
- Drop support for linked map queries not via .entries (deprecated since early versions of Substrate 2)
- Add bounty type definitions from treasury palette
- Adjust `RefCount` type as per substrate 2.0
- Add `PalletVersion` types for future palette versioning


## 1.34.1 Sep 21, 2020
Expand Down
5 changes: 5 additions & 0 deletions packages/types/src/interfaces/runtime/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ export default {
Moment: 'u64',
OpaqueCall: 'Bytes',
Origin: 'DoNotConstruct<Origin>',
PalletVersion: {
major: 'u16',
minor: 'u8',
patch: 'u8'
},
Pays: {
_enum: ['Yes', 'No']
},
Expand Down

0 comments on commit 48caf64

Please sign in to comment.