From 3bd46e1f693c8738d011e55fde6cef1d524879fa Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 7 Nov 2021 14:41:00 +0530 Subject: [PATCH 1/9] Bump @polkadot/api from 4.16.2 to 6.6.1 (#48) Bumps [@polkadot/api](https://github.com/polkadot-js/api/tree/HEAD/packages/api) from 4.16.2 to 6.6.1. - [Release notes](https://github.com/polkadot-js/api/releases) - [Changelog](https://github.com/polkadot-js/api/blob/master/CHANGELOG.md) - [Commits](https://github.com/polkadot-js/api/commits/v6.6.1/packages/api) --- updated-dependencies: - dependency-name: "@polkadot/api" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 429 +++++++++++++++++++++++----------------------- package.json | 2 +- 2 files changed, 218 insertions(+), 213 deletions(-) diff --git a/package-lock.json b/package-lock.json index aa5a051..e7b79af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,156 +5,142 @@ "requires": true, "dependencies": { "@babel/runtime": { - "version": "7.14.6", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.14.6.tgz", - "integrity": "sha512-/PCB2uJ7oM44tz8YhC4Z/6PeOKXp4K588f+5M3clr1M4zbqztlo0XEfJ2LEzj/FgwfgGcIdl8n7YYjTCI0BYwg==", + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.0.tgz", + "integrity": "sha512-Nht8L0O8YCktmsDV6FqFue7vQLRx3Hb0B37lS5y0jDRqRxlBG4wIJHnf9/bgSE2UyipKFA01YtS+npRdTWBUyw==", "requires": { "regenerator-runtime": "^0.13.4" } }, "@polkadot/api": { - "version": "4.16.2", - "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-4.16.2.tgz", - "integrity": "sha512-x+fWc7mE3ZuGxoFCTf/Tnv0z7rDTM198M9LnWUJdadyNT3QAtE+Cjgo1bCrroTnuD3whd0jhFLfLQCwz95RrwA==", - "requires": { - "@babel/runtime": "^7.14.6", - "@polkadot/api-derive": "4.16.2", - "@polkadot/keyring": "^6.10.1", - "@polkadot/metadata": "4.16.2", - "@polkadot/rpc-core": "4.16.2", - "@polkadot/rpc-provider": "4.16.2", - "@polkadot/types": "4.16.2", - "@polkadot/types-known": "4.16.2", - "@polkadot/util": "^6.10.1", - "@polkadot/util-crypto": "^6.10.1", - "@polkadot/x-rxjs": "^6.10.1", - "eventemitter3": "^4.0.7" + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-6.6.1.tgz", + "integrity": "sha512-Nz0P/C6b1d2Ma/ytoTOj33SuiPuTZMq6XwSMI7H9JBXWkDw/3V1oGbH+60y2XMj5+b73LazNWT5Lq1y/P/N7rw==", + "requires": { + "@babel/runtime": "^7.15.4", + "@polkadot/api-derive": "6.6.1", + "@polkadot/keyring": "^7.7.1", + "@polkadot/rpc-core": "6.6.1", + "@polkadot/rpc-provider": "6.6.1", + "@polkadot/types": "6.6.1", + "@polkadot/types-known": "6.6.1", + "@polkadot/util": "^7.7.1", + "@polkadot/util-crypto": "^7.7.1", + "eventemitter3": "^4.0.7", + "rxjs": "^7.4.0" } }, "@polkadot/api-derive": { - "version": "4.16.2", - "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-4.16.2.tgz", - "integrity": "sha512-xRAIGoeULK+E7uep5D0eDUN6m0KcMV4eOPkmvyfp7ndxfaf94ydfEOw+QemrnT1T/chA/qq96EYvuBe3lv5w1Q==", + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-6.6.1.tgz", + "integrity": "sha512-oP2mSJI/vJT7/yOVTTXcsAqOST/O5xqqn0ZNYe0lBrltXNpkroEERNDfwyDI1mQUI5YWkbtU6ysZbxYTzIiF3w==", "requires": { - "@babel/runtime": "^7.14.6", - "@polkadot/api": "4.16.2", - "@polkadot/rpc-core": "4.16.2", - "@polkadot/types": "4.16.2", - "@polkadot/util": "^6.10.1", - "@polkadot/util-crypto": "^6.10.1", - "@polkadot/x-rxjs": "^6.10.1" + "@babel/runtime": "^7.15.4", + "@polkadot/api": "6.6.1", + "@polkadot/rpc-core": "6.6.1", + "@polkadot/types": "6.6.1", + "@polkadot/util": "^7.7.1", + "@polkadot/util-crypto": "^7.7.1", + "rxjs": "^7.4.0" } }, "@polkadot/keyring": { - "version": "6.10.1", - "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-6.10.1.tgz", - "integrity": "sha512-Mul4HWXanqfloe9YehuGYP50grRGVMmdcoJGMCvvbRIWhKcf5xgDyjN7/9JVtPgXu+wFjYcOztJ8YcFf+QZB/w==", - "requires": { - "@babel/runtime": "^7.14.6", - "@polkadot/util": "6.10.1", - "@polkadot/util-crypto": "6.10.1" - } - }, - "@polkadot/metadata": { - "version": "4.16.2", - "resolved": "https://registry.npmjs.org/@polkadot/metadata/-/metadata-4.16.2.tgz", - "integrity": "sha512-wx5DwAxV8zEDQzgdeDFRRlDb89CqmgY/eKusvMgzRuLG5Z4Hu4jxQ6LnBsjVmA70BBhgs+uAuJ7mzY76OO4wDw==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-7.7.1.tgz", + "integrity": "sha512-MzdwUeR5BjqEqSnW1SVg1mMaUPkirGcLd60vsp187qf/y9IaI+ZinkeP50d/GxldRobNL/bOdiOuV3bSulUvSQ==", "requires": { - "@babel/runtime": "^7.14.6", - "@polkadot/types": "4.16.2", - "@polkadot/types-known": "4.16.2", - "@polkadot/util": "^6.10.1", - "@polkadot/util-crypto": "^6.10.1" + "@babel/runtime": "^7.15.4", + "@polkadot/util": "7.7.1", + "@polkadot/util-crypto": "7.7.1" } }, "@polkadot/networks": { - "version": "6.10.1", - "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-6.10.1.tgz", - "integrity": "sha512-/zJMryxivseJ0gJ1nmYKpUWE3eIH5TaMMCyGFM7XvyaYpBmRxLWDYDrwxINJXTxKj6iBHKKB0ylQ8BXgCokSIg==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-7.7.1.tgz", + "integrity": "sha512-ghUA9jd+12lfbKclPIxRQBmvfd1+BoECr5C8t+2rfM5plE+1f1Ucdrpz9wQ362+WNlnP4q1u9yB1zQlFM+K6yQ==", "requires": { - "@babel/runtime": "^7.14.6" + "@babel/runtime": "^7.15.4" } }, "@polkadot/rpc-core": { - "version": "4.16.2", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-4.16.2.tgz", - "integrity": "sha512-NAMkN5rtccLL7G0aeMqxx/R38exkJ/xVNEZh9Y/okw8w0iOCnZk72ge9ABkd/SJbLxm6l+5c87cTXUK77r1zTQ==", + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-6.6.1.tgz", + "integrity": "sha512-gkisBehhlDuapXmQUut7seNBk3AuAfYjB1JvnphlgvF6V3ShyZD2Y19VCWmwqUXFkgsNCpYrmKYkngXUN1rvAQ==", "requires": { - "@babel/runtime": "^7.14.6", - "@polkadot/metadata": "4.16.2", - "@polkadot/rpc-provider": "4.16.2", - "@polkadot/types": "4.16.2", - "@polkadot/util": "^6.10.1", - "@polkadot/x-rxjs": "^6.10.1" + "@babel/runtime": "^7.15.4", + "@polkadot/rpc-provider": "6.6.1", + "@polkadot/types": "6.6.1", + "@polkadot/util": "^7.7.1", + "rxjs": "^7.4.0" } }, "@polkadot/rpc-provider": { - "version": "4.16.2", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-4.16.2.tgz", - "integrity": "sha512-aAq3mHkgHziQrZQdNuxGSrkKKksA8Kk0N8WWsW1DZOkjt7rlF3vdmCguHTPlOzO4NHmeDsGVlGGBzjOza8QNbA==", - "requires": { - "@babel/runtime": "^7.14.6", - "@polkadot/types": "4.16.2", - "@polkadot/util": "^6.10.1", - "@polkadot/util-crypto": "^6.10.1", - "@polkadot/x-fetch": "^6.10.1", - "@polkadot/x-global": "^6.10.1", - "@polkadot/x-ws": "^6.10.1", + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-6.6.1.tgz", + "integrity": "sha512-mkuqPvq9YfxPkxxevAqijdRpK7kdkTOJjRxoWHZMBAhrTBulCkYAHRZPcHUYXBYANcd9rl7BVzktb5cWcDg5zA==", + "requires": { + "@babel/runtime": "^7.15.4", + "@polkadot/types": "6.6.1", + "@polkadot/util": "^7.7.1", + "@polkadot/util-crypto": "^7.7.1", + "@polkadot/x-fetch": "^7.7.1", + "@polkadot/x-global": "^7.7.1", + "@polkadot/x-ws": "^7.7.1", "eventemitter3": "^4.0.7" } }, "@polkadot/types": { - "version": "4.16.2", - "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-4.16.2.tgz", - "integrity": "sha512-JSIvVKIBhRHCswDPYMoy4TLvR9O1NT5mqyIBoLjNKur0WShLk1jVtiyKbU+2/AuCbM1nehiWagmAlWmMFNaDMw==", + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-6.6.1.tgz", + "integrity": "sha512-36zLL4OyYnRQWRNBgvxL3o5kLoGmYRZD7+gyQmtagxP5PbRFTkC425UloF42bn6VsRyIU2lAv+2ruXSIzjQYjA==", "requires": { - "@babel/runtime": "^7.14.6", - "@polkadot/metadata": "4.16.2", - "@polkadot/util": "^6.10.1", - "@polkadot/util-crypto": "^6.10.1", - "@polkadot/x-rxjs": "^6.10.1" + "@babel/runtime": "^7.15.4", + "@polkadot/util": "^7.7.1", + "@polkadot/util-crypto": "^7.7.1", + "rxjs": "^7.4.0" } }, "@polkadot/types-known": { - "version": "4.16.2", - "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-4.16.2.tgz", - "integrity": "sha512-ydeS1SnO25O//TThzUBYjthCOH3h70j1IRVQ+CPVhVbZJoMRr47hIysFTBjyxyKVTQtj20vniZV8+qq6oiWggA==", + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-6.6.1.tgz", + "integrity": "sha512-JKZasgvTU5JkbfyjVpPwyMMStGFWPtVTAE+LPHaQ9fILCCMq8iW+8yGH3wGo77YRUPehorAHIQX4JOV9QL5oIQ==", "requires": { - "@babel/runtime": "^7.14.6", - "@polkadot/networks": "^6.10.1", - "@polkadot/types": "4.16.2", - "@polkadot/util": "^6.10.1" + "@babel/runtime": "^7.15.4", + "@polkadot/networks": "^7.7.1", + "@polkadot/types": "6.6.1", + "@polkadot/util": "^7.7.1" } }, "@polkadot/util": { - "version": "6.10.1", - "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-6.10.1.tgz", - "integrity": "sha512-8ubR7YtB2YLGreeU1JkCZa3bNEVx5dM4PZIa2Tb6kVJDhHQ0UC9fA6A+4W3/v1uMycFfbU2KtSa0EuyEr1ZCNw==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-7.7.1.tgz", + "integrity": "sha512-REw11iHZKUm7GeC7Ktx1HguT9y76mbmiVtZJyNXpUTDKmfm6z+SMqs3pOCL/rvzqm+6M3ag6ffRrlzTTgh0HAg==", "requires": { - "@babel/runtime": "^7.14.6", - "@polkadot/x-textdecoder": "6.10.1", - "@polkadot/x-textencoder": "6.10.1", + "@babel/runtime": "^7.15.4", + "@polkadot/x-textdecoder": "7.7.1", + "@polkadot/x-textencoder": "7.7.1", "@types/bn.js": "^4.11.6", - "bn.js": "^4.11.9", - "camelcase": "^5.3.1", + "bn.js": "^4.12.0", + "camelcase": "^6.2.0", "ip-regex": "^4.3.0" } }, "@polkadot/util-crypto": { - "version": "6.10.1", - "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-6.10.1.tgz", - "integrity": "sha512-mwUGdPLgT6rc3PQz0g/3MkP/DmUsN2p4eIgiE+4YPESzA3EHNAfVCGKGgS8jKJdkLy3JgW+50tSxdXmK4D6lkQ==", - "requires": { - "@babel/runtime": "^7.14.6", - "@polkadot/networks": "6.10.1", - "@polkadot/util": "6.10.1", - "@polkadot/wasm-crypto": "^4.0.2", - "@polkadot/x-randomvalues": "6.10.1", - "base-x": "^3.0.8", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-7.7.1.tgz", + "integrity": "sha512-K269URC/ofbYM1vFSIVLbuRi4Z+9bMdyJQ1k+59+jx0VwYu50l9vzNhFO8WMGoBZ6eDzqQkeWj7usCTKlU9xUw==", + "requires": { + "@babel/runtime": "^7.15.4", + "@polkadot/networks": "7.7.1", + "@polkadot/util": "7.7.1", + "@polkadot/wasm-crypto": "^4.2.1", + "@polkadot/x-randomvalues": "7.7.1", + "base-x": "^3.0.9", "base64-js": "^1.5.1", "blakejs": "^1.1.1", - "bn.js": "^4.11.9", + "bn.js": "^4.12.0", "create-hash": "^1.2.0", + "ed2curve": "^0.3.0", "elliptic": "^6.5.4", "hash.js": "^1.1.7", "js-sha3": "^0.8.0", @@ -164,96 +150,85 @@ } }, "@polkadot/wasm-crypto": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto/-/wasm-crypto-4.0.2.tgz", - "integrity": "sha512-2h9FuQFkBc+B3TwSapt6LtyPvgtd0Hq9QsHW8g8FrmKBFRiiFKYRpfJKHCk0aCZzuRf9h95bQl/X6IXAIWF2ng==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto/-/wasm-crypto-4.2.1.tgz", + "integrity": "sha512-C/A/QnemOilRTLnM0LfhPY2N/x3ZFd1ihm9sXYyuh98CxtekSVYI9h4IJ5Jrgz5imSUHgvt9oJLqJ5GbWQV/Zg==", "requires": { - "@babel/runtime": "^7.13.9", - "@polkadot/wasm-crypto-asmjs": "^4.0.2", - "@polkadot/wasm-crypto-wasm": "^4.0.2" + "@babel/runtime": "^7.15.3", + "@polkadot/wasm-crypto-asmjs": "^4.2.1", + "@polkadot/wasm-crypto-wasm": "^4.2.1" } }, "@polkadot/wasm-crypto-asmjs": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-4.0.2.tgz", - "integrity": "sha512-hlebqtGvfjg2ZNm4scwBGVHwOwfUhy2yw5RBHmPwkccUif3sIy4SAzstpcVBIVMdAEvo746bPWEInA8zJRcgJA==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-4.2.1.tgz", + "integrity": "sha512-ON9EBpTNDCI3QRUmuQJIegYoAcwvxDaNNA7uwKTaEEStu8LjCIbQxbt4WbOBYWI0PoUpl4iIluXdT3XZ3V3jXA==", "requires": { - "@babel/runtime": "^7.13.9" + "@babel/runtime": "^7.15.3" } }, "@polkadot/wasm-crypto-wasm": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-4.0.2.tgz", - "integrity": "sha512-de/AfNPZ0uDKFWzOZ1rJCtaUbakGN29ks6IRYu6HZTRg7+RtqvE1rIkxabBvYgQVHIesmNwvEA9DlIkS6hYRFQ==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-4.2.1.tgz", + "integrity": "sha512-Rs2CKiR4D+2hKzmKBfPNYxcd2E8NfLWia0av4fgicjT9YsWIWOGQUi9AtSOfazPOR9FrjxKJy+chQxAkcfKMnQ==", "requires": { - "@babel/runtime": "^7.13.9" + "@babel/runtime": "^7.15.3" } }, "@polkadot/x-fetch": { - "version": "6.10.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-6.10.1.tgz", - "integrity": "sha512-m6W7aB6s9v2IJZM/EWqkKmH7p1FqKI0Z06I2DRGwYRptKFnrvvkNlitTNB64Om4e+BGq3FouUSz1Ycrvcre7mg==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-7.7.1.tgz", + "integrity": "sha512-0ocN1CSwDHXRzz2yUAaoDH0VrOg3Kmx0nAW05wZdoMfvU9vEiJHhTT/c27pss3dsbEs334PWL5QbcTzYiQvDVQ==", "requires": { - "@babel/runtime": "^7.14.6", - "@polkadot/x-global": "6.10.1", - "@types/node-fetch": "^2.5.10", - "node-fetch": "^2.6.1" + "@babel/runtime": "^7.15.4", + "@polkadot/x-global": "7.7.1", + "@types/node-fetch": "^2.5.12", + "node-fetch": "^2.6.5" } }, "@polkadot/x-global": { - "version": "6.10.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-6.10.1.tgz", - "integrity": "sha512-PqyDIB7QR1MYKh0Yk96DSnHuEMRncpVai3g/4nAPKqDJq+AX/3YNtLZMbxMINVmZA+5MmCy/i+agCKNxjzWodQ==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-7.7.1.tgz", + "integrity": "sha512-S7MYqEtcfMgWA64qR09Z8O3zbaRyyW1y2qtvn04dexPesuEPOw2W5+WBHss8UAI/aVxjlG+d2D3OlYUr+IOO9Q==", "requires": { - "@babel/runtime": "^7.14.6", - "@types/node-fetch": "^2.5.10", - "node-fetch": "^2.6.1" + "@babel/runtime": "^7.15.4" } }, "@polkadot/x-randomvalues": { - "version": "6.10.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-6.10.1.tgz", - "integrity": "sha512-jBp9Yrq0/tH3MxX+18A5800nq+5oE8jK2EMpelMsdErByfBhael+fyKDgUkNqPAaP1qtZV+otHTb4wpizBJxZg==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-7.7.1.tgz", + "integrity": "sha512-dFhxei2TP3cWepfITDSq6eaBbdsP8TPBQagincqJynt5EaU0pzQ5psMBMJ/rAYy194oEpg0ED16XK/iFdZ42rA==", "requires": { - "@babel/runtime": "^7.14.6", - "@polkadot/x-global": "6.10.1" - } - }, - "@polkadot/x-rxjs": { - "version": "6.10.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-rxjs/-/x-rxjs-6.10.1.tgz", - "integrity": "sha512-MueJiAsYosppdBzMkncj8Wu6wvC+5+fqqz7zS31bAdog6lt2e6Zqglm5KUd3S3d++CIO9UJOvXicz+GsDqBWqQ==", - "requires": { - "@babel/runtime": "^7.14.6", - "rxjs": "^6.6.7" + "@babel/runtime": "^7.15.4", + "@polkadot/x-global": "7.7.1" } }, "@polkadot/x-textdecoder": { - "version": "6.10.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-6.10.1.tgz", - "integrity": "sha512-91YIwALnNxZMwbx4SApTB+OQbrkLBOJ4/1CqeBBGmphWJEPI/CwTwGScz/NyS21aDDAqGFPf7X3YRwV44mXONw==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-7.7.1.tgz", + "integrity": "sha512-2+kYLVxjdtbuxcIDMdEiBK+GvCs/M8QdKVmTGLTb47PphSeiMKLu8qjy1ygBJeaFeQOZxIj1f8IJ5ICI9TlVcA==", "requires": { - "@babel/runtime": "^7.14.6", - "@polkadot/x-global": "6.10.1" + "@babel/runtime": "^7.15.4", + "@polkadot/x-global": "7.7.1" } }, "@polkadot/x-textencoder": { - "version": "6.10.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-6.10.1.tgz", - "integrity": "sha512-RbudhnJWzw0/GIAfn4WBoGdnUuy+8KnBthUUHb71ONPSUTIRwAg6LOMZyDGLQxKl8z/qJK3txXanjAsmGBg6ig==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-7.7.1.tgz", + "integrity": "sha512-pRTG7F6EYilkbkyxfWOV1LXCVohcVnFPVfPvGydHsDJ3kGZ4n+L9PuJ+t3WKwd6tirEDUIBGe2eNEl/arcWzTw==", "requires": { - "@babel/runtime": "^7.14.6", - "@polkadot/x-global": "6.10.1" + "@babel/runtime": "^7.15.4", + "@polkadot/x-global": "7.7.1" } }, "@polkadot/x-ws": { - "version": "6.10.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-6.10.1.tgz", - "integrity": "sha512-UM+agC7OvU9wkNeqIUlc7AG7dB17D64u3Qp/470NR6sg89h+Grxdk6PiyeFkc15zjYjVe2W9Fc4HiKaB7a2MBQ==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-7.7.1.tgz", + "integrity": "sha512-P1ZBuPvTX+H6pBiIkPjgygIw4GsekicoAE2ew5R1s/WE4uS0YjiO+QTwkaaB1fNqk2fBRSI+eDHOGiGmr5MM2Q==", "requires": { - "@babel/runtime": "^7.14.6", - "@polkadot/x-global": "6.10.1", - "@types/websocket": "^1.0.2", + "@babel/runtime": "^7.15.4", + "@polkadot/x-global": "7.7.1", + "@types/websocket": "^1.0.4", "websocket": "^1.0.34" } }, @@ -266,23 +241,23 @@ } }, "@types/node": { - "version": "15.12.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-15.12.5.tgz", - "integrity": "sha512-se3yX7UHv5Bscf8f1ERKvQOD6sTyycH3hdaoozvaLxgUiY5lIGEeH37AD0G0Qi9kPqihPn0HOfd2yaIEN9VwEg==" + "version": "16.11.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.6.tgz", + "integrity": "sha512-ua7PgUoeQFjmWPcoo9khiPum3Pd60k4/2ZGXt18sm2Slk0W0xZTqt5Y0Ny1NyBiN1EVQ/+FaF9NcY4Qe6rwk5w==" }, "@types/node-fetch": { - "version": "2.5.10", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.5.10.tgz", - "integrity": "sha512-IpkX0AasN44hgEad0gEF/V6EgR5n69VEqPEgnmoM8GsIGro3PowbWs4tR6IhxUTyPLpOn+fiGG6nrQhcmoCuIQ==", + "version": "2.5.12", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.5.12.tgz", + "integrity": "sha512-MKgC4dlq4kKNa/mYrwpKfzQMB5X3ee5U6fSprkKpToBqBmX4nFZL9cW5jl6sWn+xpRJ7ypWh2yyqqr8UUCstSw==", "requires": { "@types/node": "*", "form-data": "^3.0.0" } }, "@types/websocket": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@types/websocket/-/websocket-1.0.2.tgz", - "integrity": "sha512-B5m9aq7cbbD/5/jThEr33nUY8WEfVi6A2YKCTOvw5Ldy7mtsOkqRvGjnzy6g7iMMDsgu7xREuCzqATLDLQVKcQ==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@types/websocket/-/websocket-1.0.4.tgz", + "integrity": "sha512-qn1LkcFEKK8RPp459jkjzsfpbsx36BBt3oC3pITYtkoBw/aVX+EZFa5j3ThCRTNpLFvIMr5dSTD4RaMdilIOpA==", "requires": { "@types/node": "*" } @@ -306,9 +281,9 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "base-x": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.8.tgz", - "integrity": "sha512-Rl/1AWP4J/zRrk54hhlxH4drNxPJXYUaKffODVI53/dAsV4t9fBxyxYKAVPU1XBHxYwOWP9h9H0hM2MVw4YfJA==", + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", + "integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==", "requires": { "safe-buffer": "^5.0.1" } @@ -334,17 +309,17 @@ "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=" }, "bufferutil": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.3.tgz", - "integrity": "sha512-yEYTwGndELGvfXsImMBLop58eaGW+YdONi1fNjTINSY98tmMmFijBG6WXgdkfuLNt4imzQNtIE+eBp1PVpMCSw==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.5.tgz", + "integrity": "sha512-HTm14iMQKK2FjFLRTM5lAVcyaUzOnqbPtesFIvREgXpJHdQm8bWS+GkQgIkfaBYRHuCnea7w8UVNfwiAQhlr9A==", "requires": { - "node-gyp-build": "^4.2.0" + "node-gyp-build": "^4.3.0" } }, "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz", + "integrity": "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==" }, "chalk": { "version": "4.1.1", @@ -443,6 +418,14 @@ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==" }, + "ed2curve": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/ed2curve/-/ed2curve-0.3.0.tgz", + "integrity": "sha512-8w2fmmq3hv9rCrcI7g9hms2pMunQr1JINfcjwR9tAyZqhtyaMN991lF/ZfHfr5tzZQ8c7y7aBgZbjfbd0fjFwQ==", + "requires": { + "tweetnacl": "1.x.x" + } + }, "elliptic": { "version": "6.5.4", "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", @@ -497,11 +480,11 @@ "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" }, "ext": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/ext/-/ext-1.4.0.tgz", - "integrity": "sha512-Key5NIsUxdqKg3vIsdw9dSuXpPCQ297y6wBjL30edxwPgt2E44WcWBZey/ZvUc6sERLTxKdyCu4gZFmUbk1Q7A==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/ext/-/ext-1.6.0.tgz", + "integrity": "sha512-sdBImtzkq2HpkdRLtlLWDa6w4DX22ijZLKx8BMPUuKe1c5lbN6xwQDQCxSfxBQnHZ13ls/FH0MQZx/q/gr6FQg==", "requires": { - "type": "^2.0.0" + "type": "^2.5.0" }, "dependencies": { "type": { @@ -591,16 +574,16 @@ } }, "mime-db": { - "version": "1.48.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.48.0.tgz", - "integrity": "sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ==" + "version": "1.50.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.50.0.tgz", + "integrity": "sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A==" }, "mime-types": { - "version": "2.1.31", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.31.tgz", - "integrity": "sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==", + "version": "2.1.33", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.33.tgz", + "integrity": "sha512-plLElXp7pRDd0bNZHw+nMd52vRYjLwQjygaNg7ddJ2uJtTlmnTCjWuPKxVu6//AdaRuME84SvLW91sIkBqGT0g==", "requires": { - "mime-db": "1.48.0" + "mime-db": "1.50.0" } }, "minimalistic-assert": { @@ -624,14 +607,17 @@ "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=" }, "node-fetch": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", - "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" + "version": "2.6.6", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.6.tgz", + "integrity": "sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==", + "requires": { + "whatwg-url": "^5.0.0" + } }, "node-gyp-build": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.2.3.tgz", - "integrity": "sha512-MN6ZpzmfNCRM+3t57PTJHgHyw/h4OWnZ6mR8P5j/uZtqQr46RRuDE/P+g3n0YR/AiYXeWixZZzaip77gdICfRg==" + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.3.0.tgz", + "integrity": "sha512-iWjXZvmboq0ja1pUGULQBexmxq8CV4xBhX7VDOTbL7ZR4FOowwY/VOtRxBN/yKxmdGoIp4j5ysNT4u3S2pDQ3Q==" }, "readable-stream": { "version": "3.6.0", @@ -644,9 +630,9 @@ } }, "regenerator-runtime": { - "version": "0.13.7", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz", - "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==" + "version": "0.13.9", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", + "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==" }, "ripemd160": { "version": "2.0.2", @@ -658,11 +644,11 @@ } }, "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.4.0.tgz", + "integrity": "sha512-7SQDi7xeTMCJpqViXh8gL/lebcwlp3d831F05+9B44A4B0WfsEwUQHR64gsH1kvJ+Ep/J9K2+n1hVl1CsGN23w==", "requires": { - "tslib": "^1.9.0" + "tslib": "~2.1.0" } }, "safe-buffer": { @@ -718,10 +704,15 @@ "has-flag": "^4.0.0" } }, + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" + }, "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", + "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" }, "tweetnacl": { "version": "1.0.3", @@ -742,11 +733,11 @@ } }, "utf-8-validate": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.5.tgz", - "integrity": "sha512-+pnxRYsS/axEpkrrEpzYfNZGXp0IjC/9RIxwM5gntY4Koi8SHmUGSfxfWqxZdRxrtaoVstuOzUp/rbs3JSPELQ==", + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.7.tgz", + "integrity": "sha512-vLt1O5Pp+flcArHGIyKEQq883nBt8nN8tVBcoL0qUXj2XT1n7p70yGIq2VK98I5FdZ1YHc0wk/koOnHjnXWk1Q==", "requires": { - "node-gyp-build": "^4.2.0" + "node-gyp-build": "^4.3.0" } }, "util-deprecate": { @@ -754,6 +745,11 @@ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" }, + "webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" + }, "websocket": { "version": "1.0.34", "resolved": "https://registry.npmjs.org/websocket/-/websocket-1.0.34.tgz", @@ -767,6 +763,15 @@ "yaeti": "^0.0.6" } }, + "whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "xxhashjs": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/xxhashjs/-/xxhashjs-0.2.2.tgz", diff --git a/package.json b/package.json index 0020f26..376a9a1 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "homepage": "https://github.com/maxsam4/fork-off-substrate#readme", "dependencies": { - "@polkadot/api": "^4.16.2", + "@polkadot/api": "^6.6.1", "chalk": "^4.1.1", "cli-progress": "^3.9.0", "dotenv": "^10.0.0" From fd1aedba8697bc635e0734cbde5933573210ee4a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 7 Nov 2021 14:41:13 +0530 Subject: [PATCH 2/9] Bump cli-progress from 3.9.0 to 3.9.1 (#37) Bumps [cli-progress](https://github.com/npkgz/cli-progress) from 3.9.0 to 3.9.1. - [Release notes](https://github.com/npkgz/cli-progress/releases) - [Changelog](https://github.com/npkgz/cli-progress/blob/master/CHANGES.md) - [Commits](https://github.com/npkgz/cli-progress/compare/v3.9.0...v3.9.1) --- updated-dependencies: - dependency-name: cli-progress dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index e7b79af..48dd02a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -263,9 +263,9 @@ } }, "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==" + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" }, "ansi-styles": { "version": "4.3.0", @@ -340,9 +340,9 @@ } }, "cli-progress": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/cli-progress/-/cli-progress-3.9.0.tgz", - "integrity": "sha512-g7rLWfhAo/7pF+a/STFH/xPyosaL1zgADhI0OM83hl3c7S43iGvJWEAV2QuDOnQ8i6EMBj/u4+NTd0d5L+4JfA==", + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/cli-progress/-/cli-progress-3.9.1.tgz", + "integrity": "sha512-AXxiCe2a0Lm0VN+9L0jzmfQSkcZm5EYspfqXKaSIQKqIk+0hnkZ3/v1E9B39mkD6vYhKih3c/RPsJBSwq9O99Q==", "requires": { "colors": "^1.1.2", "string-width": "^4.2.0" diff --git a/package.json b/package.json index 376a9a1..809f327 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "dependencies": { "@polkadot/api": "^6.6.1", "chalk": "^4.1.1", - "cli-progress": "^3.9.0", + "cli-progress": "^3.9.1", "dotenv": "^10.0.0" } } From 49f0dd951f8b9148c949bc6bf2952ca405a35205 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 7 Nov 2021 14:42:44 +0530 Subject: [PATCH 3/9] Bump chalk from 4.1.1 to 4.1.2 (#25) Bumps [chalk](https://github.com/chalk/chalk) from 4.1.1 to 4.1.2. - [Release notes](https://github.com/chalk/chalk/releases) - [Commits](https://github.com/chalk/chalk/compare/v4.1.1...v4.1.2) --- updated-dependencies: - dependency-name: chalk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 48dd02a..96aefbd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -322,9 +322,9 @@ "integrity": "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==" }, "chalk": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "requires": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" diff --git a/package.json b/package.json index 809f327..b48b8d7 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "homepage": "https://github.com/maxsam4/fork-off-substrate#readme", "dependencies": { "@polkadot/api": "^6.6.1", - "chalk": "^4.1.1", + "chalk": "^4.1.2", "cli-progress": "^3.9.1", "dotenv": "^10.0.0" } From def1c2febfeded4d8bf899df773344da416e13d1 Mon Sep 17 00:00:00 2001 From: Mudit Gupta Date: Sun, 7 Nov 2021 14:58:21 +0530 Subject: [PATCH 4/9] Allow users to specify `--chain` and replace `sudo_key` for testing (#49) * fix issue * remove codes for tests * Configurable Chain * Set Sudo Key to `//Alice` * Configurable Sudo Key * updated readme Co-authored-by: HackFisher Co-authored-by: Xavier Lau --- README.md | 11 +++++++++++ index.js | 17 +++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e0bb3f3..bb1dc57 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,17 @@ This script allows bootstrapping a new substrate chain with the current state of ./binary --chain fork.json --alice ``` +## Configuration + +The script can be tweaked and configured using various environment variables - + +| Environment Variable | Effects | Default value | +| --- | --- | --- | +| HTTP_RPC_ENDPOINT | HTTP RPC endpoint that should be used to query state | http://localhost:9933 | +| FORK_CHUNKS_LEVEL | Determines how many chunks to split the RPC download in. Effect is exponential, recommended value for most is 1. You can try 0 for small chains and 2 for large chains for potential speed improvements | 1 | +| CHAIN | Chain to use as base for the forked chain. Default | dev | +| ALICE | If set, the script will replace the chain's sudo account with `//Alice` | `NULL` | + ## Read more If you would like to understand how this script works, please read this [blog post](https://mudit.blog/fork-substrate-blockchain/) diff --git a/index.js b/index.js index c9a8654..ff3dc9e 100644 --- a/index.js +++ b/index.js @@ -22,6 +22,9 @@ const provider = new HttpProvider(process.env.HTTP_RPC_ENDPOINT || 'http://local const chunksLevel = process.env.FORK_CHUNKS_LEVEL || 1; const totalChunks = Math.pow(256, chunksLevel); +const chain = process.env.CHAIN || '' +const alice = process.env.ALICE || '' + let chunksFetched = 0; let separator = false; const progressBar = new cliProgress.SingleBar({}, cliProgress.Presets.shades_classic); @@ -95,8 +98,13 @@ async function main() { }); // Generate chain spec for original and forked chains - execSync(binaryPath + ' build-spec --raw > ' + originalSpecPath); - execSync(binaryPath + ' build-spec --dev --raw > ' + forkedSpecPath); + if (chain === '') { + execSync(binaryPath + ' build-spec --raw > ' + originalSpecPath); + execSync(binaryPath + ' build-spec --dev --raw > ' + forkedSpecPath); + } else { + execSync(binaryPath + ' build-spec' + ' --chain ' + chain + ' --raw > ' + originalSpecPath); + execSync(binaryPath + ' build-spec' + ' --chain ' + chain + '-dev' + ' --raw > ' + forkedSpecPath); + } let storage = JSON.parse(fs.readFileSync(storagePath, 'utf8')); let originalSpec = JSON.parse(fs.readFileSync(originalSpecPath, 'utf8')); @@ -121,6 +129,11 @@ async function main() { // To prevent the validator set from changing mid-test, set Staking.ForceEra to ForceNone ('0x02') forkedSpec.genesis.raw.top['0x5f3e4907f716ac89b6347d15ececedcaf7dad0317324aecae8744b87fc95f2f3'] = '0x02'; + if (alice !== '') { + // Set sudo key to //Alice + forkedSpec.genesis.raw.top['0x5c0d1176a568c1f92944340dbfed9e9c530ebca703c85910e7164cb7d1c9e47b'] = '0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d'; + } + fs.writeFileSync(forkedSpecPath, JSON.stringify(forkedSpec, null, 4)); console.log('Forked genesis generated successfully. Find it at ./data/fork.json'); From 1ba785f4cf6046cd9b942d6c3b73b279bb79dfbf Mon Sep 17 00:00:00 2001 From: Mudit Gupta Date: Sun, 7 Nov 2021 15:05:34 +0530 Subject: [PATCH 5/9] Docker image (#50) * fix issue * remove codes for tests * Configurable Chain * Set Sudo Key to `//Alice` * Configurable Sudo Key * Add docker image * Working version of the image * added missing doc Co-authored-by: HackFisher Co-authored-by: Xavier Lau Co-authored-by: Chevdor --- .dockerignore | 2 ++ .nvmrc | 1 + Dockerfile | 33 +++++++++++++++++++++++++++++++++ README.md | 15 +++++++++++++++ scripts/docker-start.sh | 18 ++++++++++++++++++ 5 files changed, 69 insertions(+) create mode 100644 .dockerignore create mode 100644 .nvmrc create mode 100644 Dockerfile create mode 100755 scripts/docker-start.sh diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..c36ec0a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +data +node_modules diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..60d3b2f --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +15 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b3b57fe --- /dev/null +++ b/Dockerfile @@ -0,0 +1,33 @@ +FROM ubuntu:20.04 + +ARG SUBWASM_VERSION=0.14.1 + +RUN apt-get update && apt-get upgrade -yq +RUN apt-get install -y wget curl bsdmainutils iputils-ping && \ + apt-get -y autoclean + +RUN wget https://github.com/chevdor/subwasm/releases/download/v${SUBWASM_VERSION}/subwasm_linux_amd64_v${SUBWASM_VERSION}.deb -O subwasm.deb && \ + dpkg -i subwasm.deb && \ + subwasm --version && \ + rm subwasm.deb + +RUN curl -sL https://deb.nodesource.com/setup_16.x | bash +RUN apt install nodejs && npm install -g npm +RUN node -v; npm -v; + +RUN useradd -m -u 1000 -U -s /bin/sh forker && \ + mkdir -p /data && \ + chown -R forker:forker /data + +COPY . . +RUN npm install + +# USER forker + +ENV HTTP_RPC_ENDPOINT=http://localhost::9933 +ENV FORK_CHUNKS_LEVEL=1 +ENV QUICK_MODE=false + +VOLUME [ "/data" ] + +ENTRYPOINT [ "./scripts/docker-start.sh" ] diff --git a/README.md b/README.md index bb1dc57..0b9a77d 100644 --- a/README.md +++ b/README.md @@ -57,11 +57,26 @@ The script can be tweaked and configured using various environment variables - | FORK_CHUNKS_LEVEL | Determines how many chunks to split the RPC download in. Effect is exponential, recommended value for most is 1. You can try 0 for small chains and 2 for large chains for potential speed improvements | 1 | | CHAIN | Chain to use as base for the forked chain. Default | dev | | ALICE | If set, the script will replace the chain's sudo account with `//Alice` | `NULL` | +| QUICK_MODE | If set, it parallelizes the data download from the RPC endpoint | `NULL` | ## Read more If you would like to understand how this script works, please read this [blog post](https://mudit.blog/fork-substrate-blockchain/) +## Using Docker + +### Build the image + + docker build -t fork-off-substrate . + +### Run + + BINARY=/full/path/to/your/linux/binary + HTTP_RPC_ENDPOINT=http://localhost:9933 + docker run --rm -it \ + -e HTTP_RPC_ENDPOINT=$HTTP_RPC_ENDPOINT \ + -v "$BINARY":/data/binary + fork-off-substrate ## Credits diff --git a/scripts/docker-start.sh b/scripts/docker-start.sh new file mode 100755 index 0000000..a7605f3 --- /dev/null +++ b/scripts/docker-start.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +set -e + +BINARY=data/binary +$BINARY --version + +echo Will connect to $HTTP_RPC_ENDPOINT + +# Fetch the wasm from the node +subwasm --version +subwasm get $HTTP_RPC_ENDPOINT -o data/runtime.wasm +subwasm info data/runtime.wasm + +# start fork-off-substrate +npm start + +# Run new chain +./binary --chain fork.json --alice From 0c43e81f29f420d6b302bf72ecd9d29d2551dd77 Mon Sep 17 00:00:00 2001 From: Mudit Gupta Date: Sun, 7 Nov 2021 15:20:24 +0530 Subject: [PATCH 6/9] Fix parachains state (#51) * Enhancements - Pin to a single block when fetching states - Allow to specify original and fork chain name - Remove parachain scheduler absolute block number * updated readme Co-authored-by: h4x3rotab --- README.md | 3 ++- index.js | 38 +++++++++++++++++++++++++++----------- 2 files changed, 29 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 0b9a77d..947e110 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,8 @@ The script can be tweaked and configured using various environment variables - | --- | --- | --- | | HTTP_RPC_ENDPOINT | HTTP RPC endpoint that should be used to query state | http://localhost:9933 | | FORK_CHUNKS_LEVEL | Determines how many chunks to split the RPC download in. Effect is exponential, recommended value for most is 1. You can try 0 for small chains and 2 for large chains for potential speed improvements | 1 | -| CHAIN | Chain to use as base for the forked chain. Default | dev | +| ORIG_CHAIN | Chain to use as the original chain. | `$default_of_the_binary` | +| FORK_CHAIN | Chain to use as base for the forked chain. | `dev` | | ALICE | If set, the script will replace the chain's sudo account with `//Alice` | `NULL` | | QUICK_MODE | If set, it parallelizes the data download from the RPC endpoint | `NULL` | diff --git a/index.js b/index.js index ff3dc9e..858c8b1 100644 --- a/index.js +++ b/index.js @@ -22,8 +22,9 @@ const provider = new HttpProvider(process.env.HTTP_RPC_ENDPOINT || 'http://local const chunksLevel = process.env.FORK_CHUNKS_LEVEL || 1; const totalChunks = Math.pow(256, chunksLevel); -const chain = process.env.CHAIN || '' const alice = process.env.ALICE || '' +const originalChain = process.env.ORIG_CHAIN || ''; +const forkChain = process.env.FORK_CHAIN || ''; let chunksFetched = 0; let separator = false; @@ -45,6 +46,15 @@ const progressBar = new cliProgress.SingleBar({}, cliProgress.Presets.shades_cla let prefixes = ['0x26aa394eea5630e07c48ae0c9558cef7b99d880ec681799c0cf30e8886371da9' /* System.Account */]; const skippedModulesPrefix = ['System', 'Session', 'Babe', 'Grandpa', 'GrandpaFinality', 'FinalityTracker', 'Authorship']; +async function fixParachinStates (api, forkedSpec) { + const skippedKeys = [ + api.query.parasScheduler.sessionStartBlock.key() + ]; + for (const k of skippedKeys) { + delete forkedSpec.genesis.raw.top[k]; + } +} + async function main() { if (!fs.existsSync(binaryPath)) { console.log(chalk.red('Binary missing. Please copy the binary of your substrate node to the data folder and rename the binary to "binary"')); @@ -77,10 +87,11 @@ async function main() { } else { // Download state of original chain console.log(chalk.green('Fetching current state of the live chain. Please wait, it can take a while depending on the size of your chain.')); + let at = (await api.rpc.chain.getBlockHash()).toString(); progressBar.start(totalChunks, 0); const stream = fs.createWriteStream(storagePath, { flags: 'a' }); stream.write("["); - await fetchChunks("0x", chunksLevel, stream); + await fetchChunks("0x", chunksLevel, stream, at); stream.write("]"); stream.end(); progressBar.stop(); @@ -98,12 +109,15 @@ async function main() { }); // Generate chain spec for original and forked chains - if (chain === '') { - execSync(binaryPath + ' build-spec --raw > ' + originalSpecPath); - execSync(binaryPath + ' build-spec --dev --raw > ' + forkedSpecPath); + if (originalChain == '') { + execSync(binaryPath + ` build-spec --raw > ` + originalSpecPath); } else { - execSync(binaryPath + ' build-spec' + ' --chain ' + chain + ' --raw > ' + originalSpecPath); - execSync(binaryPath + ' build-spec' + ' --chain ' + chain + '-dev' + ' --raw > ' + forkedSpecPath); + execSync(binaryPath + ` build-spec --chain ${originalChain} --raw > ` + originalSpecPath); + } + if (forkChain == '') { + execSync(binaryPath + ` build-spec --dev --raw > ` + forkedSpecPath); + } else { + execSync(binaryPath + ` build-spec --chain ${forkChain} --raw > ` + forkedSpecPath); } let storage = JSON.parse(fs.readFileSync(storagePath, 'utf8')); @@ -123,6 +137,8 @@ async function main() { // Delete System.LastRuntimeUpgrade to ensure that the on_runtime_upgrade event is triggered delete forkedSpec.genesis.raw.top['0x26aa394eea5630e07c48ae0c9558cef7f9cce9c888469bb1a0dceaa129672ef8']; + fixParachinStates(api, forkedSpec); + // Set the code to the current runtime code forkedSpec.genesis.raw.top['0x3a636f6465'] = '0x' + fs.readFileSync(hexPath, 'utf8').trim(); @@ -142,9 +158,9 @@ async function main() { main(); -async function fetchChunks(prefix, levelsRemaining, stream) { +async function fetchChunks(prefix, levelsRemaining, stream, at) { if (levelsRemaining <= 0) { - const pairs = await provider.send('state_getPairs', [prefix]); + const pairs = await provider.send('state_getPairs', [prefix, at]); if (pairs.length > 0) { separator ? stream.write(",") : separator = true; stream.write(JSON.stringify(pairs).slice(1, -1)); @@ -157,12 +173,12 @@ async function fetchChunks(prefix, levelsRemaining, stream) { if (process.env.QUICK_MODE && levelsRemaining == 1) { let promises = []; for (let i = 0; i < 256; i++) { - promises.push(fetchChunks(prefix + i.toString(16).padStart(2, "0"), levelsRemaining - 1, stream)); + promises.push(fetchChunks(prefix + i.toString(16).padStart(2, "0"), levelsRemaining - 1, stream, at)); } await Promise.all(promises); } else { for (let i = 0; i < 256; i++) { - await fetchChunks(prefix + i.toString(16).padStart(2, "0"), levelsRemaining - 1, stream); + await fetchChunks(prefix + i.toString(16).padStart(2, "0"), levelsRemaining - 1, stream, at); } } } From 41853f10e0000e0f49275a55b1cff5481e31fa2e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 12 Nov 2021 12:29:25 +0530 Subject: [PATCH 7/9] Bump @polkadot/api from 6.6.1 to 6.8.1 (#54) Bumps [@polkadot/api](https://github.com/polkadot-js/api/tree/HEAD/packages/api) from 6.6.1 to 6.8.1. - [Release notes](https://github.com/polkadot-js/api/releases) - [Changelog](https://github.com/polkadot-js/api/blob/master/CHANGELOG.md) - [Commits](https://github.com/polkadot-js/api/commits/v6.8.1/packages/api) --- updated-dependencies: - dependency-name: "@polkadot/api" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 242 +++++++++++++++++++++++----------------------- package.json | 2 +- 2 files changed, 122 insertions(+), 122 deletions(-) diff --git a/package-lock.json b/package-lock.json index 96aefbd..86d30a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,120 +5,120 @@ "requires": true, "dependencies": { "@babel/runtime": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.0.tgz", - "integrity": "sha512-Nht8L0O8YCktmsDV6FqFue7vQLRx3Hb0B37lS5y0jDRqRxlBG4wIJHnf9/bgSE2UyipKFA01YtS+npRdTWBUyw==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.3.tgz", + "integrity": "sha512-WBwekcqacdY2e9AF/Q7WLFUWmdJGJTkbjqTjoMDgXkVZ3ZRUvOPsLb5KdwISoQVsbP+DQzVZW4Zhci0DvpbNTQ==", "requires": { "regenerator-runtime": "^0.13.4" } }, "@polkadot/api": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-6.6.1.tgz", - "integrity": "sha512-Nz0P/C6b1d2Ma/ytoTOj33SuiPuTZMq6XwSMI7H9JBXWkDw/3V1oGbH+60y2XMj5+b73LazNWT5Lq1y/P/N7rw==", - "requires": { - "@babel/runtime": "^7.15.4", - "@polkadot/api-derive": "6.6.1", - "@polkadot/keyring": "^7.7.1", - "@polkadot/rpc-core": "6.6.1", - "@polkadot/rpc-provider": "6.6.1", - "@polkadot/types": "6.6.1", - "@polkadot/types-known": "6.6.1", - "@polkadot/util": "^7.7.1", - "@polkadot/util-crypto": "^7.7.1", + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-6.8.1.tgz", + "integrity": "sha512-XJmSx5NYKrrj1FJmt8AQEhI7TW+5bb5Y3tnFTYc6D1QemxLKt1bP1H+z1zfTO3TWvS0PUtSN36dvrgn4xPELHw==", + "requires": { + "@babel/runtime": "^7.16.0", + "@polkadot/api-derive": "6.8.1", + "@polkadot/keyring": "^7.8.2", + "@polkadot/rpc-core": "6.8.1", + "@polkadot/rpc-provider": "6.8.1", + "@polkadot/types": "6.8.1", + "@polkadot/types-known": "6.8.1", + "@polkadot/util": "^7.8.2", + "@polkadot/util-crypto": "^7.8.2", "eventemitter3": "^4.0.7", "rxjs": "^7.4.0" } }, "@polkadot/api-derive": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-6.6.1.tgz", - "integrity": "sha512-oP2mSJI/vJT7/yOVTTXcsAqOST/O5xqqn0ZNYe0lBrltXNpkroEERNDfwyDI1mQUI5YWkbtU6ysZbxYTzIiF3w==", - "requires": { - "@babel/runtime": "^7.15.4", - "@polkadot/api": "6.6.1", - "@polkadot/rpc-core": "6.6.1", - "@polkadot/types": "6.6.1", - "@polkadot/util": "^7.7.1", - "@polkadot/util-crypto": "^7.7.1", + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-6.8.1.tgz", + "integrity": "sha512-PKSXHZXScPejhkWOdFE/B30zyZ7Zkieq6ImDl3ramVPWvj6acqadsyrFvcbTCh2fb0Bc1loa+VnkH1O03weU/w==", + "requires": { + "@babel/runtime": "^7.16.0", + "@polkadot/api": "6.8.1", + "@polkadot/rpc-core": "6.8.1", + "@polkadot/types": "6.8.1", + "@polkadot/util": "^7.8.2", + "@polkadot/util-crypto": "^7.8.2", "rxjs": "^7.4.0" } }, "@polkadot/keyring": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-7.7.1.tgz", - "integrity": "sha512-MzdwUeR5BjqEqSnW1SVg1mMaUPkirGcLd60vsp187qf/y9IaI+ZinkeP50d/GxldRobNL/bOdiOuV3bSulUvSQ==", + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-7.8.2.tgz", + "integrity": "sha512-QmSXkaUxXEt4Yx5RVUmPO8LGscuEOGjrH7tolQS9ASdxZjeCwIXl7+CTHGPUhGhJDMAJE/gvG2V2E9Al8N0tvQ==", "requires": { - "@babel/runtime": "^7.15.4", - "@polkadot/util": "7.7.1", - "@polkadot/util-crypto": "7.7.1" + "@babel/runtime": "^7.16.0", + "@polkadot/util": "7.8.2", + "@polkadot/util-crypto": "7.8.2" } }, "@polkadot/networks": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-7.7.1.tgz", - "integrity": "sha512-ghUA9jd+12lfbKclPIxRQBmvfd1+BoECr5C8t+2rfM5plE+1f1Ucdrpz9wQ362+WNlnP4q1u9yB1zQlFM+K6yQ==", + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-7.8.2.tgz", + "integrity": "sha512-E/Bm4QUAfyBUCv0Bq9ldRVNG+trLHoOAv6ttzWKw/UHoa2cDe2UP9qTUnxtXWAmyIYWvLeoMHgStj+pWbLL8SA==", "requires": { - "@babel/runtime": "^7.15.4" + "@babel/runtime": "^7.16.0" } }, "@polkadot/rpc-core": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-6.6.1.tgz", - "integrity": "sha512-gkisBehhlDuapXmQUut7seNBk3AuAfYjB1JvnphlgvF6V3ShyZD2Y19VCWmwqUXFkgsNCpYrmKYkngXUN1rvAQ==", - "requires": { - "@babel/runtime": "^7.15.4", - "@polkadot/rpc-provider": "6.6.1", - "@polkadot/types": "6.6.1", - "@polkadot/util": "^7.7.1", + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-6.8.1.tgz", + "integrity": "sha512-GblH3bTLDo7RCvHlazH+A/rWNyqgUvdOz5hZzMpshBxo2fJCNhPi3jA36C3IewK/pN73P3NLmzC392htuJelBg==", + "requires": { + "@babel/runtime": "^7.16.0", + "@polkadot/rpc-provider": "6.8.1", + "@polkadot/types": "6.8.1", + "@polkadot/util": "^7.8.2", "rxjs": "^7.4.0" } }, "@polkadot/rpc-provider": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-6.6.1.tgz", - "integrity": "sha512-mkuqPvq9YfxPkxxevAqijdRpK7kdkTOJjRxoWHZMBAhrTBulCkYAHRZPcHUYXBYANcd9rl7BVzktb5cWcDg5zA==", - "requires": { - "@babel/runtime": "^7.15.4", - "@polkadot/types": "6.6.1", - "@polkadot/util": "^7.7.1", - "@polkadot/util-crypto": "^7.7.1", - "@polkadot/x-fetch": "^7.7.1", - "@polkadot/x-global": "^7.7.1", - "@polkadot/x-ws": "^7.7.1", + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-6.8.1.tgz", + "integrity": "sha512-j8G3ZGaKn4gC/xoUORjMps30QzL8O+iKnS/D3v2ysKGf6PqQ/DDEii0pfJzS4LEvSqIXqo/O2sm5rFY8SfJHNg==", + "requires": { + "@babel/runtime": "^7.16.0", + "@polkadot/types": "6.8.1", + "@polkadot/util": "^7.8.2", + "@polkadot/util-crypto": "^7.8.2", + "@polkadot/x-fetch": "^7.8.2", + "@polkadot/x-global": "^7.8.2", + "@polkadot/x-ws": "^7.8.2", "eventemitter3": "^4.0.7" } }, "@polkadot/types": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-6.6.1.tgz", - "integrity": "sha512-36zLL4OyYnRQWRNBgvxL3o5kLoGmYRZD7+gyQmtagxP5PbRFTkC425UloF42bn6VsRyIU2lAv+2ruXSIzjQYjA==", + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-6.8.1.tgz", + "integrity": "sha512-MX7OQhGCaDLu29mu+uRkZhufqel1tCZKaPEBM5uk+mud6UCdZ5NHQb0wfr7d5oYxpj9GmWxALCmNMlRQa0172g==", "requires": { - "@babel/runtime": "^7.15.4", - "@polkadot/util": "^7.7.1", - "@polkadot/util-crypto": "^7.7.1", + "@babel/runtime": "^7.16.0", + "@polkadot/util": "^7.8.2", + "@polkadot/util-crypto": "^7.8.2", "rxjs": "^7.4.0" } }, "@polkadot/types-known": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-6.6.1.tgz", - "integrity": "sha512-JKZasgvTU5JkbfyjVpPwyMMStGFWPtVTAE+LPHaQ9fILCCMq8iW+8yGH3wGo77YRUPehorAHIQX4JOV9QL5oIQ==", + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-6.8.1.tgz", + "integrity": "sha512-Vhcd0ZOf0eOzPJI+IX/oYQjHw5VEcGuhH0up+SlUsxLlZvSFtZhrf7nchfZoAGKDTWPT4RIzxLLsWhjjYhAu6A==", "requires": { - "@babel/runtime": "^7.15.4", - "@polkadot/networks": "^7.7.1", - "@polkadot/types": "6.6.1", - "@polkadot/util": "^7.7.1" + "@babel/runtime": "^7.16.0", + "@polkadot/networks": "^7.8.2", + "@polkadot/types": "6.8.1", + "@polkadot/util": "^7.8.2" } }, "@polkadot/util": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-7.7.1.tgz", - "integrity": "sha512-REw11iHZKUm7GeC7Ktx1HguT9y76mbmiVtZJyNXpUTDKmfm6z+SMqs3pOCL/rvzqm+6M3ag6ffRrlzTTgh0HAg==", + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-7.8.2.tgz", + "integrity": "sha512-7JxRdSjw+7EUmCEIju34VLgeICNmfnOPby6lTzac0ODO2IH3NfE42YRGjRelRm+cNEmL272jojfU+o2Q7ePTww==", "requires": { - "@babel/runtime": "^7.15.4", - "@polkadot/x-textdecoder": "7.7.1", - "@polkadot/x-textencoder": "7.7.1", + "@babel/runtime": "^7.16.0", + "@polkadot/x-textdecoder": "7.8.2", + "@polkadot/x-textencoder": "7.8.2", "@types/bn.js": "^4.11.6", "bn.js": "^4.12.0", "camelcase": "^6.2.0", @@ -126,15 +126,15 @@ } }, "@polkadot/util-crypto": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-7.7.1.tgz", - "integrity": "sha512-K269URC/ofbYM1vFSIVLbuRi4Z+9bMdyJQ1k+59+jx0VwYu50l9vzNhFO8WMGoBZ6eDzqQkeWj7usCTKlU9xUw==", + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-7.8.2.tgz", + "integrity": "sha512-wmWRRQuYmf3j4DJMPG2+J2BCS0uyO9yXuYlPdZ31enehTNDPl7Uke9sCUAdlAIwIfz60i4SIh8wyFPKMMwthqQ==", "requires": { - "@babel/runtime": "^7.15.4", - "@polkadot/networks": "7.7.1", - "@polkadot/util": "7.7.1", + "@babel/runtime": "^7.16.0", + "@polkadot/networks": "7.8.2", + "@polkadot/util": "7.8.2", "@polkadot/wasm-crypto": "^4.2.1", - "@polkadot/x-randomvalues": "7.7.1", + "@polkadot/x-randomvalues": "7.8.2", "base-x": "^3.0.9", "base64-js": "^1.5.1", "blakejs": "^1.1.1", @@ -176,58 +176,58 @@ } }, "@polkadot/x-fetch": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-7.7.1.tgz", - "integrity": "sha512-0ocN1CSwDHXRzz2yUAaoDH0VrOg3Kmx0nAW05wZdoMfvU9vEiJHhTT/c27pss3dsbEs334PWL5QbcTzYiQvDVQ==", + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-7.8.2.tgz", + "integrity": "sha512-CC9mQy9TW0WYmWRs7GNOzqvhIE05DBWP5tnDjjgZLcb1vB2wY4pUV5XQAK/gymbfsajWxEc/+89afwJ9PmhjQw==", "requires": { - "@babel/runtime": "^7.15.4", - "@polkadot/x-global": "7.7.1", + "@babel/runtime": "^7.16.0", + "@polkadot/x-global": "7.8.2", "@types/node-fetch": "^2.5.12", - "node-fetch": "^2.6.5" + "node-fetch": "^2.6.6" } }, "@polkadot/x-global": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-7.7.1.tgz", - "integrity": "sha512-S7MYqEtcfMgWA64qR09Z8O3zbaRyyW1y2qtvn04dexPesuEPOw2W5+WBHss8UAI/aVxjlG+d2D3OlYUr+IOO9Q==", + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-7.8.2.tgz", + "integrity": "sha512-olULRitxWv1tsSDgLdiVBbyzaU+OJbw8aTdmUMj9ZiIJstBzbNT/vsTWkX6JuMSLb9hw6ElaDXJ7zaffHY5siw==", "requires": { - "@babel/runtime": "^7.15.4" + "@babel/runtime": "^7.16.0" } }, "@polkadot/x-randomvalues": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-7.7.1.tgz", - "integrity": "sha512-dFhxei2TP3cWepfITDSq6eaBbdsP8TPBQagincqJynt5EaU0pzQ5psMBMJ/rAYy194oEpg0ED16XK/iFdZ42rA==", + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-7.8.2.tgz", + "integrity": "sha512-e/Jc9oCP+IIDWy5u+jk1Cz8ulI3os1VlSaQGsNPA8U56PGLJr+PeI4EnXzjIVgdKuwOhV7C/TTyu7fnGsIGTrA==", "requires": { - "@babel/runtime": "^7.15.4", - "@polkadot/x-global": "7.7.1" + "@babel/runtime": "^7.16.0", + "@polkadot/x-global": "7.8.2" } }, "@polkadot/x-textdecoder": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-7.7.1.tgz", - "integrity": "sha512-2+kYLVxjdtbuxcIDMdEiBK+GvCs/M8QdKVmTGLTb47PphSeiMKLu8qjy1ygBJeaFeQOZxIj1f8IJ5ICI9TlVcA==", + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-7.8.2.tgz", + "integrity": "sha512-Ggp/lUjG6+w75lpbUjWFAxH262gu9hfMu89qd9VOUoPX6CbNT5mUPKaVDtofjmKcQzfW1zZRPjlePzv+JVoTVg==", "requires": { - "@babel/runtime": "^7.15.4", - "@polkadot/x-global": "7.7.1" + "@babel/runtime": "^7.16.0", + "@polkadot/x-global": "7.8.2" } }, "@polkadot/x-textencoder": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-7.7.1.tgz", - "integrity": "sha512-pRTG7F6EYilkbkyxfWOV1LXCVohcVnFPVfPvGydHsDJ3kGZ4n+L9PuJ+t3WKwd6tirEDUIBGe2eNEl/arcWzTw==", + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-7.8.2.tgz", + "integrity": "sha512-GtgqGlXYEQqwO6Nl9ZX08KF1Bc3WIId8ADDNTHqLgXaQLqQykwdqQZUKPSnjhQFf8kJX6+kOSxzmv8P5oMTJcg==", "requires": { - "@babel/runtime": "^7.15.4", - "@polkadot/x-global": "7.7.1" + "@babel/runtime": "^7.16.0", + "@polkadot/x-global": "7.8.2" } }, "@polkadot/x-ws": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-7.7.1.tgz", - "integrity": "sha512-P1ZBuPvTX+H6pBiIkPjgygIw4GsekicoAE2ew5R1s/WE4uS0YjiO+QTwkaaB1fNqk2fBRSI+eDHOGiGmr5MM2Q==", + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-7.8.2.tgz", + "integrity": "sha512-ZnE82YTm96UY5Kt9mWFp5pEtBZRLw02w5EucZ5bCdBVGCIjU0wvfaHgyHRn0XlNCNvsExPanDiT3G+p+UX/NmQ==", "requires": { - "@babel/runtime": "^7.15.4", - "@polkadot/x-global": "7.7.1", + "@babel/runtime": "^7.16.0", + "@polkadot/x-global": "7.8.2", "@types/websocket": "^1.0.4", "websocket": "^1.0.34" } @@ -241,9 +241,9 @@ } }, "@types/node": { - "version": "16.11.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.6.tgz", - "integrity": "sha512-ua7PgUoeQFjmWPcoo9khiPum3Pd60k4/2ZGXt18sm2Slk0W0xZTqt5Y0Ny1NyBiN1EVQ/+FaF9NcY4Qe6rwk5w==" + "version": "16.11.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.7.tgz", + "integrity": "sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw==" }, "@types/node-fetch": { "version": "2.5.12", @@ -574,16 +574,16 @@ } }, "mime-db": { - "version": "1.50.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.50.0.tgz", - "integrity": "sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A==" + "version": "1.51.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", + "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==" }, "mime-types": { - "version": "2.1.33", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.33.tgz", - "integrity": "sha512-plLElXp7pRDd0bNZHw+nMd52vRYjLwQjygaNg7ddJ2uJtTlmnTCjWuPKxVu6//AdaRuME84SvLW91sIkBqGT0g==", + "version": "2.1.34", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", + "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", "requires": { - "mime-db": "1.50.0" + "mime-db": "1.51.0" } }, "minimalistic-assert": { diff --git a/package.json b/package.json index b48b8d7..95e0e72 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "homepage": "https://github.com/maxsam4/fork-off-substrate#readme", "dependencies": { - "@polkadot/api": "^6.6.1", + "@polkadot/api": "^6.8.1", "chalk": "^4.1.2", "cli-progress": "^3.9.1", "dotenv": "^10.0.0" From 7d0b30f0ce54ff83b7bdbc83f64f39a9b1fb86c4 Mon Sep 17 00:00:00 2001 From: Stephen Shelton Date: Tue, 23 Nov 2021 14:47:20 -0700 Subject: [PATCH 8/9] Add missing comma to package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 487f79e..26c5a4e 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@polkadot/api": "^6.8.1", "chalk": "^4.1.2", "cli-progress": "^3.9.1", - "dotenv": "^10.0.0" + "dotenv": "^10.0.0", "yargs": "^17.1.1" } } From 979aac13a0c227fb2c18aaa2f9ab006918e841df Mon Sep 17 00:00:00 2001 From: Stephen Shelton Date: Tue, 23 Nov 2021 14:47:33 -0700 Subject: [PATCH 9/9] Update package-lock.json --- package-lock.json | 1017 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 1008 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index fb51591..d6991a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,8 +1,1007 @@ { "name": "fork-off-substrate", "version": "1.0.0", - "lockfileVersion": 1, + "lockfileVersion": 2, "requires": true, + "packages": { + "": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "@polkadot/api": "^6.8.1", + "chalk": "^4.1.2", + "cli-progress": "^3.9.1", + "dotenv": "^10.0.0", + "yargs": "^17.1.1" + } + }, + "node_modules/@babel/runtime": { + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.3.tgz", + "integrity": "sha512-WBwekcqacdY2e9AF/Q7WLFUWmdJGJTkbjqTjoMDgXkVZ3ZRUvOPsLb5KdwISoQVsbP+DQzVZW4Zhci0DvpbNTQ==", + "dependencies": { + "regenerator-runtime": "^0.13.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@polkadot/api": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-6.8.1.tgz", + "integrity": "sha512-XJmSx5NYKrrj1FJmt8AQEhI7TW+5bb5Y3tnFTYc6D1QemxLKt1bP1H+z1zfTO3TWvS0PUtSN36dvrgn4xPELHw==", + "dependencies": { + "@babel/runtime": "^7.16.0", + "@polkadot/api-derive": "6.8.1", + "@polkadot/keyring": "^7.8.2", + "@polkadot/rpc-core": "6.8.1", + "@polkadot/rpc-provider": "6.8.1", + "@polkadot/types": "6.8.1", + "@polkadot/types-known": "6.8.1", + "@polkadot/util": "^7.8.2", + "@polkadot/util-crypto": "^7.8.2", + "eventemitter3": "^4.0.7", + "rxjs": "^7.4.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/api-derive": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-6.8.1.tgz", + "integrity": "sha512-PKSXHZXScPejhkWOdFE/B30zyZ7Zkieq6ImDl3ramVPWvj6acqadsyrFvcbTCh2fb0Bc1loa+VnkH1O03weU/w==", + "dependencies": { + "@babel/runtime": "^7.16.0", + "@polkadot/api": "6.8.1", + "@polkadot/rpc-core": "6.8.1", + "@polkadot/types": "6.8.1", + "@polkadot/util": "^7.8.2", + "@polkadot/util-crypto": "^7.8.2", + "rxjs": "^7.4.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/keyring": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-7.8.2.tgz", + "integrity": "sha512-QmSXkaUxXEt4Yx5RVUmPO8LGscuEOGjrH7tolQS9ASdxZjeCwIXl7+CTHGPUhGhJDMAJE/gvG2V2E9Al8N0tvQ==", + "dependencies": { + "@babel/runtime": "^7.16.0", + "@polkadot/util": "7.8.2", + "@polkadot/util-crypto": "7.8.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/networks": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-7.8.2.tgz", + "integrity": "sha512-E/Bm4QUAfyBUCv0Bq9ldRVNG+trLHoOAv6ttzWKw/UHoa2cDe2UP9qTUnxtXWAmyIYWvLeoMHgStj+pWbLL8SA==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/rpc-core": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-6.8.1.tgz", + "integrity": "sha512-GblH3bTLDo7RCvHlazH+A/rWNyqgUvdOz5hZzMpshBxo2fJCNhPi3jA36C3IewK/pN73P3NLmzC392htuJelBg==", + "dependencies": { + "@babel/runtime": "^7.16.0", + "@polkadot/rpc-provider": "6.8.1", + "@polkadot/types": "6.8.1", + "@polkadot/util": "^7.8.2", + "rxjs": "^7.4.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/rpc-provider": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-6.8.1.tgz", + "integrity": "sha512-j8G3ZGaKn4gC/xoUORjMps30QzL8O+iKnS/D3v2ysKGf6PqQ/DDEii0pfJzS4LEvSqIXqo/O2sm5rFY8SfJHNg==", + "dependencies": { + "@babel/runtime": "^7.16.0", + "@polkadot/types": "6.8.1", + "@polkadot/util": "^7.8.2", + "@polkadot/util-crypto": "^7.8.2", + "@polkadot/x-fetch": "^7.8.2", + "@polkadot/x-global": "^7.8.2", + "@polkadot/x-ws": "^7.8.2", + "eventemitter3": "^4.0.7" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/types": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-6.8.1.tgz", + "integrity": "sha512-MX7OQhGCaDLu29mu+uRkZhufqel1tCZKaPEBM5uk+mud6UCdZ5NHQb0wfr7d5oYxpj9GmWxALCmNMlRQa0172g==", + "dependencies": { + "@babel/runtime": "^7.16.0", + "@polkadot/util": "^7.8.2", + "@polkadot/util-crypto": "^7.8.2", + "rxjs": "^7.4.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/types-known": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-6.8.1.tgz", + "integrity": "sha512-Vhcd0ZOf0eOzPJI+IX/oYQjHw5VEcGuhH0up+SlUsxLlZvSFtZhrf7nchfZoAGKDTWPT4RIzxLLsWhjjYhAu6A==", + "dependencies": { + "@babel/runtime": "^7.16.0", + "@polkadot/networks": "^7.8.2", + "@polkadot/types": "6.8.1", + "@polkadot/util": "^7.8.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/util": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-7.8.2.tgz", + "integrity": "sha512-7JxRdSjw+7EUmCEIju34VLgeICNmfnOPby6lTzac0ODO2IH3NfE42YRGjRelRm+cNEmL272jojfU+o2Q7ePTww==", + "dependencies": { + "@babel/runtime": "^7.16.0", + "@polkadot/x-textdecoder": "7.8.2", + "@polkadot/x-textencoder": "7.8.2", + "@types/bn.js": "^4.11.6", + "bn.js": "^4.12.0", + "camelcase": "^6.2.0", + "ip-regex": "^4.3.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/util-crypto": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-7.8.2.tgz", + "integrity": "sha512-wmWRRQuYmf3j4DJMPG2+J2BCS0uyO9yXuYlPdZ31enehTNDPl7Uke9sCUAdlAIwIfz60i4SIh8wyFPKMMwthqQ==", + "dependencies": { + "@babel/runtime": "^7.16.0", + "@polkadot/networks": "7.8.2", + "@polkadot/util": "7.8.2", + "@polkadot/wasm-crypto": "^4.2.1", + "@polkadot/x-randomvalues": "7.8.2", + "base-x": "^3.0.9", + "base64-js": "^1.5.1", + "blakejs": "^1.1.1", + "bn.js": "^4.12.0", + "create-hash": "^1.2.0", + "ed2curve": "^0.3.0", + "elliptic": "^6.5.4", + "hash.js": "^1.1.7", + "js-sha3": "^0.8.0", + "scryptsy": "^2.1.0", + "tweetnacl": "^1.0.3", + "xxhashjs": "^0.2.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/wasm-crypto": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto/-/wasm-crypto-4.2.1.tgz", + "integrity": "sha512-C/A/QnemOilRTLnM0LfhPY2N/x3ZFd1ihm9sXYyuh98CxtekSVYI9h4IJ5Jrgz5imSUHgvt9oJLqJ5GbWQV/Zg==", + "dependencies": { + "@babel/runtime": "^7.15.3", + "@polkadot/wasm-crypto-asmjs": "^4.2.1", + "@polkadot/wasm-crypto-wasm": "^4.2.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/wasm-crypto-asmjs": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-4.2.1.tgz", + "integrity": "sha512-ON9EBpTNDCI3QRUmuQJIegYoAcwvxDaNNA7uwKTaEEStu8LjCIbQxbt4WbOBYWI0PoUpl4iIluXdT3XZ3V3jXA==", + "dependencies": { + "@babel/runtime": "^7.15.3" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/wasm-crypto-wasm": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-4.2.1.tgz", + "integrity": "sha512-Rs2CKiR4D+2hKzmKBfPNYxcd2E8NfLWia0av4fgicjT9YsWIWOGQUi9AtSOfazPOR9FrjxKJy+chQxAkcfKMnQ==", + "dependencies": { + "@babel/runtime": "^7.15.3" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/x-fetch": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-7.8.2.tgz", + "integrity": "sha512-CC9mQy9TW0WYmWRs7GNOzqvhIE05DBWP5tnDjjgZLcb1vB2wY4pUV5XQAK/gymbfsajWxEc/+89afwJ9PmhjQw==", + "dependencies": { + "@babel/runtime": "^7.16.0", + "@polkadot/x-global": "7.8.2", + "@types/node-fetch": "^2.5.12", + "node-fetch": "^2.6.6" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/x-global": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-7.8.2.tgz", + "integrity": "sha512-olULRitxWv1tsSDgLdiVBbyzaU+OJbw8aTdmUMj9ZiIJstBzbNT/vsTWkX6JuMSLb9hw6ElaDXJ7zaffHY5siw==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/x-randomvalues": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-7.8.2.tgz", + "integrity": "sha512-e/Jc9oCP+IIDWy5u+jk1Cz8ulI3os1VlSaQGsNPA8U56PGLJr+PeI4EnXzjIVgdKuwOhV7C/TTyu7fnGsIGTrA==", + "dependencies": { + "@babel/runtime": "^7.16.0", + "@polkadot/x-global": "7.8.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/x-textdecoder": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-7.8.2.tgz", + "integrity": "sha512-Ggp/lUjG6+w75lpbUjWFAxH262gu9hfMu89qd9VOUoPX6CbNT5mUPKaVDtofjmKcQzfW1zZRPjlePzv+JVoTVg==", + "dependencies": { + "@babel/runtime": "^7.16.0", + "@polkadot/x-global": "7.8.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/x-textencoder": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-7.8.2.tgz", + "integrity": "sha512-GtgqGlXYEQqwO6Nl9ZX08KF1Bc3WIId8ADDNTHqLgXaQLqQykwdqQZUKPSnjhQFf8kJX6+kOSxzmv8P5oMTJcg==", + "dependencies": { + "@babel/runtime": "^7.16.0", + "@polkadot/x-global": "7.8.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@polkadot/x-ws": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-7.8.2.tgz", + "integrity": "sha512-ZnE82YTm96UY5Kt9mWFp5pEtBZRLw02w5EucZ5bCdBVGCIjU0wvfaHgyHRn0XlNCNvsExPanDiT3G+p+UX/NmQ==", + "dependencies": { + "@babel/runtime": "^7.16.0", + "@polkadot/x-global": "7.8.2", + "@types/websocket": "^1.0.4", + "websocket": "^1.0.34" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@types/bn.js": { + "version": "4.11.6", + "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.6.tgz", + "integrity": "sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/node": { + "version": "16.11.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.7.tgz", + "integrity": "sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw==" + }, + "node_modules/@types/node-fetch": { + "version": "2.5.12", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.5.12.tgz", + "integrity": "sha512-MKgC4dlq4kKNa/mYrwpKfzQMB5X3ee5U6fSprkKpToBqBmX4nFZL9cW5jl6sWn+xpRJ7ypWh2yyqqr8UUCstSw==", + "dependencies": { + "@types/node": "*", + "form-data": "^3.0.0" + } + }, + "node_modules/@types/websocket": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@types/websocket/-/websocket-1.0.4.tgz", + "integrity": "sha512-qn1LkcFEKK8RPp459jkjzsfpbsx36BBt3oC3pITYtkoBw/aVX+EZFa5j3ThCRTNpLFvIMr5dSTD4RaMdilIOpA==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + }, + "node_modules/base-x": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", + "integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" + }, + "node_modules/blakejs": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/blakejs/-/blakejs-1.1.1.tgz", + "integrity": "sha512-bLG6PHOCZJKNshTjGRBvET0vTciwQE6zFKOKKXPDJfwFBd4Ac0yBfPZqcGvGJap50l7ktvlpFqc2jGVaUgbJgg==" + }, + "node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, + "node_modules/brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=" + }, + "node_modules/bufferutil": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.5.tgz", + "integrity": "sha512-HTm14iMQKK2FjFLRTM5lAVcyaUzOnqbPtesFIvREgXpJHdQm8bWS+GkQgIkfaBYRHuCnea7w8UVNfwiAQhlr9A==", + "hasInstallScript": true, + "dependencies": { + "node-gyp-build": "^4.3.0" + }, + "engines": { + "node": ">=6.14.2" + } + }, + "node_modules/camelcase": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz", + "integrity": "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==", + "engines": { + "node": ">=10" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cipher-base": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", + "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/cli-progress": { + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/cli-progress/-/cli-progress-3.9.1.tgz", + "integrity": "sha512-AXxiCe2a0Lm0VN+9L0jzmfQSkcZm5EYspfqXKaSIQKqIk+0hnkZ3/v1E9B39mkD6vYhKih3c/RPsJBSwq9O99Q==", + "dependencies": { + "colors": "^1.1.2", + "string-width": "^4.2.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/colors": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", + "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/create-hash": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", + "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", + "dependencies": { + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "md5.js": "^1.3.4", + "ripemd160": "^2.0.1", + "sha.js": "^2.4.0" + } + }, + "node_modules/cuint": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/cuint/-/cuint-0.2.2.tgz", + "integrity": "sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs=" + }, + "node_modules/d": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz", + "integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==", + "dependencies": { + "es5-ext": "^0.10.50", + "type": "^1.0.1" + } + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/dotenv": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", + "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", + "engines": { + "node": ">=10" + } + }, + "node_modules/ed2curve": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/ed2curve/-/ed2curve-0.3.0.tgz", + "integrity": "sha512-8w2fmmq3hv9rCrcI7g9hms2pMunQr1JINfcjwR9tAyZqhtyaMN991lF/ZfHfr5tzZQ8c7y7aBgZbjfbd0fjFwQ==", + "dependencies": { + "tweetnacl": "1.x.x" + } + }, + "node_modules/elliptic": { + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", + "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", + "dependencies": { + "bn.js": "^4.11.9", + "brorand": "^1.1.0", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/es5-ext": { + "version": "0.10.53", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.53.tgz", + "integrity": "sha512-Xs2Stw6NiNHWypzRTY1MtaG/uJlwCk8kH81920ma8mvN8Xq1gsfhZvpkImLQArw8AHnv8MT2I45J3c0R8slE+Q==", + "dependencies": { + "es6-iterator": "~2.0.3", + "es6-symbol": "~3.1.3", + "next-tick": "~1.0.0" + } + }, + "node_modules/es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", + "dependencies": { + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/es6-symbol": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz", + "integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==", + "dependencies": { + "d": "^1.0.1", + "ext": "^1.1.2" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "engines": { + "node": ">=6" + } + }, + "node_modules/eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" + }, + "node_modules/ext": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/ext/-/ext-1.6.0.tgz", + "integrity": "sha512-sdBImtzkq2HpkdRLtlLWDa6w4DX22ijZLKx8BMPUuKe1c5lbN6xwQDQCxSfxBQnHZ13ls/FH0MQZx/q/gr6FQg==", + "dependencies": { + "type": "^2.5.0" + } + }, + "node_modules/ext/node_modules/type": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/type/-/type-2.5.0.tgz", + "integrity": "sha512-180WMDQaIMm3+7hGXWf12GtdniDEy7nYcyFMKJn/eZz/6tSLXrUN9V0wKSbMjej0I1WHWbpREDEKHtqPQa9NNw==" + }, + "node_modules/form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/hash-base": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", + "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", + "dependencies": { + "inherits": "^2.0.4", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/hash.js": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", + "dependencies": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" + } + }, + "node_modules/hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", + "dependencies": { + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ip-regex": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz", + "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" + }, + "node_modules/js-sha3": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", + "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" + }, + "node_modules/md5.js": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", + "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", + "dependencies": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "node_modules/mime-db": { + "version": "1.51.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", + "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.34", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", + "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", + "dependencies": { + "mime-db": "1.51.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" + }, + "node_modules/minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=" + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "node_modules/next-tick": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", + "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=" + }, + "node_modules/node-fetch": { + "version": "2.6.6", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.6.tgz", + "integrity": "sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + } + }, + "node_modules/node-gyp-build": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.3.0.tgz", + "integrity": "sha512-iWjXZvmboq0ja1pUGULQBexmxq8CV4xBhX7VDOTbL7ZR4FOowwY/VOtRxBN/yKxmdGoIp4j5ysNT4u3S2pDQ3Q==", + "bin": { + "node-gyp-build": "bin.js", + "node-gyp-build-optional": "optional.js", + "node-gyp-build-test": "build-test.js" + } + }, + "node_modules/readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.9", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", + "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==" + }, + "node_modules/ripemd160": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", + "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", + "dependencies": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1" + } + }, + "node_modules/rxjs": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.4.0.tgz", + "integrity": "sha512-7SQDi7xeTMCJpqViXh8gL/lebcwlp3d831F05+9B44A4B0WfsEwUQHR64gsH1kvJ+Ep/J9K2+n1hVl1CsGN23w==", + "dependencies": { + "tslib": "~2.1.0" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + }, + "node_modules/scryptsy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/scryptsy/-/scryptsy-2.1.0.tgz", + "integrity": "sha512-1CdSqHQowJBnMAFyPEBRfqag/YP9OF394FV+4YREIJX4ljD7OxvQRDayyoyyCk+senRjSkP6VnUNQmVQqB6g7w==" + }, + "node_modules/sha.js": { + "version": "2.4.11", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", + "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + }, + "bin": { + "sha.js": "bin.js" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", + "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dependencies": { + "ansi-regex": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" + }, + "node_modules/tslib": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz", + "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" + }, + "node_modules/tweetnacl": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", + "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==" + }, + "node_modules/type": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz", + "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==" + }, + "node_modules/typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dependencies": { + "is-typedarray": "^1.0.0" + } + }, + "node_modules/utf-8-validate": { + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.7.tgz", + "integrity": "sha512-vLt1O5Pp+flcArHGIyKEQq883nBt8nN8tVBcoL0qUXj2XT1n7p70yGIq2VK98I5FdZ1YHc0wk/koOnHjnXWk1Q==", + "hasInstallScript": true, + "dependencies": { + "node-gyp-build": "^4.3.0" + }, + "engines": { + "node": ">=6.14.2" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" + }, + "node_modules/websocket": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/websocket/-/websocket-1.0.34.tgz", + "integrity": "sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ==", + "dependencies": { + "bufferutil": "^4.0.1", + "debug": "^2.2.0", + "es5-ext": "^0.10.50", + "typedarray-to-buffer": "^3.1.5", + "utf-8-validate": "^5.0.2", + "yaeti": "^0.0.6" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/xxhashjs": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/xxhashjs/-/xxhashjs-0.2.2.tgz", + "integrity": "sha512-AkTuIuVTET12tpsVIQo+ZU6f/qDmKuRUcjaqR+OIvm+aCBsZ95i7UVY5WJ9TMsSaZ0DA2WxoZ4acu0sPH+OKAw==", + "dependencies": { + "cuint": "^0.2.2" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "engines": { + "node": ">=10" + } + }, + "node_modules/yaeti": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", + "integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc=", + "engines": { + "node": ">=0.10.32" + } + }, + "node_modules/yargs": { + "version": "17.1.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.1.1.tgz", + "integrity": "sha512-c2k48R0PwKIqKhPMWjeiF6y2xY/gPMUlro0sgxqXpbOIohWiLNXWslsootttv7E1e73QPAMQSg5FeySbVcpsPQ==", + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "engines": { + "node": ">=10" + } + } + }, "dependencies": { "@babel/runtime": { "version": "7.16.3", @@ -690,6 +1689,14 @@ "safe-buffer": "^5.0.1" } }, + "string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "requires": { + "safe-buffer": "~5.2.0" + } + }, "string-width": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", @@ -700,14 +1707,6 @@ "strip-ansi": "^6.0.0" } }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "requires": { - "safe-buffer": "~5.2.0" - } - }, "strip-ansi": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",