From 1135237c621b42e0611e8a3be156025b8c43b99c Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Fri, 6 Mar 2020 07:44:46 +0100 Subject: [PATCH 1/3] 1.5 --- CHANGELOG.md | 14 ++++++++------ lerna.json | 2 +- package.json | 3 +-- packages/api-contract/package.json | 8 ++++---- packages/api-derive/package.json | 10 +++++----- packages/api/package.json | 12 ++++++------ packages/jsonrpc/package.json | 4 ++-- packages/metadata/package.json | 4 ++-- packages/rpc-core/package.json | 10 +++++----- packages/rpc-provider/package.json | 8 ++++---- packages/typegen/package.json | 12 ++++++------ packages/types/package.json | 4 ++-- yarn.lock | 14 +++++++------- 13 files changed, 53 insertions(+), 52 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b370a533a199..a7103c653512 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,19 +1,21 @@ -# 1.5.0-beta.x +# 1.5.1 Mar 06, 2020 +- **Important** Substrate master has updated staking, on older chains supply `StakingLedger: 'StakingLedgerTo223'` +- **Important** Substrate master has updated collective, on older chains supply `Votes: 'VotesTo230'` - Add proper support for type generation with an Enum containing an Tuple (Thanks to https://github.com/monitz87) - Fix storage parsing not resulting in rejected Promises (Fix from https://github.com/aniiantt applied) - Remove use of deprecated `Observable.create` (Thanks to https://github.com/Himself65) -- Type generation will now handle the same sub-module name across packages, i.e. `@polkadot/types/interfaces/runtime` & `@mine/interfaces/runtime`) +- Add types & metadata for the latest Polkadot/Substrate runtime versions (master branches) +- Type extraction will now allow the same sub-module name across packages, i.e. `@polkadot/types/interfaces/runtime` & `@mine/interfaces/runtime` will be valid - Add `.range([from, to]: [Hash, Hash?], ...args: any[]): [Hash, Codec][]` on all storage entries - Add `.raw(...args: any[]): Promise` to all RPC calls, returning the un-encoded result -- Allow pre-module type aliasing with `typesAlias: { : { : } }`on API construction options +- Allow pre-module type aliasing with `typesAlias: { : { : } }` in API construction options - Allow `BTreeMap` to be initialized with a `Record` object (in addition to `Map`) - Allow for `HashMap` definitions - `Bool` will now correctly return `isEmpty` on false/default values - Refresh the `NetworkState` types as returned by the `rpc.system.networkState()` call to current -- Expose `registry.createClass()`, to allow for creating type classes. If you are using `createClass` or `ClassOf` in your code, it is recommended to swap to this instance. -- Add additional derives to `api.derive.staking` to handle lazy-payout calculations -- Add types & metadata for the latest Polkadot/Substrate versions +- Expose `registry.createClass()` to allow for creating type classes. If you are using `createClass` or `ClassOf` in your code, it is recommended to swap to this instance. +- Add additional derives to `api.derive.staking` to handle lazy-payout retrievals # 1.4.2 Feb 27, 2020 diff --git a/lerna.json b/lerna.json index 64aaa719199f..307136822284 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "1.5.0-beta.33" + "version": "1.5.0" } diff --git a/package.json b/package.json index 4d6cfb00785b..9f82b6b2cd7b 100644 --- a/package.json +++ b/package.json @@ -25,10 +25,9 @@ "@babel/core": "^7.8.4", "@babel/register": "^7.8.3", "@babel/runtime": "^7.8.4", - "@polkadot/dev": "^0.50.26", + "@polkadot/dev": "^0.50.27", "@polkadot/ts": "^0.3.7", "@polkadot/typegen": "workspace:packages/typegen", - "@vue/component-compiler-utils": "^3.1.1", "copyfiles": "^2.2.0" } } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index 85ad16739770..cedb965c6efc 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "1.5.0-beta.33", + "version": "1.5.0", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", "keywords": [ @@ -27,9 +27,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { "@babel/runtime": "^7.8.4", - "@polkadot/api": "1.5.0-beta.33", - "@polkadot/rpc-core": "1.5.0-beta.33", - "@polkadot/types": "1.5.0-beta.33", + "@polkadot/api": "1.5.0", + "@polkadot/rpc-core": "1.5.0", + "@polkadot/types": "1.5.0", "@polkadot/util": "^2.6.1", "bn.js": "^5.1.1", "rxjs": "^6.5.4" diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 0934f0ec9231..3b4f561da620 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "1.5.0-beta.33", + "version": "1.5.0", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "keywords": [ @@ -28,10 +28,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.8.4", - "@polkadot/api": "1.5.0-beta.33", - "@polkadot/rpc-core": "1.5.0-beta.33", - "@polkadot/rpc-provider": "1.5.0-beta.33", - "@polkadot/types": "1.5.0-beta.33", + "@polkadot/api": "1.5.0", + "@polkadot/rpc-core": "1.5.0", + "@polkadot/rpc-provider": "1.5.0", + "@polkadot/types": "1.5.0", "@polkadot/util": "^2.6.1", "@polkadot/util-crypto": "^2.6.1", "bn.js": "^5.1.1", diff --git a/packages/api/package.json b/packages/api/package.json index 9123cac1bdba..66766df53420 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "1.5.0-beta.33", + "version": "1.5.0", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "keywords": [ @@ -27,12 +27,12 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.8.4", - "@polkadot/api-derive": "1.5.0-beta.33", + "@polkadot/api-derive": "1.5.0", "@polkadot/keyring": "^2.6.1", - "@polkadot/metadata": "1.5.0-beta.33", - "@polkadot/rpc-core": "1.5.0-beta.33", - "@polkadot/rpc-provider": "1.5.0-beta.33", - "@polkadot/types": "1.5.0-beta.33", + "@polkadot/metadata": "1.5.0", + "@polkadot/rpc-core": "1.5.0", + "@polkadot/rpc-provider": "1.5.0", + "@polkadot/types": "1.5.0", "@polkadot/util": "^2.6.1", "@polkadot/util-crypto": "^2.6.1", "bn.js": "^5.1.1", diff --git a/packages/jsonrpc/package.json b/packages/jsonrpc/package.json index 2bde3290140e..9f9e8d18b431 100644 --- a/packages/jsonrpc/package.json +++ b/packages/jsonrpc/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/jsonrpc", - "version": "1.5.0-beta.33", + "version": "1.5.0", "description": "Method definitions for the Polkadot RPC layer", "main": "index.js", "publishConfig": { @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/jsonrpc#readme", "dependencies": { "@babel/runtime": "^7.8.4", - "@polkadot/types": "1.5.0-beta.33", + "@polkadot/types": "1.5.0", "@polkadot/util": "^2.6.1" } } diff --git a/packages/metadata/package.json b/packages/metadata/package.json index 5d5c95269a38..09a9f3bba995 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/metadata", - "version": "1.5.0-beta.33", + "version": "1.5.0", "description": "Helpers to extract information from runtime metadata", "main": "index.js", "publishConfig": { @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme", "dependencies": { "@babel/runtime": "^7.8.4", - "@polkadot/types": "1.5.0-beta.33", + "@polkadot/types": "1.5.0", "@polkadot/util": "^2.6.1", "@polkadot/util-crypto": "^2.6.1", "bn.js": "^5.1.1" diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index e0de532b286c..84477b1d4127 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "1.5.0-beta.33", + "version": "1.5.0", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "keywords": [ @@ -27,10 +27,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.8.4", - "@polkadot/jsonrpc": "1.5.0-beta.33", - "@polkadot/metadata": "1.5.0-beta.33", - "@polkadot/rpc-provider": "1.5.0-beta.33", - "@polkadot/types": "1.5.0-beta.33", + "@polkadot/jsonrpc": "1.5.0", + "@polkadot/metadata": "1.5.0", + "@polkadot/rpc-provider": "1.5.0", + "@polkadot/types": "1.5.0", "@polkadot/util": "^2.6.1", "memoizee": "^0.4.14", "rxjs": "^6.5.4" diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index f8f103065dfb..1e7dfbe4a632 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "1.5.0-beta.33", + "version": "1.5.0", "description": "Transport providers for the API", "main": "index.js", "keywords": [ @@ -27,9 +27,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.8.4", - "@polkadot/jsonrpc": "1.5.0-beta.33", - "@polkadot/metadata": "1.5.0-beta.33", - "@polkadot/types": "1.5.0-beta.33", + "@polkadot/jsonrpc": "1.5.0", + "@polkadot/metadata": "1.5.0", + "@polkadot/types": "1.5.0", "@polkadot/util": "^2.6.1", "@polkadot/util-crypto": "^2.6.1", "bn.js": "^5.1.1", diff --git a/packages/typegen/package.json b/packages/typegen/package.json index 64d9a6df6ec4..3c9c96c4cf96 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "1.5.0-beta.33", + "version": "1.5.0", "description": "Type generation scripts", "main": "index.js", "bin": { @@ -36,11 +36,11 @@ "@babel/core": "^7.8.3", "@babel/register": "^7.8.3", "@babel/runtime": "^7.8.4", - "@polkadot/api": "1.5.0-beta.33", - "@polkadot/jsonrpc": "1.5.0-beta.33", - "@polkadot/metadata": "1.5.0-beta.33", - "@polkadot/rpc-provider": "1.5.0-beta.33", - "@polkadot/types": "1.5.0-beta.33", + "@polkadot/api": "1.5.0", + "@polkadot/jsonrpc": "1.5.0", + "@polkadot/metadata": "1.5.0", + "@polkadot/rpc-provider": "1.5.0", + "@polkadot/types": "1.5.0", "@polkadot/util": "^2.6.1", "websocket": "^1.0.31", "yargs": "^15.1.0" diff --git a/packages/types/package.json b/packages/types/package.json index 7c9c3bb2d784..0bc54e5d23f2 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "1.5.0-beta.33", + "version": "1.5.0", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [ @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.8.4", - "@polkadot/metadata": "1.5.0-beta.33", + "@polkadot/metadata": "1.5.0", "@polkadot/util": "^2.6.1", "@polkadot/util-crypto": "^2.6.1", "@types/bn.js": "^4.11.6", diff --git a/yarn.lock b/yarn.lock index 30d85fa59e85..cab4a093f021 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2802,9 +2802,9 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/dev@npm:^0.50.26": - version: 0.50.26 - resolution: "@polkadot/dev@npm:0.50.26" +"@polkadot/dev@npm:^0.50.27": + version: 0.50.27 + resolution: "@polkadot/dev@npm:0.50.27" dependencies: "@babel/cli": ^7.8.4 "@babel/core": ^7.8.6 @@ -2830,6 +2830,7 @@ __metadata: "@types/node": ^13.7.7 "@typescript-eslint/eslint-plugin": 2.22.0 "@typescript-eslint/parser": 2.22.0 + "@vue/component-compiler-utils": ^3.1.1 "@yarnpkg/pnpify": ^2.0.0-rc.18 babel-core: ^7.0.0-bridge.0 babel-jest: ^25.1.0 @@ -2884,8 +2885,8 @@ __metadata: polkadot-exec-tsc: scripts/polkadot-exec-tsc.js polkadot-exec-typedoc: scripts/polkadot-exec-typedoc.js polkadot-exec-vuepress: scripts/polkadot-exec-vuepress.js - polkadot-exec-webpack: scripts/polkadot-exe-webpackc.js - checksum: 2/0b46810d10b50e62aa8c9efd07c22e59f9c6f66ca05dc34355890b2a2cde806301c872b27e56ffeddb23bcc4848f4748aa0c52431da8f90f560e5c4dfee5f329 + polkadot-exec-webpack: scripts/polkadot-exec-webpack.js + checksum: 2/6198f095e351835d0491d0a9ea881add1e2eacb9b4ea342cf954d476ec11ef97faf54dac032b57f011d7074af2e891806b2c7ed21953e9208781450ae103faba languageName: node linkType: hard @@ -15590,10 +15591,9 @@ resolve@1.1.7: "@babel/core": ^7.8.4 "@babel/register": ^7.8.3 "@babel/runtime": ^7.8.4 - "@polkadot/dev": ^0.50.26 + "@polkadot/dev": ^0.50.27 "@polkadot/ts": ^0.3.7 "@polkadot/typegen": "workspace:packages/typegen" - "@vue/component-compiler-utils": ^3.1.1 copyfiles: ^2.2.0 languageName: unknown linkType: soft From d508fb1fd5548778ea427850e1a712d498f9386e Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Fri, 6 Mar 2020 07:47:17 +0100 Subject: [PATCH 2/3] Util bumps --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7103c653512..2a57cf3df34b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ - Refresh the `NetworkState` types as returned by the `rpc.system.networkState()` call to current - Expose `registry.createClass()` to allow for creating type classes. If you are using `createClass` or `ClassOf` in your code, it is recommended to swap to this instance. - Add additional derives to `api.derive.staking` to handle lazy-payout retrievals +- Update `@polkadot/{util, util-crypto, keyring}` to 1.6.1 & `@polkadot/wasm` to 1.2.1 # 1.4.2 Feb 27, 2020 From a2d33faab569cd89afe2fd268dcc0fc7037e29a5 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Fri, 6 Mar 2020 07:50:28 +0100 Subject: [PATCH 3/3] Install after bump --- yarn.lock | 68 +++++++++++++++++++++++++++---------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/yarn.lock b/yarn.lock index cab4a093f021..a200f90445fb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2756,25 +2756,25 @@ __metadata: resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: "@babel/runtime": ^7.8.4 - "@polkadot/api": 1.5.0-beta.33 - "@polkadot/rpc-core": 1.5.0-beta.33 - "@polkadot/types": 1.5.0-beta.33 + "@polkadot/api": 1.5.0 + "@polkadot/rpc-core": 1.5.0 + "@polkadot/types": 1.5.0 "@polkadot/util": ^2.6.1 bn.js: ^5.1.1 rxjs: ^6.5.4 languageName: unknown linkType: soft -"@polkadot/api-derive@1.5.0-beta.33, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@1.5.0, @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.8.4 - "@polkadot/api": 1.5.0-beta.33 + "@polkadot/api": 1.5.0 "@polkadot/keyring": ^2.6.1 - "@polkadot/rpc-core": 1.5.0-beta.33 - "@polkadot/rpc-provider": 1.5.0-beta.33 - "@polkadot/types": 1.5.0-beta.33 + "@polkadot/rpc-core": 1.5.0 + "@polkadot/rpc-provider": 1.5.0 + "@polkadot/types": 1.5.0 "@polkadot/util": ^2.6.1 "@polkadot/util-crypto": ^2.6.1 bn.js: ^5.1.1 @@ -2783,17 +2783,17 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/api@1.5.0-beta.33, @polkadot/api@workspace:packages/api": +"@polkadot/api@1.5.0, @polkadot/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: "@babel/runtime": ^7.8.4 - "@polkadot/api-derive": 1.5.0-beta.33 + "@polkadot/api-derive": 1.5.0 "@polkadot/keyring": ^2.6.1 - "@polkadot/metadata": 1.5.0-beta.33 - "@polkadot/rpc-core": 1.5.0-beta.33 - "@polkadot/rpc-provider": 1.5.0-beta.33 - "@polkadot/types": 1.5.0-beta.33 + "@polkadot/metadata": 1.5.0 + "@polkadot/rpc-core": 1.5.0 + "@polkadot/rpc-provider": 1.5.0 + "@polkadot/types": 1.5.0 "@polkadot/util": ^2.6.1 "@polkadot/util-crypto": ^2.6.1 bn.js: ^5.1.1 @@ -2890,12 +2890,12 @@ __metadata: languageName: node linkType: hard -"@polkadot/jsonrpc@1.5.0-beta.33, @polkadot/jsonrpc@workspace:packages/jsonrpc": +"@polkadot/jsonrpc@1.5.0, @polkadot/jsonrpc@workspace:packages/jsonrpc": version: 0.0.0-use.local resolution: "@polkadot/jsonrpc@workspace:packages/jsonrpc" dependencies: "@babel/runtime": ^7.8.4 - "@polkadot/types": 1.5.0-beta.33 + "@polkadot/types": 1.5.0 "@polkadot/util": ^2.6.1 languageName: unknown linkType: soft @@ -2911,44 +2911,44 @@ __metadata: languageName: node linkType: hard -"@polkadot/metadata@1.5.0-beta.33, @polkadot/metadata@workspace:packages/metadata": +"@polkadot/metadata@1.5.0, @polkadot/metadata@workspace:packages/metadata": version: 0.0.0-use.local resolution: "@polkadot/metadata@workspace:packages/metadata" dependencies: "@babel/runtime": ^7.8.4 "@polkadot/keyring": ^2.6.1 - "@polkadot/types": 1.5.0-beta.33 + "@polkadot/types": 1.5.0 "@polkadot/util": ^2.6.1 "@polkadot/util-crypto": ^2.6.1 bn.js: ^5.1.1 languageName: unknown linkType: soft -"@polkadot/rpc-core@1.5.0-beta.33, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@1.5.0, @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.8.4 - "@polkadot/jsonrpc": 1.5.0-beta.33 + "@polkadot/jsonrpc": 1.5.0 "@polkadot/keyring": ^2.6.1 - "@polkadot/metadata": 1.5.0-beta.33 - "@polkadot/rpc-provider": 1.5.0-beta.33 - "@polkadot/types": 1.5.0-beta.33 + "@polkadot/metadata": 1.5.0 + "@polkadot/rpc-provider": 1.5.0 + "@polkadot/types": 1.5.0 "@polkadot/util": ^2.6.1 memoizee: ^0.4.14 rxjs: ^6.5.4 languageName: unknown linkType: soft -"@polkadot/rpc-provider@1.5.0-beta.33, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@1.5.0, @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.8.4 - "@polkadot/jsonrpc": 1.5.0-beta.33 + "@polkadot/jsonrpc": 1.5.0 "@polkadot/keyring": ^2.6.1 - "@polkadot/metadata": 1.5.0-beta.33 - "@polkadot/types": 1.5.0-beta.33 + "@polkadot/metadata": 1.5.0 + "@polkadot/types": 1.5.0 "@polkadot/util": ^2.6.1 "@polkadot/util-crypto": ^2.6.1 bn.js: ^5.1.1 @@ -2976,11 +2976,11 @@ __metadata: "@babel/core": ^7.8.3 "@babel/register": ^7.8.3 "@babel/runtime": ^7.8.4 - "@polkadot/api": 1.5.0-beta.33 - "@polkadot/jsonrpc": 1.5.0-beta.33 - "@polkadot/metadata": 1.5.0-beta.33 - "@polkadot/rpc-provider": 1.5.0-beta.33 - "@polkadot/types": 1.5.0-beta.33 + "@polkadot/api": 1.5.0 + "@polkadot/jsonrpc": 1.5.0 + "@polkadot/metadata": 1.5.0 + "@polkadot/rpc-provider": 1.5.0 + "@polkadot/types": 1.5.0 "@polkadot/util": ^2.6.1 "@types/websocket": ^1.0.0 "@types/yargs": ^15.0.3 @@ -2995,13 +2995,13 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types@1.5.0-beta.33, @polkadot/types@workspace:packages/types": +"@polkadot/types@1.5.0, @polkadot/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: "@babel/runtime": ^7.8.4 "@polkadot/keyring": ^2.6.1 - "@polkadot/metadata": 1.5.0-beta.33 + "@polkadot/metadata": 1.5.0 "@polkadot/util": ^2.6.1 "@polkadot/util-crypto": ^2.6.1 "@types/bn.js": ^4.11.6