From 87b6e0084040ba8708b864217be3783025c00c88 Mon Sep 17 00:00:00 2001 From: imstar15 Date: Tue, 11 Oct 2022 17:25:53 +0800 Subject: [PATCH 1/2] turing-staging faucet --- package-lock.json | 605 +++++++++++++++++++++++++++++++++------------ package.json | 2 +- src/bot/actions.js | 9 +- src/bot/discord.js | 2 +- src/config.js | 4 +- 5 files changed, 462 insertions(+), 160 deletions(-) diff --git a/package-lock.json b/package-lock.json index 264fbfd..939a940 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "body-parser": "^1.19.0", "bs58": "^4.0.1", "crypto": "^1.0.1", - "discord.js": "^13.5.0", + "discord.js": "^14.6.0", "express": "^4.17.1", "lodash": "^4.17.21", "matrix-js-sdk": "^12.1.0", @@ -34,28 +34,53 @@ } }, "node_modules/@discordjs/builders": { - "version": "0.11.0", - "resolved": "https://registry.npmmirror.com/@discordjs/builders/download/@discordjs/builders-0.11.0.tgz", - "integrity": "sha512-ZTB8yJdJKrKlq44dpWkNUrAtEJEq0gqpb7ASdv4vmq6/mZal5kOv312hQ56I/vxwMre+VIkoHquNUAfnTbiYtg==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-1.3.0.tgz", + "integrity": "sha512-Pvca6Nw8Hp+n3N+Wp17xjygXmMvggbh5ywUsOYE2Et4xkwwVRwgzxDJiMUuYapPtnYt4w/8aKlf5khc8ipLvhg==", "dependencies": { - "@sindresorhus/is": "^4.2.0", - "discord-api-types": "^0.26.0", - "ts-mixer": "^6.0.0", - "tslib": "^2.3.1", - "zod": "^3.11.6" + "@discordjs/util": "^0.1.0", + "@sapphire/shapeshift": "^3.7.0", + "discord-api-types": "^0.37.12", + "fast-deep-equal": "^3.1.3", + "ts-mixer": "^6.0.1", + "tslib": "^2.4.0" }, "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "node": ">=16.9.0" } }, "node_modules/@discordjs/collection": { - "version": "0.4.0", - "resolved": "https://registry.npmmirror.com/@discordjs/collection/download/@discordjs/collection-0.4.0.tgz", - "integrity": "sha512-zmjq+l/rV35kE6zRrwe8BHqV78JvIh2ybJeZavBi5NySjWXqN3hmmAKg7kYMMXSeiWtSsMoZ/+MQi0DiQWy2lw==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-1.2.0.tgz", + "integrity": "sha512-VvrrtGb7vbfPHzbhGq9qZB5o8FOB+kfazrxdt0OtxzSkoBuw9dURMkCwWizZ00+rDpiK2HmLHBZX+y6JsG9khw==", "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "node": ">=16.9.0" + } + }, + "node_modules/@discordjs/rest": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-1.3.0.tgz", + "integrity": "sha512-U6X5J+r/MxYpPTlHFuPxXEf92aKsBaD2teBC7sWkKILIr30O8c9+XshfL7KFBCavnAqS/qE+PF9fgRilO3N44g==", + "dependencies": { + "@discordjs/collection": "^1.2.0", + "@discordjs/util": "^0.1.0", + "@sapphire/async-queue": "^1.5.0", + "@sapphire/snowflake": "^3.2.2", + "discord-api-types": "^0.37.12", + "file-type": "^18.0.0", + "tslib": "^2.4.0", + "undici": "^5.11.0" + }, + "engines": { + "node": ">=16.9.0" + } + }, + "node_modules/@discordjs/util": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@discordjs/util/-/util-0.1.0.tgz", + "integrity": "sha512-e7d+PaTLVQav6rOc2tojh2y6FE8S7REkqLldq1XF4soCx74XB/DIjbVbVLtBemf0nLW77ntz0v+o5DytKwFNLQ==", + "engines": { + "node": ">=16.9.0" } }, "node_modules/@noble/hashes": { @@ -490,10 +515,31 @@ } }, "node_modules/@sapphire/async-queue": { - "version": "1.1.9", - "resolved": "https://registry.npmmirror.com/@sapphire/async-queue/download/@sapphire/async-queue-1.1.9.tgz", - "integrity": "sha1-zmlhHIdTxK/9kFp+9DBhx+uVwBs=", - "license": "MIT", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@sapphire/async-queue/-/async-queue-1.5.0.tgz", + "integrity": "sha512-JkLdIsP8fPAdh9ZZjrbHWR/+mZj0wvKS5ICibcLrRI1j84UmLMshx5n9QmL8b95d4onJ2xxiyugTgSAX7AalmA==", + "engines": { + "node": ">=v14.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@sapphire/shapeshift": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sapphire/shapeshift/-/shapeshift-3.7.0.tgz", + "integrity": "sha512-A6vI1zJoxhjWo4grsxpBRBgk96SqSdjLX5WlzKp9H+bJbkM07mvwcbtbVAmUZHbi/OG3HLfiZ1rlw4BhH6tsBQ==", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "lodash.uniqwith": "^4.5.0" + }, + "engines": { + "node": ">=v14.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@sapphire/snowflake": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@sapphire/snowflake/-/snowflake-3.2.2.tgz", + "integrity": "sha512-ula2O0kpSZtX9rKXNeQMrHwNd7E4jPDJYUXmEGTFdMRfyfMw+FPyh04oKMjAiDuOi64bYgVkOV3MjK+loImFhQ==", "engines": { "node": ">=v14.0.0", "npm": ">=7.0.0" @@ -510,19 +556,16 @@ } ] }, - "node_modules/@sindresorhus/is": { - "version": "4.2.0", - "resolved": "https://registry.nlark.com/@sindresorhus/is/download/@sindresorhus/is-4.2.0.tgz", - "integrity": "sha1-Znv8YYaufJ4LRaCJYMVRQ3F24co=", - "engines": { - "node": ">=10" - } - }, "node_modules/@substrate/ss58-registry": { "version": "1.16.0", "resolved": "https://registry.npmjs.org/@substrate/ss58-registry/-/ss58-registry-1.16.0.tgz", "integrity": "sha512-z88145A9NE0mnDbIYRP1SlHndDtm6Jd1cRnG2InRCA/M7UprFRc0zrtaTWj1KBHfcVc2uYUMggGXuenQPBQ8yQ==" }, + "node_modules/@tokenizer/token": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", + "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==" + }, "node_modules/@types/bn.js": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.0.tgz", @@ -538,9 +581,9 @@ "license": "MIT" }, "node_modules/@types/node-fetch": { - "version": "2.5.12", - "resolved": "https://registry.nlark.com/@types/node-fetch/download/@types/node-fetch-2.5.12.tgz?cache=0&sync_timestamp=1630689308380&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fnode-fetch%2Fdownload%2F%40types%2Fnode-fetch-2.5.12.tgz", - "integrity": "sha1-im93mx1OYLelf7b9SNhPtUW5zGY=", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.2.tgz", + "integrity": "sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==", "dependencies": { "@types/node": "*", "form-data": "^3.0.0" @@ -572,9 +615,9 @@ } }, "node_modules/@types/ws": { - "version": "8.2.2", - "resolved": "https://registry.npmmirror.com/@types/ws/download/@types/ws-8.2.2.tgz", - "integrity": "sha512-NOn5eIcgWLOo6qW8AcuLZ7G8PycXu0xTxxkS6Q18VWFxgPUSOwV0pBj2a/4viNZVu25i7RIB7GttdkAIUUXOOg==", + "version": "8.5.3", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.3.tgz", + "integrity": "sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==", "dependencies": { "@types/node": "*" } @@ -723,6 +766,17 @@ "node": ">=6.14.2" } }, + "node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, "node_modules/bytes": { "version": "3.1.0", "license": "MIT", @@ -840,44 +894,30 @@ "license": "MIT" }, "node_modules/discord-api-types": { - "version": "0.26.1", - "resolved": "https://registry.npmmirror.com/discord-api-types/download/discord-api-types-0.26.1.tgz", - "integrity": "sha512-T5PdMQ+Y1MEECYMV5wmyi9VEYPagEDEi4S0amgsszpWY0VB9JJ/hEvM6BgLhbdnKky4gfmZEXtEEtojN8ZKJQQ==", - "engines": { - "node": ">=12" - } + "version": "0.37.12", + "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.12.tgz", + "integrity": "sha512-SMBP4V6/A9mE7shBQAiTxNWnQlYTdiKMGvc7G23neayxaTJeFYh5FviJSWUa0BTdXcph1h/jT03Nbyv5XgZkzw==" }, "node_modules/discord.js": { - "version": "13.5.0", - "resolved": "https://registry.npmmirror.com/discord.js/download/discord.js-13.5.0.tgz", - "integrity": "sha512-K+ZcB0f+wA1ZzDhz3hlaAi4Ap7jSvVEUZ+U29T4DMoiNNUv22F4vu1byrOq8GyyLLDFiZ3iSudea0MvSHu3fQA==", + "version": "14.6.0", + "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.6.0.tgz", + "integrity": "sha512-On1K7xpJZRe0KsziIaDih2ksYPhgxym/ZqV45i1f3yig4vUotikqs7qp5oXiTzQ/UTiNRCixUWFTh7vA1YBCqw==", "dependencies": { - "@discordjs/builders": "^0.11.0", - "@discordjs/collection": "^0.4.0", - "@sapphire/async-queue": "^1.1.9", - "@types/node-fetch": "^2.5.12", - "@types/ws": "^8.2.2", - "discord-api-types": "^0.26.0", - "form-data": "^4.0.0", - "node-fetch": "^2.6.1", - "ws": "^8.4.0" + "@discordjs/builders": "^1.3.0", + "@discordjs/collection": "^1.2.0", + "@discordjs/rest": "^1.3.0", + "@discordjs/util": "^0.1.0", + "@sapphire/snowflake": "^3.2.2", + "@types/ws": "^8.5.3", + "discord-api-types": "^0.37.12", + "fast-deep-equal": "^3.1.3", + "lodash.snakecase": "^4.1.1", + "tslib": "^2.4.0", + "undici": "^5.11.0", + "ws": "^8.9.0" }, "engines": { - "node": ">=16.6.0", - "npm": ">=7.0.0" - } - }, - "node_modules/discord.js/node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.nlark.com/form-data/download/form-data-4.0.0.tgz", - "integrity": "sha1-k5Gdrq82HuUpWEubMWZNwSyfpFI=", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" + "node": ">=16.9.0" } }, "node_modules/ecc-jsbn": { @@ -1031,6 +1071,22 @@ "version": "2.1.0", "license": "MIT" }, + "node_modules/file-type": { + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-18.0.0.tgz", + "integrity": "sha512-jjMwFpnW8PKofLE/4ohlhqwDk5k0NC6iy0UHAJFKoY1fQeGMN0GDdLgHQrvCbSpMwbqzoCZhRI5dETCZna5qVA==", + "dependencies": { + "readable-web-to-node-stream": "^3.0.2", + "strtok3": "^7.0.0", + "token-types": "^5.0.1" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sindresorhus/file-type?sponsor=1" + } + }, "node_modules/finalhandler": { "version": "1.1.2", "license": "MIT", @@ -1216,6 +1272,25 @@ "node": ">=0.10.0" } }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/immediate": { "version": "3.0.6", "license": "MIT" @@ -1298,6 +1373,16 @@ "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", "integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=" }, + "node_modules/lodash.snakecase": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", + "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==" + }, + "node_modules/lodash.uniqwith": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniqwith/-/lodash.uniqwith-4.5.0.tgz", + "integrity": "sha512-7lYL8bLopMoy4CTICbxygAUq6CdRJ36vFc80DucPueUee+d5NBRxz3FdT9Pes/HEx5mPoT9jwnsEJWz1N7uq7Q==" + }, "node_modules/loglevel": { "version": "1.7.1", "license": "MIT", @@ -1549,6 +1634,18 @@ "version": "0.1.7", "license": "MIT" }, + "node_modules/peek-readable": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/peek-readable/-/peek-readable-5.0.0.tgz", + "integrity": "sha512-YtCKvLUOvwtMGmrniQPdO7MwPjgkFBtFIrmfSbYmYuq3tKDV/mcfAhBth1+C3ru7uXIZasc/pHnb+YDYNkkj4A==", + "engines": { + "node": ">=14.16" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, "node_modules/performance-now": { "version": "2.1.0", "license": "MIT" @@ -1610,6 +1707,34 @@ "node": ">= 0.8" } }, + "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/readable-web-to-node-stream": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/readable-web-to-node-stream/-/readable-web-to-node-stream-3.0.2.tgz", + "integrity": "sha512-ePeK6cc1EcKLEhJFt/AebMCLL+GgSKhuygrZ/GLaKZYEecIgIECf4UaUuaByiGtzckwR4ain9VzUh95T1exYGw==", + "dependencies": { + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, "node_modules/regenerator-runtime": { "version": "0.13.9", "license": "MIT" @@ -1790,6 +1915,38 @@ "node": ">= 0.6" } }, + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" + } + }, + "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/strtok3": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-7.0.0.tgz", + "integrity": "sha512-pQ+V+nYQdC5H3Q7qBZAz/MO6lwGhoC2gOAjuouGf/VO0m7vQRh8QNMl2Uf6SwAtzZ9bOw3UIeBukEGNJl5dtXQ==", + "dependencies": { + "@tokenizer/token": "^0.3.0", + "peek-readable": "^5.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, "node_modules/toidentifier": { "version": "1.0.0", "license": "MIT", @@ -1797,6 +1954,22 @@ "node": ">=0.6" } }, + "node_modules/token-types": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-5.0.1.tgz", + "integrity": "sha512-Y2fmSnZjQdDb9W4w4r1tswlMHylzWIeOKpx0aZH9BgGtACHhrk3OkT52AzwcuqTRBZtvvnTjDBh8eynMulu8Vg==", + "dependencies": { + "@tokenizer/token": "^0.3.0", + "ieee754": "^1.2.1" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, "node_modules/tough-cookie": { "version": "2.5.0", "license": "BSD-3-Clause", @@ -1813,14 +1986,14 @@ "license": "MIT" }, "node_modules/ts-mixer": { - "version": "6.0.0", - "resolved": "https://registry.nlark.com/ts-mixer/download/ts-mixer-6.0.0.tgz", - "integrity": "sha1-TmMdOjbj+pUhuXOxMug1O8cmf58=" + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ts-mixer/-/ts-mixer-6.0.1.tgz", + "integrity": "sha512-hvE+ZYXuINrx6Ei6D6hz+PTim0Uf++dYbK9FFifLNwQj+RwKquhQpn868yZsCtJYiclZF1u8l6WZxxKi+vv7Rg==" }, "node_modules/tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmmirror.com/tslib/download/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" }, "node_modules/tunnel-agent": { "version": "0.6.0", @@ -1864,6 +2037,17 @@ "node_modules/underscore": { "version": "1.4.4" }, + "node_modules/undici": { + "version": "5.11.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.11.0.tgz", + "integrity": "sha512-oWjWJHzFet0Ow4YZBkyiJwiK5vWqEYoH7BINzJAJOLedZ++JpAlCbUktW2GQ2DS2FpKmxD/JMtWUUWl1BtghGw==", + "dependencies": { + "busboy": "^1.6.0" + }, + "engines": { + "node": ">=12.18" + } + }, "node_modules/unhomoglyph": { "version": "1.0.6", "license": "MIT" @@ -1893,6 +2077,11 @@ "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": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, "node_modules/utils-merge": { "version": "1.0.1", "license": "MIT", @@ -1962,9 +2151,9 @@ } }, "node_modules/ws": { - "version": "8.4.0", - "resolved": "https://registry.npmmirror.com/ws/download/ws-8.4.0.tgz", - "integrity": "sha512-IHVsKe2pjajSUIl4KYMQOdlyliovpEPquKkqbwswulszzI7r0SfQrxnXdWAEqOlDCLrVSJzo+O1hAwdog2sKSQ==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz", + "integrity": "sha512-Ja7nszREasGaYUYCI2k4lCKIRTt+y7XuqVoHR44YpI49TtryyqbqvDMn5eqfW7e6HzTukDRIsXqzVHScqRcafg==", "engines": { "node": ">=10.0.0" }, @@ -1988,15 +2177,6 @@ "engines": { "node": ">=0.10.32" } - }, - "node_modules/zod": { - "version": "3.11.6", - "resolved": "https://registry.npmmirror.com/zod/download/zod-3.11.6.tgz", - "integrity": "sha1-5DpeDCE64uAq7+fLKxpvo9fx9IM=", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } } }, "dependencies": { @@ -2009,21 +2189,42 @@ } }, "@discordjs/builders": { - "version": "0.11.0", - "resolved": "https://registry.npmmirror.com/@discordjs/builders/download/@discordjs/builders-0.11.0.tgz", - "integrity": "sha512-ZTB8yJdJKrKlq44dpWkNUrAtEJEq0gqpb7ASdv4vmq6/mZal5kOv312hQ56I/vxwMre+VIkoHquNUAfnTbiYtg==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-1.3.0.tgz", + "integrity": "sha512-Pvca6Nw8Hp+n3N+Wp17xjygXmMvggbh5ywUsOYE2Et4xkwwVRwgzxDJiMUuYapPtnYt4w/8aKlf5khc8ipLvhg==", "requires": { - "@sindresorhus/is": "^4.2.0", - "discord-api-types": "^0.26.0", - "ts-mixer": "^6.0.0", - "tslib": "^2.3.1", - "zod": "^3.11.6" + "@discordjs/util": "^0.1.0", + "@sapphire/shapeshift": "^3.7.0", + "discord-api-types": "^0.37.12", + "fast-deep-equal": "^3.1.3", + "ts-mixer": "^6.0.1", + "tslib": "^2.4.0" } }, "@discordjs/collection": { - "version": "0.4.0", - "resolved": "https://registry.npmmirror.com/@discordjs/collection/download/@discordjs/collection-0.4.0.tgz", - "integrity": "sha512-zmjq+l/rV35kE6zRrwe8BHqV78JvIh2ybJeZavBi5NySjWXqN3hmmAKg7kYMMXSeiWtSsMoZ/+MQi0DiQWy2lw==" + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-1.2.0.tgz", + "integrity": "sha512-VvrrtGb7vbfPHzbhGq9qZB5o8FOB+kfazrxdt0OtxzSkoBuw9dURMkCwWizZ00+rDpiK2HmLHBZX+y6JsG9khw==" + }, + "@discordjs/rest": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-1.3.0.tgz", + "integrity": "sha512-U6X5J+r/MxYpPTlHFuPxXEf92aKsBaD2teBC7sWkKILIr30O8c9+XshfL7KFBCavnAqS/qE+PF9fgRilO3N44g==", + "requires": { + "@discordjs/collection": "^1.2.0", + "@discordjs/util": "^0.1.0", + "@sapphire/async-queue": "^1.5.0", + "@sapphire/snowflake": "^3.2.2", + "discord-api-types": "^0.37.12", + "file-type": "^18.0.0", + "tslib": "^2.4.0", + "undici": "^5.11.0" + } + }, + "@discordjs/util": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@discordjs/util/-/util-0.1.0.tgz", + "integrity": "sha512-e7d+PaTLVQav6rOc2tojh2y6FE8S7REkqLldq1XF4soCx74XB/DIjbVbVLtBemf0nLW77ntz0v+o5DytKwFNLQ==" }, "@noble/hashes": { "version": "1.0.0", @@ -2359,25 +2560,39 @@ } }, "@sapphire/async-queue": { - "version": "1.1.9", - "resolved": "https://registry.npmmirror.com/@sapphire/async-queue/download/@sapphire/async-queue-1.1.9.tgz", - "integrity": "sha1-zmlhHIdTxK/9kFp+9DBhx+uVwBs=" + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@sapphire/async-queue/-/async-queue-1.5.0.tgz", + "integrity": "sha512-JkLdIsP8fPAdh9ZZjrbHWR/+mZj0wvKS5ICibcLrRI1j84UmLMshx5n9QmL8b95d4onJ2xxiyugTgSAX7AalmA==" + }, + "@sapphire/shapeshift": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sapphire/shapeshift/-/shapeshift-3.7.0.tgz", + "integrity": "sha512-A6vI1zJoxhjWo4grsxpBRBgk96SqSdjLX5WlzKp9H+bJbkM07mvwcbtbVAmUZHbi/OG3HLfiZ1rlw4BhH6tsBQ==", + "requires": { + "fast-deep-equal": "^3.1.3", + "lodash.uniqwith": "^4.5.0" + } + }, + "@sapphire/snowflake": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@sapphire/snowflake/-/snowflake-3.2.2.tgz", + "integrity": "sha512-ula2O0kpSZtX9rKXNeQMrHwNd7E4jPDJYUXmEGTFdMRfyfMw+FPyh04oKMjAiDuOi64bYgVkOV3MjK+loImFhQ==" }, "@scure/base": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.0.0.tgz", "integrity": "sha512-gIVaYhUsy+9s58m/ETjSJVKHhKTBMmcRb9cEV5/5dwvfDlfORjKrFsDeDHWRrm6RjcPvCLZFwGJjAjLj1gg4HA==" }, - "@sindresorhus/is": { - "version": "4.2.0", - "resolved": "https://registry.nlark.com/@sindresorhus/is/download/@sindresorhus/is-4.2.0.tgz", - "integrity": "sha1-Znv8YYaufJ4LRaCJYMVRQ3F24co=" - }, "@substrate/ss58-registry": { "version": "1.16.0", "resolved": "https://registry.npmjs.org/@substrate/ss58-registry/-/ss58-registry-1.16.0.tgz", "integrity": "sha512-z88145A9NE0mnDbIYRP1SlHndDtm6Jd1cRnG2InRCA/M7UprFRc0zrtaTWj1KBHfcVc2uYUMggGXuenQPBQ8yQ==" }, + "@tokenizer/token": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", + "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==" + }, "@types/bn.js": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.0.tgz", @@ -2392,9 +2607,9 @@ "integrity": "sha512-YofkM6fGv4gDJq78g4j0mMuGMkZVxZDgtU0JRdx6FgiJDG+0fY0GKVolOV8WqVmEhLCXkQRjwDdKyPxJp/uucg==" }, "@types/node-fetch": { - "version": "2.5.12", - "resolved": "https://registry.nlark.com/@types/node-fetch/download/@types/node-fetch-2.5.12.tgz?cache=0&sync_timestamp=1630689308380&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Fnode-fetch%2Fdownload%2F%40types%2Fnode-fetch-2.5.12.tgz", - "integrity": "sha1-im93mx1OYLelf7b9SNhPtUW5zGY=", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.2.tgz", + "integrity": "sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==", "requires": { "@types/node": "*", "form-data": "^3.0.0" @@ -2424,9 +2639,9 @@ } }, "@types/ws": { - "version": "8.2.2", - "resolved": "https://registry.npmmirror.com/@types/ws/download/@types/ws-8.2.2.tgz", - "integrity": "sha512-NOn5eIcgWLOo6qW8AcuLZ7G8PycXu0xTxxkS6Q18VWFxgPUSOwV0pBj2a/4viNZVu25i7RIB7GttdkAIUUXOOg==", + "version": "8.5.3", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.3.tgz", + "integrity": "sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==", "requires": { "@types/node": "*" } @@ -2538,6 +2753,14 @@ "node-gyp-build": "^4.3.0" } }, + "busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "requires": { + "streamsearch": "^1.1.0" + } + }, "bytes": { "version": "3.1.0" }, @@ -2614,36 +2837,27 @@ "version": "1.0.4" }, "discord-api-types": { - "version": "0.26.1", - "resolved": "https://registry.npmmirror.com/discord-api-types/download/discord-api-types-0.26.1.tgz", - "integrity": "sha512-T5PdMQ+Y1MEECYMV5wmyi9VEYPagEDEi4S0amgsszpWY0VB9JJ/hEvM6BgLhbdnKky4gfmZEXtEEtojN8ZKJQQ==" + "version": "0.37.12", + "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.12.tgz", + "integrity": "sha512-SMBP4V6/A9mE7shBQAiTxNWnQlYTdiKMGvc7G23neayxaTJeFYh5FviJSWUa0BTdXcph1h/jT03Nbyv5XgZkzw==" }, "discord.js": { - "version": "13.5.0", - "resolved": "https://registry.npmmirror.com/discord.js/download/discord.js-13.5.0.tgz", - "integrity": "sha512-K+ZcB0f+wA1ZzDhz3hlaAi4Ap7jSvVEUZ+U29T4DMoiNNUv22F4vu1byrOq8GyyLLDFiZ3iSudea0MvSHu3fQA==", - "requires": { - "@discordjs/builders": "^0.11.0", - "@discordjs/collection": "^0.4.0", - "@sapphire/async-queue": "^1.1.9", - "@types/node-fetch": "^2.5.12", - "@types/ws": "^8.2.2", - "discord-api-types": "^0.26.0", - "form-data": "^4.0.0", - "node-fetch": "^2.6.1", - "ws": "^8.4.0" - }, - "dependencies": { - "form-data": { - "version": "4.0.0", - "resolved": "https://registry.nlark.com/form-data/download/form-data-4.0.0.tgz", - "integrity": "sha1-k5Gdrq82HuUpWEubMWZNwSyfpFI=", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - } + "version": "14.6.0", + "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.6.0.tgz", + "integrity": "sha512-On1K7xpJZRe0KsziIaDih2ksYPhgxym/ZqV45i1f3yig4vUotikqs7qp5oXiTzQ/UTiNRCixUWFTh7vA1YBCqw==", + "requires": { + "@discordjs/builders": "^1.3.0", + "@discordjs/collection": "^1.2.0", + "@discordjs/rest": "^1.3.0", + "@discordjs/util": "^0.1.0", + "@sapphire/snowflake": "^3.2.2", + "@types/ws": "^8.5.3", + "discord-api-types": "^0.37.12", + "fast-deep-equal": "^3.1.3", + "lodash.snakecase": "^4.1.1", + "tslib": "^2.4.0", + "undici": "^5.11.0", + "ws": "^8.9.0" } }, "ecc-jsbn": { @@ -2774,6 +2988,16 @@ "fast-json-stable-stringify": { "version": "2.1.0" }, + "file-type": { + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-18.0.0.tgz", + "integrity": "sha512-jjMwFpnW8PKofLE/4ohlhqwDk5k0NC6iy0UHAJFKoY1fQeGMN0GDdLgHQrvCbSpMwbqzoCZhRI5dETCZna5qVA==", + "requires": { + "readable-web-to-node-stream": "^3.0.2", + "strtok3": "^7.0.0", + "token-types": "^5.0.1" + } + }, "finalhandler": { "version": "1.1.2", "requires": { @@ -2893,6 +3117,11 @@ "safer-buffer": ">= 2.1.2 < 3" } }, + "ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" + }, "immediate": { "version": "3.0.6" }, @@ -2954,6 +3183,16 @@ "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", "integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=" }, + "lodash.snakecase": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", + "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==" + }, + "lodash.uniqwith": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniqwith/-/lodash.uniqwith-4.5.0.tgz", + "integrity": "sha512-7lYL8bLopMoy4CTICbxygAUq6CdRJ36vFc80DucPueUee+d5NBRxz3FdT9Pes/HEx5mPoT9jwnsEJWz1N7uq7Q==" + }, "loglevel": { "version": "1.7.1" }, @@ -3103,6 +3342,11 @@ "path-to-regexp": { "version": "0.1.7" }, + "peek-readable": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/peek-readable/-/peek-readable-5.0.0.tgz", + "integrity": "sha512-YtCKvLUOvwtMGmrniQPdO7MwPjgkFBtFIrmfSbYmYuq3tKDV/mcfAhBth1+C3ru7uXIZasc/pHnb+YDYNkkj4A==" + }, "performance-now": { "version": "2.1.0" }, @@ -3139,6 +3383,24 @@ "unpipe": "1.0.0" } }, + "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==", + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "readable-web-to-node-stream": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/readable-web-to-node-stream/-/readable-web-to-node-stream-3.0.2.tgz", + "integrity": "sha512-ePeK6cc1EcKLEhJFt/AebMCLL+GgSKhuygrZ/GLaKZYEecIgIECf4UaUuaByiGtzckwR4ain9VzUh95T1exYGw==", + "requires": { + "readable-stream": "^3.6.0" + } + }, "regenerator-runtime": { "version": "0.13.9" }, @@ -3264,9 +3526,40 @@ "statuses": { "version": "1.5.0" }, + "streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==" + }, + "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" + } + }, + "strtok3": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-7.0.0.tgz", + "integrity": "sha512-pQ+V+nYQdC5H3Q7qBZAz/MO6lwGhoC2gOAjuouGf/VO0m7vQRh8QNMl2Uf6SwAtzZ9bOw3UIeBukEGNJl5dtXQ==", + "requires": { + "@tokenizer/token": "^0.3.0", + "peek-readable": "^5.0.0" + } + }, "toidentifier": { "version": "1.0.0" }, + "token-types": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-5.0.1.tgz", + "integrity": "sha512-Y2fmSnZjQdDb9W4w4r1tswlMHylzWIeOKpx0aZH9BgGtACHhrk3OkT52AzwcuqTRBZtvvnTjDBh8eynMulu8Vg==", + "requires": { + "@tokenizer/token": "^0.3.0", + "ieee754": "^1.2.1" + } + }, "tough-cookie": { "version": "2.5.0", "requires": { @@ -3278,14 +3571,14 @@ "version": "0.0.3" }, "ts-mixer": { - "version": "6.0.0", - "resolved": "https://registry.nlark.com/ts-mixer/download/ts-mixer-6.0.0.tgz", - "integrity": "sha1-TmMdOjbj+pUhuXOxMug1O8cmf58=" + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ts-mixer/-/ts-mixer-6.0.1.tgz", + "integrity": "sha512-hvE+ZYXuINrx6Ei6D6hz+PTim0Uf++dYbK9FFifLNwQj+RwKquhQpn868yZsCtJYiclZF1u8l6WZxxKi+vv7Rg==" }, "tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmmirror.com/tslib/download/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" }, "tunnel-agent": { "version": "0.6.0", @@ -3321,6 +3614,14 @@ "underscore": { "version": "1.4.4" }, + "undici": { + "version": "5.11.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.11.0.tgz", + "integrity": "sha512-oWjWJHzFet0Ow4YZBkyiJwiK5vWqEYoH7BINzJAJOLedZ++JpAlCbUktW2GQ2DS2FpKmxD/JMtWUUWl1BtghGw==", + "requires": { + "busboy": "^1.6.0" + } + }, "unhomoglyph": { "version": "1.0.6" }, @@ -3339,6 +3640,11 @@ "node-gyp-build": "^4.3.0" } }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, "utils-merge": { "version": "1.0.1" }, @@ -3385,20 +3691,15 @@ } }, "ws": { - "version": "8.4.0", - "resolved": "https://registry.npmmirror.com/ws/download/ws-8.4.0.tgz", - "integrity": "sha512-IHVsKe2pjajSUIl4KYMQOdlyliovpEPquKkqbwswulszzI7r0SfQrxnXdWAEqOlDCLrVSJzo+O1hAwdog2sKSQ==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz", + "integrity": "sha512-Ja7nszREasGaYUYCI2k4lCKIRTt+y7XuqVoHR44YpI49TtryyqbqvDMn5eqfW7e6HzTukDRIsXqzVHScqRcafg==", "requires": {} }, "yaeti": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", "integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc=" - }, - "zod": { - "version": "3.11.6", - "resolved": "https://registry.npmmirror.com/zod/download/zod-3.11.6.tgz", - "integrity": "sha1-5DpeDCE64uAq7+fLKxpvo9fx9IM=" } } } diff --git a/package.json b/package.json index e2b7d08..30cae65 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "body-parser": "^1.19.0", "bs58": "^4.0.1", "crypto": "^1.0.1", - "discord.js": "^13.5.0", + "discord.js": "^14.6.0", "express": "^4.17.1", "lodash": "^4.17.21", "matrix-js-sdk": "^12.1.0", diff --git a/src/bot/actions.js b/src/bot/actions.js index a97f451..65c6130 100644 --- a/src/bot/actions.js +++ b/src/bot/actions.js @@ -4,9 +4,10 @@ const pdKeyring = require('@polkadot/keyring'); const axios = require('axios'); const { DRIP_TYPE, SS58_PREFIX } = require("../constants"); -const { tokenSymbol, networkName, dripActions: { later: { maxScheduleSeconds } } } = require('./config'); +const { tokenSymbol, networkName, dripActions } = require('./config'); const { getNextHourStr, parseTime } = require('./helperFn'); -const { dripActions } = require("./config"); + +const { later: { maxScheduleSeconds } } = dripActions; const keyring = new pdKeyring.Keyring({ type: 'sr25519' }); keyring.setSS58Format(SS58_PREFIX); @@ -95,7 +96,7 @@ const dripLater = async (sender, address, time) => { const { amount } = dripActions[DRIP_TYPE.LATER]; const { data: { hash, providerId } } = res; - return `I will send ${amount} NEU to address ${address} at ${time} UTC. Extrinsic hash: ${hash}. Your provided_id: ${providerId}.`; + return `I will send ${amount} ${tokenSymbol} to address ${address} at ${time} UTC. Extrinsic hash: ${hash}. Your provided_id: ${providerId}.`; } const dripSwag = async (sender, address) => { @@ -120,7 +121,7 @@ const dripSwag = async (sender, address) => { const { amount } = dripActions[DRIP_TYPE.SWAG]; const { data: { hash, providerId } } = res; - return `For the next 24 hours, I will send ${amount} NEU to address ${address} per hour. Extrinsic hash: ${hash}. Your provided_id: ${providerId}.`; + return `For the next 24 hours, I will send ${amount} ${tokenSymbol} to address ${address} per hour. Extrinsic hash: ${hash}. Your provided_id: ${providerId}.`; } module.exports = { drip, dripLater, dripSwag }; diff --git a/src/bot/discord.js b/src/bot/discord.js index bebebfd..1f54a68 100644 --- a/src/bot/discord.js +++ b/src/bot/discord.js @@ -18,7 +18,7 @@ let ax = axios.create({ timeout: 10000, }); -const client = new Discord.Client({ intents: [Discord.Intents.FLAGS.GUILDS, Discord.Intents.FLAGS.GUILD_MESSAGES] }); +const client = new Discord.Client({ intents: [Discord.GatewayIntentBits.Guilds, Discord.GatewayIntentBits.GuildMessages, Discord.GatewayIntentBits.MessageContent] }); client.on('ready', () => { console.log(`Logged in as ${client.user.tag}!`); }); diff --git a/src/config.js b/src/config.js index 933af73..4edce6d 100644 --- a/src/config.js +++ b/src/config.js @@ -1,6 +1,6 @@ const config = { - networkName: 'Neumann Network', - tokenSymbol: 'NEU', + networkName: 'Turing Staging Network', + tokenSymbol: 'TUR', units: 10**10, dripActions: { normal: { From 12a7a8c0e757bc45c9fdac0363eebb9a998316a2 Mon Sep 17 00:00:00 2001 From: imstar15 Date: Wed, 12 Oct 2022 11:57:57 +0800 Subject: [PATCH 2/2] Remove dripSwag and dripLater action --- package-lock.json | 2237 +++++++++++++++-------------------------- package.json | 5 +- src/bot/actions.js | 70 +- src/bot/discord.js | 13 - src/bot/helperFn.js | 35 - src/config.js | 9 - src/constants.js | 2 - src/server/actions.js | 33 - src/server/index.js | 2 - 9 files changed, 816 insertions(+), 1590 deletions(-) delete mode 100644 src/bot/helperFn.js diff --git a/package-lock.json b/package-lock.json index 939a940..dd94668 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,23 +9,20 @@ "version": "1.0.0", "license": "ISC", "dependencies": { - "@polkadot/api": "^7.11.1", + "@polkadot/api": "^9.5.1", "axios": "^0.19.0", "body-parser": "^1.19.0", - "bs58": "^4.0.1", "crypto": "^1.0.1", "discord.js": "^14.6.0", "express": "^4.17.1", "lodash": "^4.17.21", - "matrix-js-sdk": "^12.1.0", - "moment": "^2.29.3", "nedb": "^1.8.0" } }, "node_modules/@babel/runtime": { - "version": "7.17.2", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.2.tgz", - "integrity": "sha512-hzeyJyMA1YGdJTuWU0e/j4wKXrU4OMFvY2MSlaI9B7VQb0r5cxTE3EAIS2Q7Tn2RIcDkRvTA/v2JsAEhxe99uw==", + "version": "7.19.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.19.4.tgz", + "integrity": "sha512-EXpLCrk55f+cYqmHsSR+yD/0gAIMxxA9QK9lnQWzhMCvt+YmoBN7Zx94s++Kv0+unHk39vxNO8t+CMA2WSS3wA==", "dependencies": { "regenerator-runtime": "^0.13.4" }, @@ -84,14 +81,20 @@ } }, "node_modules/@noble/hashes": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.0.0.tgz", - "integrity": "sha512-DZVbtY62kc3kkBtMHqwCOfXrT/hnoORy5BJ4+HU1IR59X0KWAOqsfzQPcUl/lQLlG7qXbe/fZ3r/emxtAl+sqg==" + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.1.3.tgz", + "integrity": "sha512-CE0FCR57H2acVI5UOzIGSSIYxZ6v/HOhDR0Ro9VLyhnzLwx0o8W1mmgaqlEUx4049qJDlIBRztv5k+MM8vbO3A==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ] }, "node_modules/@noble/secp256k1": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.5.2.tgz", - "integrity": "sha512-5mzA40W2q55VCRuC9XzmkiEnODdY0c5a7qsK2QcOfI5/MuVQyBaWGQyE6YOEF7kDwp+tDVWGsCDVJUME+wsWWw==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.0.tgz", + "integrity": "sha512-kbacwGSsH/CTout0ZnZWxnW1B+jH/7r/WAAKLBtrRJ/+CUH7lgmQzl3GTrQua3SGKWNSDsS6lmjnDpIJ5Dxyaw==", "funding": [ { "type": "individual", @@ -100,284 +103,285 @@ ] }, "node_modules/@polkadot/api": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-7.11.1.tgz", - "integrity": "sha512-VTrhVuSJrWhIww1ofYPd7EhJd1UwKntfdPNRuy/abfb6GPzYCglKV6Sze3CsbI2KawC5oo1K7Ffrdf/lJy81kg==", - "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/api-augment": "7.11.1", - "@polkadot/api-base": "7.11.1", - "@polkadot/api-derive": "7.11.1", - "@polkadot/keyring": "^8.4.1", - "@polkadot/rpc-augment": "7.11.1", - "@polkadot/rpc-core": "7.11.1", - "@polkadot/rpc-provider": "7.11.1", - "@polkadot/types": "7.11.1", - "@polkadot/types-augment": "7.11.1", - "@polkadot/types-codec": "7.11.1", - "@polkadot/types-create": "7.11.1", - "@polkadot/types-known": "7.11.1", - "@polkadot/util": "^8.4.1", - "@polkadot/util-crypto": "^8.4.1", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-9.5.1.tgz", + "integrity": "sha512-A2i/+mCl6cbFJ84ExMcWosUDfq0gVvzyKftkbRMs0oDzvHVVucTm0nCCzBgi/ltvSsFq8oJQ4pVqNTfT/IXgeQ==", + "dependencies": { + "@babel/runtime": "^7.19.0", + "@polkadot/api-augment": "9.5.1", + "@polkadot/api-base": "9.5.1", + "@polkadot/api-derive": "9.5.1", + "@polkadot/keyring": "^10.1.10", + "@polkadot/rpc-augment": "9.5.1", + "@polkadot/rpc-core": "9.5.1", + "@polkadot/rpc-provider": "9.5.1", + "@polkadot/types": "9.5.1", + "@polkadot/types-augment": "9.5.1", + "@polkadot/types-codec": "9.5.1", + "@polkadot/types-create": "9.5.1", + "@polkadot/types-known": "9.5.1", + "@polkadot/util": "^10.1.10", + "@polkadot/util-crypto": "^10.1.10", "eventemitter3": "^4.0.7", - "rxjs": "^7.5.4" + "rxjs": "^7.5.7" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/api-augment": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-7.11.1.tgz", - "integrity": "sha512-CqtmRZsr7va45r/wnsH+NZMqPyUQv46fmiHxt5gq6NC4p0ziDEVVDDHLlABx5RhQzCvdiBAccZ/X8DyMCFFGEA==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-9.5.1.tgz", + "integrity": "sha512-9NQ2miIKVJvyhR2Zhk0XcHA+pgnWhQ0815lqcq0kz9ny5JHUFeGlNtxECw7AEnxoiC81EqpfWkOHpJpfiIcOmw==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/api-base": "7.11.1", - "@polkadot/rpc-augment": "7.11.1", - "@polkadot/types": "7.11.1", - "@polkadot/types-augment": "7.11.1", - "@polkadot/types-codec": "7.11.1", - "@polkadot/util": "^8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/api-base": "9.5.1", + "@polkadot/rpc-augment": "9.5.1", + "@polkadot/types": "9.5.1", + "@polkadot/types-augment": "9.5.1", + "@polkadot/types-codec": "9.5.1", + "@polkadot/util": "^10.1.10" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/api-base": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-7.11.1.tgz", - "integrity": "sha512-MATI9tm0x3rRlipLMevWzJ4cGvMyrUGyOfwjMg3Z67U7atZgZ93LzowjzDcvSgFVM14d1tBOVWBKkCKnk7C6Zg==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-9.5.1.tgz", + "integrity": "sha512-3qsMsIhYbU3zp+YnP5h6Hg98y3B+FrxgPW7r2Uk6Kp1uSPmIzhMCyGuxur/BAcDVbd3KME+zWLHJDYOdyhuUwQ==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/rpc-core": "7.11.1", - "@polkadot/types": "7.11.1", - "@polkadot/util": "^8.4.1", - "rxjs": "^7.5.4" + "@babel/runtime": "^7.19.0", + "@polkadot/rpc-core": "9.5.1", + "@polkadot/types": "9.5.1", + "@polkadot/util": "^10.1.10", + "rxjs": "^7.5.7" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/api-derive": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-7.11.1.tgz", - "integrity": "sha512-py7pqs5mLaKPNDvRZ7BcUC7obsbLIuzJT/kZFiGzJXmaObSzU2lJkGD7fV34QlpmGP+Bqb4KtlhtY+Tnq33C0w==", - "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/api": "7.11.1", - "@polkadot/api-augment": "7.11.1", - "@polkadot/api-base": "7.11.1", - "@polkadot/rpc-core": "7.11.1", - "@polkadot/types": "7.11.1", - "@polkadot/types-codec": "7.11.1", - "@polkadot/util": "^8.4.1", - "@polkadot/util-crypto": "^8.4.1", - "rxjs": "^7.5.4" + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-9.5.1.tgz", + "integrity": "sha512-fKlKQe8WZ3jrm44w/zptMofljW5qj+jZxnryK08CAH/MINlZArPfCtn+EJla2ND9aTnRMUWlEBtytyCPImI/Hg==", + "dependencies": { + "@babel/runtime": "^7.19.0", + "@polkadot/api": "9.5.1", + "@polkadot/api-augment": "9.5.1", + "@polkadot/api-base": "9.5.1", + "@polkadot/rpc-core": "9.5.1", + "@polkadot/types": "9.5.1", + "@polkadot/types-codec": "9.5.1", + "@polkadot/util": "^10.1.10", + "@polkadot/util-crypto": "^10.1.10", + "rxjs": "^7.5.7" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/keyring": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-8.4.1.tgz", - "integrity": "sha512-0qfS7qikUxhe6LEdCOcMRdCxEa26inJ5aSUWaf5dXy+dgy9VJiov6uXAbXdAd1UHpDvr9hvw94FX+hXsJ7Vsyw==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-10.1.10.tgz", + "integrity": "sha512-crKYBbwmPcFoTP6mby2+o1QWsjAyi5QlKzU8tXuXOApP6SBuqmDujIuLOKNG2vZoftNdVldsVL0WmKVYtBeuQg==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/util": "8.4.1", - "@polkadot/util-crypto": "8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/util": "10.1.10", + "@polkadot/util-crypto": "10.1.10" }, "engines": { "node": ">=14.0.0" }, "peerDependencies": { - "@polkadot/util": "8.4.1", - "@polkadot/util-crypto": "8.4.1" + "@polkadot/util": "10.1.10", + "@polkadot/util-crypto": "10.1.10" } }, "node_modules/@polkadot/networks": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-8.4.1.tgz", - "integrity": "sha512-YFY3fPLbc1Uz9zsX4TOzjY/FF09nABMgrMkvqddrVbSgo71NvoBv3Gqw3mKV/7bX1Gzk1ODfvTzamdpsKEWSnA==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-10.1.10.tgz", + "integrity": "sha512-Db78t2XnFIZbdSdu1aFuj3/1cNwcSzG/+wNrpCQ9dPhnGPy5S1GVbmU8pyxTftPKdTFc+8RdBr+5bc0d5ijGiA==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/util": "8.4.1", - "@substrate/ss58-registry": "^1.14.0" + "@babel/runtime": "^7.19.0", + "@polkadot/util": "10.1.10", + "@substrate/ss58-registry": "^1.31.0" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/rpc-augment": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-7.11.1.tgz", - "integrity": "sha512-cP/g6dM5Rmdeno+sOi/PBvAEycRoi/UI1MOKb0lVhlFJayw/uyGOhHtPKOnLh2fyDJ/q66HO3pu6aem3ORFwhQ==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-9.5.1.tgz", + "integrity": "sha512-7Qm6oIoVIqv6VOaIqDal45hUTb3TVZ58S3zkSr60p/dPMlGCaFMcojtfcQErHtCW0hgvzFNsDl9ShpXRcPWu7g==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/rpc-core": "7.11.1", - "@polkadot/types": "7.11.1", - "@polkadot/types-codec": "7.11.1", - "@polkadot/util": "^8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/rpc-core": "9.5.1", + "@polkadot/types": "9.5.1", + "@polkadot/types-codec": "9.5.1", + "@polkadot/util": "^10.1.10" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/rpc-core": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-7.11.1.tgz", - "integrity": "sha512-Bp71BwOSPT4/xmYWn9e9/ikGKYYmltbceVwa0MJiuKI0Xd5YntjtJVov17Fqlt+eddkLGt74750paykvHDJWWQ==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-9.5.1.tgz", + "integrity": "sha512-8CXgBVTEUjeuN5VOwS6MjTeqpN+9qrNJAAwNEba36/72g6Wgg3flza11kx0luQ6OLPVgCM7OcAjZ17p16phXDA==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/rpc-augment": "7.11.1", - "@polkadot/rpc-provider": "7.11.1", - "@polkadot/types": "7.11.1", - "@polkadot/util": "^8.4.1", - "rxjs": "^7.5.4" + "@babel/runtime": "^7.19.0", + "@polkadot/rpc-augment": "9.5.1", + "@polkadot/rpc-provider": "9.5.1", + "@polkadot/types": "9.5.1", + "@polkadot/util": "^10.1.10", + "rxjs": "^7.5.7" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/rpc-provider": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-7.11.1.tgz", - "integrity": "sha512-07Mg+r9swMjNISDK8ntDI5gFZU8rtHeoB27/qQwZzcWugogva8rNhaInBikZPKlF7yxM6l2VMaQnOziKUNsnRw==", - "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/keyring": "^8.4.1", - "@polkadot/types": "7.11.1", - "@polkadot/types-support": "7.11.1", - "@polkadot/util": "^8.4.1", - "@polkadot/util-crypto": "^8.4.1", - "@polkadot/x-fetch": "^8.4.1", - "@polkadot/x-global": "^8.4.1", - "@polkadot/x-ws": "^8.4.1", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-9.5.1.tgz", + "integrity": "sha512-CxyEo1SzwbcByUsrW5RUm5GTLNK7yjmVlTMseex8zQLO4+4erqUoQzr6TTIPSt4LWyk+TjbZdtGtlt7p6i2nJg==", + "dependencies": { + "@babel/runtime": "^7.19.0", + "@polkadot/keyring": "^10.1.10", + "@polkadot/types": "9.5.1", + "@polkadot/types-support": "9.5.1", + "@polkadot/util": "^10.1.10", + "@polkadot/util-crypto": "^10.1.10", + "@polkadot/x-fetch": "^10.1.10", + "@polkadot/x-global": "^10.1.10", + "@polkadot/x-ws": "^10.1.10", + "@substrate/connect": "0.7.14", "eventemitter3": "^4.0.7", - "mock-socket": "^9.1.2", - "nock": "^13.2.4" + "mock-socket": "^9.1.5", + "nock": "^13.2.9" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/types": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-7.11.1.tgz", - "integrity": "sha512-jxVrxIbsSfH9xK1Q3vaCfJmbkm0OlvoXz0GxdP5RJ7dQnxlNYWQUXanFkKebbRL8gSEs1wSRVccil/TSH65Nvg==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-9.5.1.tgz", + "integrity": "sha512-xuhYq+O4JRl2iqLVEwKVHnfOA9AfwoNlHzrFx2DChDcIWdmgmUDASq9TkZhBP+jx81SieMH7iTf4zY6UwPKYQw==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/keyring": "^8.4.1", - "@polkadot/types-augment": "7.11.1", - "@polkadot/types-codec": "7.11.1", - "@polkadot/types-create": "7.11.1", - "@polkadot/util": "^8.4.1", - "@polkadot/util-crypto": "^8.4.1", - "rxjs": "^7.5.4" + "@babel/runtime": "^7.19.0", + "@polkadot/keyring": "^10.1.10", + "@polkadot/types-augment": "9.5.1", + "@polkadot/types-codec": "9.5.1", + "@polkadot/types-create": "9.5.1", + "@polkadot/util": "^10.1.10", + "@polkadot/util-crypto": "^10.1.10", + "rxjs": "^7.5.7" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/types-augment": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-7.11.1.tgz", - "integrity": "sha512-jCnZ/eMkLaqSKl5q4JwBxslhAaJSSNHt04reZRs1i2jlC2UVgiFN1Rr5GJmHYAwDPoFcge/rAm6bckfhXUIdOw==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-9.5.1.tgz", + "integrity": "sha512-1AzQpGe5bGttYbbjR1UhV19htsFjgqJ651eyT3YdRqo1hotZ2GwTCkGXuTJtcmQQH9G09xUUwS3nx8WsSyQ70A==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/types": "7.11.1", - "@polkadot/types-codec": "7.11.1", - "@polkadot/util": "^8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/types": "9.5.1", + "@polkadot/types-codec": "9.5.1", + "@polkadot/util": "^10.1.10" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/types-codec": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-7.11.1.tgz", - "integrity": "sha512-rDM/FYcnou2Chy+urd7U41lcjM6jWUEUydyP9NuTOSAamCGtH0eKw52GURKTsKTT5r8wJdPMKv/yNxs1i+l5Lw==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-9.5.1.tgz", + "integrity": "sha512-7Dy8TeApu4lN8DqdMZLuh34ocdHQh9jzAob6cQl1fl1ypOiCO/SwPjFkj0Xnhh7QQz9X9w63jZzbaFR3PPT+0g==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/util": "^8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/util": "^10.1.10", + "@polkadot/x-bigint": "^10.1.10" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/types-create": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-7.11.1.tgz", - "integrity": "sha512-nVYaJC/IDsM4WM9WGjAI7qQ9scPSlBqqzwqLdvXCJeq3trOTt68x39DD0zp0hzJ/7MeXjPToDDWjpAF0B9mWSQ==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-9.5.1.tgz", + "integrity": "sha512-pUQ1U0mho5aKRdi4iR9DP9ldIoj9U+ApHIeYyxkBY8RexMQOpkt8PZfpFhg4z2H5vZj/sgNIBXq65HjXuyu+9w==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/types-codec": "7.11.1", - "@polkadot/util": "^8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/types-codec": "9.5.1", + "@polkadot/util": "^10.1.10" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/types-known": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-7.11.1.tgz", - "integrity": "sha512-BBqQxG7I+wUjeLby1u5p9aSoZ5Vy0oCwmm/aKN64JH9vBEz1OOA0pRdcCooGCG/884Wb5pRpacWTepQMQkOTLw==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-9.5.1.tgz", + "integrity": "sha512-SedfPDxJREYPATa7X2Fv26z6UVPYv6v9Z9P4nulnC6Yl8C2+Q4A/VIqTtgsJc0DU1YT3gM8ofVxircfHqqRVNA==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/networks": "^8.4.1", - "@polkadot/types": "7.11.1", - "@polkadot/types-codec": "7.11.1", - "@polkadot/types-create": "7.11.1", - "@polkadot/util": "^8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/networks": "^10.1.10", + "@polkadot/types": "9.5.1", + "@polkadot/types-codec": "9.5.1", + "@polkadot/types-create": "9.5.1", + "@polkadot/util": "^10.1.10" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/types-support": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-7.11.1.tgz", - "integrity": "sha512-pJmDUHK7DOO6mjpntxq9Lq0tjvqwc15FrrrNbuENgRiOueRqcAlzv+V80wdzoIBUwINgKphtpzu+rdQIYsVVQg==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-9.5.1.tgz", + "integrity": "sha512-mjenEGNT/ReY1xFexb37NDgV7QHHBBfWt31ZQMZKDkQL+R2P0rXFpmitcE3eOCV3oY4mf+GaU2N/ZfnsFl3tPQ==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/util": "^8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/util": "^10.1.10" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/util": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-8.4.1.tgz", - "integrity": "sha512-8+wqHgFbFWI5TfrvtcL888w0nWvFpbTTYIcbpEw+zYGp3n1YZTAMMP26bXWAaQX5AttxynJRij7JP3ySxYY1fg==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-10.1.10.tgz", + "integrity": "sha512-BQoTfSxZ3BWAgWDjgKBVdyw1AJGaoOeAidCA+LZcHV6wlMu5643AZPUnoMrW413MbbpxsIhJXtNttqOwjo8MjA==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/x-bigint": "8.4.1", - "@polkadot/x-global": "8.4.1", - "@polkadot/x-textdecoder": "8.4.1", - "@polkadot/x-textencoder": "8.4.1", - "@types/bn.js": "^5.1.0", - "bn.js": "^5.2.0", - "ip-regex": "^4.3.0" + "@babel/runtime": "^7.19.0", + "@polkadot/x-bigint": "10.1.10", + "@polkadot/x-global": "10.1.10", + "@polkadot/x-textdecoder": "10.1.10", + "@polkadot/x-textencoder": "10.1.10", + "@types/bn.js": "^5.1.1", + "bn.js": "^5.2.1" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/util-crypto": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-8.4.1.tgz", - "integrity": "sha512-mWjp83aIWw+EhKN9RkUDmubXibo25q5yHJl4BGm2gT71yTZcABB7q1SGfpDqLH9AB3eXJiutqhC4L3SH7YZ+6Q==", - "dependencies": { - "@babel/runtime": "^7.17.2", - "@noble/hashes": "1.0.0", - "@noble/secp256k1": "1.5.2", - "@polkadot/networks": "8.4.1", - "@polkadot/util": "8.4.1", - "@polkadot/wasm-crypto": "^4.5.1", - "@polkadot/x-bigint": "8.4.1", - "@polkadot/x-randomvalues": "8.4.1", - "@scure/base": "1.0.0", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-10.1.10.tgz", + "integrity": "sha512-w9h/wf4wZXeUkRnihhnfqlaKuoQtrjkjK3C5liCQkr9vx5zOsmg/nMSDP8UUFJX0msPPYpFeNvzn7oDIs6qSZA==", + "dependencies": { + "@babel/runtime": "^7.19.0", + "@noble/hashes": "1.1.3", + "@noble/secp256k1": "1.7.0", + "@polkadot/networks": "10.1.10", + "@polkadot/util": "10.1.10", + "@polkadot/wasm-crypto": "^6.3.1", + "@polkadot/x-bigint": "10.1.10", + "@polkadot/x-randomvalues": "10.1.10", + "@scure/base": "1.1.1", "ed2curve": "^0.3.0", "tweetnacl": "^1.0.3" }, @@ -385,17 +389,35 @@ "node": ">=14.0.0" }, "peerDependencies": { - "@polkadot/util": "8.4.1" + "@polkadot/util": "10.1.10" + } + }, + "node_modules/@polkadot/wasm-bridge": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-bridge/-/wasm-bridge-6.3.1.tgz", + "integrity": "sha512-1TYkHsb9AEFhU9uZj3biEnN2yKQNzdrwSjiTvfCYnt97pnEkKsZI6cku+YPZQv5w/x9CQa5Yua9e2DVVZSivGA==", + "dependencies": { + "@babel/runtime": "^7.18.9" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "@polkadot/util": "*", + "@polkadot/x-randomvalues": "*" } }, "node_modules/@polkadot/wasm-crypto": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto/-/wasm-crypto-4.5.1.tgz", - "integrity": "sha512-Cr21ais3Kq3aedIHZ3J1tjgeD/+K8FCiwEawr0oRywNBSJR8wyuZMePs4swR/6xm8wbBkpqoBVHz/UQHqqQJmA==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto/-/wasm-crypto-6.3.1.tgz", + "integrity": "sha512-OO8h0qeVkqp4xYZaRVl4iuWOEtq282pNBHDKb6SOJuI2g59eWGcKh4EQU9Me2VP6qzojIqptrkrVt7KQXC68gA==", "dependencies": { - "@babel/runtime": "^7.16.3", - "@polkadot/wasm-crypto-asmjs": "^4.5.1", - "@polkadot/wasm-crypto-wasm": "^4.5.1" + "@babel/runtime": "^7.18.9", + "@polkadot/wasm-bridge": "6.3.1", + "@polkadot/wasm-crypto-asmjs": "6.3.1", + "@polkadot/wasm-crypto-init": "6.3.1", + "@polkadot/wasm-crypto-wasm": "6.3.1", + "@polkadot/wasm-util": "6.3.1" }, "engines": { "node": ">=14.0.0" @@ -406,107 +428,146 @@ } }, "node_modules/@polkadot/wasm-crypto-asmjs": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-4.5.1.tgz", - "integrity": "sha512-DOdRiWhxVvmqTvp+E9z1j+Yr0zDOGsDvqnT/eNw0Dl1FVUOImsEa7FKns/urASmcxCVEE1jtUWSnij29jrORMQ==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-6.3.1.tgz", + "integrity": "sha512-zbombRfA5v/mUWQQhgg2YwaxhRmxRIrvskw65x+lruax3b6xPBFDs7yplopiJU3r8h2pTgQvX/DUksvqz2TCRQ==", "dependencies": { - "@babel/runtime": "^7.16.3" + "@babel/runtime": "^7.18.9" }, "engines": { "node": ">=14.0.0" + }, + "peerDependencies": { + "@polkadot/util": "*" + } + }, + "node_modules/@polkadot/wasm-crypto-init": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-init/-/wasm-crypto-init-6.3.1.tgz", + "integrity": "sha512-9yaUBcu+snwjJLmPPGl3cyGRQ1afyFGm16qzTM0sgG/ZCfUlK4uk8KWZe+sBUKgoxb2oXY7Y4WklKgQI1YBdfw==", + "dependencies": { + "@babel/runtime": "^7.18.9", + "@polkadot/wasm-bridge": "6.3.1", + "@polkadot/wasm-crypto-asmjs": "6.3.1", + "@polkadot/wasm-crypto-wasm": "6.3.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "@polkadot/util": "*", + "@polkadot/x-randomvalues": "*" } }, "node_modules/@polkadot/wasm-crypto-wasm": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-4.5.1.tgz", - "integrity": "sha512-hPwke85HxpgG/RAlwdCE8u5w7bThvWg399mlB+XjogXMxOUWBZSgq2XYbgzROUXx27inK9nStF4Pnc4zJnqs9A==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-6.3.1.tgz", + "integrity": "sha512-idSlzKGVzCfeCMRHsacRvqwojSaTadFxL/Dbls4z1thvfa3U9Ku0d2qVtlwg7Hj+tYWDiuP8Kygs+6bQwfs0XA==", + "dependencies": { + "@babel/runtime": "^7.18.9", + "@polkadot/wasm-util": "6.3.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "@polkadot/util": "*" + } + }, + "node_modules/@polkadot/wasm-util": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-util/-/wasm-util-6.3.1.tgz", + "integrity": "sha512-12oAv5J7Yoc9m6jixrSaQCxpOkWOyzHx3DMC8qmLjRiwdBWxqLmImOVRVnFsbaxqSbhBIHRuJphVxWE+GZETDg==", "dependencies": { - "@babel/runtime": "^7.16.3" + "@babel/runtime": "^7.18.9" }, "engines": { "node": ">=14.0.0" + }, + "peerDependencies": { + "@polkadot/util": "*" } }, "node_modules/@polkadot/x-bigint": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-8.4.1.tgz", - "integrity": "sha512-QVP0UMoM0nBD998s3ESeaoSiVMEnHK3x0CCqocKO4l7ADNw8lfWdDG7Bb0+ymNaFYGz2KgEWxkN0VhNEnXzo0w==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-10.1.10.tgz", + "integrity": "sha512-4Jt0BO0WTby6r9A2DgkDxf/LFaICQHvSl1VSFtBf0Z0GV2n4OxkBX5x/1bdEdGEvYT5rM7RbR3xI7EL+W1ixHA==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/x-global": "8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/x-global": "10.1.10" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/x-fetch": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-8.4.1.tgz", - "integrity": "sha512-DPkgXZYt1B4xCzEw/3hxRc4/lR+NEr/b/GYijSPM8UsVoEKqHWTx2qCXrxvmKh1WD9reQ+oUACPVjRcBz5bs+g==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-10.1.10.tgz", + "integrity": "sha512-LvTxAN6GaJzfgZ74WFYPZrIkMEThpX5u7O4ILiExcJt87E19cSWlYSHDa5n+OLjUpq0lBV2ueF90iUblt6aHpg==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/x-global": "8.4.1", - "@types/node-fetch": "^2.5.12", - "node-fetch": "^2.6.7" + "@babel/runtime": "^7.19.0", + "@polkadot/x-global": "10.1.10", + "@types/node-fetch": "^2.6.2", + "node-fetch": "^3.2.10" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/x-global": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-8.4.1.tgz", - "integrity": "sha512-MQs89LKQrJwiXjV7dY2kDOPNaiWrwaQ/Fzg93ycB2xMCclRV1jRFRhnhTPJ8Ao79lhCCoazd7pXIyFgfifxdqg==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-10.1.10.tgz", + "integrity": "sha512-WFfgaZSrzPlKLdnOus2mIFGzUbSDIQK6RMCfFfM9SmF3DkoxN40z5Nkni4PztfKr22stlkhmhnX/Lp/NxpuT6Q==", "dependencies": { - "@babel/runtime": "^7.17.2" + "@babel/runtime": "^7.19.0" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/x-randomvalues": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-8.4.1.tgz", - "integrity": "sha512-1dRIFIib4RzyVo0k5oMLuxqSuZEV6UVvvN+jJw9G/9P1ggZtHjM1KwoFcyHgvpk2RWTB9eJZFemwSvQTpdmSJw==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-10.1.10.tgz", + "integrity": "sha512-KM4sCI/DNLIXlmnkeJIuYvh3pPuWvnkbR1a6TUB12J1izUJ+uGV+cAFRR4/EZk3oEsG/Tgivbs56meEOo3ws5A==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/x-global": "8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/x-global": "10.1.10" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/x-textdecoder": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-8.4.1.tgz", - "integrity": "sha512-qbSXyR2KvE1bO6QGsxWU3Yrx5e70rX2lwv0MHG++MyyNaDoBM3hjx14lF911bYRWXR6MW4eZ+0Nakn0oM5uSKw==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-10.1.10.tgz", + "integrity": "sha512-cAk37faYXx8IICeaq/tdl+aiIXwo3SLrx9XNoQqhX02g+SEs3ARM7zJcohj/p8ynWAI+ezNcsKn1wh174nquHw==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/x-global": "8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/x-global": "10.1.10" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/x-textencoder": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-8.4.1.tgz", - "integrity": "sha512-1UYuckNOk6NUk70Y/SGbK8oyGbqPlrny1x2OWoK/BT3/tyL2xKVV5TlXDOiFrX1PChbskXye5M8blCTYikFiJg==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-10.1.10.tgz", + "integrity": "sha512-Auaql6BL5UHtWakZUQyj4y/BrM0tm4bYG5vXCMQCA1Gg0ky+46DhgpRrAQ9F7NNgWg1A6dA2I9KuAA4BTbNx0w==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/x-global": "8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/x-global": "10.1.10" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@polkadot/x-ws": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-8.4.1.tgz", - "integrity": "sha512-u9rsJdVrBkSARy8BhJPho1yMMBSiI/Z/W8ZQRr1I28/QOwl02VYktFpFWWrhkBHsL9JlZ0wfnyKBPXrw8Wp2Vw==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-10.1.10.tgz", + "integrity": "sha512-JxDgfm0ox2XPAtdTeJXYl6qq7LY/KOPi69wRpFMczWaYUsZubO6EiRzgzjuFlHY4/oxfjS/D+YbzcjefTxHz6g==", "dependencies": { - "@babel/runtime": "^7.17.2", - "@polkadot/x-global": "8.4.1", + "@babel/runtime": "^7.19.0", + "@polkadot/x-global": "10.1.10", "@types/websocket": "^1.0.5", "websocket": "^1.0.34" }, @@ -546,9 +607,9 @@ } }, "node_modules/@scure/base": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.0.0.tgz", - "integrity": "sha512-gIVaYhUsy+9s58m/ETjSJVKHhKTBMmcRb9cEV5/5dwvfDlfORjKrFsDeDHWRrm6RjcPvCLZFwGJjAjLj1gg4HA==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.1.tgz", + "integrity": "sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==", "funding": [ { "type": "individual", @@ -556,10 +617,34 @@ } ] }, + "node_modules/@substrate/connect": { + "version": "0.7.14", + "resolved": "https://registry.npmjs.org/@substrate/connect/-/connect-0.7.14.tgz", + "integrity": "sha512-uW5uBmihpivshmmmw+rsg7qOV0KqVSep4rWOXFMP8aFQinvmqw4JqxP21og4H/7JZxttYUBFQVsdtXHGKJ0aVQ==", + "dependencies": { + "@substrate/connect-extension-protocol": "^1.0.1", + "@substrate/smoldot-light": "0.6.34", + "eventemitter3": "^4.0.7" + } + }, + "node_modules/@substrate/connect-extension-protocol": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@substrate/connect-extension-protocol/-/connect-extension-protocol-1.0.1.tgz", + "integrity": "sha512-161JhCC1csjH3GE5mPLEd7HbWtwNSPJBg3p1Ksz9SFlTzj/bgEwudiRN2y5i0MoLGCIJRYKyKGMxVnd29PzNjg==" + }, + "node_modules/@substrate/smoldot-light": { + "version": "0.6.34", + "resolved": "https://registry.npmjs.org/@substrate/smoldot-light/-/smoldot-light-0.6.34.tgz", + "integrity": "sha512-+HK9MaJ0HelJmpf4YYR+salJ7dhVBltmhGlyz5l8OXS9DW18fe0Z2wxEo8P5kX9CUxlCXEb8J9JBRQAYBPHbwQ==", + "dependencies": { + "pako": "^2.0.4", + "ws": "^8.8.1" + } + }, "node_modules/@substrate/ss58-registry": { - "version": "1.16.0", - "resolved": "https://registry.npmjs.org/@substrate/ss58-registry/-/ss58-registry-1.16.0.tgz", - "integrity": "sha512-z88145A9NE0mnDbIYRP1SlHndDtm6Jd1cRnG2InRCA/M7UprFRc0zrtaTWj1KBHfcVc2uYUMggGXuenQPBQ8yQ==" + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/@substrate/ss58-registry/-/ss58-registry-1.33.0.tgz", + "integrity": "sha512-DztMuMcEfu+tJrtIQIIp5gO8/XJZ8N8UwPObDCSNgrp7trtSkPJAUFB9qXaReXtN9UvTcVBMTWk6VPfFi04Wkg==" }, "node_modules/@tokenizer/token": { "version": "0.3.0", @@ -567,9 +652,9 @@ "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==" }, "node_modules/@types/bn.js": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.0.tgz", - "integrity": "sha512-QSSVYj7pYFN49kW77o2s9xTCwZ8F2xLbjLLSEVh8D2F4JUhZtPAGOFLTD+ffqksBx/u4cE/KImFjyhqCjn/LIA==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.1.tgz", + "integrity": "sha512-qNrYbZqMx0uJAfKnKclPh+dTwK33KfLHYqtyODwd5HnXOjnkhc4qgn3BrK6RWyGZm5+sIFE7Q7Vz6QQtJB7w7g==", "dependencies": { "@types/node": "*" } @@ -589,23 +674,6 @@ "form-data": "^3.0.0" } }, - "node_modules/@types/node-fetch/node_modules/form-data": { - "version": "3.0.1", - "resolved": "https://registry.nlark.com/form-data/download/form-data-3.0.1.tgz", - "integrity": "sha1-69U3kbeDVqma+aMA1CgsTV65dV8=", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/@types/retry": { - "version": "0.12.1", - "license": "MIT" - }, "node_modules/@types/websocket": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/@types/websocket/-/websocket-1.0.5.tgz", @@ -633,59 +701,17 @@ "node": ">= 0.6" } }, - "node_modules/ajv": { - "version": "6.12.6", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/another-json": { - "version": "0.2.0", - "license": "Apache-2.0" - }, "node_modules/array-flatten": { "version": "1.1.1", "license": "MIT" }, - "node_modules/asn1": { - "version": "0.2.4", - "license": "MIT", - "dependencies": { - "safer-buffer": "~2.1.0" - } - }, - "node_modules/assert-plus": { - "version": "1.0.0", - "license": "MIT", - "engines": { - "node": ">=0.8" - } - }, "node_modules/async": { "version": "0.2.10" }, "node_modules/asynckit": { "version": "0.4.0", - "license": "MIT" - }, - "node_modules/aws-sign2": { - "version": "0.7.0", - "license": "Apache-2.0", - "engines": { - "node": "*" - } - }, - "node_modules/aws4": { - "version": "1.11.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/axios": { "version": "0.19.2", @@ -694,24 +720,6 @@ "follow-redirects": "1.5.10" } }, - "node_modules/base-x": { - "version": "3.0.8", - "license": "MIT", - "dependencies": { - "safe-buffer": "^5.0.1" - } - }, - "node_modules/bcrypt-pbkdf": { - "version": "1.0.2", - "license": "BSD-3-Clause", - "dependencies": { - "tweetnacl": "^0.14.3" - } - }, - "node_modules/bcrypt-pbkdf/node_modules/tweetnacl": { - "version": "0.14.5", - "license": "Unlicense" - }, "node_modules/binary-search-tree": { "version": "0.2.5", "dependencies": { @@ -719,9 +727,9 @@ } }, "node_modules/bn.js": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz", - "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw==" + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", + "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==" }, "node_modules/body-parser": { "version": "1.19.0", @@ -742,19 +750,6 @@ "node": ">= 0.8" } }, - "node_modules/browser-request": { - "version": "0.3.3", - "engines": [ - "node" - ] - }, - "node_modules/bs58": { - "version": "4.0.1", - "license": "MIT", - "dependencies": { - "base-x": "^3.0.2" - } - }, "node_modules/bufferutil": { "version": "4.0.6", "hasInstallScript": true, @@ -784,24 +779,10 @@ "node": ">= 0.8" } }, - "node_modules/call-bind": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/caseless": { - "version": "0.12.0", - "license": "Apache-2.0" - }, "node_modules/combined-stream": { "version": "1.0.8", - "license": "MIT", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dependencies": { "delayed-stream": "~1.0.0" }, @@ -841,10 +822,6 @@ "version": "1.0.6", "license": "MIT" }, - "node_modules/core-util-is": { - "version": "1.0.2", - "license": "MIT" - }, "node_modules/crypto": { "version": "1.0.1", "license": "ISC" @@ -858,14 +835,12 @@ "type": "^1.0.1" } }, - "node_modules/dashdash": { - "version": "1.14.1", - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0" - }, + "node_modules/data-uri-to-buffer": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz", + "integrity": "sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==", "engines": { - "node": ">=0.10" + "node": ">= 12" } }, "node_modules/debug": { @@ -877,7 +852,8 @@ }, "node_modules/delayed-stream": { "version": "1.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", "engines": { "node": ">=0.4.0" } @@ -920,14 +896,6 @@ "node": ">=16.9.0" } }, - "node_modules/ecc-jsbn": { - "version": "0.1.2", - "license": "MIT", - "dependencies": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, "node_modules/ed2curve": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/ed2curve/-/ed2curve-0.3.0.tgz", @@ -948,9 +916,9 @@ } }, "node_modules/es5-ext": { - "version": "0.10.58", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.58.tgz", - "integrity": "sha512-LHO+KBBaHGwjy32ibSaMY+ZzjpC4K4I5bPoijICMBL7gXEXfrEUrzssmNP+KigbQEp1dRUnGkry/vUnxOqptLQ==", + "version": "0.10.62", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz", + "integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==", "hasInstallScript": true, "dependencies": { "es6-iterator": "^2.0.3", @@ -964,7 +932,7 @@ "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=", + "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", "dependencies": { "d": "1", "es5-ext": "^0.10.35", @@ -1040,36 +1008,43 @@ "license": "MIT" }, "node_modules/ext": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/ext/-/ext-1.6.0.tgz", - "integrity": "sha512-sdBImtzkq2HpkdRLtlLWDa6w4DX22ijZLKx8BMPUuKe1c5lbN6xwQDQCxSfxBQnHZ13ls/FH0MQZx/q/gr6FQg==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", + "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", "dependencies": { - "type": "^2.5.0" + "type": "^2.7.2" } }, "node_modules/ext/node_modules/type": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/type/-/type-2.6.0.tgz", - "integrity": "sha512-eiDBDOmkih5pMbo9OqsqPRGMljLodLcwd5XD5JbtNB0o89xZAwynY9EdCDsJU7LtcVCClu9DvM7/0Ep1hYX3EQ==" - }, - "node_modules/extend": { - "version": "3.0.2", - "license": "MIT" - }, - "node_modules/extsprintf": { - "version": "1.3.0", - "engines": [ - "node >=0.6.0" - ], - "license": "MIT" + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==" }, "node_modules/fast-deep-equal": { "version": "3.1.3", "license": "MIT" }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "license": "MIT" + "node_modules/fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "paypal", + "url": "https://paypal.me/jimmywarting" + } + ], + "dependencies": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + }, + "engines": { + "node": "^12.20 || >= 14.13" + } }, "node_modules/file-type": { "version": "18.0.0", @@ -1120,40 +1095,28 @@ "ms": "2.0.0" } }, - "node_modules/forever-agent": { - "version": "0.6.1", - "license": "Apache-2.0", - "engines": { - "node": "*" - } - }, "node_modules/form-data": { - "version": "2.3.3", - "license": "MIT", + "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.6", + "combined-stream": "^1.0.8", "mime-types": "^2.1.12" }, "engines": { - "node": ">= 0.12" - } - }, - "node_modules/form-data/node_modules/mime-db": { - "version": "1.51.0", - "license": "MIT", - "engines": { - "node": ">= 0.6" + "node": ">= 6" } }, - "node_modules/form-data/node_modules/mime-types": { - "version": "2.1.34", - "license": "MIT", + "node_modules/formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", "dependencies": { - "mime-db": "1.51.0" + "fetch-blob": "^3.1.2" }, "engines": { - "node": ">= 0.6" + "node": ">=12.20.0" } }, "node_modules/forwarded": { @@ -1170,67 +1133,6 @@ "node": ">= 0.6" } }, - "node_modules/function-bind": { - "version": "1.1.1", - "license": "MIT" - }, - "node_modules/get-intrinsic": { - "version": "1.1.1", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/getpass": { - "version": "0.1.7", - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0" - } - }, - "node_modules/har-schema": { - "version": "2.0.0", - "license": "ISC", - "engines": { - "node": ">=4" - } - }, - "node_modules/har-validator": { - "version": "5.1.5", - "license": "MIT", - "dependencies": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/has": { - "version": "1.0.3", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-symbols": { - "version": "1.0.2", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/http-errors": { "version": "1.7.2", "license": "MIT", @@ -1249,19 +1151,6 @@ "version": "2.0.3", "license": "ISC" }, - "node_modules/http-signature": { - "version": "1.2.0", - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - }, - "engines": { - "node": ">=0.8", - "npm": ">=1.3.7" - } - }, "node_modules/iconv-lite": { "version": "0.4.24", "license": "MIT", @@ -1299,14 +1188,6 @@ "version": "2.0.4", "license": "ISC" }, - "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/ipaddr.js": { "version": "1.9.1", "license": "MIT", @@ -1316,39 +1197,13 @@ }, "node_modules/is-typedarray": { "version": "1.0.0", - "license": "MIT" - }, - "node_modules/isstream": { - "version": "0.1.2", - "license": "MIT" - }, - "node_modules/jsbn": { - "version": "0.1.1", - "license": "MIT" - }, - "node_modules/json-schema": { - "version": "0.2.3" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "license": "MIT" + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" }, "node_modules/json-stringify-safe": { "version": "5.0.1", - "license": "ISC" - }, - "node_modules/jsprim": { - "version": "1.4.1", - "engines": [ - "node >=0.6.0" - ], - "license": "MIT", - "dependencies": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" }, "node_modules/lie": { "version": "3.1.1", @@ -1368,11 +1223,6 @@ "version": "4.17.21", "license": "MIT" }, - "node_modules/lodash.set": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", - "integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=" - }, "node_modules/lodash.snakecase": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", @@ -1383,46 +1233,6 @@ "resolved": "https://registry.npmjs.org/lodash.uniqwith/-/lodash.uniqwith-4.5.0.tgz", "integrity": "sha512-7lYL8bLopMoy4CTICbxygAUq6CdRJ36vFc80DucPueUee+d5NBRxz3FdT9Pes/HEx5mPoT9jwnsEJWz1N7uq7Q==" }, - "node_modules/loglevel": { - "version": "1.7.1", - "license": "MIT", - "engines": { - "node": ">= 0.6.0" - }, - "funding": { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/loglevel" - } - }, - "node_modules/matrix-js-sdk": { - "version": "12.1.0", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.12.5", - "another-json": "^0.2.0", - "browser-request": "^0.3.3", - "bs58": "^4.0.1", - "content-type": "^1.0.4", - "loglevel": "^1.7.1", - "p-retry": "^4.5.0", - "qs": "^6.9.6", - "request": "^2.88.2", - "unhomoglyph": "^1.0.6" - } - }, - "node_modules/matrix-js-sdk/node_modules/qs": { - "version": "6.10.1", - "license": "BSD-3-Clause", - "dependencies": { - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/media-typer": { "version": "0.3.0", "license": "MIT", @@ -1483,21 +1293,13 @@ } }, "node_modules/mock-socket": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/mock-socket/-/mock-socket-9.1.2.tgz", - "integrity": "sha512-XKZkCnQ9ISOlTnaPg4LYYSMj7+6i78HyadYzLA5JM4465ibLdjappZD9Csnqc3Tfzep/eEK/LCJ29BTaLHoB1A==", + "version": "9.1.5", + "resolved": "https://registry.npmjs.org/mock-socket/-/mock-socket-9.1.5.tgz", + "integrity": "sha512-3DeNIcsQixWHHKk6NdoBhWI4t1VMj5/HzfnI1rE/pLl5qKx7+gd4DNA07ehTaZ6MoUU053si6Hd+YtiM/tQZfg==", "engines": { "node": ">= 8" } }, - "node_modules/moment": { - "version": "2.29.3", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.3.tgz", - "integrity": "sha512-c6YRvhEo//6T2Jz/vVtYzqBzwvPT95JBQ+smCytzf7c50oMZRsR/a4w88aD34I+/QVSfnoAnSBFPJHItlOMJVw==", - "engines": { - "node": "*" - } - }, "node_modules/ms": { "version": "2.0.0", "license": "MIT" @@ -1526,13 +1328,13 @@ "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" }, "node_modules/nock": { - "version": "13.2.4", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.2.4.tgz", - "integrity": "sha512-8GPznwxcPNCH/h8B+XZcKjYPXnUV5clOKCjAqyjsiqA++MpNx9E9+t8YPp0MbThO+KauRo7aZJ1WuIZmOrT2Ug==", + "version": "13.2.9", + "resolved": "https://registry.npmjs.org/nock/-/nock-13.2.9.tgz", + "integrity": "sha512-1+XfJNYF1cjGB+TKMWi29eZ0b82QOvQs2YoLNzbpWGqFMtRQHTa57osqdGj4FrFPgkO4D4AZinzUJR9VvW3QUA==", "dependencies": { "debug": "^4.1.0", "json-stringify-safe": "^5.0.1", - "lodash.set": "^4.3.2", + "lodash": "^4.17.21", "propagate": "^2.0.0" }, "engines": { @@ -1540,9 +1342,9 @@ } }, "node_modules/nock/node_modules/debug": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", - "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dependencies": { "ms": "2.1.2" }, @@ -1560,23 +1362,39 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "engines": { + "node": ">=10.5.0" + } + }, "node_modules/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "version": "3.2.10", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.10.tgz", + "integrity": "sha512-MhuzNwdURnZ1Cp4XTazr69K0BTizsBroX7Zx3UgDSVcZYKF/6p0CBe4EUb/hLqmzVhl0UpYfgRljQ4yxE+iCxA==", "dependencies": { - "whatwg-url": "^5.0.0" + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" }, "engines": { - "node": "4.x || >=6.0.0" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" } }, "node_modules/node-gyp-build": { @@ -1588,20 +1406,6 @@ "node-gyp-build-test": "build-test.js" } }, - "node_modules/oauth-sign": { - "version": "0.9.0", - "license": "Apache-2.0", - "engines": { - "node": "*" - } - }, - "node_modules/object-inspect": { - "version": "1.11.0", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/on-finished": { "version": "2.3.0", "license": "MIT", @@ -1612,16 +1416,10 @@ "node": ">= 0.8" } }, - "node_modules/p-retry": { - "version": "4.6.1", - "license": "MIT", - "dependencies": { - "@types/retry": "^0.12.0", - "retry": "^0.13.1" - }, - "engines": { - "node": ">=8" - } + "node_modules/pako": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pako/-/pako-2.0.4.tgz", + "integrity": "sha512-v8tweI900AUkZN6heMU/4Uy4cXRc2AYNRggVmTR+dEncawDJgCdLMximOVA2p4qO57WMynangsfGRb5WD6L1Bg==" }, "node_modules/parseurl": { "version": "1.3.3", @@ -1646,10 +1444,6 @@ "url": "https://github.com/sponsors/Borewit" } }, - "node_modules/performance-now": { - "version": "2.1.0", - "license": "MIT" - }, "node_modules/propagate": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/propagate/-/propagate-2.0.1.tgz", @@ -1669,17 +1463,6 @@ "node": ">= 0.10" } }, - "node_modules/psl": { - "version": "1.8.0", - "license": "MIT" - }, - "node_modules/punycode": { - "version": "2.1.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/qs": { "version": "6.7.0", "license": "BSD-3-Clause", @@ -1737,55 +1520,13 @@ }, "node_modules/regenerator-runtime": { "version": "0.13.9", - "license": "MIT" - }, - "node_modules/request": { - "version": "2.88.2", - "license": "Apache-2.0", - "dependencies": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.5.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/request/node_modules/qs": { - "version": "6.5.2", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/retry": { - "version": "0.13.1", - "license": "MIT", - "engines": { - "node": ">= 4" - } + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", + "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==" }, "node_modules/rxjs": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.5.tgz", - "integrity": "sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw==", + "version": "7.5.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.7.tgz", + "integrity": "sha512-z9MzKh/UcOqB3i20H6rtrlaE/CgjLOvheWK/9ILrbhROGTweAi1BaFsTT9FbwZi5Trr1qNRs+MXkhmR06awzQA==", "dependencies": { "tslib": "^2.1.0" } @@ -1869,45 +1610,6 @@ "version": "1.1.1", "license": "ISC" }, - "node_modules/side-channel": { - "version": "1.0.4", - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/sshpk": { - "version": "1.16.1", - "license": "MIT", - "dependencies": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - }, - "bin": { - "sshpk-conv": "bin/sshpk-conv", - "sshpk-sign": "bin/sshpk-sign", - "sshpk-verify": "bin/sshpk-verify" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sshpk/node_modules/tweetnacl": { - "version": "0.14.5", - "license": "Unlicense" - }, "node_modules/statuses": { "version": "1.5.0", "license": "MIT", @@ -1970,21 +1672,6 @@ "url": "https://github.com/sponsors/Borewit" } }, - "node_modules/tough-cookie": { - "version": "2.5.0", - "license": "BSD-3-Clause", - "dependencies": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/tr46": { - "version": "0.0.3", - "license": "MIT" - }, "node_modules/ts-mixer": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/ts-mixer/-/ts-mixer-6.0.1.tgz", @@ -1995,16 +1682,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" }, - "node_modules/tunnel-agent": { - "version": "0.6.0", - "license": "Apache-2.0", - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": "*" - } - }, "node_modules/tweetnacl": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", @@ -2048,10 +1725,6 @@ "node": ">=12.18" } }, - "node_modules/unhomoglyph": { - "version": "1.0.6", - "license": "MIT" - }, "node_modules/unpipe": { "version": "1.0.0", "license": "MIT", @@ -2059,13 +1732,6 @@ "node": ">= 0.8" } }, - "node_modules/uri-js": { - "version": "4.4.1", - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, "node_modules/utf-8-validate": { "version": "5.0.8", "hasInstallScript": true, @@ -2089,13 +1755,6 @@ "node": ">= 0.4.0" } }, - "node_modules/uuid": { - "version": "3.4.0", - "license": "MIT", - "bin": { - "uuid": "bin/uuid" - } - }, "node_modules/vary": { "version": "1.1.2", "license": "MIT", @@ -2103,29 +1762,14 @@ "node": ">= 0.8" } }, - "node_modules/verror": { - "version": "1.10.0", - "engines": [ - "node >=0.6.0" - ], - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" + "node_modules/web-streams-polyfill": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", + "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", + "engines": { + "node": ">= 8" } }, - "node_modules/verror/node_modules/extsprintf": { - "version": "1.4.0", - "engines": [ - "node >=0.6.0" - ], - "license": "MIT" - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "license": "BSD-2-Clause" - }, "node_modules/websocket": { "version": "1.0.34", "resolved": "https://registry.npmjs.org/websocket/-/websocket-1.0.34.tgz", @@ -2142,14 +1786,6 @@ "node": ">=4.0.0" } }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, "node_modules/ws": { "version": "8.9.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz", @@ -2173,7 +1809,7 @@ "node_modules/yaeti": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", - "integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc=", + "integrity": "sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug==", "engines": { "node": ">=0.10.32" } @@ -2181,9 +1817,9 @@ }, "dependencies": { "@babel/runtime": { - "version": "7.17.2", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.2.tgz", - "integrity": "sha512-hzeyJyMA1YGdJTuWU0e/j4wKXrU4OMFvY2MSlaI9B7VQb0r5cxTE3EAIS2Q7Tn2RIcDkRvTA/v2JsAEhxe99uw==", + "version": "7.19.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.19.4.tgz", + "integrity": "sha512-EXpLCrk55f+cYqmHsSR+yD/0gAIMxxA9QK9lnQWzhMCvt+YmoBN7Zx94s++Kv0+unHk39vxNO8t+CMA2WSS3wA==", "requires": { "regenerator-runtime": "^0.13.4" } @@ -2227,334 +1863,366 @@ "integrity": "sha512-e7d+PaTLVQav6rOc2tojh2y6FE8S7REkqLldq1XF4soCx74XB/DIjbVbVLtBemf0nLW77ntz0v+o5DytKwFNLQ==" }, "@noble/hashes": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.0.0.tgz", - "integrity": "sha512-DZVbtY62kc3kkBtMHqwCOfXrT/hnoORy5BJ4+HU1IR59X0KWAOqsfzQPcUl/lQLlG7qXbe/fZ3r/emxtAl+sqg==" + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.1.3.tgz", + "integrity": "sha512-CE0FCR57H2acVI5UOzIGSSIYxZ6v/HOhDR0Ro9VLyhnzLwx0o8W1mmgaqlEUx4049qJDlIBRztv5k+MM8vbO3A==" }, "@noble/secp256k1": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.5.2.tgz", - "integrity": "sha512-5mzA40W2q55VCRuC9XzmkiEnODdY0c5a7qsK2QcOfI5/MuVQyBaWGQyE6YOEF7kDwp+tDVWGsCDVJUME+wsWWw==" + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.0.tgz", + "integrity": "sha512-kbacwGSsH/CTout0ZnZWxnW1B+jH/7r/WAAKLBtrRJ/+CUH7lgmQzl3GTrQua3SGKWNSDsS6lmjnDpIJ5Dxyaw==" }, "@polkadot/api": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-7.11.1.tgz", - "integrity": "sha512-VTrhVuSJrWhIww1ofYPd7EhJd1UwKntfdPNRuy/abfb6GPzYCglKV6Sze3CsbI2KawC5oo1K7Ffrdf/lJy81kg==", - "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/api-augment": "7.11.1", - "@polkadot/api-base": "7.11.1", - "@polkadot/api-derive": "7.11.1", - "@polkadot/keyring": "^8.4.1", - "@polkadot/rpc-augment": "7.11.1", - "@polkadot/rpc-core": "7.11.1", - "@polkadot/rpc-provider": "7.11.1", - "@polkadot/types": "7.11.1", - "@polkadot/types-augment": "7.11.1", - "@polkadot/types-codec": "7.11.1", - "@polkadot/types-create": "7.11.1", - "@polkadot/types-known": "7.11.1", - "@polkadot/util": "^8.4.1", - "@polkadot/util-crypto": "^8.4.1", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-9.5.1.tgz", + "integrity": "sha512-A2i/+mCl6cbFJ84ExMcWosUDfq0gVvzyKftkbRMs0oDzvHVVucTm0nCCzBgi/ltvSsFq8oJQ4pVqNTfT/IXgeQ==", + "requires": { + "@babel/runtime": "^7.19.0", + "@polkadot/api-augment": "9.5.1", + "@polkadot/api-base": "9.5.1", + "@polkadot/api-derive": "9.5.1", + "@polkadot/keyring": "^10.1.10", + "@polkadot/rpc-augment": "9.5.1", + "@polkadot/rpc-core": "9.5.1", + "@polkadot/rpc-provider": "9.5.1", + "@polkadot/types": "9.5.1", + "@polkadot/types-augment": "9.5.1", + "@polkadot/types-codec": "9.5.1", + "@polkadot/types-create": "9.5.1", + "@polkadot/types-known": "9.5.1", + "@polkadot/util": "^10.1.10", + "@polkadot/util-crypto": "^10.1.10", "eventemitter3": "^4.0.7", - "rxjs": "^7.5.4" + "rxjs": "^7.5.7" } }, "@polkadot/api-augment": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-7.11.1.tgz", - "integrity": "sha512-CqtmRZsr7va45r/wnsH+NZMqPyUQv46fmiHxt5gq6NC4p0ziDEVVDDHLlABx5RhQzCvdiBAccZ/X8DyMCFFGEA==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-9.5.1.tgz", + "integrity": "sha512-9NQ2miIKVJvyhR2Zhk0XcHA+pgnWhQ0815lqcq0kz9ny5JHUFeGlNtxECw7AEnxoiC81EqpfWkOHpJpfiIcOmw==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/api-base": "7.11.1", - "@polkadot/rpc-augment": "7.11.1", - "@polkadot/types": "7.11.1", - "@polkadot/types-augment": "7.11.1", - "@polkadot/types-codec": "7.11.1", - "@polkadot/util": "^8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/api-base": "9.5.1", + "@polkadot/rpc-augment": "9.5.1", + "@polkadot/types": "9.5.1", + "@polkadot/types-augment": "9.5.1", + "@polkadot/types-codec": "9.5.1", + "@polkadot/util": "^10.1.10" } }, "@polkadot/api-base": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-7.11.1.tgz", - "integrity": "sha512-MATI9tm0x3rRlipLMevWzJ4cGvMyrUGyOfwjMg3Z67U7atZgZ93LzowjzDcvSgFVM14d1tBOVWBKkCKnk7C6Zg==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-9.5.1.tgz", + "integrity": "sha512-3qsMsIhYbU3zp+YnP5h6Hg98y3B+FrxgPW7r2Uk6Kp1uSPmIzhMCyGuxur/BAcDVbd3KME+zWLHJDYOdyhuUwQ==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/rpc-core": "7.11.1", - "@polkadot/types": "7.11.1", - "@polkadot/util": "^8.4.1", - "rxjs": "^7.5.4" + "@babel/runtime": "^7.19.0", + "@polkadot/rpc-core": "9.5.1", + "@polkadot/types": "9.5.1", + "@polkadot/util": "^10.1.10", + "rxjs": "^7.5.7" } }, "@polkadot/api-derive": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-7.11.1.tgz", - "integrity": "sha512-py7pqs5mLaKPNDvRZ7BcUC7obsbLIuzJT/kZFiGzJXmaObSzU2lJkGD7fV34QlpmGP+Bqb4KtlhtY+Tnq33C0w==", - "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/api": "7.11.1", - "@polkadot/api-augment": "7.11.1", - "@polkadot/api-base": "7.11.1", - "@polkadot/rpc-core": "7.11.1", - "@polkadot/types": "7.11.1", - "@polkadot/types-codec": "7.11.1", - "@polkadot/util": "^8.4.1", - "@polkadot/util-crypto": "^8.4.1", - "rxjs": "^7.5.4" + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-9.5.1.tgz", + "integrity": "sha512-fKlKQe8WZ3jrm44w/zptMofljW5qj+jZxnryK08CAH/MINlZArPfCtn+EJla2ND9aTnRMUWlEBtytyCPImI/Hg==", + "requires": { + "@babel/runtime": "^7.19.0", + "@polkadot/api": "9.5.1", + "@polkadot/api-augment": "9.5.1", + "@polkadot/api-base": "9.5.1", + "@polkadot/rpc-core": "9.5.1", + "@polkadot/types": "9.5.1", + "@polkadot/types-codec": "9.5.1", + "@polkadot/util": "^10.1.10", + "@polkadot/util-crypto": "^10.1.10", + "rxjs": "^7.5.7" } }, "@polkadot/keyring": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-8.4.1.tgz", - "integrity": "sha512-0qfS7qikUxhe6LEdCOcMRdCxEa26inJ5aSUWaf5dXy+dgy9VJiov6uXAbXdAd1UHpDvr9hvw94FX+hXsJ7Vsyw==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-10.1.10.tgz", + "integrity": "sha512-crKYBbwmPcFoTP6mby2+o1QWsjAyi5QlKzU8tXuXOApP6SBuqmDujIuLOKNG2vZoftNdVldsVL0WmKVYtBeuQg==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/util": "8.4.1", - "@polkadot/util-crypto": "8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/util": "10.1.10", + "@polkadot/util-crypto": "10.1.10" } }, "@polkadot/networks": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-8.4.1.tgz", - "integrity": "sha512-YFY3fPLbc1Uz9zsX4TOzjY/FF09nABMgrMkvqddrVbSgo71NvoBv3Gqw3mKV/7bX1Gzk1ODfvTzamdpsKEWSnA==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-10.1.10.tgz", + "integrity": "sha512-Db78t2XnFIZbdSdu1aFuj3/1cNwcSzG/+wNrpCQ9dPhnGPy5S1GVbmU8pyxTftPKdTFc+8RdBr+5bc0d5ijGiA==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/util": "8.4.1", - "@substrate/ss58-registry": "^1.14.0" + "@babel/runtime": "^7.19.0", + "@polkadot/util": "10.1.10", + "@substrate/ss58-registry": "^1.31.0" } }, "@polkadot/rpc-augment": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-7.11.1.tgz", - "integrity": "sha512-cP/g6dM5Rmdeno+sOi/PBvAEycRoi/UI1MOKb0lVhlFJayw/uyGOhHtPKOnLh2fyDJ/q66HO3pu6aem3ORFwhQ==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-9.5.1.tgz", + "integrity": "sha512-7Qm6oIoVIqv6VOaIqDal45hUTb3TVZ58S3zkSr60p/dPMlGCaFMcojtfcQErHtCW0hgvzFNsDl9ShpXRcPWu7g==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/rpc-core": "7.11.1", - "@polkadot/types": "7.11.1", - "@polkadot/types-codec": "7.11.1", - "@polkadot/util": "^8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/rpc-core": "9.5.1", + "@polkadot/types": "9.5.1", + "@polkadot/types-codec": "9.5.1", + "@polkadot/util": "^10.1.10" } }, "@polkadot/rpc-core": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-7.11.1.tgz", - "integrity": "sha512-Bp71BwOSPT4/xmYWn9e9/ikGKYYmltbceVwa0MJiuKI0Xd5YntjtJVov17Fqlt+eddkLGt74750paykvHDJWWQ==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-9.5.1.tgz", + "integrity": "sha512-8CXgBVTEUjeuN5VOwS6MjTeqpN+9qrNJAAwNEba36/72g6Wgg3flza11kx0luQ6OLPVgCM7OcAjZ17p16phXDA==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/rpc-augment": "7.11.1", - "@polkadot/rpc-provider": "7.11.1", - "@polkadot/types": "7.11.1", - "@polkadot/util": "^8.4.1", - "rxjs": "^7.5.4" + "@babel/runtime": "^7.19.0", + "@polkadot/rpc-augment": "9.5.1", + "@polkadot/rpc-provider": "9.5.1", + "@polkadot/types": "9.5.1", + "@polkadot/util": "^10.1.10", + "rxjs": "^7.5.7" } }, "@polkadot/rpc-provider": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-7.11.1.tgz", - "integrity": "sha512-07Mg+r9swMjNISDK8ntDI5gFZU8rtHeoB27/qQwZzcWugogva8rNhaInBikZPKlF7yxM6l2VMaQnOziKUNsnRw==", - "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/keyring": "^8.4.1", - "@polkadot/types": "7.11.1", - "@polkadot/types-support": "7.11.1", - "@polkadot/util": "^8.4.1", - "@polkadot/util-crypto": "^8.4.1", - "@polkadot/x-fetch": "^8.4.1", - "@polkadot/x-global": "^8.4.1", - "@polkadot/x-ws": "^8.4.1", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-9.5.1.tgz", + "integrity": "sha512-CxyEo1SzwbcByUsrW5RUm5GTLNK7yjmVlTMseex8zQLO4+4erqUoQzr6TTIPSt4LWyk+TjbZdtGtlt7p6i2nJg==", + "requires": { + "@babel/runtime": "^7.19.0", + "@polkadot/keyring": "^10.1.10", + "@polkadot/types": "9.5.1", + "@polkadot/types-support": "9.5.1", + "@polkadot/util": "^10.1.10", + "@polkadot/util-crypto": "^10.1.10", + "@polkadot/x-fetch": "^10.1.10", + "@polkadot/x-global": "^10.1.10", + "@polkadot/x-ws": "^10.1.10", + "@substrate/connect": "0.7.14", "eventemitter3": "^4.0.7", - "mock-socket": "^9.1.2", - "nock": "^13.2.4" + "mock-socket": "^9.1.5", + "nock": "^13.2.9" } }, "@polkadot/types": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-7.11.1.tgz", - "integrity": "sha512-jxVrxIbsSfH9xK1Q3vaCfJmbkm0OlvoXz0GxdP5RJ7dQnxlNYWQUXanFkKebbRL8gSEs1wSRVccil/TSH65Nvg==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-9.5.1.tgz", + "integrity": "sha512-xuhYq+O4JRl2iqLVEwKVHnfOA9AfwoNlHzrFx2DChDcIWdmgmUDASq9TkZhBP+jx81SieMH7iTf4zY6UwPKYQw==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/keyring": "^8.4.1", - "@polkadot/types-augment": "7.11.1", - "@polkadot/types-codec": "7.11.1", - "@polkadot/types-create": "7.11.1", - "@polkadot/util": "^8.4.1", - "@polkadot/util-crypto": "^8.4.1", - "rxjs": "^7.5.4" + "@babel/runtime": "^7.19.0", + "@polkadot/keyring": "^10.1.10", + "@polkadot/types-augment": "9.5.1", + "@polkadot/types-codec": "9.5.1", + "@polkadot/types-create": "9.5.1", + "@polkadot/util": "^10.1.10", + "@polkadot/util-crypto": "^10.1.10", + "rxjs": "^7.5.7" } }, "@polkadot/types-augment": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-7.11.1.tgz", - "integrity": "sha512-jCnZ/eMkLaqSKl5q4JwBxslhAaJSSNHt04reZRs1i2jlC2UVgiFN1Rr5GJmHYAwDPoFcge/rAm6bckfhXUIdOw==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-9.5.1.tgz", + "integrity": "sha512-1AzQpGe5bGttYbbjR1UhV19htsFjgqJ651eyT3YdRqo1hotZ2GwTCkGXuTJtcmQQH9G09xUUwS3nx8WsSyQ70A==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/types": "7.11.1", - "@polkadot/types-codec": "7.11.1", - "@polkadot/util": "^8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/types": "9.5.1", + "@polkadot/types-codec": "9.5.1", + "@polkadot/util": "^10.1.10" } }, "@polkadot/types-codec": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-7.11.1.tgz", - "integrity": "sha512-rDM/FYcnou2Chy+urd7U41lcjM6jWUEUydyP9NuTOSAamCGtH0eKw52GURKTsKTT5r8wJdPMKv/yNxs1i+l5Lw==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-9.5.1.tgz", + "integrity": "sha512-7Dy8TeApu4lN8DqdMZLuh34ocdHQh9jzAob6cQl1fl1ypOiCO/SwPjFkj0Xnhh7QQz9X9w63jZzbaFR3PPT+0g==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/util": "^8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/util": "^10.1.10", + "@polkadot/x-bigint": "^10.1.10" } }, "@polkadot/types-create": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-7.11.1.tgz", - "integrity": "sha512-nVYaJC/IDsM4WM9WGjAI7qQ9scPSlBqqzwqLdvXCJeq3trOTt68x39DD0zp0hzJ/7MeXjPToDDWjpAF0B9mWSQ==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-9.5.1.tgz", + "integrity": "sha512-pUQ1U0mho5aKRdi4iR9DP9ldIoj9U+ApHIeYyxkBY8RexMQOpkt8PZfpFhg4z2H5vZj/sgNIBXq65HjXuyu+9w==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/types-codec": "7.11.1", - "@polkadot/util": "^8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/types-codec": "9.5.1", + "@polkadot/util": "^10.1.10" } }, "@polkadot/types-known": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-7.11.1.tgz", - "integrity": "sha512-BBqQxG7I+wUjeLby1u5p9aSoZ5Vy0oCwmm/aKN64JH9vBEz1OOA0pRdcCooGCG/884Wb5pRpacWTepQMQkOTLw==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-9.5.1.tgz", + "integrity": "sha512-SedfPDxJREYPATa7X2Fv26z6UVPYv6v9Z9P4nulnC6Yl8C2+Q4A/VIqTtgsJc0DU1YT3gM8ofVxircfHqqRVNA==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/networks": "^8.4.1", - "@polkadot/types": "7.11.1", - "@polkadot/types-codec": "7.11.1", - "@polkadot/types-create": "7.11.1", - "@polkadot/util": "^8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/networks": "^10.1.10", + "@polkadot/types": "9.5.1", + "@polkadot/types-codec": "9.5.1", + "@polkadot/types-create": "9.5.1", + "@polkadot/util": "^10.1.10" } }, "@polkadot/types-support": { - "version": "7.11.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-7.11.1.tgz", - "integrity": "sha512-pJmDUHK7DOO6mjpntxq9Lq0tjvqwc15FrrrNbuENgRiOueRqcAlzv+V80wdzoIBUwINgKphtpzu+rdQIYsVVQg==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-9.5.1.tgz", + "integrity": "sha512-mjenEGNT/ReY1xFexb37NDgV7QHHBBfWt31ZQMZKDkQL+R2P0rXFpmitcE3eOCV3oY4mf+GaU2N/ZfnsFl3tPQ==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/util": "^8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/util": "^10.1.10" } }, "@polkadot/util": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-8.4.1.tgz", - "integrity": "sha512-8+wqHgFbFWI5TfrvtcL888w0nWvFpbTTYIcbpEw+zYGp3n1YZTAMMP26bXWAaQX5AttxynJRij7JP3ySxYY1fg==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-10.1.10.tgz", + "integrity": "sha512-BQoTfSxZ3BWAgWDjgKBVdyw1AJGaoOeAidCA+LZcHV6wlMu5643AZPUnoMrW413MbbpxsIhJXtNttqOwjo8MjA==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/x-bigint": "8.4.1", - "@polkadot/x-global": "8.4.1", - "@polkadot/x-textdecoder": "8.4.1", - "@polkadot/x-textencoder": "8.4.1", - "@types/bn.js": "^5.1.0", - "bn.js": "^5.2.0", - "ip-regex": "^4.3.0" + "@babel/runtime": "^7.19.0", + "@polkadot/x-bigint": "10.1.10", + "@polkadot/x-global": "10.1.10", + "@polkadot/x-textdecoder": "10.1.10", + "@polkadot/x-textencoder": "10.1.10", + "@types/bn.js": "^5.1.1", + "bn.js": "^5.2.1" } }, "@polkadot/util-crypto": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-8.4.1.tgz", - "integrity": "sha512-mWjp83aIWw+EhKN9RkUDmubXibo25q5yHJl4BGm2gT71yTZcABB7q1SGfpDqLH9AB3eXJiutqhC4L3SH7YZ+6Q==", - "requires": { - "@babel/runtime": "^7.17.2", - "@noble/hashes": "1.0.0", - "@noble/secp256k1": "1.5.2", - "@polkadot/networks": "8.4.1", - "@polkadot/util": "8.4.1", - "@polkadot/wasm-crypto": "^4.5.1", - "@polkadot/x-bigint": "8.4.1", - "@polkadot/x-randomvalues": "8.4.1", - "@scure/base": "1.0.0", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-10.1.10.tgz", + "integrity": "sha512-w9h/wf4wZXeUkRnihhnfqlaKuoQtrjkjK3C5liCQkr9vx5zOsmg/nMSDP8UUFJX0msPPYpFeNvzn7oDIs6qSZA==", + "requires": { + "@babel/runtime": "^7.19.0", + "@noble/hashes": "1.1.3", + "@noble/secp256k1": "1.7.0", + "@polkadot/networks": "10.1.10", + "@polkadot/util": "10.1.10", + "@polkadot/wasm-crypto": "^6.3.1", + "@polkadot/x-bigint": "10.1.10", + "@polkadot/x-randomvalues": "10.1.10", + "@scure/base": "1.1.1", "ed2curve": "^0.3.0", "tweetnacl": "^1.0.3" } }, + "@polkadot/wasm-bridge": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-bridge/-/wasm-bridge-6.3.1.tgz", + "integrity": "sha512-1TYkHsb9AEFhU9uZj3biEnN2yKQNzdrwSjiTvfCYnt97pnEkKsZI6cku+YPZQv5w/x9CQa5Yua9e2DVVZSivGA==", + "requires": { + "@babel/runtime": "^7.18.9" + } + }, "@polkadot/wasm-crypto": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto/-/wasm-crypto-4.5.1.tgz", - "integrity": "sha512-Cr21ais3Kq3aedIHZ3J1tjgeD/+K8FCiwEawr0oRywNBSJR8wyuZMePs4swR/6xm8wbBkpqoBVHz/UQHqqQJmA==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto/-/wasm-crypto-6.3.1.tgz", + "integrity": "sha512-OO8h0qeVkqp4xYZaRVl4iuWOEtq282pNBHDKb6SOJuI2g59eWGcKh4EQU9Me2VP6qzojIqptrkrVt7KQXC68gA==", "requires": { - "@babel/runtime": "^7.16.3", - "@polkadot/wasm-crypto-asmjs": "^4.5.1", - "@polkadot/wasm-crypto-wasm": "^4.5.1" + "@babel/runtime": "^7.18.9", + "@polkadot/wasm-bridge": "6.3.1", + "@polkadot/wasm-crypto-asmjs": "6.3.1", + "@polkadot/wasm-crypto-init": "6.3.1", + "@polkadot/wasm-crypto-wasm": "6.3.1", + "@polkadot/wasm-util": "6.3.1" } }, "@polkadot/wasm-crypto-asmjs": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-4.5.1.tgz", - "integrity": "sha512-DOdRiWhxVvmqTvp+E9z1j+Yr0zDOGsDvqnT/eNw0Dl1FVUOImsEa7FKns/urASmcxCVEE1jtUWSnij29jrORMQ==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-6.3.1.tgz", + "integrity": "sha512-zbombRfA5v/mUWQQhgg2YwaxhRmxRIrvskw65x+lruax3b6xPBFDs7yplopiJU3r8h2pTgQvX/DUksvqz2TCRQ==", + "requires": { + "@babel/runtime": "^7.18.9" + } + }, + "@polkadot/wasm-crypto-init": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-init/-/wasm-crypto-init-6.3.1.tgz", + "integrity": "sha512-9yaUBcu+snwjJLmPPGl3cyGRQ1afyFGm16qzTM0sgG/ZCfUlK4uk8KWZe+sBUKgoxb2oXY7Y4WklKgQI1YBdfw==", "requires": { - "@babel/runtime": "^7.16.3" + "@babel/runtime": "^7.18.9", + "@polkadot/wasm-bridge": "6.3.1", + "@polkadot/wasm-crypto-asmjs": "6.3.1", + "@polkadot/wasm-crypto-wasm": "6.3.1" } }, "@polkadot/wasm-crypto-wasm": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-4.5.1.tgz", - "integrity": "sha512-hPwke85HxpgG/RAlwdCE8u5w7bThvWg399mlB+XjogXMxOUWBZSgq2XYbgzROUXx27inK9nStF4Pnc4zJnqs9A==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-6.3.1.tgz", + "integrity": "sha512-idSlzKGVzCfeCMRHsacRvqwojSaTadFxL/Dbls4z1thvfa3U9Ku0d2qVtlwg7Hj+tYWDiuP8Kygs+6bQwfs0XA==", "requires": { - "@babel/runtime": "^7.16.3" + "@babel/runtime": "^7.18.9", + "@polkadot/wasm-util": "6.3.1" + } + }, + "@polkadot/wasm-util": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@polkadot/wasm-util/-/wasm-util-6.3.1.tgz", + "integrity": "sha512-12oAv5J7Yoc9m6jixrSaQCxpOkWOyzHx3DMC8qmLjRiwdBWxqLmImOVRVnFsbaxqSbhBIHRuJphVxWE+GZETDg==", + "requires": { + "@babel/runtime": "^7.18.9" } }, "@polkadot/x-bigint": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-8.4.1.tgz", - "integrity": "sha512-QVP0UMoM0nBD998s3ESeaoSiVMEnHK3x0CCqocKO4l7ADNw8lfWdDG7Bb0+ymNaFYGz2KgEWxkN0VhNEnXzo0w==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-10.1.10.tgz", + "integrity": "sha512-4Jt0BO0WTby6r9A2DgkDxf/LFaICQHvSl1VSFtBf0Z0GV2n4OxkBX5x/1bdEdGEvYT5rM7RbR3xI7EL+W1ixHA==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/x-global": "8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/x-global": "10.1.10" } }, "@polkadot/x-fetch": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-8.4.1.tgz", - "integrity": "sha512-DPkgXZYt1B4xCzEw/3hxRc4/lR+NEr/b/GYijSPM8UsVoEKqHWTx2qCXrxvmKh1WD9reQ+oUACPVjRcBz5bs+g==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-10.1.10.tgz", + "integrity": "sha512-LvTxAN6GaJzfgZ74WFYPZrIkMEThpX5u7O4ILiExcJt87E19cSWlYSHDa5n+OLjUpq0lBV2ueF90iUblt6aHpg==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/x-global": "8.4.1", - "@types/node-fetch": "^2.5.12", - "node-fetch": "^2.6.7" + "@babel/runtime": "^7.19.0", + "@polkadot/x-global": "10.1.10", + "@types/node-fetch": "^2.6.2", + "node-fetch": "^3.2.10" } }, "@polkadot/x-global": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-8.4.1.tgz", - "integrity": "sha512-MQs89LKQrJwiXjV7dY2kDOPNaiWrwaQ/Fzg93ycB2xMCclRV1jRFRhnhTPJ8Ao79lhCCoazd7pXIyFgfifxdqg==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-10.1.10.tgz", + "integrity": "sha512-WFfgaZSrzPlKLdnOus2mIFGzUbSDIQK6RMCfFfM9SmF3DkoxN40z5Nkni4PztfKr22stlkhmhnX/Lp/NxpuT6Q==", "requires": { - "@babel/runtime": "^7.17.2" + "@babel/runtime": "^7.19.0" } }, "@polkadot/x-randomvalues": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-8.4.1.tgz", - "integrity": "sha512-1dRIFIib4RzyVo0k5oMLuxqSuZEV6UVvvN+jJw9G/9P1ggZtHjM1KwoFcyHgvpk2RWTB9eJZFemwSvQTpdmSJw==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-10.1.10.tgz", + "integrity": "sha512-KM4sCI/DNLIXlmnkeJIuYvh3pPuWvnkbR1a6TUB12J1izUJ+uGV+cAFRR4/EZk3oEsG/Tgivbs56meEOo3ws5A==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/x-global": "8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/x-global": "10.1.10" } }, "@polkadot/x-textdecoder": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-8.4.1.tgz", - "integrity": "sha512-qbSXyR2KvE1bO6QGsxWU3Yrx5e70rX2lwv0MHG++MyyNaDoBM3hjx14lF911bYRWXR6MW4eZ+0Nakn0oM5uSKw==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-10.1.10.tgz", + "integrity": "sha512-cAk37faYXx8IICeaq/tdl+aiIXwo3SLrx9XNoQqhX02g+SEs3ARM7zJcohj/p8ynWAI+ezNcsKn1wh174nquHw==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/x-global": "8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/x-global": "10.1.10" } }, "@polkadot/x-textencoder": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-8.4.1.tgz", - "integrity": "sha512-1UYuckNOk6NUk70Y/SGbK8oyGbqPlrny1x2OWoK/BT3/tyL2xKVV5TlXDOiFrX1PChbskXye5M8blCTYikFiJg==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-10.1.10.tgz", + "integrity": "sha512-Auaql6BL5UHtWakZUQyj4y/BrM0tm4bYG5vXCMQCA1Gg0ky+46DhgpRrAQ9F7NNgWg1A6dA2I9KuAA4BTbNx0w==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/x-global": "8.4.1" + "@babel/runtime": "^7.19.0", + "@polkadot/x-global": "10.1.10" } }, "@polkadot/x-ws": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-8.4.1.tgz", - "integrity": "sha512-u9rsJdVrBkSARy8BhJPho1yMMBSiI/Z/W8ZQRr1I28/QOwl02VYktFpFWWrhkBHsL9JlZ0wfnyKBPXrw8Wp2Vw==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-10.1.10.tgz", + "integrity": "sha512-JxDgfm0ox2XPAtdTeJXYl6qq7LY/KOPi69wRpFMczWaYUsZubO6EiRzgzjuFlHY4/oxfjS/D+YbzcjefTxHz6g==", "requires": { - "@babel/runtime": "^7.17.2", - "@polkadot/x-global": "8.4.1", + "@babel/runtime": "^7.19.0", + "@polkadot/x-global": "10.1.10", "@types/websocket": "^1.0.5", "websocket": "^1.0.34" } @@ -2579,14 +2247,38 @@ "integrity": "sha512-ula2O0kpSZtX9rKXNeQMrHwNd7E4jPDJYUXmEGTFdMRfyfMw+FPyh04oKMjAiDuOi64bYgVkOV3MjK+loImFhQ==" }, "@scure/base": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.0.0.tgz", - "integrity": "sha512-gIVaYhUsy+9s58m/ETjSJVKHhKTBMmcRb9cEV5/5dwvfDlfORjKrFsDeDHWRrm6RjcPvCLZFwGJjAjLj1gg4HA==" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.1.tgz", + "integrity": "sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==" + }, + "@substrate/connect": { + "version": "0.7.14", + "resolved": "https://registry.npmjs.org/@substrate/connect/-/connect-0.7.14.tgz", + "integrity": "sha512-uW5uBmihpivshmmmw+rsg7qOV0KqVSep4rWOXFMP8aFQinvmqw4JqxP21og4H/7JZxttYUBFQVsdtXHGKJ0aVQ==", + "requires": { + "@substrate/connect-extension-protocol": "^1.0.1", + "@substrate/smoldot-light": "0.6.34", + "eventemitter3": "^4.0.7" + } + }, + "@substrate/connect-extension-protocol": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@substrate/connect-extension-protocol/-/connect-extension-protocol-1.0.1.tgz", + "integrity": "sha512-161JhCC1csjH3GE5mPLEd7HbWtwNSPJBg3p1Ksz9SFlTzj/bgEwudiRN2y5i0MoLGCIJRYKyKGMxVnd29PzNjg==" + }, + "@substrate/smoldot-light": { + "version": "0.6.34", + "resolved": "https://registry.npmjs.org/@substrate/smoldot-light/-/smoldot-light-0.6.34.tgz", + "integrity": "sha512-+HK9MaJ0HelJmpf4YYR+salJ7dhVBltmhGlyz5l8OXS9DW18fe0Z2wxEo8P5kX9CUxlCXEb8J9JBRQAYBPHbwQ==", + "requires": { + "pako": "^2.0.4", + "ws": "^8.8.1" + } }, "@substrate/ss58-registry": { - "version": "1.16.0", - "resolved": "https://registry.npmjs.org/@substrate/ss58-registry/-/ss58-registry-1.16.0.tgz", - "integrity": "sha512-z88145A9NE0mnDbIYRP1SlHndDtm6Jd1cRnG2InRCA/M7UprFRc0zrtaTWj1KBHfcVc2uYUMggGXuenQPBQ8yQ==" + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/@substrate/ss58-registry/-/ss58-registry-1.33.0.tgz", + "integrity": "sha512-DztMuMcEfu+tJrtIQIIp5gO8/XJZ8N8UwPObDCSNgrp7trtSkPJAUFB9qXaReXtN9UvTcVBMTWk6VPfFi04Wkg==" }, "@tokenizer/token": { "version": "0.3.0", @@ -2594,9 +2286,9 @@ "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==" }, "@types/bn.js": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.0.tgz", - "integrity": "sha512-QSSVYj7pYFN49kW77o2s9xTCwZ8F2xLbjLLSEVh8D2F4JUhZtPAGOFLTD+ffqksBx/u4cE/KImFjyhqCjn/LIA==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.1.tgz", + "integrity": "sha512-qNrYbZqMx0uJAfKnKclPh+dTwK33KfLHYqtyODwd5HnXOjnkhc4qgn3BrK6RWyGZm5+sIFE7Q7Vz6QQtJB7w7g==", "requires": { "@types/node": "*" } @@ -2613,23 +2305,8 @@ "requires": { "@types/node": "*", "form-data": "^3.0.0" - }, - "dependencies": { - "form-data": { - "version": "3.0.1", - "resolved": "https://registry.nlark.com/form-data/download/form-data-3.0.1.tgz", - "integrity": "sha1-69U3kbeDVqma+aMA1CgsTV65dV8=", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - } } }, - "@types/retry": { - "version": "0.12.1" - }, "@types/websocket": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/@types/websocket/-/websocket-1.0.5.tgz", @@ -2653,41 +2330,16 @@ "negotiator": "0.6.2" } }, - "ajv": { - "version": "6.12.6", - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "another-json": { - "version": "0.2.0" - }, "array-flatten": { "version": "1.1.1" }, - "asn1": { - "version": "0.2.4", - "requires": { - "safer-buffer": "~2.1.0" - } - }, - "assert-plus": { - "version": "1.0.0" - }, "async": { "version": "0.2.10" }, "asynckit": { - "version": "0.4.0" - }, - "aws-sign2": { - "version": "0.7.0" - }, - "aws4": { - "version": "1.11.0" + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "axios": { "version": "0.19.2", @@ -2695,23 +2347,6 @@ "follow-redirects": "1.5.10" } }, - "base-x": { - "version": "3.0.8", - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "requires": { - "tweetnacl": "^0.14.3" - }, - "dependencies": { - "tweetnacl": { - "version": "0.14.5" - } - } - }, "binary-search-tree": { "version": "0.2.5", "requires": { @@ -2719,9 +2354,9 @@ } }, "bn.js": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz", - "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw==" + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", + "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==" }, "body-parser": { "version": "1.19.0", @@ -2738,15 +2373,6 @@ "type-is": "~1.6.17" } }, - "browser-request": { - "version": "0.3.3" - }, - "bs58": { - "version": "4.0.1", - "requires": { - "base-x": "^3.0.2" - } - }, "bufferutil": { "version": "4.0.6", "requires": { @@ -2764,18 +2390,10 @@ "bytes": { "version": "3.1.0" }, - "call-bind": { - "version": "1.0.2", - "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - } - }, - "caseless": { - "version": "0.12.0" - }, "combined-stream": { "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "requires": { "delayed-stream": "~1.0.0" } @@ -2800,9 +2418,6 @@ "cookie-signature": { "version": "1.0.6" }, - "core-util-is": { - "version": "1.0.2" - }, "crypto": { "version": "1.0.1" }, @@ -2815,11 +2430,10 @@ "type": "^1.0.1" } }, - "dashdash": { - "version": "1.14.1", - "requires": { - "assert-plus": "^1.0.0" - } + "data-uri-to-buffer": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz", + "integrity": "sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==" }, "debug": { "version": "2.6.9", @@ -2828,7 +2442,9 @@ } }, "delayed-stream": { - "version": "1.0.0" + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" }, "depd": { "version": "1.1.2" @@ -2860,13 +2476,6 @@ "ws": "^8.9.0" } }, - "ecc-jsbn": { - "version": "0.1.2", - "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, "ed2curve": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/ed2curve/-/ed2curve-0.3.0.tgz", @@ -2882,9 +2491,9 @@ "version": "1.0.2" }, "es5-ext": { - "version": "0.10.58", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.58.tgz", - "integrity": "sha512-LHO+KBBaHGwjy32ibSaMY+ZzjpC4K4I5bPoijICMBL7gXEXfrEUrzssmNP+KigbQEp1dRUnGkry/vUnxOqptLQ==", + "version": "0.10.62", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz", + "integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==", "requires": { "es6-iterator": "^2.0.3", "es6-symbol": "^3.1.3", @@ -2894,7 +2503,7 @@ "es6-iterator": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", - "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", + "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", "requires": { "d": "1", "es5-ext": "^0.10.35", @@ -2962,31 +2571,31 @@ } }, "ext": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/ext/-/ext-1.6.0.tgz", - "integrity": "sha512-sdBImtzkq2HpkdRLtlLWDa6w4DX22ijZLKx8BMPUuKe1c5lbN6xwQDQCxSfxBQnHZ13ls/FH0MQZx/q/gr6FQg==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", + "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", "requires": { - "type": "^2.5.0" + "type": "^2.7.2" }, "dependencies": { "type": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/type/-/type-2.6.0.tgz", - "integrity": "sha512-eiDBDOmkih5pMbo9OqsqPRGMljLodLcwd5XD5JbtNB0o89xZAwynY9EdCDsJU7LtcVCClu9DvM7/0Ep1hYX3EQ==" + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==" } } }, - "extend": { - "version": "3.0.2" - }, - "extsprintf": { - "version": "1.3.0" - }, "fast-deep-equal": { "version": "3.1.3" }, - "fast-json-stable-stringify": { - "version": "2.1.0" + "fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "requires": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + } }, "file-type": { "version": "18.0.0", @@ -3024,26 +2633,22 @@ } } }, - "forever-agent": { - "version": "0.6.1" - }, "form-data": { - "version": "2.3.3", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", "requires": { "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", + "combined-stream": "^1.0.8", "mime-types": "^2.1.12" - }, - "dependencies": { - "mime-db": { - "version": "1.51.0" - }, - "mime-types": { - "version": "2.1.34", - "requires": { - "mime-db": "1.51.0" - } - } + } + }, + "formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "requires": { + "fetch-blob": "^3.1.2" } }, "forwarded": { @@ -3052,42 +2657,6 @@ "fresh": { "version": "0.5.2" }, - "function-bind": { - "version": "1.1.1" - }, - "get-intrinsic": { - "version": "1.1.1", - "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1" - } - }, - "getpass": { - "version": "0.1.7", - "requires": { - "assert-plus": "^1.0.0" - } - }, - "har-schema": { - "version": "2.0.0" - }, - "har-validator": { - "version": "5.1.5", - "requires": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" - } - }, - "has": { - "version": "1.0.3", - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-symbols": { - "version": "1.0.2" - }, "http-errors": { "version": "1.7.2", "requires": { @@ -3103,14 +2672,6 @@ } } }, - "http-signature": { - "version": "1.2.0", - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, "iconv-lite": { "version": "0.4.24", "requires": { @@ -3128,40 +2689,18 @@ "inherits": { "version": "2.0.4" }, - "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==" - }, "ipaddr.js": { "version": "1.9.1" }, "is-typedarray": { - "version": "1.0.0" - }, - "isstream": { - "version": "0.1.2" - }, - "jsbn": { - "version": "0.1.1" - }, - "json-schema": { - "version": "0.2.3" - }, - "json-schema-traverse": { - "version": "0.4.1" + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" }, "json-stringify-safe": { - "version": "5.0.1" - }, - "jsprim": { - "version": "1.4.1", - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" }, "lie": { "version": "3.1.1", @@ -3178,11 +2717,6 @@ "lodash": { "version": "4.17.21" }, - "lodash.set": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", - "integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=" - }, "lodash.snakecase": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", @@ -3193,32 +2727,6 @@ "resolved": "https://registry.npmjs.org/lodash.uniqwith/-/lodash.uniqwith-4.5.0.tgz", "integrity": "sha512-7lYL8bLopMoy4CTICbxygAUq6CdRJ36vFc80DucPueUee+d5NBRxz3FdT9Pes/HEx5mPoT9jwnsEJWz1N7uq7Q==" }, - "loglevel": { - "version": "1.7.1" - }, - "matrix-js-sdk": { - "version": "12.1.0", - "requires": { - "@babel/runtime": "^7.12.5", - "another-json": "^0.2.0", - "browser-request": "^0.3.3", - "bs58": "^4.0.1", - "content-type": "^1.0.4", - "loglevel": "^1.7.1", - "p-retry": "^4.5.0", - "qs": "^6.9.6", - "request": "^2.88.2", - "unhomoglyph": "^1.0.6" - }, - "dependencies": { - "qs": { - "version": "6.10.1", - "requires": { - "side-channel": "^1.0.4" - } - } - } - }, "media-typer": { "version": "0.3.0" }, @@ -3250,14 +2758,9 @@ } }, "mock-socket": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/mock-socket/-/mock-socket-9.1.2.tgz", - "integrity": "sha512-XKZkCnQ9ISOlTnaPg4LYYSMj7+6i78HyadYzLA5JM4465ibLdjappZD9Csnqc3Tfzep/eEK/LCJ29BTaLHoB1A==" - }, - "moment": { - "version": "2.29.3", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.3.tgz", - "integrity": "sha512-c6YRvhEo//6T2Jz/vVtYzqBzwvPT95JBQ+smCytzf7c50oMZRsR/a4w88aD34I+/QVSfnoAnSBFPJHItlOMJVw==" + "version": "9.1.5", + "resolved": "https://registry.npmjs.org/mock-socket/-/mock-socket-9.1.5.tgz", + "integrity": "sha512-3DeNIcsQixWHHKk6NdoBhWI4t1VMj5/HzfnI1rE/pLl5qKx7+gd4DNA07ehTaZ6MoUU053si6Hd+YtiM/tQZfg==" }, "ms": { "version": "2.0.0" @@ -3281,20 +2784,20 @@ "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" }, "nock": { - "version": "13.2.4", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.2.4.tgz", - "integrity": "sha512-8GPznwxcPNCH/h8B+XZcKjYPXnUV5clOKCjAqyjsiqA++MpNx9E9+t8YPp0MbThO+KauRo7aZJ1WuIZmOrT2Ug==", + "version": "13.2.9", + "resolved": "https://registry.npmjs.org/nock/-/nock-13.2.9.tgz", + "integrity": "sha512-1+XfJNYF1cjGB+TKMWi29eZ0b82QOvQs2YoLNzbpWGqFMtRQHTa57osqdGj4FrFPgkO4D4AZinzUJR9VvW3QUA==", "requires": { "debug": "^4.1.0", "json-stringify-safe": "^5.0.1", - "lodash.set": "^4.3.2", + "lodash": "^4.17.21", "propagate": "^2.0.0" }, "dependencies": { "debug": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", - "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "requires": { "ms": "2.1.2" } @@ -3306,35 +2809,34 @@ } } }, + "node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==" + }, "node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "version": "3.2.10", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.10.tgz", + "integrity": "sha512-MhuzNwdURnZ1Cp4XTazr69K0BTizsBroX7Zx3UgDSVcZYKF/6p0CBe4EUb/hLqmzVhl0UpYfgRljQ4yxE+iCxA==", "requires": { - "whatwg-url": "^5.0.0" + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" } }, "node-gyp-build": { "version": "4.3.0" }, - "oauth-sign": { - "version": "0.9.0" - }, - "object-inspect": { - "version": "1.11.0" - }, "on-finished": { "version": "2.3.0", "requires": { "ee-first": "1.1.1" } }, - "p-retry": { - "version": "4.6.1", - "requires": { - "@types/retry": "^0.12.0", - "retry": "^0.13.1" - } + "pako": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pako/-/pako-2.0.4.tgz", + "integrity": "sha512-v8tweI900AUkZN6heMU/4Uy4cXRc2AYNRggVmTR+dEncawDJgCdLMximOVA2p4qO57WMynangsfGRb5WD6L1Bg==" }, "parseurl": { "version": "1.3.3" @@ -3347,9 +2849,6 @@ "resolved": "https://registry.npmjs.org/peek-readable/-/peek-readable-5.0.0.tgz", "integrity": "sha512-YtCKvLUOvwtMGmrniQPdO7MwPjgkFBtFIrmfSbYmYuq3tKDV/mcfAhBth1+C3ru7uXIZasc/pHnb+YDYNkkj4A==" }, - "performance-now": { - "version": "2.1.0" - }, "propagate": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/propagate/-/propagate-2.0.1.tgz", @@ -3362,12 +2861,6 @@ "ipaddr.js": "1.9.1" } }, - "psl": { - "version": "1.8.0" - }, - "punycode": { - "version": "2.1.1" - }, "qs": { "version": "6.7.0" }, @@ -3402,45 +2895,14 @@ } }, "regenerator-runtime": { - "version": "0.13.9" - }, - "request": { - "version": "2.88.2", - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.5.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "dependencies": { - "qs": { - "version": "6.5.2" - } - } - }, - "retry": { - "version": "0.13.1" + "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==" }, "rxjs": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.5.tgz", - "integrity": "sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw==", + "version": "7.5.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.7.tgz", + "integrity": "sha512-z9MzKh/UcOqB3i20H6rtrlaE/CgjLOvheWK/9ILrbhROGTweAi1BaFsTT9FbwZi5Trr1qNRs+MXkhmR06awzQA==", "requires": { "tslib": "^2.1.0" } @@ -3496,33 +2958,6 @@ "setprototypeof": { "version": "1.1.1" }, - "side-channel": { - "version": "1.0.4", - "requires": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - } - }, - "sshpk": { - "version": "1.16.1", - "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - }, - "dependencies": { - "tweetnacl": { - "version": "0.14.5" - } - } - }, "statuses": { "version": "1.5.0" }, @@ -3560,16 +2995,6 @@ "ieee754": "^1.2.1" } }, - "tough-cookie": { - "version": "2.5.0", - "requires": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - } - }, - "tr46": { - "version": "0.0.3" - }, "ts-mixer": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/ts-mixer/-/ts-mixer-6.0.1.tgz", @@ -3580,12 +3005,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" }, - "tunnel-agent": { - "version": "0.6.0", - "requires": { - "safe-buffer": "^5.0.1" - } - }, "tweetnacl": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", @@ -3622,18 +3041,9 @@ "busboy": "^1.6.0" } }, - "unhomoglyph": { - "version": "1.0.6" - }, "unpipe": { "version": "1.0.0" }, - "uri-js": { - "version": "4.4.1", - "requires": { - "punycode": "^2.1.0" - } - }, "utf-8-validate": { "version": "5.0.8", "requires": { @@ -3648,27 +3058,13 @@ "utils-merge": { "version": "1.0.1" }, - "uuid": { - "version": "3.4.0" - }, "vary": { "version": "1.1.2" }, - "verror": { - "version": "1.10.0", - "requires": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - }, - "dependencies": { - "extsprintf": { - "version": "1.4.0" - } - } - }, - "webidl-conversions": { - "version": "3.0.1" + "web-streams-polyfill": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", + "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==" }, "websocket": { "version": "1.0.34", @@ -3683,13 +3079,6 @@ "yaeti": "^0.0.6" } }, - "whatwg-url": { - "version": "5.0.0", - "requires": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, "ws": { "version": "8.9.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz", @@ -3699,7 +3088,7 @@ "yaeti": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", - "integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc=" + "integrity": "sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug==" } } } diff --git a/package.json b/package.json index 30cae65..8423a89 100644 --- a/package.json +++ b/package.json @@ -12,16 +12,13 @@ "author": "", "license": "ISC", "dependencies": { - "@polkadot/api": "^7.11.1", + "@polkadot/api": "^9.5.1", "axios": "^0.19.0", "body-parser": "^1.19.0", - "bs58": "^4.0.1", "crypto": "^1.0.1", "discord.js": "^14.6.0", "express": "^4.17.1", "lodash": "^4.17.21", - "matrix-js-sdk": "^12.1.0", - "moment": "^2.29.3", "nedb": "^1.8.0" } } diff --git a/src/bot/actions.js b/src/bot/actions.js index 65c6130..0ab658a 100644 --- a/src/bot/actions.js +++ b/src/bot/actions.js @@ -1,13 +1,9 @@ const _ = require('lodash'); -const moment = require('moment'); const pdKeyring = require('@polkadot/keyring'); const axios = require('axios'); const { DRIP_TYPE, SS58_PREFIX } = require("../constants"); const { tokenSymbol, networkName, dripActions } = require('./config'); -const { getNextHourStr, parseTime } = require('./helperFn'); - -const { later: { maxScheduleSeconds } } = dripActions; const keyring = new pdKeyring.Keyring({ type: 'sr25519' }); keyring.setSS58Format(SS58_PREFIX); @@ -59,69 +55,7 @@ const drip = async (sender, address) => { const { amount } = dripActions[DRIP_TYPE.NORMAL]; - return `I just sent ${amount} ${tokenSymbol} to address ${address}. Extrinsic hash: ${res.data.hash}.`; -} - -const dripLater = async (sender, address, time) => { - if (_.isEmpty(address)) { - return 'please enter a wallet address after !drip-later.'; - } - - if (!isValidAddress(address)) { - return `The address ${address} entered is incompatible to ${networkName}.`; - } - - const dripTime = parseTime(time); - if (!dripTime) { - return `Please enter the specified time format(UTC). Example: !drip-later address ${getNextHourStr()}`; - } - if (dripTime.isBefore(moment())) { - return "The time in UTC must be in the future."; - } - if (dripTime.isAfter(moment().add(maxScheduleSeconds, 'seconds'))) { - return `The time in UTC cannot be farther than ${moment.duration(maxScheduleSeconds, 'seconds').asDays()} days.`; - } - - const res = await requestDrip({ - sender, - address, - dripType: DRIP_TYPE.LATER, - dripTime: dripTime.valueOf(), - }); - - if (res.data === 'LIMIT') { - return `Your Discord ID or the address has reached its daily quota. Please request 3 times every 24 hours.`; - } - - const { amount } = dripActions[DRIP_TYPE.LATER]; - const { data: { hash, providerId } } = res; - - return `I will send ${amount} ${tokenSymbol} to address ${address} at ${time} UTC. Extrinsic hash: ${hash}. Your provided_id: ${providerId}.`; -} - -const dripSwag = async (sender, address) => { - if (_.isEmpty(address)) { - return 'please enter a wallet address after !drip-swag.'; - } - - if (!isValidAddress(address)) { - return `The address ${address} entered is incompatible to ${networkName}.`; - } - - const res = await requestDrip({ - sender, - address, - dripType: DRIP_TYPE.SWAG, - }); - - if (res.data === 'LIMIT') { - return `Your Discord ID or the address has reached its daily quota. Please request only once every 24 hours.`; - } - - const { amount } = dripActions[DRIP_TYPE.SWAG]; - const { data: { hash, providerId } } = res; - - return `For the next 24 hours, I will send ${amount} ${tokenSymbol} to address ${address} per hour. Extrinsic hash: ${hash}. Your provided_id: ${providerId}.`; + return `I just sent ${amount} ${tokenSymbol} to ${address}. Extrinsic hash: ${res.data.hash}.\n\nTry out our recurring payment feature on https://ace.web3go.xyz ! (Click on Connect at the top right corner to select Turing Staging network)`; } -module.exports = { drip, dripLater, dripSwag }; +module.exports = { drip }; diff --git a/src/bot/discord.js b/src/bot/discord.js index 1f54a68..b743d67 100644 --- a/src/bot/discord.js +++ b/src/bot/discord.js @@ -4,7 +4,6 @@ const _ = require('lodash'); const config = require('./config'); const actions = require('./actions'); -const { getNextHourStr } = require('./helperFn'); // Check environment variables valid if (!process.env.ACCESS_TOKEN) { @@ -40,23 +39,11 @@ client.on('messageCreate', async msg => { return; } - if (action === '!drip-later') { - msg.reply(await actions.dripLater(sender, args[1], _.join(_.slice(args, 2), ' '))); - return; - } - - if (action === '!drip-swag') { - msg.reply(await actions.dripSwag(sender, args[1])); - return; - } - if (action === '!faucet') { msg.reply(` Usage: !balance - Get the faucet's balance. !drip
- Send ${tokenSymbol}s to
. - !drip-later