* 0.52

* Add PeerInfo info

* Bump version

* Bump common
This commit is contained in:
Jaco Greeff
2019-03-28 18:14:35 +01:00
committed by GitHub
parent 1859143328
commit 7f901d76c0
13 changed files with 65 additions and 55 deletions
+5 -3
View File
@@ -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
+1 -1
View File
@@ -9,5 +9,5 @@
"packages": [
"packages/*"
],
"version": "0.52.0-beta.5"
"version": "0.52.0"
}
+3 -3
View File
@@ -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"
}
+8 -8
View File
@@ -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"
}
}
@@ -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) => {
+5 -5
View File
@@ -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"
}
}
+5 -5
View File
@@ -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",
+3 -3
View File
@@ -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",
+3 -3
View File
@@ -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 <jacogr@gmail.com>",
@@ -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"
}
}
+1 -1
View File
@@ -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": {
+5 -5
View File
@@ -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"
}
}
+3 -3
View File
@@ -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"
}
}
+15 -15
View File
@@ -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"