diff --git a/CHANGELOG.md b/CHANGELOG.md index d400cd53cc..b49566c09b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # CHANGELOG +## 3.7.2 Feb 2, 2021 + +Changes: + +- Adjusted the `Keys` type for the 28 runtime on Kusama, Polkadot & Westend + + ## 3.7.1 Feb 1, 2021 Upgrade priority: Low. However recommended for current Substrate master, Polkadot and Rococo users and those wishing to support the upcoming Polkadot 28 runtime with the new `MultiAddress`. diff --git a/package.json b/package.json index 80a357f070..a8ba0f81c0 100644 --- a/package.json +++ b/package.json @@ -34,5 +34,5 @@ "@types/jest": "^26.0.20", "copyfiles": "^2.4.1" }, - "version": "3.7.2-0" + "version": "3.7.2" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index 61cdad6c87..df59be8078 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "3.7.2-0", + "version": "3.7.2", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", "sideEffects": false, @@ -13,8 +13,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/api": "3.7.2-0", - "@polkadot/types": "3.7.2-0", + "@polkadot/api": "3.7.2", + "@polkadot/types": "3.7.2", "@polkadot/util": "^5.5.1", "@polkadot/x-rxjs": "^5.5.1", "bn.js": "^4.11.9" diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index c159b8ab78..bd3a03fd35 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "3.7.2-0", + "version": "3.7.2", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "sideEffects": false, @@ -13,9 +13,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/api": "3.7.2-0", - "@polkadot/rpc-core": "3.7.2-0", - "@polkadot/types": "3.7.2-0", + "@polkadot/api": "3.7.2", + "@polkadot/rpc-core": "3.7.2", + "@polkadot/types": "3.7.2", "@polkadot/util": "^5.5.1", "@polkadot/util-crypto": "^5.5.1", "@polkadot/x-rxjs": "^5.5.1", @@ -23,6 +23,6 @@ }, "devDependencies": { "@polkadot/keyring": "^5.5.1", - "@polkadot/rpc-provider": "3.7.2-0" + "@polkadot/rpc-provider": "3.7.2" } } diff --git a/packages/api/package.json b/packages/api/package.json index 580a353bc3..4b15af6903 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "3.7.2-0", + "version": "3.7.2", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "sideEffects": [ @@ -16,13 +16,13 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/api-derive": "3.7.2-0", + "@polkadot/api-derive": "3.7.2", "@polkadot/keyring": "^5.5.1", - "@polkadot/metadata": "3.7.2-0", - "@polkadot/rpc-core": "3.7.2-0", - "@polkadot/rpc-provider": "3.7.2-0", - "@polkadot/types": "3.7.2-0", - "@polkadot/types-known": "3.7.2-0", + "@polkadot/metadata": "3.7.2", + "@polkadot/rpc-core": "3.7.2", + "@polkadot/rpc-provider": "3.7.2", + "@polkadot/types": "3.7.2", + "@polkadot/types-known": "3.7.2", "@polkadot/util": "^5.5.1", "@polkadot/util-crypto": "^5.5.1", "@polkadot/x-rxjs": "^5.5.1", diff --git a/packages/metadata/package.json b/packages/metadata/package.json index 3f36f8cb2e..cfa1b5a941 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/metadata", - "version": "3.7.2-0", + "version": "3.7.2", "description": "Helpers to extract information from runtime metadata", "main": "index.js", "sideEffects": [ @@ -16,8 +16,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/types": "3.7.2-0", - "@polkadot/types-known": "3.7.2-0", + "@polkadot/types": "3.7.2", + "@polkadot/types-known": "3.7.2", "@polkadot/util": "^5.5.1", "@polkadot/util-crypto": "^5.5.1", "bn.js": "^4.11.9" diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 27b9f94e83..92105edbf2 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "3.7.2-0", + "version": "3.7.2", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "sideEffects": false, @@ -13,9 +13,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/metadata": "3.7.2-0", - "@polkadot/rpc-provider": "3.7.2-0", - "@polkadot/types": "3.7.2-0", + "@polkadot/metadata": "3.7.2", + "@polkadot/rpc-provider": "3.7.2", + "@polkadot/types": "3.7.2", "@polkadot/util": "^5.5.1", "@polkadot/x-rxjs": "^5.5.1" }, diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 2ad14948e0..abeeae4739 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "3.7.2-0", + "version": "3.7.2", "description": "Transport providers for the API", "main": "index.js", "sideEffects": false, @@ -13,7 +13,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/types": "3.7.2-0", + "@polkadot/types": "3.7.2", "@polkadot/util": "^5.5.1", "@polkadot/util-crypto": "^5.5.1", "@polkadot/x-fetch": "^5.5.1", @@ -24,7 +24,7 @@ }, "devDependencies": { "@polkadot/keyring": "^5.5.1", - "@polkadot/metadata": "3.7.2-0", + "@polkadot/metadata": "3.7.2", "mock-socket": "^9.0.3", "nock": "^13.0.7" } diff --git a/packages/typegen/package.json b/packages/typegen/package.json index 6ac72ea556..287ce5f0e1 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "3.7.2-0", + "version": "3.7.2", "description": "Type generation scripts", "main": "index.js", "sideEffects": false, @@ -22,10 +22,10 @@ "@babel/core": "^7.12.10", "@babel/register": "^7.12.10", "@babel/runtime": "^7.12.5", - "@polkadot/api": "3.7.2-0", - "@polkadot/metadata": "3.7.2-0", - "@polkadot/rpc-provider": "3.7.2-0", - "@polkadot/types": "3.7.2-0", + "@polkadot/api": "3.7.2", + "@polkadot/metadata": "3.7.2", + "@polkadot/rpc-provider": "3.7.2", + "@polkadot/types": "3.7.2", "@polkadot/util": "^5.5.1", "handlebars": "^4.7.6", "websocket": "^1.0.33", diff --git a/packages/types-known/package.json b/packages/types-known/package.json index f7682ad6ef..c37120630f 100644 --- a/packages/types-known/package.json +++ b/packages/types-known/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types-known", - "version": "3.7.2-0", + "version": "3.7.2", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "sideEffects": false, @@ -13,7 +13,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/types": "3.7.2-0", + "@polkadot/types": "3.7.2", "@polkadot/util": "^5.5.1", "bn.js": "^4.11.9" }, diff --git a/packages/types-known/src/spec/kusama.ts b/packages/types-known/src/spec/kusama.ts index 60f475d74d..e8b3d4c0f5 100644 --- a/packages/types-known/src/spec/kusama.ts +++ b/packages/types-known/src/spec/kusama.ts @@ -8,23 +8,28 @@ import type { OverrideVersionedType } from '@polkadot/types/types'; const sharedTypes = { AccountInfo: 'AccountInfoWithProviders', Address: 'MultiAddress', - Keys: 'SessionKeys5', + Keys: 'SessionKeys6', LookupSource: 'MultiAddress', ProxyType: { _enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement'] - } + }, + ValidatorPrefs: 'ValidatorPrefsWithBlocked' }; const addrIndicesTypes = { AccountInfo: 'AccountInfoWithRefCount', Address: 'LookupSource', - LookupSource: 'IndicesLookupSource' + Keys: 'SessionKeys5', + LookupSource: 'IndicesLookupSource', + ValidatorPrefs: 'ValidatorPrefsWithCommission' }; const addrAccountIdTypes = { AccountInfo: 'AccountInfoWithRefCount', Address: 'AccountId', - LookupSource: 'AccountId' + Keys: 'SessionKeys5', + LookupSource: 'AccountId', + ValidatorPrefs: 'ValidatorPrefsWithCommission' }; const versioned: OverrideVersionedType[] = [ diff --git a/packages/types-known/src/spec/polkadot.ts b/packages/types-known/src/spec/polkadot.ts index 13af5864a8..fdbbbe9ad2 100644 --- a/packages/types-known/src/spec/polkadot.ts +++ b/packages/types-known/src/spec/polkadot.ts @@ -8,18 +8,21 @@ import type { OverrideVersionedType } from '@polkadot/types/types'; const sharedTypes = { AccountInfo: 'AccountInfoWithProviders', Address: 'MultiAddress', - Keys: 'SessionKeys5', + Keys: 'SessionKeys6', LookupSource: 'MultiAddress', ProxyType: { // was: SudoBalances _enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'Unused', 'IdentityJudgement'] - } + }, + ValidatorPrefs: 'ValidatorPrefsWithBlocked' }; const addrAccountIdTypes = { AccountInfo: 'AccountInfoWithRefCount', Address: 'AccountId', - LookupSource: 'AccountId' + Keys: 'SessionKeys5', + LookupSource: 'AccountId', + ValidatorPrefs: 'ValidatorPrefsWithCommission' }; // these are override types for Polkadot diff --git a/packages/types-known/src/spec/westend.ts b/packages/types-known/src/spec/westend.ts index 7f29862db4..e9ae76f691 100644 --- a/packages/types-known/src/spec/westend.ts +++ b/packages/types-known/src/spec/westend.ts @@ -8,18 +8,21 @@ import type { OverrideVersionedType } from '@polkadot/types/types'; const sharedTypes = { AccountInfo: 'AccountInfoWithProviders', Address: 'MultiAddress', - Keys: 'SessionKeys5', + Keys: 'SessionKeys6', LookupSource: 'MultiAddress', ProxyType: { // was: SudoBalances _enum: ['Any', 'NonTransfer', 'Staking', 'Unused', 'IdentityJudgement'] - } + }, + ValidatorPrefs: 'ValidatorPrefsWithBlocked' }; const addrAccountIdTypes = { AccountInfo: 'AccountInfoWithRefCount', Address: 'AccountId', - LookupSource: 'AccountId' + LookupSource: 'AccountId', + Keys: 'SessionKeys5', + ValidatorPrefs: 'ValidatorPrefsWithCommission' }; const versioned: OverrideVersionedType[] = [ diff --git a/packages/types/package.json b/packages/types/package.json index fa649fafdc..26b4c2d4dd 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "3.7.2-0", + "version": "3.7.2", "description": "Implementation of the Parity codec", "main": "index.js", "sideEffects": [ @@ -16,7 +16,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.12.5", - "@polkadot/metadata": "3.7.2-0", + "@polkadot/metadata": "3.7.2", "@polkadot/util": "^5.5.1", "@polkadot/util-crypto": "^5.5.1", "@polkadot/x-rxjs": "^5.5.1", diff --git a/yarn.lock b/yarn.lock index 57cc3f438d..d03e306fbf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1622,24 +1622,24 @@ __metadata: resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/api": 3.7.2-0 - "@polkadot/types": 3.7.2-0 + "@polkadot/api": 3.7.2 + "@polkadot/types": 3.7.2 "@polkadot/util": ^5.5.1 "@polkadot/x-rxjs": ^5.5.1 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/api-derive@3.7.2-0, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@3.7.2, @polkadot/api-derive@workspace:packages/api-derive": version: 0.0.0-use.local resolution: "@polkadot/api-derive@workspace:packages/api-derive" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/api": 3.7.2-0 + "@polkadot/api": 3.7.2 "@polkadot/keyring": ^5.5.1 - "@polkadot/rpc-core": 3.7.2-0 - "@polkadot/rpc-provider": 3.7.2-0 - "@polkadot/types": 3.7.2-0 + "@polkadot/rpc-core": 3.7.2 + "@polkadot/rpc-provider": 3.7.2 + "@polkadot/types": 3.7.2 "@polkadot/util": ^5.5.1 "@polkadot/util-crypto": ^5.5.1 "@polkadot/x-rxjs": ^5.5.1 @@ -1647,18 +1647,18 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/api@3.7.2-0, @polkadot/api@workspace:packages/api": +"@polkadot/api@3.7.2, @polkadot/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/api-derive": 3.7.2-0 + "@polkadot/api-derive": 3.7.2 "@polkadot/keyring": ^5.5.1 - "@polkadot/metadata": 3.7.2-0 - "@polkadot/rpc-core": 3.7.2-0 - "@polkadot/rpc-provider": 3.7.2-0 - "@polkadot/types": 3.7.2-0 - "@polkadot/types-known": 3.7.2-0 + "@polkadot/metadata": 3.7.2 + "@polkadot/rpc-core": 3.7.2 + "@polkadot/rpc-provider": 3.7.2 + "@polkadot/types": 3.7.2 + "@polkadot/types-known": 3.7.2 "@polkadot/util": ^5.5.1 "@polkadot/util-crypto": ^5.5.1 "@polkadot/x-rxjs": ^5.5.1 @@ -1772,14 +1772,14 @@ __metadata: languageName: node linkType: hard -"@polkadot/metadata@3.7.2-0, @polkadot/metadata@workspace:packages/metadata": +"@polkadot/metadata@3.7.2, @polkadot/metadata@workspace:packages/metadata": version: 0.0.0-use.local resolution: "@polkadot/metadata@workspace:packages/metadata" dependencies: "@babel/runtime": ^7.12.5 "@polkadot/keyring": ^5.5.1 - "@polkadot/types": 3.7.2-0 - "@polkadot/types-known": 3.7.2-0 + "@polkadot/types": 3.7.2 + "@polkadot/types-known": 3.7.2 "@polkadot/util": ^5.5.1 "@polkadot/util-crypto": ^5.5.1 bn.js: ^4.11.9 @@ -1795,28 +1795,28 @@ __metadata: languageName: node linkType: hard -"@polkadot/rpc-core@3.7.2-0, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@3.7.2, @polkadot/rpc-core@workspace:packages/rpc-core": version: 0.0.0-use.local resolution: "@polkadot/rpc-core@workspace:packages/rpc-core" dependencies: "@babel/runtime": ^7.12.5 "@polkadot/keyring": ^5.5.1 - "@polkadot/metadata": 3.7.2-0 - "@polkadot/rpc-provider": 3.7.2-0 - "@polkadot/types": 3.7.2-0 + "@polkadot/metadata": 3.7.2 + "@polkadot/rpc-provider": 3.7.2 + "@polkadot/types": 3.7.2 "@polkadot/util": ^5.5.1 "@polkadot/x-rxjs": ^5.5.1 languageName: unknown linkType: soft -"@polkadot/rpc-provider@3.7.2-0, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@3.7.2, @polkadot/rpc-provider@workspace:packages/rpc-provider": version: 0.0.0-use.local resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider" dependencies: "@babel/runtime": ^7.12.5 "@polkadot/keyring": ^5.5.1 - "@polkadot/metadata": 3.7.2-0 - "@polkadot/types": 3.7.2-0 + "@polkadot/metadata": 3.7.2 + "@polkadot/types": 3.7.2 "@polkadot/util": ^5.5.1 "@polkadot/util-crypto": ^5.5.1 "@polkadot/x-fetch": ^5.5.1 @@ -1845,10 +1845,10 @@ __metadata: "@babel/core": ^7.12.10 "@babel/register": ^7.12.10 "@babel/runtime": ^7.12.5 - "@polkadot/api": 3.7.2-0 - "@polkadot/metadata": 3.7.2-0 - "@polkadot/rpc-provider": 3.7.2-0 - "@polkadot/types": 3.7.2-0 + "@polkadot/api": 3.7.2 + "@polkadot/metadata": 3.7.2 + "@polkadot/rpc-provider": 3.7.2 + "@polkadot/types": 3.7.2 "@polkadot/util": ^5.5.1 "@types/websocket": ^1.0.1 "@types/yargs": ^15.0.13 @@ -1864,25 +1864,25 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types-known@3.7.2-0, @polkadot/types-known@workspace:packages/types-known": +"@polkadot/types-known@3.7.2, @polkadot/types-known@workspace:packages/types-known": version: 0.0.0-use.local resolution: "@polkadot/types-known@workspace:packages/types-known" dependencies: "@babel/runtime": ^7.12.5 - "@polkadot/types": 3.7.2-0 + "@polkadot/types": 3.7.2 "@polkadot/util": ^5.5.1 "@types/bn.js": ^4.11.6 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/types@3.7.2-0, @polkadot/types@workspace:packages/types": +"@polkadot/types@3.7.2, @polkadot/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: "@babel/runtime": ^7.12.5 "@polkadot/keyring": ^5.5.1 - "@polkadot/metadata": 3.7.2-0 + "@polkadot/metadata": 3.7.2 "@polkadot/util": ^5.5.1 "@polkadot/util-crypto": ^5.5.1 "@polkadot/x-rxjs": ^5.5.1