diff --git a/package.json b/package.json index 4022b4930..8612d5ba0 100644 --- a/package.json +++ b/package.json @@ -52,9 +52,9 @@ "test:test-release": "yarn start:test-release" }, "dependencies": { - "@polkadot/api": "^6.10.1", + "@polkadot/api": "^6.10.3", "@polkadot/apps-config": "0.98.2-94", - "@polkadot/util-crypto": "^8.0.2", + "@polkadot/util-crypto": "^8.0.5", "@polkadot/x-rxjs": "^6.11.1", "@substrate/calc": "^0.2.6", "argparse": "^2.0.1", @@ -78,13 +78,13 @@ "tsc-watch": "^4.4.0" }, "resolutions": { - "@polkadot/api": "6.10.1", - "@polkadot/keyring": "8.0.2", - "@polkadot/networks": "8.0.2", - "@polkadot/types": "6.10.1", - "@polkadot/types-known": "6.10.1", - "@polkadot/util": "8.0.2", - "@polkadot/util-crypto": "8.0.2", + "@polkadot/api": "6.10.3", + "@polkadot/keyring": "8.0.5", + "@polkadot/networks": "8.0.5", + "@polkadot/types": "6.10.3", + "@polkadot/types-known": "6.10.3", + "@polkadot/util": "8.0.5", + "@polkadot/util-crypto": "8.0.5", "@polkadot/wasm-crypto": "4.4.1", "node-forge": ">=0.10.0", "node-fetch": ">=2.6.1", diff --git a/src/services/blocks/BlocksService.spec.ts b/src/services/blocks/BlocksService.spec.ts index f64ab0f1c..a62abe032 100644 --- a/src/services/blocks/BlocksService.spec.ts +++ b/src/services/blocks/BlocksService.spec.ts @@ -1,6 +1,6 @@ import { ApiPromise } from '@polkadot/api'; import { ApiDecoration } from '@polkadot/api/types'; -import { AugmentedConst } from '@polkadot/api/types/consts'; +import { AugmentedConst } from '@polkadot/api/types'; import { RpcPromiseResult } from '@polkadot/api/types/rpc'; import { GenericExtrinsic, u128 } from '@polkadot/types'; import { GenericCall } from '@polkadot/types/generic'; diff --git a/src/test-helpers/typeFactory.ts b/src/test-helpers/typeFactory.ts index ba6d03d1d..208d2d7ed 100644 --- a/src/test-helpers/typeFactory.ts +++ b/src/test-helpers/typeFactory.ts @@ -1,5 +1,5 @@ import { ApiPromise, WsProvider } from '@polkadot/api'; -import { StorageEntryBase } from '@polkadot/api/types/storage'; +import { StorageEntryBase } from '@polkadot/api/types'; import { Metadata } from '@polkadot/types'; import { Option, StorageKey, Tuple, TypeRegistry, Vec } from '@polkadot/types'; import { diff --git a/yarn.lock b/yarn.lock index 19efda99f..53b20c209 100644 --- a/yarn.lock +++ b/yarn.lock @@ -917,37 +917,37 @@ __metadata: languageName: node linkType: hard -"@polkadot/api-derive@npm:6.10.1": - version: 6.10.1 - resolution: "@polkadot/api-derive@npm:6.10.1" +"@polkadot/api-derive@npm:6.10.3": + version: 6.10.3 + resolution: "@polkadot/api-derive@npm:6.10.3" dependencies: "@babel/runtime": ^7.16.3 - "@polkadot/api": 6.10.1 - "@polkadot/rpc-core": 6.10.1 - "@polkadot/types": 6.10.1 - "@polkadot/util": ^8.0.2 - "@polkadot/util-crypto": ^8.0.2 + "@polkadot/api": 6.10.3 + "@polkadot/rpc-core": 6.10.3 + "@polkadot/types": 6.10.3 + "@polkadot/util": ^8.0.4 + "@polkadot/util-crypto": ^8.0.4 rxjs: ^7.4.0 - checksum: 293aefee45521973e78738ce785dac2e4dff3265d1439f4cfc15c6a01892b68fc2ac708511141300df1187100c47f97380d1131ae415b8102e387abe3b1c50b6 + checksum: d59622a0d30775711fbe833ded22fb750ae49a03136f51f98ef5aee24c41ae8a3d9e896e99e7371a97e4dcf4fa9b46283ad806f6f0d0854cb5f20f59d16a6e63 languageName: node linkType: hard -"@polkadot/api@npm:6.10.1": - version: 6.10.1 - resolution: "@polkadot/api@npm:6.10.1" +"@polkadot/api@npm:6.10.3": + version: 6.10.3 + resolution: "@polkadot/api@npm:6.10.3" dependencies: "@babel/runtime": ^7.16.3 - "@polkadot/api-derive": 6.10.1 - "@polkadot/keyring": ^8.0.2 - "@polkadot/rpc-core": 6.10.1 - "@polkadot/rpc-provider": 6.10.1 - "@polkadot/types": 6.10.1 - "@polkadot/types-known": 6.10.1 - "@polkadot/util": ^8.0.2 - "@polkadot/util-crypto": ^8.0.2 + "@polkadot/api-derive": 6.10.3 + "@polkadot/keyring": ^8.0.4 + "@polkadot/rpc-core": 6.10.3 + "@polkadot/rpc-provider": 6.10.3 + "@polkadot/types": 6.10.3 + "@polkadot/types-known": 6.10.3 + "@polkadot/util": ^8.0.4 + "@polkadot/util-crypto": ^8.0.4 eventemitter3: ^4.0.7 rxjs: ^7.4.0 - checksum: fda59f1fc1ef42489f244287219ebbf4599227da5953e91e1cf3b570ead9d1d171db3d1bd464685924fdb9435bcb772b7f994d75e9aad47b9cecd1d7b34e66f2 + checksum: e04166959e46b3c15b1a295490f1136997c319756568ba8b8c9087ffdbc9a67cb3abc525b5c964fb4904733155d534e8c34ef01bf7a2d5d8031b4e1cd354bdb4 languageName: node linkType: hard @@ -985,67 +985,67 @@ __metadata: languageName: node linkType: hard -"@polkadot/keyring@npm:8.0.2": - version: 8.0.2 - resolution: "@polkadot/keyring@npm:8.0.2" +"@polkadot/keyring@npm:8.0.5": + version: 8.0.5 + resolution: "@polkadot/keyring@npm:8.0.5" dependencies: "@babel/runtime": ^7.16.3 - "@polkadot/util": 8.0.2 - "@polkadot/util-crypto": 8.0.2 + "@polkadot/util": 8.0.5 + "@polkadot/util-crypto": 8.0.5 peerDependencies: - "@polkadot/util": 8.0.2 - "@polkadot/util-crypto": 8.0.2 - checksum: 2e22fe5d2733e79567e2d552b23824f41b413ca544fe2409ec288bfd416ef16672b618e066d26ed8535a1a8c98dcba16ed50cf6cffd62b991182c11e6854606e + "@polkadot/util": 8.0.5 + "@polkadot/util-crypto": 8.0.5 + checksum: ccc73b08949a1f880be10cd784aa4c9331178aedad309fd505329cedd7567843be81ff84187bd6b1be3f3a245456a3b613ec6025e181dfc9c23f536429a6e2b3 languageName: node linkType: hard -"@polkadot/networks@npm:8.0.2": - version: 8.0.2 - resolution: "@polkadot/networks@npm:8.0.2" +"@polkadot/networks@npm:8.0.5": + version: 8.0.5 + resolution: "@polkadot/networks@npm:8.0.5" dependencies: "@babel/runtime": ^7.16.3 - checksum: b8ad7cb2239bc2a0aa69c1aa15afa9ff639ccc3457181b90f345c5bc2a18f443f077596ee7d0df3d603cb984a89acc8a426e185d00ba5d7144c763d7b7ce1c66 + checksum: 2f42ca45ecd5169e5b6a985ea3c44039fd8c54de6e8fd01848912f361cc82f2e0d318f146ab6ed6d9ea3af1d28160a6241f7c1490aefb134f9b283e387a5d9a4 languageName: node linkType: hard -"@polkadot/rpc-core@npm:6.10.1": - version: 6.10.1 - resolution: "@polkadot/rpc-core@npm:6.10.1" +"@polkadot/rpc-core@npm:6.10.3": + version: 6.10.3 + resolution: "@polkadot/rpc-core@npm:6.10.3" dependencies: "@babel/runtime": ^7.16.3 - "@polkadot/rpc-provider": 6.10.1 - "@polkadot/types": 6.10.1 - "@polkadot/util": ^8.0.2 + "@polkadot/rpc-provider": 6.10.3 + "@polkadot/types": 6.10.3 + "@polkadot/util": ^8.0.4 rxjs: ^7.4.0 - checksum: 7ea93074a1467dd7c8fcd9d97a394cc861260f42078395e6af5bc5d8a06ebbaa369c2ec6362c13e0a0828eec88f06f491ed32fe8cdef93f31b0c83745bc937c5 + checksum: c12817780ce4c960bb16b752e4dd2f443bb96e06e05acad116dfb6406900a28f6291beb252ea6c44b571e98facf3d5112c6f7761ebb64c766440cb4db8bbec79 languageName: node linkType: hard -"@polkadot/rpc-provider@npm:6.10.1": - version: 6.10.1 - resolution: "@polkadot/rpc-provider@npm:6.10.1" +"@polkadot/rpc-provider@npm:6.10.3": + version: 6.10.3 + resolution: "@polkadot/rpc-provider@npm:6.10.3" dependencies: "@babel/runtime": ^7.16.3 - "@polkadot/types": 6.10.1 - "@polkadot/util": ^8.0.2 - "@polkadot/util-crypto": ^8.0.2 - "@polkadot/x-fetch": ^8.0.2 - "@polkadot/x-global": ^8.0.2 - "@polkadot/x-ws": ^8.0.2 + "@polkadot/types": 6.10.3 + "@polkadot/util": ^8.0.4 + "@polkadot/util-crypto": ^8.0.4 + "@polkadot/x-fetch": ^8.0.4 + "@polkadot/x-global": ^8.0.4 + "@polkadot/x-ws": ^8.0.4 eventemitter3: ^4.0.7 - checksum: efa34b9c19c347e75cf7b8675129a1d3e43ddb650607b0a918d6655148222bd653feafe19046f29846532b78d7073b6ea34e319beadc84fbafe95f14fd61716e + checksum: aacf1c9a6dcdcb8a03e2393fe37ab83570aeacca2fae4835617fb212ee99c977f225ca95fd3895d87d362900de7a0d03085934ef11217247e91856a8de15a331 languageName: node linkType: hard -"@polkadot/types-known@npm:6.10.1": - version: 6.10.1 - resolution: "@polkadot/types-known@npm:6.10.1" +"@polkadot/types-known@npm:6.10.3": + version: 6.10.3 + resolution: "@polkadot/types-known@npm:6.10.3" dependencies: "@babel/runtime": ^7.16.3 - "@polkadot/networks": ^8.0.2 - "@polkadot/types": 6.10.1 - "@polkadot/util": ^8.0.2 - checksum: 991aefaad1066c023ef2b22c6a42d46d9961b43daebd7eca637dce09021e5b6e721daf6a7c0609dbbbb76a0e060104b16e7b7b9708b162177dd4b23cc5955090 + "@polkadot/networks": ^8.0.4 + "@polkadot/types": 6.10.3 + "@polkadot/util": ^8.0.4 + checksum: 74db36ea2fa3b823cffbd9e8c8dc85c80e694f752376a1d24ba1b233d78be98d148804a6143a68c5f77f997095abb8c07715ef2aaa45a45715c08de0bebcfe8e languageName: node linkType: hard @@ -1059,51 +1059,51 @@ __metadata: languageName: node linkType: hard -"@polkadot/types@npm:6.10.1": - version: 6.10.1 - resolution: "@polkadot/types@npm:6.10.1" +"@polkadot/types@npm:6.10.3": + version: 6.10.3 + resolution: "@polkadot/types@npm:6.10.3" dependencies: "@babel/runtime": ^7.16.3 - "@polkadot/types-known": 6.10.1 - "@polkadot/util": ^8.0.2 - "@polkadot/util-crypto": ^8.0.2 + "@polkadot/types-known": 6.10.3 + "@polkadot/util": ^8.0.4 + "@polkadot/util-crypto": ^8.0.4 rxjs: ^7.4.0 - checksum: 8e1fa67888150a33c31204949fc804814f312a8c15378603863a20d251b30cbed4781fc08be0442d676bacde4d0b7478c43f5e522401d4b6feb5feeced70dbf7 + checksum: ab87fedbc224fff593dc1c33505c29b814e8e48bcc9ebf3b70603d397507dca34addab2120a560a83c4b388f15d4728d2dbdbf2e7bf657a1355c25eec67eea16 languageName: node linkType: hard -"@polkadot/util-crypto@npm:8.0.2": - version: 8.0.2 - resolution: "@polkadot/util-crypto@npm:8.0.2" +"@polkadot/util-crypto@npm:8.0.5": + version: 8.0.5 + resolution: "@polkadot/util-crypto@npm:8.0.5" dependencies: "@babel/runtime": ^7.16.3 "@noble/hashes": 0.4.1 - "@polkadot/networks": 8.0.2 - "@polkadot/util": 8.0.2 + "@polkadot/networks": 8.0.5 + "@polkadot/util": 8.0.5 "@polkadot/wasm-crypto": ^4.4.1 - "@polkadot/x-randomvalues": 8.0.2 + "@polkadot/x-randomvalues": 8.0.5 bn.js: ^4.12.0 ed2curve: ^0.3.0 elliptic: ^6.5.4 micro-base: ^0.9.0 tweetnacl: ^1.0.3 peerDependencies: - "@polkadot/util": 8.0.2 - checksum: d9eb78eaedfab9dfe7900507eda79242e55105536ff190cb3b3a4bbc0fe50d6afbfb99b5309038d11bd8a2b651b9e0d7b33a5b53040fe97490c843426229f5ee + "@polkadot/util": 8.0.5 + checksum: 50b213d142fe6c1690846242631be452dd33af7386bab5ae65fb8ad64f1b6fe17cef7a70d12f80230a49470709f899dc5f3a8165d0a384f386c3583e34ce9f1a languageName: node linkType: hard -"@polkadot/util@npm:8.0.2": - version: 8.0.2 - resolution: "@polkadot/util@npm:8.0.2" +"@polkadot/util@npm:8.0.5": + version: 8.0.5 + resolution: "@polkadot/util@npm:8.0.5" dependencies: "@babel/runtime": ^7.16.3 - "@polkadot/x-textdecoder": 8.0.2 - "@polkadot/x-textencoder": 8.0.2 + "@polkadot/x-textdecoder": 8.0.5 + "@polkadot/x-textencoder": 8.0.5 "@types/bn.js": ^4.11.6 bn.js: ^4.12.0 ip-regex: ^4.3.0 - checksum: 7039244ef3347e63147d586c9d6dc7d3a7000700a1df29842350a9c83e44639b7537f9e5d0f47b064718a5642dcded0a7c85b7d1666096fa1a144d576215afc7 + checksum: 5fda3c2bfdfbe0929e24618c993cfef7c8006d4d0ada24fe8927ab2ddf4683a98ac37e22e61abd0eb7e71284697817e3ed88f2d37b5ccafa1e0b8a26657c122c languageName: node linkType: hard @@ -1139,34 +1139,43 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-fetch@npm:^8.0.2": - version: 8.0.2 - resolution: "@polkadot/x-fetch@npm:8.0.2" +"@polkadot/x-fetch@npm:^8.0.4": + version: 8.0.4 + resolution: "@polkadot/x-fetch@npm:8.0.4" dependencies: "@babel/runtime": ^7.16.3 - "@polkadot/x-global": 8.0.2 + "@polkadot/x-global": 8.0.4 "@types/node-fetch": ^2.5.12 node-fetch: ^2.6.6 - checksum: ef3069564f19521799e137c7a71d558f810f5c4acdd5fcc9cc9e562ff6d05eff08a0b2e568e5ede1525c1b75754fe362baa133f6469f9225971457b38074cc4c + checksum: a9d060fa75df7f18f2071061295b59e7783d618004feba2e174808ae443e7563eb09cb37f1d4397e8c0d0398b797f5e214ad2a40b18b04e77450d04ac0e41f49 languageName: node linkType: hard -"@polkadot/x-global@npm:8.0.2, @polkadot/x-global@npm:^8.0.2": - version: 8.0.2 - resolution: "@polkadot/x-global@npm:8.0.2" +"@polkadot/x-global@npm:8.0.4, @polkadot/x-global@npm:^8.0.4": + version: 8.0.4 + resolution: "@polkadot/x-global@npm:8.0.4" dependencies: "@babel/runtime": ^7.16.3 - checksum: b0e641a9604e6ae98de973bee6426ffb18e9b4a0285ddcd2040a2371de22d7b333c47d7f4a1d23d8b10ee7fed588dcf2a7ed5cc00405002406d5660b172222e8 + checksum: 5768d5df12d8c84eef8133d3a5d70e8a333813ec4bc05186df511d1d14fa0c84cb44b3e7915c902137a3ee6d3672f465aa7fde72e01f61ed1d85ed848bd4dce6 languageName: node linkType: hard -"@polkadot/x-randomvalues@npm:8.0.2": - version: 8.0.2 - resolution: "@polkadot/x-randomvalues@npm:8.0.2" +"@polkadot/x-global@npm:8.0.5": + version: 8.0.5 + resolution: "@polkadot/x-global@npm:8.0.5" dependencies: "@babel/runtime": ^7.16.3 - "@polkadot/x-global": 8.0.2 - checksum: fccd12f1d9124f99e5fc20b49befa13346639539a412b3b750d7c3b34ba600ea2bde10178858ec8d4b9ebefd36077504f3ebccb2ea80cfef326db98d90f36da0 + checksum: fa4ad69b32d75a7733c34afd29067641c75dbec484d47071b1640747c5dcd20af80aee0188c64d90ea2747a936efe962620b4de58b3aa706167e5615bae2bc58 + languageName: node + linkType: hard + +"@polkadot/x-randomvalues@npm:8.0.5": + version: 8.0.5 + resolution: "@polkadot/x-randomvalues@npm:8.0.5" + dependencies: + "@babel/runtime": ^7.16.3 + "@polkadot/x-global": 8.0.5 + checksum: dc06f14226577ea4544cd203b2b00656562d3f47490e9385623f6f465f08ecb6d33b3f7ec3ed7e3861605d6beb279c537c0a7b12081a8a96c2260f1c1a2ca739 languageName: node linkType: hard @@ -1180,35 +1189,35 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-textdecoder@npm:8.0.2": - version: 8.0.2 - resolution: "@polkadot/x-textdecoder@npm:8.0.2" +"@polkadot/x-textdecoder@npm:8.0.5": + version: 8.0.5 + resolution: "@polkadot/x-textdecoder@npm:8.0.5" dependencies: "@babel/runtime": ^7.16.3 - "@polkadot/x-global": 8.0.2 - checksum: 756f91dfba82a7cf354b5e0ddd0c0de16880896788cbd372c6a2339c5fd41d062e0908070253d2e22d90bca0111863b5d577409d5d708119d7646e1f83409b84 + "@polkadot/x-global": 8.0.5 + checksum: 241e48ed28cd956ae70d3c1352c6d730c0b3ccf68e1c81851e64368a528f4e08eea415c5f18b48f1bb6fdd06aeb019e89ff0a671acf9c3d7e33393fd9d1a963b languageName: node linkType: hard -"@polkadot/x-textencoder@npm:8.0.2": - version: 8.0.2 - resolution: "@polkadot/x-textencoder@npm:8.0.2" +"@polkadot/x-textencoder@npm:8.0.5": + version: 8.0.5 + resolution: "@polkadot/x-textencoder@npm:8.0.5" dependencies: "@babel/runtime": ^7.16.3 - "@polkadot/x-global": 8.0.2 - checksum: adc0daf22a96b892404bf7220b87538b6bc68d607037ad8166083f4b24334f7b362fd3ec037cd7f3dd02c9f2fd860dd2ad24a6599fd3515c2b46ea68e0717b81 + "@polkadot/x-global": 8.0.5 + checksum: ffb84166665517463072a35df344020e281395429f5e90a8e3b43c1ed9b720e8703667b29209d0e3e594971bc131ae6ba868e49e2da451048d4b669e9fdb2ea9 languageName: node linkType: hard -"@polkadot/x-ws@npm:^8.0.2": - version: 8.0.2 - resolution: "@polkadot/x-ws@npm:8.0.2" +"@polkadot/x-ws@npm:^8.0.4": + version: 8.0.4 + resolution: "@polkadot/x-ws@npm:8.0.4" dependencies: "@babel/runtime": ^7.16.3 - "@polkadot/x-global": 8.0.2 + "@polkadot/x-global": 8.0.4 "@types/websocket": ^1.0.4 websocket: ^1.0.34 - checksum: 777456c937a5947d6a8bf217b6051d0ab41c9aaf919b338a88cbad3d3849641195ce101a6f9f124691f658239358e8918b7e8bcb09ee076e308c117c6b5a87b6 + checksum: f92ec5cab168580405d49925ce98cc1d7727215182d5f351d0b29da7fd586fea2784fd61ae88fd70a7086511649e998413ee14f23a9705ff917b62093a193915 languageName: node linkType: hard @@ -1314,9 +1323,9 @@ __metadata: version: 0.0.0-use.local resolution: "@substrate/api-sidecar@workspace:." dependencies: - "@polkadot/api": ^6.10.1 + "@polkadot/api": ^6.10.3 "@polkadot/apps-config": 0.98.2-94 - "@polkadot/util-crypto": ^8.0.2 + "@polkadot/util-crypto": ^8.0.5 "@polkadot/x-rxjs": ^6.11.1 "@substrate/calc": ^0.2.6 "@substrate/dev": ^0.5.6