From 049674afb86db94a8f24156c600c879f4da219b3 Mon Sep 17 00:00:00 2001 From: Dmitryii Osipov Date: Sun, 12 Nov 2023 12:39:25 +0400 Subject: [PATCH] Bump polkadot-js and txwrapper dependencies (#103) --- server/package.json | 12 +- server/src/helpers/gear.ts | 2 +- server/src/services/BlockService.ts | 13 +- yarn.lock | 557 ++++++++++++++++++++++++++-- 4 files changed, 541 insertions(+), 43 deletions(-) diff --git a/server/package.json b/server/package.json index b8a9aa2..66208c8 100644 --- a/server/package.json +++ b/server/package.json @@ -23,12 +23,12 @@ ], "private": true, "dependencies": { - "@polkadot/api": "^10.9.1", - "@polkadot/types": "^10.9.1", - "@polkadot/types-codec": "^10.9.1", - "@polkadot/util": "^12.2.1", - "@substrate/txwrapper-core": "7.0.1", - "@substrate/txwrapper-polkadot": "7.0.1", + "@polkadot/api": "10.10.1", + "@polkadot/types": "10.10.1", + "@polkadot/types-codec": "10.10.1", + "@polkadot/util": "12.5.1", + "@substrate/txwrapper-core": "7.1.1", + "@substrate/txwrapper-polkadot": "7.1.1", "body-parser": "1.20.2", "camelcase": "6.3.0", "commander": "^11.0.0", diff --git a/server/src/helpers/gear.ts b/server/src/helpers/gear.ts index bf04416..69fb223 100644 --- a/server/src/helpers/gear.ts +++ b/server/src/helpers/gear.ts @@ -3,7 +3,7 @@ import { ApiDecoration } from '@polkadot/api/types'; import { Header, Index, SignedBlock } from '@polkadot/types/interfaces'; import { BlockIdentifier, Peer, SyncStatus } from 'rosetta-client'; -import { NetworkConfig } from 'types'; +import { NetworkConfig } from '../types'; import logger from '../logger'; import { ApiError, throwError } from './errors'; diff --git a/server/src/services/BlockService.ts b/server/src/services/BlockService.ts index 1737846..83c573c 100644 --- a/server/src/services/BlockService.ts +++ b/server/src/services/BlockService.ts @@ -11,7 +11,6 @@ import { TransactionIdentifier, } from 'rosetta-client'; - import config from '../config'; import { ApiError, getNetworkIdent, getOperations, getOperationStatus, getTxsAndEvents, throwError } from '../helpers'; import logger from '../logger'; @@ -39,7 +38,7 @@ const block = async ({ body: { network_identifier, block_identifier } }: { body: throwError(ApiError.NOT_AVAILABLE_OFFLINE); } const { api, currency } = getNetworkIdent(network_identifier); - + const [blockIdent, blockTs, _block, apiAt] = await api.getBlockIdent(block_identifier.hash || block_identifier.index); const parentBlockHeight = blockIdent.index - 1; @@ -69,7 +68,7 @@ const block = async ({ body: { network_identifier, block_identifier } }: { body: if (operations.length > 0) { const rosettaTransaction = new Transaction(transactionIdent, operations); - + if (opStatus == OperationStatus.FAILURE) { try { const transactionMetadata = lookupError(statusEvent.event); @@ -140,7 +139,7 @@ const blockTransaction = async ({ }; function lookupError(failureEvent: Event): TransactionErrorMetadata { - const [error, _] = failureEvent.data; + const [error] = failureEvent.data; const dispatchError: DispatchError = error as unknown as DispatchError; @@ -154,10 +153,10 @@ function lookupError(failureEvent: Event): TransactionErrorMetadata { return { pallet: section, error: name, - description: docs.join(' ') - } + description: docs.join(' '), + }; } else { - throw Error(`Could not lookup error using registry [Index = ${errorIndex}, Error = ${errorType}]`) + throw Error(`Could not lookup error using registry [Index = ${errorIndex}, Error = ${errorType}]`); } } diff --git a/yarn.lock b/yarn.lock index 2eafc5c..d7290cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1830,6 +1830,15 @@ __metadata: languageName: node linkType: hard +"@noble/curves@npm:^1.2.0": + version: 1.2.0 + resolution: "@noble/curves@npm:1.2.0" + dependencies: + "@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" @@ -1837,6 +1846,13 @@ __metadata: languageName: node linkType: hard +"@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 + "@nodelib/fs.scandir@npm:2.1.5": version: 2.1.5 resolution: "@nodelib/fs.scandir@npm:2.1.5" @@ -1880,6 +1896,21 @@ __metadata: languageName: node linkType: hard +"@polkadot/api-augment@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/api-augment@npm:10.10.1" + dependencies: + "@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-augment@npm:10.9.1": version: 10.9.1 resolution: "@polkadot/api-augment@npm:10.9.1" @@ -1895,6 +1926,19 @@ __metadata: languageName: node linkType: hard +"@polkadot/api-base@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/api-base@npm:10.10.1" + dependencies: + "@polkadot/rpc-core": 10.10.1 + "@polkadot/types": 10.10.1 + "@polkadot/util": ^12.5.1 + rxjs: ^7.8.1 + tslib: ^2.6.2 + checksum: 374a4378484817b29c52908a9dac649b4d4f231db21a0b0b3d3ec3331c7b9b9c374c103b5e64d028c212b8ab3eb98244cd760d20e2fe5f46a8fdc1d923555047 + languageName: node + linkType: hard + "@polkadot/api-base@npm:10.9.1": version: 10.9.1 resolution: "@polkadot/api-base@npm:10.9.1" @@ -1908,6 +1952,24 @@ __metadata: languageName: node linkType: hard +"@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.6.2 + checksum: ff0f016d39aa73f55a881927e6ae3dd75c2a81fe4095cdda5e558f420d815a12c204e6a2082acbef2c74867b810d41ef349de2b7924d46957be7260b71fb1512 + languageName: node + linkType: hard + "@polkadot/api-derive@npm:10.9.1": version: 10.9.1 resolution: "@polkadot/api-derive@npm:10.9.1" @@ -1926,7 +1988,32 @@ __metadata: languageName: node linkType: hard -"@polkadot/api@npm:10.9.1, @polkadot/api@npm:^10.7.1, @polkadot/api@npm:^10.9.1": +"@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.6.2 + checksum: de1aa727b63fb921854840fe2d18b55b99f512f4d3e08d3b895fceea7891f6dd0febe6aa5fb7b1778494c78d6a6a7ebd17d426ba2e3df459aa974b7bb8fee19c + languageName: node + linkType: hard + +"@polkadot/api@npm:10.9.1": version: 10.9.1 resolution: "@polkadot/api@npm:10.9.1" dependencies: @@ -1951,7 +2038,7 @@ __metadata: languageName: node linkType: hard -"@polkadot/keyring@npm:^12.2.1, @polkadot/keyring@npm:^12.3.1": +"@polkadot/keyring@npm:^12.3.1": version: 12.3.2 resolution: "@polkadot/keyring@npm:12.3.2" dependencies: @@ -1965,6 +2052,20 @@ __metadata: languageName: node linkType: hard +"@polkadot/keyring@npm:^12.5.1": + version: 12.5.1 + resolution: "@polkadot/keyring@npm:12.5.1" + dependencies: + "@polkadot/util": 12.5.1 + "@polkadot/util-crypto": 12.5.1 + tslib: ^2.6.2 + peerDependencies: + "@polkadot/util": 12.5.1 + "@polkadot/util-crypto": 12.5.1 + checksum: d659e5980e4cd6b68f91448a817306666530c033410c713854547dbbbecacb7362346c3ada6c5ab9dc71437c3cf002f064d7db40d1588637b96e84ff8f35dcf4 + languageName: node + linkType: hard + "@polkadot/networks@npm:12.3.2, @polkadot/networks@npm:^12.3.1": version: 12.3.2 resolution: "@polkadot/networks@npm:12.3.2" @@ -1976,6 +2077,30 @@ __metadata: languageName: node linkType: hard +"@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.5.1 + "@substrate/ss58-registry": ^1.43.0 + tslib: ^2.6.2 + checksum: f8c64684f6806365c1aded6ebca52432050cc8caacd067faf339b2f37497b63b13cebb689f7b0f9c62a890566383cf1931552da82815cc52baa2166fb1772a43 + languageName: node + linkType: hard + +"@polkadot/rpc-augment@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/rpc-augment@npm:10.10.1" + dependencies: + "@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-augment@npm:10.9.1": version: 10.9.1 resolution: "@polkadot/rpc-augment@npm:10.9.1" @@ -1989,6 +2114,20 @@ __metadata: languageName: node linkType: hard +"@polkadot/rpc-core@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/rpc-core@npm:10.10.1" + dependencies: + "@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.6.2 + checksum: 5ab21029fbafa13e50bb48161a82c023f7015b633e258b76c2cff25bf648d7f69baf18efc291ebec8dd635b38da8223e853e15b53478268b1f6b40d2ab0b3e09 + languageName: node + linkType: hard + "@polkadot/rpc-core@npm:10.9.1": version: 10.9.1 resolution: "@polkadot/rpc-core@npm:10.9.1" @@ -2003,6 +2142,30 @@ __metadata: languageName: node linkType: hard +"@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.3.1 + nock: ^13.3.4 + tslib: ^2.6.2 + dependenciesMeta: + "@substrate/connect": + optional: true + checksum: 44147ad7ce4bb0fccf5272bbe56b3b65c1e907f02109c8e18a5b5da8c658f84c1d7741c5e6878adacd06514254b0a7fb8254d5a222f55f25f7a573b2ba970449 + languageName: node + linkType: hard + "@polkadot/rpc-provider@npm:10.9.1": version: 10.9.1 resolution: "@polkadot/rpc-provider@npm:10.9.1" @@ -2027,6 +2190,18 @@ __metadata: languageName: node linkType: hard +"@polkadot/types-augment@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/types-augment@npm:10.10.1" + dependencies: + "@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-augment@npm:10.9.1": version: 10.9.1 resolution: "@polkadot/types-augment@npm:10.9.1" @@ -2039,7 +2214,18 @@ __metadata: languageName: node linkType: hard -"@polkadot/types-codec@npm:10.9.1, @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.5.1 + "@polkadot/x-bigint": ^12.5.1 + tslib: ^2.6.2 + checksum: 17ceb561e6a82784febd5c8b0219050a9b8aeeb766ffbae8255ab586120063ca9fea1c89df776047e861aba87e43048a8060d5c469bcd42c169830a69416d62f + languageName: node + linkType: hard + +"@polkadot/types-codec@npm:10.9.1": version: 10.9.1 resolution: "@polkadot/types-codec@npm:10.9.1" dependencies: @@ -2050,6 +2236,17 @@ __metadata: languageName: node linkType: hard +"@polkadot/types-create@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/types-create@npm:10.10.1" + dependencies: + "@polkadot/types-codec": 10.10.1 + "@polkadot/util": ^12.5.1 + tslib: ^2.6.2 + checksum: 1dedef441218a0786774033c2d587b8ccdf184a72da671c7da70ced9f765073bfec4a15d8937b00d5d50cb0eb1b4bd25886ace3f7e024c95b46f58a1c318efd1 + languageName: node + linkType: hard + "@polkadot/types-create@npm:10.9.1": version: 10.9.1 resolution: "@polkadot/types-create@npm:10.9.1" @@ -2061,6 +2258,20 @@ __metadata: languageName: node linkType: hard +"@polkadot/types-known@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/types-known@npm:10.10.1" + dependencies: + "@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-known@npm:10.9.1": version: 10.9.1 resolution: "@polkadot/types-known@npm:10.9.1" @@ -2075,6 +2286,16 @@ __metadata: languageName: node linkType: hard +"@polkadot/types-support@npm:10.10.1": + version: 10.10.1 + resolution: "@polkadot/types-support@npm:10.10.1" + dependencies: + "@polkadot/util": ^12.5.1 + tslib: ^2.6.2 + checksum: 391857f39463fcc9bbc34a6bafd191e12eb3fd28f386d4094cc3cdcbcd0fcc8799c6e99a49b0e634c6a1b78d07188eb6e1e01299f55df2593c3f30fcb241631c + languageName: node + linkType: hard + "@polkadot/types-support@npm:10.9.1": version: 10.9.1 resolution: "@polkadot/types-support@npm:10.9.1" @@ -2085,7 +2306,23 @@ __metadata: languageName: node linkType: hard -"@polkadot/types@npm:10.9.1, @polkadot/types@npm:^10.9.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.6.2 + checksum: 58b8b026e25f8156f270bdd240a2e384b64db93a6abe7c15abe9acdc2ce06a724328a8bf4d5b3047f5e398eef3d4961447d8511c52105c082dddd1b9d8fb0cb4 + languageName: node + linkType: hard + +"@polkadot/types@npm:10.9.1": version: 10.9.1 resolution: "@polkadot/types@npm:10.9.1" dependencies: @@ -2121,7 +2358,27 @@ __metadata: languageName: node linkType: hard -"@polkadot/util@npm:12.3.2, @polkadot/util@npm:^12.2.1, @polkadot/util@npm:^12.3.1": +"@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.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.5.1 + "@polkadot/x-randomvalues": 12.5.1 + "@scure/base": ^1.1.3 + tslib: ^2.6.2 + peerDependencies: + "@polkadot/util": 12.5.1 + checksum: 4efb5ca6e48f7457d8dcfa02ac9f581ce23a90ba9e72c8f6fd7649296e92dcb3dfa3d2bdd0b5ed68b81bf15e32aabef34f60d47851249d8859dba7ebeb63501f + languageName: node + linkType: hard + +"@polkadot/util@npm:12.3.2, @polkadot/util@npm:^12.3.1": version: 12.3.2 resolution: "@polkadot/util@npm:12.3.2" dependencies: @@ -2136,6 +2393,21 @@ __metadata: languageName: node linkType: hard +"@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.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: 955d41c01cb3c7da72c4f5f8faed13e1af1fa9603a3a1dd9f282eb69b5ebbffb889e76c595d1252ff5f9665cb3c55f1a96f908b020dc79356f92b2d5ce1aa81e + languageName: node + linkType: hard + "@polkadot/wasm-bridge@npm:7.2.1": version: 7.2.1 resolution: "@polkadot/wasm-bridge@npm:7.2.1" @@ -2149,6 +2421,19 @@ __metadata: languageName: node linkType: hard +"@polkadot/wasm-bridge@npm:7.2.2": + version: 7.2.2 + resolution: "@polkadot/wasm-bridge@npm:7.2.2" + dependencies: + "@polkadot/wasm-util": 7.2.2 + tslib: ^2.6.1 + peerDependencies: + "@polkadot/util": "*" + "@polkadot/x-randomvalues": "*" + checksum: b998b21bca963699c2958de0558bad83d19ca72922b7ca74beb99b8c418bdc4be7af86f7ea231b3224de55eb8ec59e0626642d393fc90192659cccaf346d5d2b + languageName: node + linkType: hard + "@polkadot/wasm-crypto-asmjs@npm:7.2.1": version: 7.2.1 resolution: "@polkadot/wasm-crypto-asmjs@npm:7.2.1" @@ -2160,6 +2445,17 @@ __metadata: languageName: node linkType: hard +"@polkadot/wasm-crypto-asmjs@npm:7.2.2": + version: 7.2.2 + resolution: "@polkadot/wasm-crypto-asmjs@npm:7.2.2" + dependencies: + tslib: ^2.6.1 + peerDependencies: + "@polkadot/util": "*" + checksum: 2eba52949b51adfa1e8183d406f40b935cdea1a3189994529febd9db4f1abf5f853782e2c15dad7ab0f2dd8641b3dbf40b221c0462b6a29ac11c38e8a70a8a5b + languageName: node + linkType: hard + "@polkadot/wasm-crypto-init@npm:7.2.1": version: 7.2.1 resolution: "@polkadot/wasm-crypto-init@npm:7.2.1" @@ -2176,6 +2472,22 @@ __metadata: languageName: node linkType: hard +"@polkadot/wasm-crypto-init@npm:7.2.2": + version: 7.2.2 + resolution: "@polkadot/wasm-crypto-init@npm:7.2.2" + dependencies: + "@polkadot/wasm-bridge": 7.2.2 + "@polkadot/wasm-crypto-asmjs": 7.2.2 + "@polkadot/wasm-crypto-wasm": 7.2.2 + "@polkadot/wasm-util": 7.2.2 + tslib: ^2.6.1 + peerDependencies: + "@polkadot/util": "*" + "@polkadot/x-randomvalues": "*" + checksum: 75e4cc6cfecef13942397c0b0cbcd2ebf8534589b0a22104df6352908efbdc78e6fa42df3ce1660c1b267c8b7c40667a42c0d986a7a3bc4a2b9ea17ba97608af + languageName: node + linkType: hard + "@polkadot/wasm-crypto-wasm@npm:7.2.1": version: 7.2.1 resolution: "@polkadot/wasm-crypto-wasm@npm:7.2.1" @@ -2188,6 +2500,18 @@ __metadata: languageName: node linkType: hard +"@polkadot/wasm-crypto-wasm@npm:7.2.2": + version: 7.2.2 + resolution: "@polkadot/wasm-crypto-wasm@npm:7.2.2" + dependencies: + "@polkadot/wasm-util": 7.2.2 + tslib: ^2.6.1 + peerDependencies: + "@polkadot/util": "*" + checksum: e3d0aeb59fb7e5d3d25a256ed57c4e05895e9d7e29cb22214d9b59ff6e400f25b0c5758f77a0513befd99ef33051b43bbff3d1def978e87668aa74f3f8799c0b + languageName: node + linkType: hard + "@polkadot/wasm-crypto@npm:^7.2.1": version: 7.2.1 resolution: "@polkadot/wasm-crypto@npm:7.2.1" @@ -2205,6 +2529,23 @@ __metadata: languageName: node linkType: hard +"@polkadot/wasm-crypto@npm:^7.2.2": + version: 7.2.2 + resolution: "@polkadot/wasm-crypto@npm:7.2.2" + dependencies: + "@polkadot/wasm-bridge": 7.2.2 + "@polkadot/wasm-crypto-asmjs": 7.2.2 + "@polkadot/wasm-crypto-init": 7.2.2 + "@polkadot/wasm-crypto-wasm": 7.2.2 + "@polkadot/wasm-util": 7.2.2 + tslib: ^2.6.1 + peerDependencies: + "@polkadot/util": "*" + "@polkadot/x-randomvalues": "*" + checksum: 25710154c1a25aea59a8cdba4cfe051249e83b86cbc0869be7b0680c86f2841131f7df76881d422fb4d179b9037320957e725bc50546e63273bc11b85751b5a6 + languageName: node + linkType: hard + "@polkadot/wasm-util@npm:7.2.1, @polkadot/wasm-util@npm:^7.2.1": version: 7.2.1 resolution: "@polkadot/wasm-util@npm:7.2.1" @@ -2216,6 +2557,17 @@ __metadata: languageName: node linkType: hard +"@polkadot/wasm-util@npm:7.2.2, @polkadot/wasm-util@npm:^7.2.2": + version: 7.2.2 + resolution: "@polkadot/wasm-util@npm:7.2.2" + dependencies: + tslib: ^2.6.1 + peerDependencies: + "@polkadot/util": "*" + checksum: b1ad387e5b2726183e1c141ac59f9e6e722d9c1e896dbe0069fb5ce46d30c3517f07b36c840c1d82d23256e111a3697ba3015e53073858e8e05ab3d0cbdbf05e + languageName: node + linkType: hard + "@polkadot/x-bigint@npm:12.3.2, @polkadot/x-bigint@npm:^12.3.1": version: 12.3.2 resolution: "@polkadot/x-bigint@npm:12.3.2" @@ -2226,6 +2578,16 @@ __metadata: languageName: node linkType: hard +"@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.5.1 + tslib: ^2.6.2 + checksum: 295d00b17860196c43ac4957ffb052ca68bb4319990876238e3f0925ca6ca9106810204136315491116a11a277d8a1e1fae65cc43a168505ee5a69a27404d2e0 + languageName: node + linkType: hard + "@polkadot/x-fetch@npm:^12.3.1": version: 12.3.2 resolution: "@polkadot/x-fetch@npm:12.3.2" @@ -2237,6 +2599,17 @@ __metadata: languageName: node linkType: hard +"@polkadot/x-fetch@npm:^12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-fetch@npm:12.5.1" + dependencies: + "@polkadot/x-global": 12.5.1 + node-fetch: ^3.3.2 + tslib: ^2.6.2 + checksum: 26b24b09f9074c181f53f13ea17a1389e823b262a956a28fddf609ba7d177a1cde3cd4db28e8e38320b207adcc675ac868dadfaeafe9cf3998a3861f02ee43d7 + languageName: node + linkType: hard + "@polkadot/x-global@npm:12.3.2, @polkadot/x-global@npm:^12.3.1": version: 12.3.2 resolution: "@polkadot/x-global@npm:12.3.2" @@ -2246,6 +2619,15 @@ __metadata: languageName: node linkType: hard +"@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: d45e3d6096674b7495992c6e45cf1a284db545c16107ba9adae241d6aefe13c27adfaf93d58a3079e6a6b63acb221eb3181c7f55dc34124b24b542154724c506 + languageName: node + linkType: hard + "@polkadot/x-randomvalues@npm:12.3.2": version: 12.3.2 resolution: "@polkadot/x-randomvalues@npm:12.3.2" @@ -2259,6 +2641,19 @@ __metadata: languageName: node linkType: hard +"@polkadot/x-randomvalues@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-randomvalues@npm:12.5.1" + dependencies: + "@polkadot/x-global": 12.5.1 + tslib: ^2.6.2 + peerDependencies: + "@polkadot/util": 12.5.1 + "@polkadot/wasm-util": "*" + checksum: 52ee4b4206a98cac9e97e3d194db01fb4a540046672784442926478eaa2b2a74cebae59d10432671f544d72df5d623aedf57c301bcf447a4c72688ec3cb82fd5 + languageName: node + linkType: hard + "@polkadot/x-textdecoder@npm:12.3.2": version: 12.3.2 resolution: "@polkadot/x-textdecoder@npm:12.3.2" @@ -2269,6 +2664,16 @@ __metadata: languageName: node linkType: hard +"@polkadot/x-textdecoder@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-textdecoder@npm:12.5.1" + dependencies: + "@polkadot/x-global": 12.5.1 + tslib: ^2.6.2 + checksum: 202a9e216e9b89cc74012fa3f6c96eeb368dc3e6fa3c943f28c37c20941a6c678506cbc136946e9ff100123aa43846eab7765af074de94dfdd23f4ce2242c794 + languageName: node + linkType: hard + "@polkadot/x-textencoder@npm:12.3.2": version: 12.3.2 resolution: "@polkadot/x-textencoder@npm:12.3.2" @@ -2279,6 +2684,16 @@ __metadata: languageName: node linkType: hard +"@polkadot/x-textencoder@npm:12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-textencoder@npm:12.5.1" + dependencies: + "@polkadot/x-global": 12.5.1 + tslib: ^2.6.2 + checksum: 7a8d99d203cbd9537e55405d737667ae8cd9ad40a9e3de52f2ef7580a23d27ebf7f7c52da4e0eca6ca34dc97aae33a97bab36afb54aaa7714f54a31931f94113 + languageName: node + linkType: hard + "@polkadot/x-ws@npm:^12.3.1": version: 12.3.2 resolution: "@polkadot/x-ws@npm:12.3.2" @@ -2290,6 +2705,17 @@ __metadata: languageName: node linkType: hard +"@polkadot/x-ws@npm:^12.5.1": + version: 12.5.1 + resolution: "@polkadot/x-ws@npm:12.5.1" + dependencies: + "@polkadot/x-global": 12.5.1 + tslib: ^2.6.2 + 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" @@ -2297,6 +2723,13 @@ __metadata: languageName: node linkType: hard +"@scure/base@npm:^1.1.3": + version: 1.1.3 + resolution: "@scure/base@npm:1.1.3" + checksum: 1606ab8a4db898cb3a1ada16c15437c3bce4e25854fadc8eb03ae93cbbbac1ed90655af4b0be3da37e12056fef11c0374499f69b9e658c9e5b7b3e06353c630c + languageName: node + linkType: hard + "@sinonjs/commons@npm:^2.0.0": version: 2.0.0 resolution: "@sinonjs/commons@npm:2.0.0" @@ -2360,6 +2793,16 @@ __metadata: languageName: node linkType: hard +"@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 + smoldot: 2.0.1 + checksum: b4cfb86bef46450b6635e7dbf1eb133603c6ad8c955046e72fc67aaf36b1fe5f2aeeb521f4b1ea0a1eea9ac4c49b0f6417c24eb1320e8da13cc0d3efd7ee4cd7 + languageName: node + linkType: hard + "@substrate/ss58-registry@npm:^1.40.0": version: 1.41.0 resolution: "@substrate/ss58-registry@npm:1.41.0" @@ -2367,33 +2810,40 @@ __metadata: languageName: node linkType: hard -"@substrate/txwrapper-core@npm:7.0.1, @substrate/txwrapper-core@npm:^7.0.1": - version: 7.0.1 - resolution: "@substrate/txwrapper-core@npm:7.0.1" +"@substrate/ss58-registry@npm:^1.43.0": + version: 1.43.0 + resolution: "@substrate/ss58-registry@npm:1.43.0" + checksum: b2ecfd7365b946be2db7e2c5fa1f9136ff840bb2b8e6ffac0f48cd83f01a95c8a0fee1bb744255591bfc1f76766cd834182cde8cbd96e7849549d189c5812b3c + languageName: node + linkType: hard + +"@substrate/txwrapper-core@npm:7.1.1, @substrate/txwrapper-core@npm:^7.1.1": + version: 7.1.1 + resolution: "@substrate/txwrapper-core@npm:7.1.1" dependencies: - "@polkadot/api": ^10.7.1 - "@polkadot/keyring": ^12.2.1 + "@polkadot/api": ^10.10.1 + "@polkadot/keyring": ^12.5.1 memoizee: 0.4.15 - checksum: 4aca23cab62951b16947f60336687478ff279c80a0245182772069e45fee83f75fa35140f1ca0f30f9df9f4ba2b0f66de362a6ff633f1e31c4c5b9b04878aa9a + checksum: 1e9ef44885eba2e90d9ed32491db4769a0214a56872e81518750976a10229feb9e43191220f6f440e6c1ba2bdcdcdc8366819870be4d56aa88864562d3c4be42 languageName: node linkType: hard -"@substrate/txwrapper-polkadot@npm:7.0.1": - version: 7.0.1 - resolution: "@substrate/txwrapper-polkadot@npm:7.0.1" +"@substrate/txwrapper-polkadot@npm:7.1.1": + version: 7.1.1 + resolution: "@substrate/txwrapper-polkadot@npm:7.1.1" dependencies: - "@substrate/txwrapper-core": ^7.0.1 - "@substrate/txwrapper-substrate": ^7.0.1 - checksum: 1ed757aabb027c2a8e7bf40763c7600a5c97924bd886a967e545a63bbfaa3fdfb485c6f1b08c7cd1bb95f7dc528f6032a4498cc56dc062a9dbd822ca0dfe44f5 + "@substrate/txwrapper-core": ^7.1.1 + "@substrate/txwrapper-substrate": ^7.1.1 + checksum: 82637811aa30e6179bc02c4855759752ba18d8171148dcae118442b77980fe225dc9995328e6eca79da2c2793f20d5f466766db80edde78d3a13d4b121c8fecc languageName: node linkType: hard -"@substrate/txwrapper-substrate@npm:^7.0.1": - version: 7.0.1 - resolution: "@substrate/txwrapper-substrate@npm:7.0.1" +"@substrate/txwrapper-substrate@npm:^7.1.1": + version: 7.1.1 + resolution: "@substrate/txwrapper-substrate@npm:7.1.1" dependencies: - "@substrate/txwrapper-core": ^7.0.1 - checksum: 39efeed4e3417753539c65d4c8ab2a3ef14d7968423e22f3969444b9304ddef5c1e0bd09296f0e25279f36809a558cb843ae7f98bb95f4ee366a8c8b8551ba47 + "@substrate/txwrapper-core": ^7.1.1 + checksum: 77b42ebc0907a8a33ae72af166c1f0c7f78f55382a3f9771f55fe0e998ff87387ed7b99ccec00b6dd4037277b7046c592fa89d3682ce5b67b40b9b004a91a981 languageName: node linkType: hard @@ -5947,6 +6397,13 @@ __metadata: languageName: node linkType: hard +"mock-socket@npm:^9.3.1": + version: 9.3.1 + resolution: "mock-socket@npm:9.3.1" + checksum: cb2dde4fc5dde280dd5ccb78eaaa223382ee16437f46b86558017655584ad08c22e733bde2dd5cc86927def506b6caeb0147e3167b9a62d70d5cf19d44103853 + languageName: node + linkType: hard + "ms@npm:2.0.0": version: 2.0.0 resolution: "ms@npm:2.0.0" @@ -6045,6 +6502,17 @@ __metadata: languageName: node linkType: hard +"nock@npm:^13.3.4": + version: 13.3.7 + resolution: "nock@npm:13.3.7" + dependencies: + debug: ^4.1.0 + json-stringify-safe: ^5.0.1 + propagate: ^2.0.0 + checksum: 837db0755208781000ec7d8cf5e28eaedae31e9a06829961621a6b14be710e2c3bfa6104dc638828ff4455d603d0e3639cfd2e61dce6015c0fd8108eb8c4b75a + languageName: node + linkType: hard + "node-domexception@npm:^1.0.0": version: 1.0.0 resolution: "node-domexception@npm:1.0.0" @@ -6066,7 +6534,7 @@ __metadata: languageName: node linkType: hard -"node-fetch@npm:^3.3.1": +"node-fetch@npm:^3.3.1, node-fetch@npm:^3.3.2": version: 3.3.2 resolution: "node-fetch@npm:3.3.2" dependencies: @@ -6781,12 +7249,12 @@ __metadata: version: 0.0.0-use.local resolution: "rosetta-api@workspace:server" dependencies: - "@polkadot/api": ^10.9.1 - "@polkadot/types": ^10.9.1 - "@polkadot/types-codec": ^10.9.1 - "@polkadot/util": ^12.2.1 - "@substrate/txwrapper-core": 7.0.1 - "@substrate/txwrapper-polkadot": 7.0.1 + "@polkadot/api": 10.10.1 + "@polkadot/types": 10.10.1 + "@polkadot/types-codec": 10.10.1 + "@polkadot/util": 12.5.1 + "@substrate/txwrapper-core": 7.1.1 + "@substrate/txwrapper-polkadot": 7.1.1 "@typescript-eslint/eslint-plugin": latest "@typescript-eslint/parser": ^6.2.0 axios: ^1.4.0 @@ -7122,6 +7590,15 @@ __metadata: languageName: node linkType: hard +"smoldot@npm:2.0.1": + version: 2.0.1 + resolution: "smoldot@npm:2.0.1" + dependencies: + ws: ^8.8.1 + checksum: 77c1f541d039fe740157e9b81e2b13fc72dabe3ffd75644ee9958aee48d5c5458b6cc974d1e9233b1bcf3fde7af42a53a0e48452b6657405c64158a0c8168eee + languageName: node + linkType: hard + "socks-proxy-agent@npm:^7.0.0": version: 7.0.0 resolution: "socks-proxy-agent@npm:7.0.0" @@ -7517,6 +7994,13 @@ __metadata: languageName: node linkType: hard +"tslib@npm:^2.6.1, tslib@npm:^2.6.2": + version: 2.6.2 + resolution: "tslib@npm:2.6.2" + checksum: 329ea56123005922f39642318e3d1f0f8265d1e7fcb92c633e0809521da75eeaca28d2cf96d7248229deb40e5c19adf408259f4b9640afd20d13aecc1430f3ad + languageName: node + linkType: hard + "type-check@npm:^0.4.0, type-check@npm:~0.4.0": version: 0.4.0 resolution: "type-check@npm:0.4.0" @@ -7915,6 +8399,21 @@ __metadata: languageName: node linkType: hard +"ws@npm:^8.14.1": + version: 8.14.2 + resolution: "ws@npm:8.14.2" + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ">=5.0.2" + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + checksum: 3ca0dad26e8cc6515ff392b622a1467430814c463b3368b0258e33696b1d4bed7510bc7030f7b72838b9fdeb8dbd8839cbf808367d6aae2e1d668ce741d4308b + languageName: node + linkType: hard + "xtend@npm:^4.0.0": version: 4.0.2 resolution: "xtend@npm:4.0.2"