From 7f901d76c0bacf49ffd4150b867ce1a0462027eb Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 28 Mar 2019 18:14:35 +0100 Subject: [PATCH] 0.52 (#808) * 0.52 * Add PeerInfo info * Bump version * Bump common --- CHANGELOG.md | 8 +++--- lerna.json | 2 +- packages/api-derive/package.json | 6 ++--- packages/api/package.json | 16 ++++++------ packages/api/test/e2e/promise-alex.spec.js | 8 ++++++ packages/rpc-core/package.json | 10 ++++---- packages/rpc-provider/package.json | 10 ++++---- packages/rpc-rx/package.json | 6 ++--- packages/type-extrinsics/package.json | 6 ++--- packages/type-jsonrpc/package.json | 2 +- packages/type-storage/package.json | 10 ++++---- packages/types/package.json | 6 ++--- yarn.lock | 30 +++++++++++----------- 13 files changed, 65 insertions(+), 55 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29e44838fa..b163ff8b0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,11 @@ # 0.52.1 -- Support linked maps for new staking interfaces -- Add derive.staking.controllers to retrieve all active controllers +- Support queries to linked mapped storage (found in new staking interfaces) +- Add derive.staking.controllers to retrieve all active staking controllers +- Align types as per latest substrate master +- PeerInfo from system_peers does not have the index field anymore (dropped in substrate) +- Allow parsing of V3 metadata with DoubleMap support - Check for single instances for api and types as they are loaded (assertSingletonPackage) -- Add Key type as per latest substrate master # 0.51.1 diff --git a/lerna.json b/lerna.json index e41fbdf4ad..673c1c2d92 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "0.52.0-beta.5" + "version": "0.52.0" } diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index a6d4955c76..f1b8e372a5 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "0.52.0-beta.5", + "version": "0.52.0", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "keywords": [ @@ -31,8 +31,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.4.0", - "@polkadot/api": "^0.52.0-beta.5", - "@polkadot/types": "^0.52.0-beta.5", + "@polkadot/api": "^0.52.0", + "@polkadot/types": "^0.52.0", "@types/memoizee": "^0.4.2", "memoizee": "^0.4.14" } diff --git a/packages/api/package.json b/packages/api/package.json index dafc791e1a..be443ebe03 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "0.52.0-beta.5", + "version": "0.52.0", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "keywords": [ @@ -30,12 +30,12 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.4.0", - "@polkadot/api-derive": "^0.52.0-beta.5", - "@polkadot/extrinsics": "^0.52.0-beta.5", - "@polkadot/rpc-provider": "^0.52.0-beta.5", - "@polkadot/rpc-rx": "^0.52.0-beta.5", - "@polkadot/storage": "^0.52.0-beta.5", - "@polkadot/types": "^0.52.0-beta.5", - "@polkadot/util-crypto": "^0.42.0-beta.2" + "@polkadot/api-derive": "^0.52.0", + "@polkadot/extrinsics": "^0.52.0", + "@polkadot/rpc-provider": "^0.52.0", + "@polkadot/rpc-rx": "^0.52.0", + "@polkadot/storage": "^0.52.0", + "@polkadot/types": "^0.52.0", + "@polkadot/util-crypto": "^0.42.1" } } diff --git a/packages/api/test/e2e/promise-alex.spec.js b/packages/api/test/e2e/promise-alex.spec.js index 068a163695..d2ebf11688 100644 --- a/packages/api/test/e2e/promise-alex.spec.js +++ b/packages/api/test/e2e/promise-alex.spec.js @@ -36,6 +36,14 @@ describe.skip('alex queries', () => { }); }); + it('derives a list of the controllers', (done) => { + api.derive.staking.controllers((res) => { + console.log('api.derive.staking.controllers:', JSON.stringify(res)); + + done(); + }); + }); + it.skip('retrieves the list of nominators', (done) => { let count = 0; api.query.staking.nominators((res) => { diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 4f92ed188c..4750041000 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "0.52.0-beta.5", + "version": "0.52.0", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "keywords": [ @@ -30,9 +30,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.4.0", - "@polkadot/jsonrpc": "^0.52.0-beta.5", - "@polkadot/rpc-provider": "^0.52.0-beta.5", - "@polkadot/types": "^0.52.0-beta.5", - "@polkadot/util": "^0.42.0-beta.2" + "@polkadot/jsonrpc": "^0.52.0", + "@polkadot/rpc-provider": "^0.52.0", + "@polkadot/types": "^0.52.0", + "@polkadot/util": "^0.42.1" } } diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index de3c72b5b6..d99ed8b049 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "0.52.0-beta.5", + "version": "0.52.0", "description": "Transport providers for the API", "main": "index.js", "keywords": [ @@ -30,10 +30,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.4.0", - "@polkadot/keyring": "^0.42.0-beta.2", - "@polkadot/storage": "^0.52.0-beta.5", - "@polkadot/util": "^0.42.0-beta.2", - "@polkadot/util-crypto": "^0.42.0-beta.2", + "@polkadot/keyring": "^0.42.1", + "@polkadot/storage": "^0.52.0", + "@polkadot/util": "^0.42.1", + "@polkadot/util-crypto": "^0.42.1", "@types/nock": "^9.3.1", "eventemitter3": "^3.1.0", "isomorphic-fetch": "^2.2.1", diff --git a/packages/rpc-rx/package.json b/packages/rpc-rx/package.json index 3462f6830d..1c17ddcfe2 100644 --- a/packages/rpc-rx/package.json +++ b/packages/rpc-rx/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-rx", - "version": "0.52.0-beta.5", + "version": "0.52.0", "description": "An RxJs wrapper around the Polkadot JS API", "main": "index.js", "keywords": [ @@ -30,8 +30,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-rx#readme", "dependencies": { "@babel/runtime": "^7.4.0", - "@polkadot/rpc-core": "^0.52.0-beta.5", - "@polkadot/rpc-provider": "^0.52.0-beta.5", + "@polkadot/rpc-core": "^0.52.0", + "@polkadot/rpc-provider": "^0.52.0", "@types/memoizee": "^0.4.2", "@types/rx": "^4.1.1", "memoizee": "^0.4.14", diff --git a/packages/type-extrinsics/package.json b/packages/type-extrinsics/package.json index 1709d239ae..435ea4704a 100644 --- a/packages/type-extrinsics/package.json +++ b/packages/type-extrinsics/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/extrinsics", - "version": "0.52.0-beta.5", + "version": "0.52.0", "main": "index.js", "repository": "https://github.com/polkadot-js/api.git", "author": "Jaco Greeff ", @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.4.0", - "@polkadot/types": "^0.52.0-beta.5", - "@polkadot/util": "^0.42.0-beta.2" + "@polkadot/types": "^0.52.0", + "@polkadot/util": "^0.42.1" } } diff --git a/packages/type-jsonrpc/package.json b/packages/type-jsonrpc/package.json index b039c65b96..f071c312cf 100644 --- a/packages/type-jsonrpc/package.json +++ b/packages/type-jsonrpc/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/jsonrpc", - "version": "0.52.0-beta.5", + "version": "0.52.0", "description": "Method definitions for the Polkadot RPC layer", "main": "index.js", "engines": { diff --git a/packages/type-storage/package.json b/packages/type-storage/package.json index 5e28d51345..a6073861be 100644 --- a/packages/type-storage/package.json +++ b/packages/type-storage/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/storage", - "version": "0.52.0-beta.5", + "version": "0.52.0", "description": "Generic wrapper wrapper around state storage", "main": "index.js", "engines": { @@ -30,9 +30,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-storage#readme", "dependencies": { "@babel/runtime": "^7.4.0", - "@polkadot/keyring": "^0.42.0-beta.2", - "@polkadot/types": "^0.52.0-beta.5", - "@polkadot/util": "^0.42.0-beta.2", - "@polkadot/util-crypto": "^0.42.0-beta.2" + "@polkadot/keyring": "^0.42.1", + "@polkadot/types": "^0.52.0", + "@polkadot/util": "^0.42.1", + "@polkadot/util-crypto": "^0.42.1" } } diff --git a/packages/types/package.json b/packages/types/package.json index 2222123e7c..92127984b4 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "0.52.0-beta.5", + "version": "0.52.0", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [ @@ -30,7 +30,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.4.0", - "@polkadot/keyring": "^0.42.0-beta.2", - "@polkadot/util": "^0.42.0-beta.2" + "@polkadot/keyring": "^0.42.1", + "@polkadot/util": "^0.42.1" } } diff --git a/yarn.lock b/yarn.lock index 746e9a1091..a56685489b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1579,14 +1579,14 @@ typescript "^3.3.4000" vuepress "^1.0.0-alpha.44" -"@polkadot/keyring@^0.42.0-beta.2": - version "0.42.0-beta.2" - resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.42.0-beta.2.tgz#c6ccaa7c73538155b682fdf83adc663724caec17" - integrity sha512-NvnJZhH/QQxPFuThPc6X2Me/2/pF2cZNLiAviYHaqJgH9F8vjDWjcEXSxJ+/9OMixtC9qMPNp9InOLpt+aNRtA== +"@polkadot/keyring@^0.42.1": + version "0.42.1" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.42.1.tgz#96b36543b7633d9aba3f9fe0ab5e69bafd73abae" + integrity sha512-xY2e1FU6UDVO/OcMvz2Up7x27QexOQMOh9hy9dqIDfdwCGZrbsPRxiXTHFKUglAi5vUZhiSlGR/L0ealZaKD2Q== dependencies: "@babel/runtime" "^7.4.0" - "@polkadot/util" "^0.42.0-beta.2" - "@polkadot/util-crypto" "^0.42.0-beta.2" + "@polkadot/util" "^0.42.1" + "@polkadot/util-crypto" "^0.42.1" "@types/bs58" "^4.0.0" bs58 "^4.0.1" @@ -1595,13 +1595,13 @@ resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.56.tgz#ffd6e9c95704a7fb90b918193b9dc5c440114b27" integrity sha512-wnt4zXxZXyz6WaubTO/I+nUElwV2DogFzdl6CrKfVn2PTWp8uHN06W9s40FH57ORtmQfDr9rLRP8Nq+oIyElbg== -"@polkadot/util-crypto@^0.42.0-beta.2": - version "0.42.0-beta.2" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.42.0-beta.2.tgz#1baafb0619418a9b86ca89e79f6191596a21db64" - integrity sha512-7cx63+9OOAftmUSHcBLNZoLA229Ly4YD0ssZi9YXUkwlud2B7wx2SeQtbXj5BOF9lUf8BEbyoTH1i1naSRRmHw== +"@polkadot/util-crypto@^0.42.1": + version "0.42.1" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.42.1.tgz#c19b1a8013ad40196a0384f82b92d18c3a63cfdf" + integrity sha512-NmHUrR/ysxhLx/PpL/exF9X7pNEx4znOwNvXQ+ZCI1U2TGBXj0T8IomSkyVNuDUv0R+OYzmcJAFB0igTdiEqMw== dependencies: "@babel/runtime" "^7.4.0" - "@polkadot/util" "^0.42.0-beta.2" + "@polkadot/util" "^0.42.1" "@polkadot/wasm-crypto" "^0.6.1" "@polkadot/wasm-dalek-ed25519" "^0.6.1" "@polkadot/wasm-schnorrkel" "^0.6.1" @@ -1617,10 +1617,10 @@ tweetnacl "^1.0.1" xxhashjs "^0.2.2" -"@polkadot/util@^0.42.0-beta.2": - version "0.42.0-beta.2" - resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.42.0-beta.2.tgz#8d499f6c7ef6e59d165884d01912b2350686d61f" - integrity sha512-J/i4YKCArks24zZefXXNeHKftc20wVQPuSdMXbN+2GL4xWFCvHj96cF6BgKlKE7y/qBJhbXaJeQ/y1IuMHPjOw== +"@polkadot/util@^0.42.1": + version "0.42.1" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.42.1.tgz#270f87c5370ab38e17d7aa77804686dc309328f7" + integrity sha512-9Nd5VLl7SQjwjdWTWQZ978+7dc9AcXF5IfDe8JiS65i76YB7HPPS6bF4mYmbmrRXEWXi/DMx+A7FKHyz0BHgRg== dependencies: "@babel/runtime" "^7.4.0" "@types/bn.js" "^4.11.4"