diff --git a/packages/api-cli/package.json b/packages/api-cli/package.json index 2485425a2..0cde28487 100644 --- a/packages/api-cli/package.json +++ b/packages/api-cli/package.json @@ -21,12 +21,12 @@ "polkadot-js-api": "./runcli.mjs" }, "dependencies": { - "@polkadot/api": "^12.4.1", - "@polkadot/api-augment": "^12.4.1", - "@polkadot/keyring": "^13.0.2", - "@polkadot/types": "^12.4.1", - "@polkadot/util": "^13.0.2", - "@polkadot/util-crypto": "^13.0.2", + "@polkadot/api": "^13.1.1", + "@polkadot/api-augment": "^13.1.1", + "@polkadot/keyring": "^13.1.1", + "@polkadot/types": "^13.1.1", + "@polkadot/util": "^13.1.1", + "@polkadot/util-crypto": "^13.1.1", "tslib": "^2.7.0", "yargs": "^17.7.2" }, diff --git a/packages/api-cli/src/runcli.ts b/packages/api-cli/src/runcli.ts index 5288621f9..5a7efce94 100644 --- a/packages/api-cli/src/runcli.ts +++ b/packages/api-cli/src/runcli.ts @@ -252,13 +252,13 @@ async function makeTx ({ api, fn, log }: CallInfo): Promise<(() => void) | Hash> let signable; if (sudo || sudoUncheckedWeight) { - const adminId = await api.query.sudo.key(); + const adminId = await api.query['sudo']['key'](); assert(adminId.eq(signer.address), 'Supplied seed does not match on-chain sudo key'); signable = sudoUncheckedWeight - ? api.tx.sudo.sudoUncheckedWeight(fn(...params), sudoUncheckedWeight) - : api.tx.sudo.sudo(fn(...params)); + ? api.tx['sudo']['sudoUncheckedWeight'](fn(...params), sudoUncheckedWeight) + : api.tx['sudo']['sudo'](fn(...params)); } else { signable = fn(...params); } diff --git a/packages/json-serve/package.json b/packages/json-serve/package.json index d92e57b69..b345d02c5 100644 --- a/packages/json-serve/package.json +++ b/packages/json-serve/package.json @@ -21,11 +21,11 @@ "polkadot-js-json-serve": "./runcli.mjs" }, "dependencies": { - "@polkadot/api": "^12.4.1", - "@polkadot/api-augment": "^12.4.1", - "@polkadot/api-derive": "^12.4.1", - "@polkadot/types": "^12.4.1", - "@polkadot/util": "^13.0.2", + "@polkadot/api": "^13.1.1", + "@polkadot/api-augment": "^13.1.1", + "@polkadot/api-derive": "^13.1.1", + "@polkadot/types": "^13.1.1", + "@polkadot/util": "^13.1.1", "koa": "^2.14.2", "koa-route": "^3.2.0", "tslib": "^2.7.0", diff --git a/packages/json-serve/src/runcli.ts b/packages/json-serve/src/runcli.ts index ee1326930..0072f1f5a 100644 --- a/packages/json-serve/src/runcli.ts +++ b/packages/json-serve/src/runcli.ts @@ -115,7 +115,7 @@ async function main (): Promise { tokenDecimals = chainProperties.tokenDecimals.unwrapOr([new BN(12)])[0].toNumber(); await api.rpc.chain.subscribeNewHeads(onNewHead); - await api.query.balances.totalIssuance(onTotalInsurance); + await api.query['balances']['totalIssuance'](onTotalInsurance); await api.derive.staking.electedInfo(undefined, undefined, onElectedInfo); } diff --git a/packages/metadata-cmp/package.json b/packages/metadata-cmp/package.json index 5124a1331..8d183d5c1 100644 --- a/packages/metadata-cmp/package.json +++ b/packages/metadata-cmp/package.json @@ -21,10 +21,10 @@ "polkadot-js-metadata-cmp": "./runcli.mjs" }, "dependencies": { - "@polkadot/api": "^12.4.1", - "@polkadot/keyring": "^13.0.2", - "@polkadot/types": "^12.4.1", - "@polkadot/util": "^13.0.2", + "@polkadot/api": "^13.1.1", + "@polkadot/keyring": "^13.1.1", + "@polkadot/types": "^13.1.1", + "@polkadot/util": "^13.1.1", "tslib": "^2.7.0", "yargs": "^17.7.2" }, diff --git a/packages/monitor-rpc/package.json b/packages/monitor-rpc/package.json index 0e3a7a5b5..8700d31b5 100644 --- a/packages/monitor-rpc/package.json +++ b/packages/monitor-rpc/package.json @@ -21,9 +21,9 @@ "polkadot-js-monitor": "./runcli.mjs" }, "dependencies": { - "@polkadot/api": "^12.4.1", - "@polkadot/types": "^12.4.1", - "@polkadot/util": "^13.0.2", + "@polkadot/api": "^13.1.1", + "@polkadot/types": "^13.1.1", + "@polkadot/util": "^13.1.1", "koa": "^2.14.2", "koa-route": "^3.2.0", "tslib": "^2.7.0", diff --git a/packages/signer-cli/package.json b/packages/signer-cli/package.json index 66bd848cc..22a9d14c5 100644 --- a/packages/signer-cli/package.json +++ b/packages/signer-cli/package.json @@ -21,12 +21,12 @@ "polkadot-js-signer": "./runcli.mjs" }, "dependencies": { - "@polkadot/api": "^12.4.1", + "@polkadot/api": "^13.1.1", "@polkadot/api-cli": "^0.57.5-1-x", - "@polkadot/keyring": "^13.0.2", - "@polkadot/types": "^12.4.1", - "@polkadot/util": "^13.0.2", - "@polkadot/util-crypto": "^13.0.2", + "@polkadot/keyring": "^13.1.1", + "@polkadot/types": "^13.1.1", + "@polkadot/util": "^13.1.1", + "@polkadot/util-crypto": "^13.1.1", "tslib": "^2.7.0", "yargs": "^17.7.2" }, diff --git a/packages/vanitygen/package.json b/packages/vanitygen/package.json index b64e13308..a3e9da48c 100644 --- a/packages/vanitygen/package.json +++ b/packages/vanitygen/package.json @@ -21,8 +21,8 @@ "polkadot-js-vanitygen": "./runcli.mjs" }, "dependencies": { - "@polkadot/util": "^13.0.2", - "@polkadot/util-crypto": "^13.0.2", + "@polkadot/util": "^13.1.1", + "@polkadot/util-crypto": "^13.1.1", "tslib": "^2.7.0", "yargs": "^17.7.2" }, diff --git a/yarn.lock b/yarn.lock index 6087b55c3..66fa9cc68 100644 --- a/yarn.lock +++ b/yarn.lock @@ -447,7 +447,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/api-augment@npm:12.4.1, @polkadot/api-augment@npm:^12.4.1": +"@polkadot/api-augment@npm:12.4.1": version: 12.4.1 resolution: "@polkadot/api-augment@npm:12.4.1" dependencies: @@ -462,6 +462,21 @@ __metadata: languageName: node linkType: hard +"@polkadot/api-augment@npm:^13.1.1": + version: 13.1.1 + resolution: "@polkadot/api-augment@npm:13.1.1" + dependencies: + "@polkadot/api-base": "npm:13.1.1" + "@polkadot/rpc-augment": "npm:13.1.1" + "@polkadot/types": "npm:13.1.1" + "@polkadot/types-augment": "npm:13.1.1" + "@polkadot/types-codec": "npm:13.1.1" + "@polkadot/util": "npm:^13.1.1" + tslib: "npm:^2.7.0" + checksum: 10/d585660cf5cc7ba315d9b03817e14aa918d62151c257b1b60786b5e4e54120ea81601fb57121217adcad34f7dadb014b7be81178852aca56016dd14e98160d5e + languageName: node + linkType: hard + "@polkadot/api-base@npm:12.4.1": version: 12.4.1 resolution: "@polkadot/api-base@npm:12.4.1" @@ -475,16 +490,29 @@ __metadata: languageName: node linkType: hard +"@polkadot/api-base@npm:13.1.1": + version: 13.1.1 + resolution: "@polkadot/api-base@npm:13.1.1" + dependencies: + "@polkadot/rpc-core": "npm:13.1.1" + "@polkadot/types": "npm:13.1.1" + "@polkadot/util": "npm:^13.1.1" + rxjs: "npm:^7.8.1" + tslib: "npm:^2.7.0" + checksum: 10/a8d765eab6059c22a8a04c81b3b8587337d25513e62f91782a8d95f1f09a8a0a3a1f438c3907f167b3dd7e9038a287893f2275cdc47b22365605a67962b5982d + languageName: node + linkType: hard + "@polkadot/api-cli@npm:^0.57.5-1-x, @polkadot/api-cli@workspace:packages/api-cli": version: 0.0.0-use.local resolution: "@polkadot/api-cli@workspace:packages/api-cli" dependencies: - "@polkadot/api": "npm:^12.4.1" - "@polkadot/api-augment": "npm:^12.4.1" - "@polkadot/keyring": "npm:^13.0.2" - "@polkadot/types": "npm:^12.4.1" - "@polkadot/util": "npm:^13.0.2" - "@polkadot/util-crypto": "npm:^13.0.2" + "@polkadot/api": "npm:^13.1.1" + "@polkadot/api-augment": "npm:^13.1.1" + "@polkadot/keyring": "npm:^13.1.1" + "@polkadot/types": "npm:^13.1.1" + "@polkadot/util": "npm:^13.1.1" + "@polkadot/util-crypto": "npm:^13.1.1" "@types/node": "npm:^20.10.5" "@types/yargs": "npm:^17.0.32" tslib: "npm:^2.7.0" @@ -637,11 +665,11 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/json-serve@workspace:packages/json-serve" dependencies: - "@polkadot/api": "npm:^12.4.1" - "@polkadot/api-augment": "npm:^12.4.1" - "@polkadot/api-derive": "npm:^12.4.1" - "@polkadot/types": "npm:^12.4.1" - "@polkadot/util": "npm:^13.0.2" + "@polkadot/api": "npm:^13.1.1" + "@polkadot/api-augment": "npm:^13.1.1" + "@polkadot/api-derive": "npm:^13.1.1" + "@polkadot/types": "npm:^13.1.1" + "@polkadot/util": "npm:^13.1.1" "@types/koa": "npm:^2.13.12" "@types/koa-route": "npm:^3.2.8" "@types/node": "npm:^20.10.5" @@ -673,10 +701,10 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/metadata-cmp@workspace:packages/metadata-cmp" dependencies: - "@polkadot/api": "npm:^12.4.1" - "@polkadot/keyring": "npm:^13.0.2" - "@polkadot/types": "npm:^12.4.1" - "@polkadot/util": "npm:^13.0.2" + "@polkadot/api": "npm:^13.1.1" + "@polkadot/keyring": "npm:^13.1.1" + "@polkadot/types": "npm:^13.1.1" + "@polkadot/util": "npm:^13.1.1" "@types/node": "npm:^20.10.5" "@types/yargs": "npm:^17.0.32" tslib: "npm:^2.7.0" @@ -690,9 +718,9 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/monitor-rpc@workspace:packages/monitor-rpc" dependencies: - "@polkadot/api": "npm:^12.4.1" - "@polkadot/types": "npm:^12.4.1" - "@polkadot/util": "npm:^13.0.2" + "@polkadot/api": "npm:^13.1.1" + "@polkadot/types": "npm:^13.1.1" + "@polkadot/util": "npm:^13.1.1" "@types/koa": "npm:^2.13.12" "@types/koa-route": "npm:^3.2.8" "@types/node": "npm:^20.10.5" @@ -730,6 +758,19 @@ __metadata: languageName: node linkType: hard +"@polkadot/rpc-augment@npm:13.1.1": + version: 13.1.1 + resolution: "@polkadot/rpc-augment@npm:13.1.1" + dependencies: + "@polkadot/rpc-core": "npm:13.1.1" + "@polkadot/types": "npm:13.1.1" + "@polkadot/types-codec": "npm:13.1.1" + "@polkadot/util": "npm:^13.1.1" + tslib: "npm:^2.7.0" + checksum: 10/e04352bb01599bd2d3a464ee0532d060c0ff8eae7125f6eb9231c18d7b7ee2589ea5434439c9b7976d536759b778a0c5abf5d7fdb4e309885038dd1dc0d590c1 + languageName: node + linkType: hard + "@polkadot/rpc-core@npm:12.4.1": version: 12.4.1 resolution: "@polkadot/rpc-core@npm:12.4.1" @@ -744,6 +785,20 @@ __metadata: languageName: node linkType: hard +"@polkadot/rpc-core@npm:13.1.1": + version: 13.1.1 + resolution: "@polkadot/rpc-core@npm:13.1.1" + dependencies: + "@polkadot/rpc-augment": "npm:13.1.1" + "@polkadot/rpc-provider": "npm:13.1.1" + "@polkadot/types": "npm:13.1.1" + "@polkadot/util": "npm:^13.1.1" + rxjs: "npm:^7.8.1" + tslib: "npm:^2.7.0" + checksum: 10/6cddffda23cb4f9f5f395195a720b3df5a01a560e0fa753b143209fcc317811e9dd50bc68f9fa39535d130c1edbe37cd1f46cfb0631d28bf868a3bda34f8dd1f + languageName: node + linkType: hard + "@polkadot/rpc-provider@npm:12.4.1": version: 12.4.1 resolution: "@polkadot/rpc-provider@npm:12.4.1" @@ -768,16 +823,40 @@ __metadata: languageName: node linkType: hard +"@polkadot/rpc-provider@npm:13.1.1": + version: 13.1.1 + resolution: "@polkadot/rpc-provider@npm:13.1.1" + dependencies: + "@polkadot/keyring": "npm:^13.1.1" + "@polkadot/types": "npm:13.1.1" + "@polkadot/types-support": "npm:13.1.1" + "@polkadot/util": "npm:^13.1.1" + "@polkadot/util-crypto": "npm:^13.1.1" + "@polkadot/x-fetch": "npm:^13.1.1" + "@polkadot/x-global": "npm:^13.1.1" + "@polkadot/x-ws": "npm:^13.1.1" + "@substrate/connect": "npm:0.8.11" + eventemitter3: "npm:^5.0.1" + mock-socket: "npm:^9.3.1" + nock: "npm:^13.5.4" + tslib: "npm:^2.7.0" + dependenciesMeta: + "@substrate/connect": + optional: true + checksum: 10/d1585e34387cfac83c8d59ee56374877bfb7b76f0f599a03861969f96b21bfb58af0828d203feefb8a1ae240562eb7a75cab633f72e73cb66aea706ff6c452a7 + languageName: node + linkType: hard + "@polkadot/signer-cli@workspace:packages/signer-cli": version: 0.0.0-use.local resolution: "@polkadot/signer-cli@workspace:packages/signer-cli" dependencies: - "@polkadot/api": "npm:^12.4.1" + "@polkadot/api": "npm:^13.1.1" "@polkadot/api-cli": "npm:^0.57.5-1-x" - "@polkadot/keyring": "npm:^13.0.2" - "@polkadot/types": "npm:^12.4.1" - "@polkadot/util": "npm:^13.0.2" - "@polkadot/util-crypto": "npm:^13.0.2" + "@polkadot/keyring": "npm:^13.1.1" + "@polkadot/types": "npm:^13.1.1" + "@polkadot/util": "npm:^13.1.1" + "@polkadot/util-crypto": "npm:^13.1.1" "@types/node": "npm:^20.10.5" "@types/yargs": "npm:^17.0.32" tslib: "npm:^2.7.0" @@ -799,6 +878,18 @@ __metadata: languageName: node linkType: hard +"@polkadot/types-augment@npm:13.1.1": + version: 13.1.1 + resolution: "@polkadot/types-augment@npm:13.1.1" + dependencies: + "@polkadot/types": "npm:13.1.1" + "@polkadot/types-codec": "npm:13.1.1" + "@polkadot/util": "npm:^13.1.1" + tslib: "npm:^2.7.0" + checksum: 10/33021045b94d0a48892fa9198886a98b0fea7a15aec4717ee03fa844457dc90e2ee087401295c5daf21de08be09f42238af84bcce832f8dad8710298ede53fca + languageName: node + linkType: hard + "@polkadot/types-codec@npm:12.4.1": version: 12.4.1 resolution: "@polkadot/types-codec@npm:12.4.1" @@ -810,6 +901,17 @@ __metadata: languageName: node linkType: hard +"@polkadot/types-codec@npm:13.1.1": + version: 13.1.1 + resolution: "@polkadot/types-codec@npm:13.1.1" + dependencies: + "@polkadot/util": "npm:^13.1.1" + "@polkadot/x-bigint": "npm:^13.1.1" + tslib: "npm:^2.7.0" + checksum: 10/98e84a4c53ecf761bd34b54447c920990dba9ee690df85ac3264e967914ffeb12bdf3de0132fd95c0561c8021c945a1670710c3b45e19c8d370197a1e936fd7d + languageName: node + linkType: hard + "@polkadot/types-create@npm:12.4.1": version: 12.4.1 resolution: "@polkadot/types-create@npm:12.4.1" @@ -845,6 +947,16 @@ __metadata: languageName: node linkType: hard +"@polkadot/types-support@npm:13.1.1": + version: 13.1.1 + resolution: "@polkadot/types-support@npm:13.1.1" + dependencies: + "@polkadot/util": "npm:^13.1.1" + tslib: "npm:^2.7.0" + checksum: 10/e94b7093d59877e0b308f8f83dedca1c58c0802e00968364af31e432392ea0b3d050b51f394f77e7dbd6f0be0c1613f1b43fdb2fc1ec6b1803236021e63390b7 + languageName: node + linkType: hard + "@polkadot/types@npm:^12.4.1": version: 12.4.1 resolution: "@polkadot/types@npm:12.4.1" @@ -900,8 +1012,8 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/vanitygen@workspace:packages/vanitygen" dependencies: - "@polkadot/util": "npm:^13.0.2" - "@polkadot/util-crypto": "npm:^13.0.2" + "@polkadot/util": "npm:^13.1.1" + "@polkadot/util-crypto": "npm:^13.1.1" "@types/node": "npm:^20.10.5" "@types/yargs": "npm:^17.0.32" tslib: "npm:^2.7.0" @@ -991,7 +1103,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-bigint@npm:13.0.2, @polkadot/x-bigint@npm:^13.0.2": +"@polkadot/x-bigint@npm:13.0.2": version: 13.0.2 resolution: "@polkadot/x-bigint@npm:13.0.2" dependencies: @@ -1001,18 +1113,28 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-fetch@npm:^13.0.2": - version: 13.0.2 - resolution: "@polkadot/x-fetch@npm:13.0.2" +"@polkadot/x-bigint@npm:^13.0.2, @polkadot/x-bigint@npm:^13.1.1": + version: 13.1.1 + resolution: "@polkadot/x-bigint@npm:13.1.1" dependencies: - "@polkadot/x-global": "npm:13.0.2" + "@polkadot/x-global": "npm:13.1.1" + tslib: "npm:^2.7.0" + checksum: 10/2b4b75bea7b5babde955ec3b3a282cef88ca16ba3243d3415202a5d2c038543ba70ef74af7a7ad846df534466fb14408d2d6ff0313614a1578b6b9f71ac7224f + languageName: node + linkType: hard + +"@polkadot/x-fetch@npm:^13.0.2, @polkadot/x-fetch@npm:^13.1.1": + version: 13.1.1 + resolution: "@polkadot/x-fetch@npm:13.1.1" + dependencies: + "@polkadot/x-global": "npm:13.1.1" node-fetch: "npm:^3.3.2" - tslib: "npm:^2.6.2" - checksum: 10/b4cf06f5219dab2b8b94af7913a3346fa46d1179b47c809f0cabecf07b068f9cd3e6f395c943c59b71341b92d61808df7bc05e23e4a30088349c77ed6b4ec11f + tslib: "npm:^2.7.0" + checksum: 10/11fedc3623e8126d3a2cab54c7e2d031e119f4d4bfba0f04a75e1f387ca1f56b096b7e028ecbee3edd0ea08ffd2d3614630624d5547302674fe0f62b675c1ca8 languageName: node linkType: hard -"@polkadot/x-global@npm:13.0.2, @polkadot/x-global@npm:^13.0.2": +"@polkadot/x-global@npm:13.0.2": version: 13.0.2 resolution: "@polkadot/x-global@npm:13.0.2" dependencies: @@ -1021,6 +1143,15 @@ __metadata: languageName: node linkType: hard +"@polkadot/x-global@npm:13.1.1, @polkadot/x-global@npm:^13.0.2, @polkadot/x-global@npm:^13.1.1": + version: 13.1.1 + resolution: "@polkadot/x-global@npm:13.1.1" + dependencies: + tslib: "npm:^2.7.0" + checksum: 10/6dc239d357cb4037decd8b9a1b016a072145b969300d62dc5ee0186fc0f102eafd0b2b84be83092874de547d75f87e1f5c99399e0f6f1516d64ef49f387ad156 + languageName: node + linkType: hard + "@polkadot/x-randomvalues@npm:13.0.2": version: 13.0.2 resolution: "@polkadot/x-randomvalues@npm:13.0.2" @@ -1054,14 +1185,14 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-ws@npm:^13.0.2": - version: 13.0.2 - resolution: "@polkadot/x-ws@npm:13.0.2" +"@polkadot/x-ws@npm:^13.0.2, @polkadot/x-ws@npm:^13.1.1": + version: 13.1.1 + resolution: "@polkadot/x-ws@npm:13.1.1" dependencies: - "@polkadot/x-global": "npm:13.0.2" - tslib: "npm:^2.6.2" + "@polkadot/x-global": "npm:13.1.1" + tslib: "npm:^2.7.0" ws: "npm:^8.16.0" - checksum: 10/627d7bb8fb115a66fafb11e8f96c2559f793ea936fd88be2aee3f304c5f08c6133073fd762a7a9ae793e2f83ad122c5dace1509831ee1e694b7bf67d5a56e89a + checksum: 10/cdcb4cd760358e19db3246c8fb7e990ae3c88c43fb8a57902dbfa3e48118c7f6ec23d6c87874e134575d121b45a4754196c2f98bac577d8464ec90ce8537b343 languageName: node linkType: hard