From 2978d1a0b3e07f81eb5c6ab3e6bf120fc96c38e2 Mon Sep 17 00:00:00 2001 From: Tarik Gul <47201679+TarikGul@users.noreply.github.com> Date: Mon, 16 Oct 2023 08:48:06 -0400 Subject: [PATCH] chore(deps): update polkadot-js deps (#1339) * fix(deps): update polkadot-js deps * fix runtime spec response * fix candidate type to V5 * add metadatav15 in abstract pallet --- package.json | 6 +- src/services/AbstractPalletsService.ts | 34 +- src/services/paras/ParasService.ts | 4 +- .../test-helpers/responses/runtime/spec.json | 1 + yarn.lock | 538 +++++++++--------- 5 files changed, 287 insertions(+), 296 deletions(-) diff --git a/package.json b/package.json index aa54a2c41..428a57c1e 100644 --- a/package.json +++ b/package.json @@ -50,9 +50,9 @@ "test:test-release": "yarn build:scripts && node scripts/build/runYarnPack.js" }, "dependencies": { - "@polkadot/api": "^10.9.1", - "@polkadot/api-contract": "^10.9.1", - "@polkadot/util-crypto": "^12.3.2", + "@polkadot/api": "^10.10.1", + "@polkadot/api-contract": "^10.10.1", + "@polkadot/util-crypto": "^12.5.1", "@substrate/calc": "^0.3.1", "argparse": "^2.0.1", "confmgr": "^1.0.10", diff --git a/src/services/AbstractPalletsService.ts b/src/services/AbstractPalletsService.ts index 21b121b3b..8bbc16183 100644 --- a/src/services/AbstractPalletsService.ts +++ b/src/services/AbstractPalletsService.ts @@ -21,12 +21,14 @@ import { EventMetadataLatest, FunctionMetadataLatest, MetadataV14, + MetadataV15, PalletCallMetadataV14, PalletConstantMetadataLatest, PalletConstantMetadataV14, PalletErrorMetadataV14, PalletEventMetadataV14, PalletMetadataV14, + PalletMetadataV15, PalletStorageMetadataV14, StorageEntryMetadataV14, } from '@polkadot/types/interfaces'; @@ -59,7 +61,7 @@ type IMetadataFieldType = export abstract class AbstractPalletsService extends AbstractService { private getPalletMetadataType( - meta: PalletMetadataV14, + meta: PalletMetadataV14 | PalletMetadataV15, metadataFieldType: IMetadataFieldType ): IPalletMetadata { return this.getProperty(meta, metadataFieldType); @@ -75,24 +77,25 @@ export abstract class AbstractPalletsService extends AbstractService { * @param palletId identifier for a FRAME pallet as a pallet name or index. */ protected findPalletMeta( - adjustedMetadata: MetadataV14, + adjustedMetadata: MetadataV14 | MetadataV15, palletId: string, metadataFieldType: IMetadataFieldType - ): [PalletMetadataV14, number] { - const pallets: Vec = adjustedMetadata['pallets']; + ): [PalletMetadataV14 | PalletMetadataV15, number] { + const pallets: Vec | Vec = + adjustedMetadata['pallets']; const palletMetaType = this.getPalletMetadataType( pallets[0], metadataFieldType ); - const filtered: PalletMetadataV14[] = pallets.filter( + const filtered: (PalletMetadataV14 | PalletMetadataV15)[] = pallets.filter( (mod) => !(mod[metadataFieldType] as typeof palletMetaType).isEmpty ); const { isValidPalletName, isValidPalletIndex, parsedPalletId } = this.validPalletId(pallets, palletId); - let palletMeta: PalletMetadataV14 | undefined; + let palletMeta: PalletMetadataV14 | PalletMetadataV15 | undefined; let palletIdx: number | undefined; if (isValidPalletIndex) { @@ -142,7 +145,7 @@ export abstract class AbstractPalletsService extends AbstractService { } private validPalletId( - modules: Vec, + modules: Vec | Vec, palletId: string ): { isValidPalletName: boolean; @@ -200,7 +203,7 @@ export abstract class AbstractPalletsService extends AbstractService { */ protected findPalletFieldItemMeta( historicApi: ApiDecoration<'promise'>, - palletMeta: PalletMetadataV14, + palletMeta: PalletMetadataV14 | PalletMetadataV15, palletItemId: string, metadataFieldType: IMetadataFieldType ): IPalletFieldMeta { @@ -251,14 +254,17 @@ export abstract class AbstractPalletsService extends AbstractService { } private getDispatchablesItemMeta( - palletMeta: PalletMetadataV14, + palletMeta: PalletMetadataV14 | PalletMetadataV15, dispatchableItemMetaIdx: number, dispatchableItemId: string ): [number, FunctionMetadataLatest] { const palletName = stringCamelCase(palletMeta.name); const dispatchables = this.api.tx[palletName]; - if ((palletMeta.calls as unknown as PalletCallMetadataV14).isEmpty) { + if ( + (palletMeta.calls as unknown as PalletMetadataV14 | PalletMetadataV15) + .isEmpty + ) { throw new InternalServerError( `No dispatchable items found in ${palletMeta.name.toString()}'s metadata` ); @@ -284,7 +290,7 @@ export abstract class AbstractPalletsService extends AbstractService { } private getConstItemMeta( - palletMeta: PalletMetadataV14, + palletMeta: PalletMetadataV14 | PalletMetadataV15, constItemMetaIdx: number, constItemId: string ): [number, PalletConstantMetadataLatest] { @@ -304,7 +310,7 @@ export abstract class AbstractPalletsService extends AbstractService { private getErrorItemMeta( historicApi: ApiDecoration<'promise'>, - palletMeta: PalletMetadataV14, + palletMeta: PalletMetadataV14 | PalletMetadataV15, errorItemMetaIdx: number, errorItemId: string ): [number, ErrorMetadataLatest] { @@ -335,7 +341,7 @@ export abstract class AbstractPalletsService extends AbstractService { private getEventItemMeta( historicApi: ApiDecoration<'promise'>, - palletMeta: PalletMetadataV14, + palletMeta: PalletMetadataV14 | PalletMetadataV15, eventItemMetaIdx: number, eventItemId: string ): [number, EventMetadataLatest] { @@ -365,7 +371,7 @@ export abstract class AbstractPalletsService extends AbstractService { } private getStorageItemMeta( - palletMeta: PalletMetadataV14, + palletMeta: PalletMetadataV14 | PalletMetadataV15, storageItemMetaIdx: number, storageItemId: string ): [number, StorageEntryMetadataV14] { diff --git a/src/services/paras/ParasService.ts b/src/services/paras/ParasService.ts index 4c57f6459..e5164f530 100644 --- a/src/services/paras/ParasService.ts +++ b/src/services/paras/ParasService.ts @@ -28,7 +28,7 @@ import { ParaLifecycle, WinningData, } from '@polkadot/types/interfaces'; -import { PolkadotPrimitivesV4CandidateReceipt } from '@polkadot/types/lookup'; +import { PolkadotPrimitivesV5CandidateReceipt } from '@polkadot/types/lookup'; import { ITuple } from '@polkadot/types/types'; import { BN_ZERO } from '@polkadot/util'; import BN from 'bn.js'; @@ -456,7 +456,7 @@ export class ParasService extends AbstractService { const paraHeaders: IParasHeaders = {}; paraInclusion.forEach(({ event }) => { const { data } = event; - const paraData = data[0] as PolkadotPrimitivesV4CandidateReceipt; + const paraData = data[0] as PolkadotPrimitivesV5CandidateReceipt; const headerData = data[1] as Bytes; const { paraHead, paraId } = paraData.descriptor; const header = api.createType('Header', headerData); diff --git a/src/services/test-helpers/responses/runtime/spec.json b/src/services/test-helpers/responses/runtime/spec.json index 703395140..7f007bad0 100644 --- a/src/services/test-helpers/responses/runtime/spec.json +++ b/src/services/test-helpers/responses/runtime/spec.json @@ -12,6 +12,7 @@ "live": null }, "properties": { + "isEthereum": false, "ss58Format": "0", "tokenDecimals": ["12"], "tokenSymbol": ["DOT"] diff --git a/yarn.lock b/yarn.lock index bac51fc1b..cbff651f8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -847,19 +847,19 @@ __metadata: languageName: node linkType: hard -"@noble/curves@npm:1.1.0": - version: 1.1.0 - resolution: "@noble/curves@npm:1.1.0" +"@noble/curves@npm:^1.2.0": + version: 1.2.0 + resolution: "@noble/curves@npm:1.2.0" dependencies: - "@noble/hashes": 1.3.1 - checksum: 2658cdd3f84f71079b4e3516c47559d22cf4b55c23ac8ee9d2b1f8e5b72916d9689e59820e0f9d9cb4a46a8423af5b56dc6bb7782405c88be06a015180508db5 + "@noble/hashes": 1.3.2 + checksum: bb798d7a66d8e43789e93bc3c2ddff91a1e19fdb79a99b86cd98f1e5eff0ee2024a2672902c2576ef3577b6f282f3b5c778bebd55761ddbb30e36bf275e83dd0 languageName: node linkType: hard -"@noble/hashes@npm:1.3.1": - version: 1.3.1 - resolution: "@noble/hashes@npm:1.3.1" - checksum: 7fdefc0f7a0c1ec27acc6ff88841793e3f93ec4ce6b8a6a12bfc0dd70ae6b7c4c82fe305fdfeda1735d5ad4a9eebe761e6693b3d355689c559e91242f4bc95b1 +"@noble/hashes@npm:1.3.2, @noble/hashes@npm:^1.3.2": + version: 1.3.2 + resolution: "@noble/hashes@npm:1.3.2" + checksum: fe23536b436539d13f90e4b9be843cc63b1b17666a07634a2b1259dded6f490be3d050249e6af98076ea8f2ea0d56f578773c2197f2aa0eeaa5fba5bc18ba474 languageName: node linkType: hard @@ -906,276 +906,276 @@ __metadata: languageName: node linkType: hard -"@polkadot/api-augment@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/api-augment@npm:10.9.1" +"@polkadot/api-augment@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/api-augment@npm:10.10.1" dependencies: - "@polkadot/api-base": 10.9.1 - "@polkadot/rpc-augment": 10.9.1 - "@polkadot/types": 10.9.1 - "@polkadot/types-augment": 10.9.1 - "@polkadot/types-codec": 10.9.1 - "@polkadot/util": ^12.3.1 - tslib: ^2.5.3 - checksum: b0aeed5ebf640c58a252a29a33f12d4c39d0dcdf10b875501012c3b4b05955ed8be85efbf75e17ad237a561e1171821979ffdddf7e6a64cb0806badb2752c190 + "@polkadot/api-base": 10.10.1 + "@polkadot/rpc-augment": 10.10.1 + "@polkadot/types": 10.10.1 + "@polkadot/types-augment": 10.10.1 + "@polkadot/types-codec": 10.10.1 + "@polkadot/util": ^12.5.1 + tslib: ^2.6.2 + checksum: 16ca2d71215019faba506b6dc455ef15ea1eec8b97bd146aef49a04ae15dc9246405540219bfbea36027ee50c5dbb15885296c30ee98908afdd7a56626efd06c languageName: node linkType: hard -"@polkadot/api-base@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/api-base@npm:10.9.1" +"@polkadot/api-base@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/api-base@npm:10.10.1" dependencies: - "@polkadot/rpc-core": 10.9.1 - "@polkadot/types": 10.9.1 - "@polkadot/util": ^12.3.1 + "@polkadot/rpc-core": 10.10.1 + "@polkadot/types": 10.10.1 + "@polkadot/util": ^12.5.1 rxjs: ^7.8.1 - tslib: ^2.5.3 - checksum: a761f4ade747a295c16b7e6f24c1bb93e1736aa7fa9f1cb3c651c84d02a99cc62658e83326fa339882423966a55bf0046b74a69a1a4e4567c8d6c1c4db4eb306 + tslib: ^2.6.2 + checksum: 374a4378484817b29c52908a9dac649b4d4f231db21a0b0b3d3ec3331c7b9b9c374c103b5e64d028c212b8ab3eb98244cd760d20e2fe5f46a8fdc1d923555047 languageName: node linkType: hard -"@polkadot/api-contract@npm:^10.9.1": - version: 10.9.1 - resolution: "@polkadot/api-contract@npm:10.9.1" - dependencies: - "@polkadot/api": 10.9.1 - "@polkadot/api-augment": 10.9.1 - "@polkadot/types": 10.9.1 - "@polkadot/types-codec": 10.9.1 - "@polkadot/types-create": 10.9.1 - "@polkadot/util": ^12.3.1 - "@polkadot/util-crypto": ^12.3.1 +"@polkadot/api-contract@npm:^10.10.1": + version: 10.10.1 + resolution: "@polkadot/api-contract@npm:10.10.1" + dependencies: + "@polkadot/api": 10.10.1 + "@polkadot/api-augment": 10.10.1 + "@polkadot/types": 10.10.1 + "@polkadot/types-codec": 10.10.1 + "@polkadot/types-create": 10.10.1 + "@polkadot/util": ^12.5.1 + "@polkadot/util-crypto": ^12.5.1 rxjs: ^7.8.1 - tslib: ^2.5.3 - checksum: 2a4b4818e5fd4ef1b385a0ad1144d986b449b531c278ccc3a441770c1e95a2fd24cd5da401d56040dcd594254e2a5c2e4a09a9de5827ee8bb951e3aad9558bed + tslib: ^2.6.2 + checksum: 06c5a720204759541d40d76e79174566c953d54f9d86531cc00ff97f6a040d4441ec13c7e2ca09cda41e2b4bc3e0da3bf55562cad803a90599e1ad1b97fdb27d languageName: node linkType: hard -"@polkadot/api-derive@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/api-derive@npm:10.9.1" - dependencies: - "@polkadot/api": 10.9.1 - "@polkadot/api-augment": 10.9.1 - "@polkadot/api-base": 10.9.1 - "@polkadot/rpc-core": 10.9.1 - "@polkadot/types": 10.9.1 - "@polkadot/types-codec": 10.9.1 - "@polkadot/util": ^12.3.1 - "@polkadot/util-crypto": ^12.3.1 +"@polkadot/api-derive@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/api-derive@npm:10.10.1" + dependencies: + "@polkadot/api": 10.10.1 + "@polkadot/api-augment": 10.10.1 + "@polkadot/api-base": 10.10.1 + "@polkadot/rpc-core": 10.10.1 + "@polkadot/types": 10.10.1 + "@polkadot/types-codec": 10.10.1 + "@polkadot/util": ^12.5.1 + "@polkadot/util-crypto": ^12.5.1 rxjs: ^7.8.1 - tslib: ^2.5.3 - checksum: 072a43bcc55787beb6c29afe0f011c03cdde3a9b6ac38d972d0b13ff93a1e14198d769a926edfd324c3947735dd8c8fcb7a61629409322230fd8559e7c17a1d7 - languageName: node - linkType: hard - -"@polkadot/api@npm:10.9.1, @polkadot/api@npm:^10.9.1": - version: 10.9.1 - resolution: "@polkadot/api@npm:10.9.1" - dependencies: - "@polkadot/api-augment": 10.9.1 - "@polkadot/api-base": 10.9.1 - "@polkadot/api-derive": 10.9.1 - "@polkadot/keyring": ^12.3.1 - "@polkadot/rpc-augment": 10.9.1 - "@polkadot/rpc-core": 10.9.1 - "@polkadot/rpc-provider": 10.9.1 - "@polkadot/types": 10.9.1 - "@polkadot/types-augment": 10.9.1 - "@polkadot/types-codec": 10.9.1 - "@polkadot/types-create": 10.9.1 - "@polkadot/types-known": 10.9.1 - "@polkadot/util": ^12.3.1 - "@polkadot/util-crypto": ^12.3.1 + tslib: ^2.6.2 + checksum: ff0f016d39aa73f55a881927e6ae3dd75c2a81fe4095cdda5e558f420d815a12c204e6a2082acbef2c74867b810d41ef349de2b7924d46957be7260b71fb1512 + languageName: node + linkType: hard + +"@polkadot/api@npm:10.10.1, @polkadot/api@npm:^10.10.1": + version: 10.10.1 + resolution: "@polkadot/api@npm:10.10.1" + dependencies: + "@polkadot/api-augment": 10.10.1 + "@polkadot/api-base": 10.10.1 + "@polkadot/api-derive": 10.10.1 + "@polkadot/keyring": ^12.5.1 + "@polkadot/rpc-augment": 10.10.1 + "@polkadot/rpc-core": 10.10.1 + "@polkadot/rpc-provider": 10.10.1 + "@polkadot/types": 10.10.1 + "@polkadot/types-augment": 10.10.1 + "@polkadot/types-codec": 10.10.1 + "@polkadot/types-create": 10.10.1 + "@polkadot/types-known": 10.10.1 + "@polkadot/util": ^12.5.1 + "@polkadot/util-crypto": ^12.5.1 eventemitter3: ^5.0.1 rxjs: ^7.8.1 - tslib: ^2.5.3 - checksum: 6b37d9bacf0599bb7c385ddefca929547299a6f1d242ce3215f8480672297c81ec30c251bc9aac3889c5956bd9ef3918d69364819861eec308f4aa347c08110d + tslib: ^2.6.2 + checksum: de1aa727b63fb921854840fe2d18b55b99f512f4d3e08d3b895fceea7891f6dd0febe6aa5fb7b1778494c78d6a6a7ebd17d426ba2e3df459aa974b7bb8fee19c languageName: node linkType: hard -"@polkadot/keyring@npm:^12.3.1": - version: 12.4.2 - resolution: "@polkadot/keyring@npm:12.4.2" +"@polkadot/keyring@npm:^12.5.1": + version: 12.5.1 + resolution: "@polkadot/keyring@npm:12.5.1" dependencies: - "@polkadot/util": 12.4.2 - "@polkadot/util-crypto": 12.4.2 + "@polkadot/util": 12.5.1 + "@polkadot/util-crypto": 12.5.1 tslib: ^2.6.2 peerDependencies: - "@polkadot/util": 12.4.2 - "@polkadot/util-crypto": 12.4.2 - checksum: 51d0b23f0973efa781566b1a0dece7a346b0cbacc52b6fb57b474bc87aa03900377cf2aa227d86769db91c97f3d43f555a676f4446df464d588186afa7f3b8fe + "@polkadot/util": 12.5.1 + "@polkadot/util-crypto": 12.5.1 + checksum: d659e5980e4cd6b68f91448a817306666530c033410c713854547dbbbecacb7362346c3ada6c5ab9dc71437c3cf002f064d7db40d1588637b96e84ff8f35dcf4 languageName: node linkType: hard -"@polkadot/networks@npm:12.4.2, @polkadot/networks@npm:^12.3.1": - version: 12.4.2 - resolution: "@polkadot/networks@npm:12.4.2" +"@polkadot/networks@npm:12.5.1, @polkadot/networks@npm:^12.5.1": + version: 12.5.1 + resolution: "@polkadot/networks@npm:12.5.1" dependencies: - "@polkadot/util": 12.4.2 + "@polkadot/util": 12.5.1 "@substrate/ss58-registry": ^1.43.0 tslib: ^2.6.2 - checksum: 43a98414d9a540d3358b5ce69908bce4d07f32592edd52eef66c705705e4571aa55fff8442b7287986b052d328af3af08170c3a70848ebf1e9128a3f27c2571f + checksum: f8c64684f6806365c1aded6ebca52432050cc8caacd067faf339b2f37497b63b13cebb689f7b0f9c62a890566383cf1931552da82815cc52baa2166fb1772a43 languageName: node linkType: hard -"@polkadot/rpc-augment@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/rpc-augment@npm:10.9.1" +"@polkadot/rpc-augment@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/rpc-augment@npm:10.10.1" dependencies: - "@polkadot/rpc-core": 10.9.1 - "@polkadot/types": 10.9.1 - "@polkadot/types-codec": 10.9.1 - "@polkadot/util": ^12.3.1 - tslib: ^2.5.3 - checksum: 4f7b090be6d88ef6a56679a80da856bf007994e2142e16fbac6030132789b5a2411421650935ed4b18334afca399edfc0387135731836c6d9f8420acf510f11b + "@polkadot/rpc-core": 10.10.1 + "@polkadot/types": 10.10.1 + "@polkadot/types-codec": 10.10.1 + "@polkadot/util": ^12.5.1 + tslib: ^2.6.2 + checksum: d19ff447fea298387e8af9b7ac44c8eb8438b0e939608414c0ddc642fbd5c2d657d199a66741d9e330f28aa587486a163238cdf058cc69994178b121a0d26738 languageName: node linkType: hard -"@polkadot/rpc-core@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/rpc-core@npm:10.9.1" +"@polkadot/rpc-core@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/rpc-core@npm:10.10.1" dependencies: - "@polkadot/rpc-augment": 10.9.1 - "@polkadot/rpc-provider": 10.9.1 - "@polkadot/types": 10.9.1 - "@polkadot/util": ^12.3.1 + "@polkadot/rpc-augment": 10.10.1 + "@polkadot/rpc-provider": 10.10.1 + "@polkadot/types": 10.10.1 + "@polkadot/util": ^12.5.1 rxjs: ^7.8.1 - tslib: ^2.5.3 - checksum: 538a207f5d321b4b18b0580da438598dd78e496dbc7069a776abcc39ede36903981ba2b9897eea73ecfe2f48a4d0cbd5b5cd738b3184f5c333709e6f4603f22a + tslib: ^2.6.2 + checksum: 5ab21029fbafa13e50bb48161a82c023f7015b633e258b76c2cff25bf648d7f69baf18efc291ebec8dd635b38da8223e853e15b53478268b1f6b40d2ab0b3e09 languageName: node linkType: hard -"@polkadot/rpc-provider@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/rpc-provider@npm:10.9.1" - dependencies: - "@polkadot/keyring": ^12.3.1 - "@polkadot/types": 10.9.1 - "@polkadot/types-support": 10.9.1 - "@polkadot/util": ^12.3.1 - "@polkadot/util-crypto": ^12.3.1 - "@polkadot/x-fetch": ^12.3.1 - "@polkadot/x-global": ^12.3.1 - "@polkadot/x-ws": ^12.3.1 - "@substrate/connect": 0.7.26 +"@polkadot/rpc-provider@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/rpc-provider@npm:10.10.1" + dependencies: + "@polkadot/keyring": ^12.5.1 + "@polkadot/types": 10.10.1 + "@polkadot/types-support": 10.10.1 + "@polkadot/util": ^12.5.1 + "@polkadot/util-crypto": ^12.5.1 + "@polkadot/x-fetch": ^12.5.1 + "@polkadot/x-global": ^12.5.1 + "@polkadot/x-ws": ^12.5.1 + "@substrate/connect": 0.7.33 eventemitter3: ^5.0.1 - mock-socket: ^9.2.1 - nock: ^13.3.1 - tslib: ^2.5.3 + mock-socket: ^9.3.1 + nock: ^13.3.4 + tslib: ^2.6.2 dependenciesMeta: "@substrate/connect": optional: true - checksum: 4521ba64a1e69ed323910796a4598755e8101704aae3be33b6c363be4ebb9ea1a99ced17b8cd9fa3ab15abf5900e1055279f532f47b8472e8a143a299bfa046d + checksum: 44147ad7ce4bb0fccf5272bbe56b3b65c1e907f02109c8e18a5b5da8c658f84c1d7741c5e6878adacd06514254b0a7fb8254d5a222f55f25f7a573b2ba970449 languageName: node linkType: hard -"@polkadot/types-augment@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/types-augment@npm:10.9.1" +"@polkadot/types-augment@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/types-augment@npm:10.10.1" dependencies: - "@polkadot/types": 10.9.1 - "@polkadot/types-codec": 10.9.1 - "@polkadot/util": ^12.3.1 - tslib: ^2.5.3 - checksum: d643f83ab0a9498267037d95b878fa4e3b0087882195c3bd609038e8c934a092d9c82f7164ac97989305805aabe0d9186736c50a372498c81c22b3d7f4cfcccb + "@polkadot/types": 10.10.1 + "@polkadot/types-codec": 10.10.1 + "@polkadot/util": ^12.5.1 + tslib: ^2.6.2 + checksum: 40440fc2a9568c9e636f478c4f191cbb38f07256f4db7f1bb9bdbcf0b928280315afee2843090a006a3dfd16e000f22dd6a9bd5687dd6400a1fc3dcd6ee59a25 languageName: node linkType: hard -"@polkadot/types-codec@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/types-codec@npm:10.9.1" +"@polkadot/types-codec@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/types-codec@npm:10.10.1" dependencies: - "@polkadot/util": ^12.3.1 - "@polkadot/x-bigint": ^12.3.1 - tslib: ^2.5.3 - checksum: ac11b770fa4328f55daf6dd78fc8fc4d6906fb0d4b2bf92eaece58332c74f2b178d598a310a6dd068c72856acefddf5f7d23cac56991fa12f61d6853fb73d582 + "@polkadot/util": ^12.5.1 + "@polkadot/x-bigint": ^12.5.1 + tslib: ^2.6.2 + checksum: 17ceb561e6a82784febd5c8b0219050a9b8aeeb766ffbae8255ab586120063ca9fea1c89df776047e861aba87e43048a8060d5c469bcd42c169830a69416d62f languageName: node linkType: hard -"@polkadot/types-create@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/types-create@npm:10.9.1" +"@polkadot/types-create@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/types-create@npm:10.10.1" dependencies: - "@polkadot/types-codec": 10.9.1 - "@polkadot/util": ^12.3.1 - tslib: ^2.5.3 - checksum: 43f8fbd70a7891d6b49f1edb00b4a918c21924f2c1e44eb81ef7c9327e1fcc7eac65dbc2a9d0e3ba49079fdddda5498115e47f5fd99ec2a91f79c7f305bf553a + "@polkadot/types-codec": 10.10.1 + "@polkadot/util": ^12.5.1 + tslib: ^2.6.2 + checksum: 1dedef441218a0786774033c2d587b8ccdf184a72da671c7da70ced9f765073bfec4a15d8937b00d5d50cb0eb1b4bd25886ace3f7e024c95b46f58a1c318efd1 languageName: node linkType: hard -"@polkadot/types-known@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/types-known@npm:10.9.1" +"@polkadot/types-known@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/types-known@npm:10.10.1" dependencies: - "@polkadot/networks": ^12.3.1 - "@polkadot/types": 10.9.1 - "@polkadot/types-codec": 10.9.1 - "@polkadot/types-create": 10.9.1 - "@polkadot/util": ^12.3.1 - tslib: ^2.5.3 - checksum: 8a3dd0dead1759112b9011c5ff47bf9fa0f5a00d0d5cba841d724494a9434a2f565fad8ab654ae8cc3949a10c28f3966034bfc23e493b7cc373d3532de508953 + "@polkadot/networks": ^12.5.1 + "@polkadot/types": 10.10.1 + "@polkadot/types-codec": 10.10.1 + "@polkadot/types-create": 10.10.1 + "@polkadot/util": ^12.5.1 + tslib: ^2.6.2 + checksum: 25489967fcd6022f11a64c20884dd1ef49494f3b3e514034a08cc07f61267121adf8b96b307edc3381c445de58842d515aa8440ee888bc37120775deffae671a languageName: node linkType: hard -"@polkadot/types-support@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/types-support@npm:10.9.1" +"@polkadot/types-support@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/types-support@npm:10.10.1" dependencies: - "@polkadot/util": ^12.3.1 - tslib: ^2.5.3 - checksum: f5df33f215f529c33d4fd7ad7d6877a4567954488971c2986da416b6578ccb6d5c6eeadab4602abe0e3ce17373cdd6de0ce6f09529852b6e2fd6bc28b9183f9b + "@polkadot/util": ^12.5.1 + tslib: ^2.6.2 + checksum: 391857f39463fcc9bbc34a6bafd191e12eb3fd28f386d4094cc3cdcbcd0fcc8799c6e99a49b0e634c6a1b78d07188eb6e1e01299f55df2593c3f30fcb241631c languageName: node linkType: hard -"@polkadot/types@npm:10.9.1": - version: 10.9.1 - resolution: "@polkadot/types@npm:10.9.1" - dependencies: - "@polkadot/keyring": ^12.3.1 - "@polkadot/types-augment": 10.9.1 - "@polkadot/types-codec": 10.9.1 - "@polkadot/types-create": 10.9.1 - "@polkadot/util": ^12.3.1 - "@polkadot/util-crypto": ^12.3.1 +"@polkadot/types@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/types@npm:10.10.1" + dependencies: + "@polkadot/keyring": ^12.5.1 + "@polkadot/types-augment": 10.10.1 + "@polkadot/types-codec": 10.10.1 + "@polkadot/types-create": 10.10.1 + "@polkadot/util": ^12.5.1 + "@polkadot/util-crypto": ^12.5.1 rxjs: ^7.8.1 - tslib: ^2.5.3 - checksum: c9b0873b52f33c5d7913bc1e474c67d797411ac592c10af987dfecfee7480aeda02b9fc100ff506bc8af704a7fc239162a8ec7eec580e2e7a62ac7f7b95f3900 + tslib: ^2.6.2 + checksum: 58b8b026e25f8156f270bdd240a2e384b64db93a6abe7c15abe9acdc2ce06a724328a8bf4d5b3047f5e398eef3d4961447d8511c52105c082dddd1b9d8fb0cb4 languageName: node linkType: hard -"@polkadot/util-crypto@npm:12.4.2, @polkadot/util-crypto@npm:^12.3.1, @polkadot/util-crypto@npm:^12.3.2": - version: 12.4.2 - resolution: "@polkadot/util-crypto@npm:12.4.2" +"@polkadot/util-crypto@npm:12.5.1, @polkadot/util-crypto@npm:^12.5.1": + version: 12.5.1 + resolution: "@polkadot/util-crypto@npm:12.5.1" dependencies: - "@noble/curves": 1.1.0 - "@noble/hashes": 1.3.1 - "@polkadot/networks": 12.4.2 - "@polkadot/util": 12.4.2 + "@noble/curves": ^1.2.0 + "@noble/hashes": ^1.3.2 + "@polkadot/networks": 12.5.1 + "@polkadot/util": 12.5.1 "@polkadot/wasm-crypto": ^7.2.2 "@polkadot/wasm-util": ^7.2.2 - "@polkadot/x-bigint": 12.4.2 - "@polkadot/x-randomvalues": 12.4.2 - "@scure/base": 1.1.1 + "@polkadot/x-bigint": 12.5.1 + "@polkadot/x-randomvalues": 12.5.1 + "@scure/base": ^1.1.3 tslib: ^2.6.2 peerDependencies: - "@polkadot/util": 12.4.2 - checksum: fbb2ba94d5369db98e19e94aa6c21d17af4018c65a670d49c6fa1d0ef1e8ee7f5cf76267c072400e16b9c8251a78031f2b25e86808ef6b0a4f028b0c1d6a02ee + "@polkadot/util": 12.5.1 + checksum: 4efb5ca6e48f7457d8dcfa02ac9f581ce23a90ba9e72c8f6fd7649296e92dcb3dfa3d2bdd0b5ed68b81bf15e32aabef34f60d47851249d8859dba7ebeb63501f languageName: node linkType: hard -"@polkadot/util@npm:12.4.2, @polkadot/util@npm:^12.3.1": - version: 12.4.2 - resolution: "@polkadot/util@npm:12.4.2" +"@polkadot/util@npm:12.5.1, @polkadot/util@npm:^12.5.1": + version: 12.5.1 + resolution: "@polkadot/util@npm:12.5.1" dependencies: - "@polkadot/x-bigint": 12.4.2 - "@polkadot/x-global": 12.4.2 - "@polkadot/x-textdecoder": 12.4.2 - "@polkadot/x-textencoder": 12.4.2 + "@polkadot/x-bigint": 12.5.1 + "@polkadot/x-global": 12.5.1 + "@polkadot/x-textdecoder": 12.5.1 + "@polkadot/x-textencoder": 12.5.1 "@types/bn.js": ^5.1.1 bn.js: ^5.2.1 tslib: ^2.6.2 - checksum: 0814f02b4f78a07bf67f53616114dfd99a89c9fdad4b39645784caee86d100a5ce1705ef3947ef9f41673125988faad0dc3d8fa8fceef34ec71af3834290580d + checksum: 955d41c01cb3c7da72c4f5f8faed13e1af1fa9603a3a1dd9f282eb69b5ebbffb889e76c595d1252ff5f9665cb3c55f1a96f908b020dc79356f92b2d5ce1aa81e languageName: node linkType: hard @@ -1259,84 +1259,84 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-bigint@npm:12.4.2, @polkadot/x-bigint@npm:^12.3.1": - version: 12.4.2 - resolution: "@polkadot/x-bigint@npm:12.4.2" +"@polkadot/x-bigint@npm:12.5.1, @polkadot/x-bigint@npm:^12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-bigint@npm:12.5.1" dependencies: - "@polkadot/x-global": 12.4.2 + "@polkadot/x-global": 12.5.1 tslib: ^2.6.2 - checksum: 91f38cd7ff4b22dd24d470f26817032ef26edac1591f7bf8c1ff648ab26cd05a968d1f17fe9aba523858af7dba6d40c2f8145a2a2bc33fbb722358bec1ab0a2b + checksum: 295d00b17860196c43ac4957ffb052ca68bb4319990876238e3f0925ca6ca9106810204136315491116a11a277d8a1e1fae65cc43a168505ee5a69a27404d2e0 languageName: node linkType: hard -"@polkadot/x-fetch@npm:^12.3.1": - version: 12.4.2 - resolution: "@polkadot/x-fetch@npm:12.4.2" +"@polkadot/x-fetch@npm:^12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-fetch@npm:12.5.1" dependencies: - "@polkadot/x-global": 12.4.2 + "@polkadot/x-global": 12.5.1 node-fetch: ^3.3.2 tslib: ^2.6.2 - checksum: 7f0a5263172bcb97f837b7efdeceffdc9dd1caeabb058ec718b26d367779aa5f248ebd0373c1eb09850a87b34ae8dadf96237412e7e0b940d750aa4b5b634d9a + checksum: 26b24b09f9074c181f53f13ea17a1389e823b262a956a28fddf609ba7d177a1cde3cd4db28e8e38320b207adcc675ac868dadfaeafe9cf3998a3861f02ee43d7 languageName: node linkType: hard -"@polkadot/x-global@npm:12.4.2, @polkadot/x-global@npm:^12.3.1": - version: 12.4.2 - resolution: "@polkadot/x-global@npm:12.4.2" +"@polkadot/x-global@npm:12.5.1, @polkadot/x-global@npm:^12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-global@npm:12.5.1" dependencies: tslib: ^2.6.2 - checksum: 1489013e6ae3dce3c9f31f38f4ef8ca0956a18d35d12354c49cb7b256fef6dcbd3285a0c223509c8ed826b9d85fd8f59708312a010f1b69d5ee92963e38c48ac + checksum: d45e3d6096674b7495992c6e45cf1a284db545c16107ba9adae241d6aefe13c27adfaf93d58a3079e6a6b63acb221eb3181c7f55dc34124b24b542154724c506 languageName: node linkType: hard -"@polkadot/x-randomvalues@npm:12.4.2": - version: 12.4.2 - resolution: "@polkadot/x-randomvalues@npm:12.4.2" +"@polkadot/x-randomvalues@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-randomvalues@npm:12.5.1" dependencies: - "@polkadot/x-global": 12.4.2 + "@polkadot/x-global": 12.5.1 tslib: ^2.6.2 peerDependencies: - "@polkadot/util": 12.4.2 + "@polkadot/util": 12.5.1 "@polkadot/wasm-util": "*" - checksum: 630d6c7c5af493c5d72ebc6262939c0de8cbc252f93b8d4224a9c7006ae2c641a2ad4eeee4f5ba7140609bbc4aaa2841ef29f86e680dfd512a5f68bc616016f4 + checksum: 52ee4b4206a98cac9e97e3d194db01fb4a540046672784442926478eaa2b2a74cebae59d10432671f544d72df5d623aedf57c301bcf447a4c72688ec3cb82fd5 languageName: node linkType: hard -"@polkadot/x-textdecoder@npm:12.4.2": - version: 12.4.2 - resolution: "@polkadot/x-textdecoder@npm:12.4.2" +"@polkadot/x-textdecoder@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-textdecoder@npm:12.5.1" dependencies: - "@polkadot/x-global": 12.4.2 + "@polkadot/x-global": 12.5.1 tslib: ^2.6.2 - checksum: e9fe88b35cf355a8ddba3c60f2eeb58a60c58737c6f7272e392cda8d68fa57e508ad293a7551f86d926209acd1fe4e3a73f9d1b4b700dcfb061932fc007db205 + checksum: 202a9e216e9b89cc74012fa3f6c96eeb368dc3e6fa3c943f28c37c20941a6c678506cbc136946e9ff100123aa43846eab7765af074de94dfdd23f4ce2242c794 languageName: node linkType: hard -"@polkadot/x-textencoder@npm:12.4.2": - version: 12.4.2 - resolution: "@polkadot/x-textencoder@npm:12.4.2" +"@polkadot/x-textencoder@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-textencoder@npm:12.5.1" dependencies: - "@polkadot/x-global": 12.4.2 + "@polkadot/x-global": 12.5.1 tslib: ^2.6.2 - checksum: c6599caa628ac78fd49f21618ad2863fdcae73d31cc98ebc67929f1c7083e6ba5188c48d3ea8604ef57e9f45ce46f4c4c63b1571ed0058f3d78aa30f31075498 + checksum: 7a8d99d203cbd9537e55405d737667ae8cd9ad40a9e3de52f2ef7580a23d27ebf7f7c52da4e0eca6ca34dc97aae33a97bab36afb54aaa7714f54a31931f94113 languageName: node linkType: hard -"@polkadot/x-ws@npm:^12.3.1": - version: 12.4.2 - resolution: "@polkadot/x-ws@npm:12.4.2" +"@polkadot/x-ws@npm:^12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-ws@npm:12.5.1" dependencies: - "@polkadot/x-global": 12.4.2 + "@polkadot/x-global": 12.5.1 tslib: ^2.6.2 - ws: ^8.13.0 - checksum: 28a415d84780cbf2912f7b94c93dc85a7fea75564995cbc97b9a03cc2e1c0c93222f1e99c6d5add78cb1d9971e4605b36e23ae526b22ce3357619de26d9b15a6 + ws: ^8.14.1 + checksum: 839e82ab4bf013d17a356e2f10a42ba2ecf88f4e432985241e785416aeb6434c0e7c897b09aeeab23f5d27b27ef0dfe65eda85293c7a08f52d0774bb1b23704b languageName: node linkType: hard -"@scure/base@npm:1.1.1": - version: 1.1.1 - resolution: "@scure/base@npm:1.1.1" - checksum: b4fc810b492693e7e8d0107313ac74c3646970c198bbe26d7332820886fa4f09441991023ec9aa3a2a51246b74409ab5ebae2e8ef148bbc253da79ac49130309 +"@scure/base@npm:^1.1.3": + version: 1.1.3 + resolution: "@scure/base@npm:1.1.3" + checksum: 1606ab8a4db898cb3a1ada16c15437c3bce4e25854fadc8eb03ae93cbbbac1ed90655af4b0be3da37e12056fef11c0374499f69b9e658c9e5b7b3e06353c630c languageName: node linkType: hard @@ -1369,9 +1369,9 @@ __metadata: version: 0.0.0-use.local resolution: "@substrate/api-sidecar@workspace:." dependencies: - "@polkadot/api": ^10.9.1 - "@polkadot/api-contract": ^10.9.1 - "@polkadot/util-crypto": ^12.3.2 + "@polkadot/api": ^10.10.1 + "@polkadot/api-contract": ^10.10.1 + "@polkadot/util-crypto": ^12.5.1 "@substrate/calc": ^0.3.1 "@substrate/dev": ^0.6.7 "@types/argparse": 2.0.10 @@ -1411,14 +1411,13 @@ __metadata: languageName: node linkType: hard -"@substrate/connect@npm:0.7.26": - version: 0.7.26 - resolution: "@substrate/connect@npm:0.7.26" +"@substrate/connect@npm:0.7.33": + version: 0.7.33 + resolution: "@substrate/connect@npm:0.7.33" dependencies: "@substrate/connect-extension-protocol": ^1.0.1 - eventemitter3: ^4.0.7 - smoldot: 1.0.4 - checksum: 3179d241f073318d5973deb61c9c8d9b89ae28909a594b6b9fbcdfffd030a70ba58e8428eaa9d72484810bad10c93de1ad9c440b878d0fcfaaf4559d2e6f4502 + smoldot: 2.0.1 + checksum: b4cfb86bef46450b6635e7dbf1eb133603c6ad8c955046e72fc67aaf36b1fe5f2aeeb521f4b1ea0a1eea9ac4c49b0f6417c24eb1320e8da13cc0d3efd7ee4cd7 languageName: node linkType: hard @@ -3079,13 +3078,6 @@ __metadata: languageName: node linkType: hard -"eventemitter3@npm:^4.0.7": - version: 4.0.7 - resolution: "eventemitter3@npm:4.0.7" - checksum: 1875311c42fcfe9c707b2712c32664a245629b42bb0a5a84439762dd0fd637fc54d078155ea83c2af9e0323c9ac13687e03cfba79b03af9f40c89b4960099374 - languageName: node - linkType: hard - "eventemitter3@npm:^5.0.1": version: 5.0.1 resolution: "eventemitter3@npm:5.0.1" @@ -4853,10 +4845,10 @@ __metadata: languageName: node linkType: hard -"mock-socket@npm:^9.2.1": - version: 9.2.1 - resolution: "mock-socket@npm:9.2.1" - checksum: daf07689563163dbcefbefe23b2a9784a75d0af31706f23ad535c6ab2abbcdefa2e91acddeb50a3c39009139e47a8f909cbb38e8137452193ccb9331637fee3e +"mock-socket@npm:^9.3.1": + version: 9.3.1 + resolution: "mock-socket@npm:9.3.1" + checksum: cb2dde4fc5dde280dd5ccb78eaaa223382ee16437f46b86558017655584ad08c22e733bde2dd5cc86927def506b6caeb0147e3167b9a62d70d5cf19d44103853 languageName: node linkType: hard @@ -4902,15 +4894,15 @@ __metadata: languageName: node linkType: hard -"nock@npm:^13.3.1": - version: 13.3.3 - resolution: "nock@npm:13.3.3" +"nock@npm:^13.3.4": + version: 13.3.4 + resolution: "nock@npm:13.3.4" dependencies: debug: ^4.1.0 json-stringify-safe: ^5.0.1 lodash: ^4.17.21 propagate: ^2.0.0 - checksum: e3e4f0fb777ac63d74f89bbb7aebe8e815b891b64ac71983d91686f725fdab856fe189cf2fe23d4add9f5dd5da53f3568106a61116a771ce0f4ed0f5ad7b035b + checksum: 34ba5fdc025db1f6eb3ea5e3067489e37d6982534ad23d2c1e9fe33ab844c73ed9161012ce4c116c7aa9b765e5a9cfb1541163c936e06fb3331d51c61e2869f7 languageName: node linkType: hard @@ -5115,13 +5107,6 @@ __metadata: languageName: node linkType: hard -"pako@npm:^2.0.4": - version: 2.1.0 - resolution: "pako@npm:2.1.0" - checksum: 71666548644c9a4d056bcaba849ca6fd7242c6cf1af0646d3346f3079a1c7f4a66ffec6f7369ee0dc88f61926c10d6ab05da3e1fca44b83551839e89edd75a3e - languageName: node - linkType: hard - "parent-module@npm:^1.0.0": version: 1.0.1 resolution: "parent-module@npm:1.0.1" @@ -5673,13 +5658,12 @@ __metadata: languageName: node linkType: hard -"smoldot@npm:1.0.4": - version: 1.0.4 - resolution: "smoldot@npm:1.0.4" +"smoldot@npm:2.0.1": + version: 2.0.1 + resolution: "smoldot@npm:2.0.1" dependencies: - pako: ^2.0.4 ws: ^8.8.1 - checksum: 81ecc38b98f7ac4dd093753e85956262608dca3c8a288c20a25fe1762a6afcdbe6f3622ea30a346df3f4145e0900ef0595e56e96e9e0de83c59f0649d1ab4786 + checksum: 77c1f541d039fe740157e9b81e2b13fc72dabe3ffd75644ee9958aee48d5c5458b6cc974d1e9233b1bcf3fde7af42a53a0e48452b6657405c64158a0c8168eee languageName: node linkType: hard @@ -6109,7 +6093,7 @@ __metadata: languageName: node linkType: hard -"tslib@npm:^2.1.0, tslib@npm:^2.5.3, tslib@npm:^2.6.1, tslib@npm:^2.6.2": +"tslib@npm:^2.1.0, tslib@npm:^2.6.1, tslib@npm:^2.6.2": version: 2.6.2 resolution: "tslib@npm:2.6.2" checksum: 329ea56123005922f39642318e3d1f0f8265d1e7fcb92c633e0809521da75eeaca28d2cf96d7248229deb40e5c19adf408259f4b9640afd20d13aecc1430f3ad @@ -6390,9 +6374,9 @@ __metadata: languageName: node linkType: hard -"ws@npm:^8.13.0, ws@npm:^8.8.1": - version: 8.13.0 - resolution: "ws@npm:8.13.0" +"ws@npm:^8.14.1, ws@npm:^8.8.1": + version: 8.14.2 + resolution: "ws@npm:8.14.2" peerDependencies: bufferutil: ^4.0.1 utf-8-validate: ">=5.0.2" @@ -6401,7 +6385,7 @@ __metadata: optional: true utf-8-validate: optional: true - checksum: 53e991bbf928faf5dc6efac9b8eb9ab6497c69feeb94f963d648b7a3530a720b19ec2e0ec037344257e05a4f35bd9ad04d9de6f289615ffb133282031b18c61c + checksum: 3ca0dad26e8cc6515ff392b622a1467430814c463b3368b0258e33696b1d4bed7510bc7030f7b72838b9fdeb8dbd8839cbf808367d6aae2e1d668ce741d4308b languageName: node linkType: hard