From 900da0c852d36a4e80743e35309bf67359fe0e84 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Fri, 21 Dec 2018 10:32:11 +0100 Subject: [PATCH] Pull in large-value Compact encoding changes (#508) * Pull in large-value Compact encoding changes * Update size check --- packages/rpc-core/package.json | 2 +- packages/rpc-provider/package.json | 6 ++--- packages/type-extrinsics/package.json | 2 +- packages/type-storage/package.json | 6 ++--- packages/types/package.json | 4 ++-- packages/types/src/codec/Compact.spec.ts | 2 +- yarn.lock | 30 ++++++++++++------------ 7 files changed, 26 insertions(+), 26 deletions(-) diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index eed557c6a0..e265c0f116 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -33,6 +33,6 @@ "@polkadot/jsonrpc": "^0.35.1", "@polkadot/rpc-provider": "^0.35.1", "@polkadot/types": "^0.35.1", - "@polkadot/util": "^0.33.22" + "@polkadot/util": "^0.33.23" } } diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index d8deaffca3..f42ba6d665 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -30,10 +30,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.2.0", - "@polkadot/keyring": "^0.33.22", + "@polkadot/keyring": "^0.33.23", "@polkadot/storage": "^0.35.1", - "@polkadot/util": "^0.33.22", - "@polkadot/util-crypto": "^0.33.22", + "@polkadot/util": "^0.33.23", + "@polkadot/util-crypto": "^0.33.23", "@types/nock": "^9.3.0", "eventemitter3": "^3.1.0", "isomorphic-fetch": "^2.2.1", diff --git a/packages/type-extrinsics/package.json b/packages/type-extrinsics/package.json index adf1c49ce9..bb686626af 100644 --- a/packages/type-extrinsics/package.json +++ b/packages/type-extrinsics/package.json @@ -12,6 +12,6 @@ "dependencies": { "@babel/runtime": "^7.2.0", "@polkadot/types": "^0.35.1", - "@polkadot/util": "^0.33.22" + "@polkadot/util": "^0.33.23" } } diff --git a/packages/type-storage/package.json b/packages/type-storage/package.json index eff0f472a7..687d80648c 100644 --- a/packages/type-storage/package.json +++ b/packages/type-storage/package.json @@ -30,9 +30,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-storage#readme", "dependencies": { "@babel/runtime": "^7.2.0", - "@polkadot/keyring": "^0.33.22", + "@polkadot/keyring": "^0.33.23", "@polkadot/types": "^0.35.1", - "@polkadot/util": "^0.33.22", - "@polkadot/util-crypto": "^0.33.22" + "@polkadot/util": "^0.33.23", + "@polkadot/util-crypto": "^0.33.23" } } diff --git a/packages/types/package.json b/packages/types/package.json index a506c03575..338bff80e1 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -30,8 +30,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.2.0", - "@polkadot/keyring": "^0.33.22", - "@polkadot/util": "^0.33.22", + "@polkadot/keyring": "^0.33.23", + "@polkadot/util": "^0.33.23", "core-js": "^2.6.1" } } diff --git a/packages/types/src/codec/Compact.spec.ts b/packages/types/src/codec/Compact.spec.ts index 8860594f29..236bc45c4f 100644 --- a/packages/types/src/codec/Compact.spec.ts +++ b/packages/types/src/codec/Compact.spec.ts @@ -89,7 +89,7 @@ describe('Compact', () => { it('decodes from same u32 as u64 encoded value (full, default)', () => { expect( Compact.decodeU8a(new Uint8Array([3, 249, 255, 255, 255]), 64) - ).toEqual([9, new BN(0xfffffff9)]); + ).toEqual([5, new BN(0xfffffff9)]); }); }); diff --git a/yarn.lock b/yarn.lock index aa1321216e..014c0902e5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1417,14 +1417,14 @@ typedoc-plugin-no-inherit "^1.0.2" typescript "^3.2.2" -"@polkadot/keyring@^0.33.22": - version "0.33.22" - resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.33.22.tgz#04a3be5c2b7db0bcb1828b303f1eca732d25e009" - integrity sha512-cevRwrnIoU7p5Jt5sqYDPu1sC9JirX2lYFeagZG7L5Xa8E7VjlmlXfOERurZ6Odf8uzPE2JpOUiJRqlV6Bc8XQ== +"@polkadot/keyring@^0.33.23": + version "0.33.23" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.33.23.tgz#90f19be051b1150056eedf1ce243154d14f6e975" + integrity sha512-x/HxJdgal5OZSWnyxsXbLFnkHodr1xp8sx3hjfFbT7dfHQ6Bx0QNBhj/K1sKDyZBBTokqZBQpD+gWjIYhDRvtg== dependencies: "@babel/runtime" "^7.2.0" - "@polkadot/util" "^0.33.22" - "@polkadot/util-crypto" "^0.33.22" + "@polkadot/util" "^0.33.23" + "@polkadot/util-crypto" "^0.33.23" "@types/bs58" "^3.0.30" bs58 "^4.0.1" @@ -1433,13 +1433,13 @@ resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.44.tgz#2fb28215f10b869bfa544fd8df8fccb4932d64f2" integrity sha512-tor7vSd3ZsRBO9FIuKZQ9hfqEGkNZnanAFVGmoL1iSmdhcoKtYTlQe0BQafjIynqIMOfXdJ7Zes9PlorPtw6yw== -"@polkadot/util-crypto@^0.33.22": - version "0.33.22" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.33.22.tgz#1cc4f76b0254418fcf61af2ad7936b2a0a9ec0e7" - integrity sha512-CnHDNZrOSzubBCOPlHO9E6OicWxksq20T7Yaj/Kq0F+iGwNu9EgVzYGF/DLMK+rubWPhsk74LFbuQyH/VlXAlQ== +"@polkadot/util-crypto@^0.33.23": + version "0.33.23" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.33.23.tgz#6102ccc7d826f92a62d8d7eec5481eb13c61eed4" + integrity sha512-xUGBUI1d4Mtiv5ZLPVgQbYXUiEHdtTm7yb5tw4K6HEPuxt7JgcMTVflMdcbZFZwHTRFUyNKrnraEW5LpQio8Rg== dependencies: "@babel/runtime" "^7.2.0" - "@polkadot/util" "^0.33.22" + "@polkadot/util" "^0.33.23" "@types/bip39" "^2.4.1" bip39 "^2.5.0" blakejs "^1.1.0" @@ -1447,10 +1447,10 @@ tweetnacl "^1.0.0" xxhashjs "^0.2.2" -"@polkadot/util@^0.33.22": - version "0.33.22" - resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.33.22.tgz#5cf61320a465fca8b48cef0279e1dcd8fec72faa" - integrity sha512-79HQG5K0SzjTbWQGx4Wj2UjVd0S4sfB4praxV835x7aY4c/GfrdKyf/W5+DUnk+KsjupKcyB/oxEIUNCHywJFQ== +"@polkadot/util@^0.33.23": + version "0.33.23" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.33.23.tgz#c96bf22370caac93c939886f15ebbe59066365dc" + integrity sha512-Y3QvSO3BVf0MJtkKCXZwf54rvkVNhng5JxoVQgIpYufAJqTywOIXWkWQh6PW6KU/xyynWTseskUfUqVMjJjl0A== dependencies: "@babel/runtime" "^7.2.0" "@types/bn.js" "^4.11.3"