diff --git a/webapp/package-lock.json b/webapp/package-lock.json index 587eaabe6c..2fb910bfd7 100644 --- a/webapp/package-lock.json +++ b/webapp/package-lock.json @@ -14,7 +14,7 @@ "classnames": "^2.3.1", "connected-react-router": "^6.9.1", "date-fns": "^2.23.0", - "decentraland-dapps": "^12.17.1", + "decentraland-dapps": "^12.24.0", "decentraland-transactions": "^1.22.2", "decentraland-ui": "^3.9.0", "dotenv": "^10.0.0", @@ -1981,9 +1981,9 @@ "integrity": "sha512-ij4wRiunFfaJxjB0BdrYHIH8FxBJpOwNPhhAcunlmPdXudL1WQV1qoP9un6JsEBAgQH+7UXyyjh0g7jTxXK6tg==" }, "node_modules/@dcl/schemas": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/@dcl/schemas/-/schemas-1.5.1.tgz", - "integrity": "sha512-YL2Lb9Sn3AkjE7Kd+UE4iRz62sRYAKp1+e4eFuPH71V+06d2+kdJIV7ieOzRmYqiPjRXAxqxqrtTWjv3OWmN6Q==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@dcl/schemas/-/schemas-1.6.0.tgz", + "integrity": "sha512-jlTMzM51HLL+nbfXYvIPwiH2KDVfs6g/pzB+pH1R6kK8Jadz5DnQwtaRUFW2fPlkdxejeenuaxXvnaRKD7FaJw==", "dependencies": { "ajv": "^7.1.0" } @@ -2870,43 +2870,104 @@ "react-dom": "^16.8.0 || ^17" } }, - "node_modules/@formatjs/intl-displaynames": { - "version": "1.2.10", - "resolved": "https://registry.npmjs.org/@formatjs/intl-displaynames/-/intl-displaynames-1.2.10.tgz", - "integrity": "sha512-GROA2RP6+7Ouu0WnHFF78O5XIU7pBfI19WM1qm93l6MFWibUk67nCfVCK3VAYJkLy8L8ZxjkYT11VIAfvSz8wg==", + "node_modules/@formatjs/ecma402-abstract": { + "version": "1.9.8", + "resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-1.9.8.tgz", + "integrity": "sha512-2U4n11bLmTij/k4ePCEFKJILPYwdMcJTdnKVBi+JMWBgu5O1N+XhCazlE6QXqVO1Agh2Doh0b/9Jf1mSmSVfhA==", "dependencies": { - "@formatjs/intl-utils": "^2.3.0" + "@formatjs/intl-localematcher": "0.2.20", + "tslib": "^2.1.0" } }, - "node_modules/@formatjs/intl-listformat": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/@formatjs/intl-listformat/-/intl-listformat-1.4.8.tgz", - "integrity": "sha512-WNMQlEg0e50VZrGIkgD5n7+DAMGt3boKi1GJALfhFMymslJb5i+5WzWxyj/3a929Z6MAFsmzRIJjKuv+BxKAOQ==", + "node_modules/@formatjs/ecma402-abstract/node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + }, + "node_modules/@formatjs/fast-memoize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@formatjs/fast-memoize/-/fast-memoize-1.2.0.tgz", + "integrity": "sha512-fObitP9Tlc31SKrPHgkPgQpGo4+4yXfQQITTCNH8AZdEqB7Mq4nPrjpUL/tNGN3lEeJcFxDbi0haX8HM7QvQ8w==", "dependencies": { - "@formatjs/intl-utils": "^2.3.0" + "tslib": "^2.1.0" } }, - "node_modules/@formatjs/intl-relativetimeformat": { - "version": "4.5.16", - "resolved": "https://registry.npmjs.org/@formatjs/intl-relativetimeformat/-/intl-relativetimeformat-4.5.16.tgz", - "integrity": "sha512-IQ0haY97oHAH5OYUdykNiepdyEWj3SAT+Fp9ZpR85ov2JNiFx+12WWlxlVS8ehdyncC2ZMt/SwFIy2huK2+6/A==", + "node_modules/@formatjs/fast-memoize/node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + }, + "node_modules/@formatjs/icu-messageformat-parser": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.0.11.tgz", + "integrity": "sha512-5mWb8U8aulYGwnDZWrr+vdgn5PilvtrqQYQ1pvpgzQes/osi85TwmL2GqTGLlKIvBKD2XNA61kAqXYY95w4LWg==", "dependencies": { - "@formatjs/intl-utils": "^2.3.0" + "@formatjs/ecma402-abstract": "1.9.8", + "@formatjs/icu-skeleton-parser": "1.2.12", + "tslib": "^2.1.0" } }, - "node_modules/@formatjs/intl-unified-numberformat": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/@formatjs/intl-unified-numberformat/-/intl-unified-numberformat-3.3.7.tgz", - "integrity": "sha512-KnWgLRHzCAgT9eyt3OS34RHoyD7dPDYhRcuKn+/6Kv2knDF8Im43J6vlSW6Hm1w63fNq3ZIT1cFk7RuVO3Psag==", - "deprecated": "We have renamed the package to @formatjs/intl-numberformat", + "node_modules/@formatjs/icu-messageformat-parser/node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + }, + "node_modules/@formatjs/icu-skeleton-parser": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.2.12.tgz", + "integrity": "sha512-DTFxWmEA02ZNW6fsYjGYSADvtrqqjCYF7DSgCmMfaaE0gLP4pCdAgOPE+lkXXU+jP8iCw/YhMT2Seyk/C5lBWg==", "dependencies": { - "@formatjs/intl-utils": "^2.3.0" + "@formatjs/ecma402-abstract": "1.9.8", + "tslib": "^2.1.0" } }, - "node_modules/@formatjs/intl-utils": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@formatjs/intl-utils/-/intl-utils-2.3.0.tgz", - "integrity": "sha512-KWk80UPIzPmUg+P0rKh6TqspRw0G6eux1PuJr+zz47ftMaZ9QDwbGzHZbtzWkl5hgayM/qrKRutllRC7D/vVXQ==" + "node_modules/@formatjs/icu-skeleton-parser/node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + }, + "node_modules/@formatjs/intl-displaynames": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/@formatjs/intl-displaynames/-/intl-displaynames-5.2.3.tgz", + "integrity": "sha512-5BmhSurLbfgdeo0OBcNPPkIS8ikMMYaHe2NclxEQZqcMvrnQzNMNnUE2dDF5vZx+mkvKq77aQYzpc8RfqVsRCQ==", + "dependencies": { + "@formatjs/ecma402-abstract": "1.9.8", + "@formatjs/intl-localematcher": "0.2.20", + "tslib": "^2.1.0" + } + }, + "node_modules/@formatjs/intl-displaynames/node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + }, + "node_modules/@formatjs/intl-listformat": { + "version": "6.3.3", + "resolved": "https://registry.npmjs.org/@formatjs/intl-listformat/-/intl-listformat-6.3.3.tgz", + "integrity": "sha512-3nzAKgVS5rePDa5HiH0OwZgAhqxLtzlMc9Pg4QgajRHSP1TqFiMmQnnn52wd3+xVTb7cjZVm3JBnTv51/MhTOg==", + "dependencies": { + "@formatjs/ecma402-abstract": "1.9.8", + "@formatjs/intl-localematcher": "0.2.20", + "tslib": "^2.1.0" + } + }, + "node_modules/@formatjs/intl-listformat/node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + }, + "node_modules/@formatjs/intl-localematcher": { + "version": "0.2.20", + "resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.2.20.tgz", + "integrity": "sha512-/Ro85goRZnCojzxOegANFYL0LaDIpdPjAukR7xMTjOtRx+3yyjR0ifGTOW3/Kjhmab3t6GnyHBYWZSudxEOxPA==", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/@formatjs/intl-localematcher/node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" }, "node_modules/@hapi/address": { "version": "2.1.4", @@ -4436,11 +4497,6 @@ "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-5.1.2.tgz", "integrity": "sha512-h4lTMgMJctJybDp8CQrxTUiiYmedihHWkjnF/8Pxseu2S6Nlfcy8kwboQ8yejh456rP2yWoEVm1sS/FVsfM48w==" }, - "node_modules/@types/invariant": { - "version": "2.2.34", - "resolved": "https://registry.npmjs.org/@types/invariant/-/invariant-2.2.34.tgz", - "integrity": "sha512-lYUtmJ9BqUN688fGY1U1HZoWT1/Jrmgigx2loq4ZcJpICECm/Om3V314BxdzypO0u5PORKGMM6x0OXaljV1YFg==" - }, "node_modules/@types/isomorphic-fetch": { "version": "0.0.35", "resolved": "https://registry.npmjs.org/@types/isomorphic-fetch/-/isomorphic-fetch-0.0.35.tgz", @@ -4680,15 +4736,6 @@ "@types/react": "*" } }, - "node_modules/@types/react-intl": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/react-intl/-/react-intl-3.0.0.tgz", - "integrity": "sha512-k8F3d05XQGEqSWIfK97bBjZe4z9RruXU9Wa7OZ2iUC5pdeIpzuQDZe/9C2J3Xir5//ZtAkhcv08Wfx3n5TBTQg==", - "deprecated": "This is a stub types definition. react-intl provides its own type definitions, so you do not need this installed.", - "dependencies": { - "react-intl": "*" - } - }, "node_modules/@types/react-redux": { "version": "7.1.18", "resolved": "https://registry.npmjs.org/@types/react-redux/-/react-redux-7.1.18.tgz", @@ -4758,22 +4805,6 @@ "redux": "^4.0.0" } }, - "node_modules/@types/redux-storage": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@types/redux-storage/-/redux-storage-4.1.0.tgz", - "integrity": "sha512-O9AeTfS8x5FFBBUCwORZkudLahIYURi4n8hIGyXKfVzik4JOYktI+FIWdNhn1CtGWBKsKg4nyc5gkkpDia/BvQ==", - "dependencies": { - "redux": "^3.6.0 || ^4.0.0" - } - }, - "node_modules/@types/redux-storage-engine-localstorage": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/redux-storage-engine-localstorage/-/redux-storage-engine-localstorage-1.1.1.tgz", - "integrity": "sha512-JuX/kPFhLz5iaQOc/ynQaGjSv2DdfiMWsy6Dy3qpO/J3wFEXH170aG0ma4N3DNcwMP4OqnNRK4Y2xaqk57KPrQ==", - "dependencies": { - "@types/redux-storage": "*" - } - }, "node_modules/@types/resolve": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-0.0.8.tgz", @@ -5250,36 +5281,36 @@ } }, "node_modules/@walletconnect/browser-utils": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/browser-utils/-/browser-utils-1.5.4.tgz", - "integrity": "sha512-09yRcfQRQiDpwf6JY57UQOzFfSOunszcSFDFekV+hz8VdShdKmq02w0hp5c4i9T0dAX+eCHNUtOun+jN6CPIDw==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/browser-utils/-/browser-utils-1.6.5.tgz", + "integrity": "sha512-HLTysmlCkc2HN2OS6ewMG0v8E9oY2h9zNaDHe0BLN3ZxnsoMCVzkJxy7ryaXCemVdapmr6HgHFexGJoMbWaC4w==", "dependencies": { "@walletconnect/safe-json": "1.0.0", - "@walletconnect/types": "^1.5.4", + "@walletconnect/types": "^1.6.5", "@walletconnect/window-getters": "1.0.0", "@walletconnect/window-metadata": "1.0.0", "detect-browser": "5.2.0" } }, "node_modules/@walletconnect/client": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/client/-/client-1.5.4.tgz", - "integrity": "sha512-NGslp4HfSBC/pf6QNpH49RQKW0IznqzR4Ooarr23yEcyO8XzOZDfra+Y7mKQkarXAN2O1HHBY3h3VF/C0mlwCw==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/client/-/client-1.6.5.tgz", + "integrity": "sha512-dRq1D3NEGwM2I3CpiwFsWy1rrdMKCMSfDUu3rCCXUE4zInx+pyq7IEFjYiSjtOEZzjRlUTqYwhjnYIezQZgh4w==", "dependencies": { - "@walletconnect/core": "^1.5.4", - "@walletconnect/iso-crypto": "^1.5.4", - "@walletconnect/types": "^1.5.4", - "@walletconnect/utils": "^1.5.4" + "@walletconnect/core": "^1.6.5", + "@walletconnect/iso-crypto": "^1.6.5", + "@walletconnect/types": "^1.6.5", + "@walletconnect/utils": "^1.6.5" } }, "node_modules/@walletconnect/core": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-1.5.4.tgz", - "integrity": "sha512-jJWKA4fnrjcWaOK/d4ct130Ic8Ycf0ZSgaNMm/9Uh+t6CAFJmY2M3WTUf3UagGZ3+7vAGJwMYVR7NN4k86mfqg==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-1.6.5.tgz", + "integrity": "sha512-mmMTP8nZunjSCAy0ckafvt/JcdzcuSZPaAybqgKwx2rC9cc/3XWrdNsfiKMt8AFoQF87jGHem3905eFZYTqLXw==", "dependencies": { - "@walletconnect/socket-transport": "^1.5.4", - "@walletconnect/types": "^1.5.4", - "@walletconnect/utils": "^1.5.4" + "@walletconnect/socket-transport": "^1.6.5", + "@walletconnect/types": "^1.6.5", + "@walletconnect/utils": "^1.6.5" } }, "node_modules/@walletconnect/crypto": { @@ -5314,24 +5345,24 @@ "integrity": "sha512-4BwqyWy6KpSvkocSaV7WR3BlZfrxLbJSLkg+j7Gl6pTDE+U55lLhJvQaMuDVazXYxcjBsG09k7UlH7cGiUI5vQ==" }, "node_modules/@walletconnect/http-connection": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/http-connection/-/http-connection-1.5.4.tgz", - "integrity": "sha512-xiCiQzw4W4nuTQNqDuM/4Dwtf3/wX5CsGbR56RmUUgbxs4WRN7w4W3pXyogOX77zGGk3AUHxWEawppYNIq7sgQ==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/http-connection/-/http-connection-1.6.5.tgz", + "integrity": "sha512-5kr6wZ3DnqaBiwkeA9iKdawvIb3bIJNf8WA8X89YHE5KOzbkAsymjniZWs8asdl9Y9+8ZHJMPXtylyrkpT8wXA==", "dependencies": { - "@walletconnect/types": "^1.5.4", - "@walletconnect/utils": "^1.5.4", + "@walletconnect/types": "^1.6.5", + "@walletconnect/utils": "^1.6.5", "eventemitter3": "4.0.7", "xhr2-cookies": "1.1.0" } }, "node_modules/@walletconnect/iso-crypto": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/iso-crypto/-/iso-crypto-1.5.4.tgz", - "integrity": "sha512-mwYyuPzWEvjkVi5DkgAu6aTjf2KMPmlXaIrqBPvGVeuhFrlxf3pYOjunBoxHm/Lnm9a9FQPwkGf6s9DQEl2r1A==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/iso-crypto/-/iso-crypto-1.6.5.tgz", + "integrity": "sha512-145VRX1+gudhHrnT2s81lLW/BEu3QgFMMRCrkxx9Tsl5JiLGcGbWkMxAl8zjGTMqnHeuQngyjvY1mO+3z27a7A==", "dependencies": { "@walletconnect/crypto": "^1.0.1", - "@walletconnect/types": "^1.5.4", - "@walletconnect/utils": "^1.5.4" + "@walletconnect/types": "^1.6.5", + "@walletconnect/utils": "^1.6.5" } }, "node_modules/@walletconnect/jsonrpc-types": { @@ -5358,13 +5389,13 @@ "deprecated": "Deprecated in favor of dynamic registry available from: https://github.com/walletconnect/walletconnect-registry" }, "node_modules/@walletconnect/qrcode-modal": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/qrcode-modal/-/qrcode-modal-1.5.4.tgz", - "integrity": "sha512-8i/2ruMSHsWvkg7xOgSJSty/iMPiZ5MFdC8XxqxebdvYUDPB5/nyDihQFExpqBxeKk2QAOqtav3/38HbBinoLA==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/qrcode-modal/-/qrcode-modal-1.6.5.tgz", + "integrity": "sha512-XII/Pm7zS5pRxrakURuhbWO+SfwgOuLuvOBk/hr1ATK/y7R5p19P62mCSUrvSxHXca27IX1tZJRe9D161R0WgQ==", "dependencies": { - "@walletconnect/browser-utils": "^1.5.4", + "@walletconnect/browser-utils": "^1.6.5", "@walletconnect/mobile-registry": "^1.4.0", - "@walletconnect/types": "^1.5.4", + "@walletconnect/types": "^1.6.5", "copy-to-clipboard": "^3.3.1", "preact": "10.4.1", "qrcode": "1.4.4" @@ -5386,19 +5417,19 @@ "integrity": "sha512-QJzp/S/86sUAgWY6eh5MKYmSfZaRpIlmCJdi5uG4DJlKkZrHEF7ye7gA+VtbVzvTtpM/gRwO2plQuiooIeXjfg==" }, "node_modules/@walletconnect/socket-transport": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/socket-transport/-/socket-transport-1.5.4.tgz", - "integrity": "sha512-9xPpN2QvRc8i65wIaDEiFLPWdgKY/S+0ba5zSTqKAyjQVWPBH+/wr4xcoOF1lLdMKanFiyEpH1z25+6ndp7cAw==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/socket-transport/-/socket-transport-1.6.5.tgz", + "integrity": "sha512-FRlgBr3EIxD3du5l/tuK6jdiva85YeRG+iZmo/RPnlVw4opy74WXb5JdCK9jXLcBEoDiY9Hz4j69aqnht6gIDQ==", "dependencies": { - "@walletconnect/types": "^1.5.4", - "@walletconnect/utils": "^1.5.4", - "ws": "7.3.0" + "@walletconnect/types": "^1.6.5", + "@walletconnect/utils": "^1.6.5", + "ws": "7.5.3" } }, "node_modules/@walletconnect/socket-transport/node_modules/ws": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.3.0.tgz", - "integrity": "sha512-iFtXzngZVXPGgpTlP1rBqsUK82p9tKqsWRPg5L56egiljujJT3vGAYnHANvFxBieXrTFavhzhxW52jnaWV+w2w==", + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.3.tgz", + "integrity": "sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg==", "engines": { "node": ">=8.3.0" }, @@ -5416,19 +5447,19 @@ } }, "node_modules/@walletconnect/types": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-1.5.4.tgz", - "integrity": "sha512-K3XQA5y2dfVfLObjrj4YPVcqxw3qZVpUan/UvsuC0e06vP+Gk6J6u2Xs196Or9/gLDSu05S/R69SukuWEtaHNA==" + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-1.6.5.tgz", + "integrity": "sha512-S9DsODI35PbIDuOSkIiF8SzTstqCqX/4+kV7n18vyukEFPlpSSHwZMwJUfzo9yJ0pqsqLNZta+jvb88gJRuAaA==" }, "node_modules/@walletconnect/utils": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-1.5.4.tgz", - "integrity": "sha512-M/Wbm+kuaAo4dmfNY3UHsXnLpW0XpnoMChKlmPO56SqN0xK0GEUn4UGWxKTsR9WuhMcqajbjOnsI5m9PzIfMoQ==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-1.6.5.tgz", + "integrity": "sha512-QB5rn/1s0PKVitAQ2/mgWbay2XfN21y3ob+5g6IhxtJRW31bbMoZw5YfO6s4ixLaZZez5LNQXstvQAclRzB7jQ==", "dependencies": { - "@walletconnect/browser-utils": "^1.5.4", + "@walletconnect/browser-utils": "^1.6.5", "@walletconnect/encoding": "^1.0.0", "@walletconnect/jsonrpc-utils": "^1.0.0", - "@walletconnect/types": "^1.5.4", + "@walletconnect/types": "^1.6.5", "bn.js": "4.11.8", "js-sha3": "0.8.0", "query-string": "6.13.5" @@ -5469,15 +5500,15 @@ } }, "node_modules/@walletconnect/web3-provider": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/web3-provider/-/web3-provider-1.5.4.tgz", - "integrity": "sha512-ArHHo5fscwG75YTlmvks+8GGgyDqA/mvFab1D/7EZzPPh/guJB6bjpn5db59g6eudyi+VybTRcNGnPSJVZGJvQ==", - "dependencies": { - "@walletconnect/client": "^1.5.4", - "@walletconnect/http-connection": "^1.5.4", - "@walletconnect/qrcode-modal": "^1.5.4", - "@walletconnect/types": "^1.5.4", - "@walletconnect/utils": "^1.5.4", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/web3-provider/-/web3-provider-1.6.5.tgz", + "integrity": "sha512-SeC7+1saHxvFn2wjt/3F0sTkDemHDNDbMkdZ3jtA7vjEw91Q0CmaYIuZk2UxyVM+tC1jL1l4yci/sgaFeAcXpQ==", + "dependencies": { + "@walletconnect/client": "^1.6.5", + "@walletconnect/http-connection": "^1.6.5", + "@walletconnect/qrcode-modal": "^1.6.5", + "@walletconnect/types": "^1.6.5", + "@walletconnect/utils": "^1.6.5", "web3-provider-engine": "16.0.1" } }, @@ -6360,9 +6391,9 @@ } }, "node_modules/async-mutex/node_modules/tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" }, "node_modules/asynckit": { "version": "0.4.0", @@ -9172,9 +9203,9 @@ } }, "node_modules/decentraland-connect": { - "version": "2.18.0", - "resolved": "https://registry.npmjs.org/decentraland-connect/-/decentraland-connect-2.18.0.tgz", - "integrity": "sha512-Wj1kNIy2xhb7RxzR0r+QN2+HWD26NntGuSBKh/xoR4/wSYMB3jxz/K3VarExJCAGuFeXjO2IdAha67y8Ikog0g==", + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/decentraland-connect/-/decentraland-connect-2.19.0.tgz", + "integrity": "sha512-IUlLQUkD8xNhjBQp6jwiroJLlRvvcc79sad1eZJYf7Z0WF/b/oyt6BvsNubHJnSBmY5Bf97KEQ+ip9XHQobBUA==", "dependencies": { "@dcl/schemas": ">=1.1.0", "@types/node": "^10.1.2", @@ -9182,7 +9213,7 @@ "@web3-react/injected-connector": "^6.0.7", "@web3-react/network-connector": "^6.1.3", "@web3-react/types": "^6.0.7", - "@web3-react/walletconnect-connector": "^6.1.6" + "@web3-react/walletconnect-connector": "^6.2.4" }, "peerDependencies": { "@dcl/schemas": ">=1.1.0" @@ -9194,71 +9225,41 @@ "integrity": "sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==" }, "node_modules/decentraland-dapps": { - "version": "12.17.1", - "resolved": "https://registry.npmjs.org/decentraland-dapps/-/decentraland-dapps-12.17.1.tgz", - "integrity": "sha512-gbhjndjsu305uVbUYe3lU66nGX9mNvEa5zPL/iPhdRxnPF4Y9DzTdj00/wb1YDSAg9vPNEFShJnO3HgEfzNpKg==", + "version": "12.24.0", + "resolved": "https://registry.npmjs.org/decentraland-dapps/-/decentraland-dapps-12.24.0.tgz", + "integrity": "sha512-vO00Dy9DV+D2YGF43RfhKafD9Uz/GrXEfu/5pW4eaV2wVS8GUOm1H/Xs/gUlN1Kvos7WhVyh01/h4L4oSm5nIA==", "dependencies": { "@0xsequence/multicall": "^0.25.1", "@0xsequence/relayer": "^0.25.1", - "@dcl/schemas": ">=1.1.0", + "@dcl/schemas": "^1.6.0", "@types/flat": "0.0.28", - "@types/node": "^10.1.2", - "@types/react": "^16.4.7", - "@types/react-intl": "^3.0.0", - "@types/react-redux": "^6.0.4", - "@types/redux-storage-engine-localstorage": "^1.1.0", "@types/segment-analytics": "0.0.28", "@types/uuid": "^3.4.3", "axios": "^0.21.1", "date-fns": "^1.29.0", "dcl-catalyst-client": "^4.0.6", - "decentraland-connect": "^2.18.0", + "decentraland-connect": "^2.19.0", "decentraland-transactions": "^1.22.2", "decentraland-ui": "^3.6.0", "flat": "^4.1.0", - "react-intl": "^3.12.0", + "react-intl": "^5.20.7", "redux-persistence": "^1.2.0", "redux-persistence-engine-localstorage": "^1.0.0", "redux-storage-decorator-filter": "^1.1.8", "tslint": "^5.7.0", "tslint-config-prettier": "^1.10.0", "typesafe-actions": "^2.0.3", - "typescript": "^4.1.5", "web3x-codegen": "^4.0.6", "web3x-es": "^4.0.6" }, "peerDependencies": { - "@dcl/schemas": ">=1.1.0", + "@dcl/schemas": "^1.6.0", "react": "^17.0.2", "react-redux": "^7.2.4", "redux": "^4.1.0", "redux-saga": "^1.1.3" } }, - "node_modules/decentraland-dapps/node_modules/@types/node": { - "version": "10.17.60", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.60.tgz", - "integrity": "sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==" - }, - "node_modules/decentraland-dapps/node_modules/@types/react": { - "version": "16.14.13", - "resolved": "https://registry.npmjs.org/@types/react/-/react-16.14.13.tgz", - "integrity": "sha512-KznsRYfqPmbcA5pMxc4mYQ7UgsJa2tAgKE2YwEmY5xKaTVZXLAY/ImBohyQHnEoIjxIJR+Um4FmaEYDr3q3zlg==", - "dependencies": { - "@types/prop-types": "*", - "@types/scheduler": "*", - "csstype": "^3.0.2" - } - }, - "node_modules/decentraland-dapps/node_modules/@types/react-redux": { - "version": "6.0.16", - "resolved": "https://registry.npmjs.org/@types/react-redux/-/react-redux-6.0.16.tgz", - "integrity": "sha512-80O9vdx+P2BzQuoK2E7ZF5GfUhgdjs7HaWWQXTAR1rUwLraO6nWpTqzUHdMWLFKIN0I+jw9Q/4oWKtIaDDecyg==", - "dependencies": { - "@types/react": "*", - "redux": "^4.0.0" - } - }, "node_modules/decentraland-dapps/node_modules/date-fns": { "version": "1.30.1", "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-1.30.1.tgz", @@ -12010,6 +12011,11 @@ "safe-event-emitter": "^1.0.1" } }, + "node_modules/eth-json-rpc-middleware/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, "node_modules/eth-json-rpc-middleware/node_modules/ethereumjs-util": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", @@ -12024,11 +12030,6 @@ "safe-buffer": "^5.1.1" } }, - "node_modules/eth-json-rpc-middleware/node_modules/ethereumjs-util/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, "node_modules/eth-json-rpc-middleware/node_modules/json-rpc-engine": { "version": "5.4.0", "resolved": "https://registry.npmjs.org/json-rpc-engine/-/json-rpc-engine-5.4.0.tgz", @@ -12079,6 +12080,11 @@ "ethereumjs-util": "^5.1.1" } }, + "node_modules/eth-sig-util/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, "node_modules/eth-sig-util/node_modules/ethereumjs-util": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", @@ -12093,11 +12099,6 @@ "safe-buffer": "^5.1.1" } }, - "node_modules/eth-sig-util/node_modules/ethereumjs-util/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, "node_modules/ethereum-blockies": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/ethereum-blockies/-/ethereum-blockies-0.1.1.tgz", @@ -12133,7 +12134,6 @@ "node_modules/ethereumjs-abi": { "version": "0.6.8", "resolved": "git+https://git@github.com/ethereumjs/ethereumjs-abi.git#ee3994657fa7a427238e6ba92a84d0b529bbcde0", - "integrity": "sha512-qs8G5KwnIO/thOQjv1RvR/4oiTsy6IaCsN+ory5dbiqFXz8sd239aWJH0wmsVNPimL5X1KzQheUpi6xAo6FU4w==", "license": "MIT", "dependencies": { "bn.js": "^4.11.8", @@ -12148,11 +12148,6 @@ "@types/node": "*" } }, - "node_modules/ethereumjs-abi/node_modules/@types/node": { - "version": "16.4.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.4.14.tgz", - "integrity": "sha512-GZpnVRNtv7sHDXIFncsERt+qvj4rzAgRQtnvzk3Z7OVNtThD2dHXYCMDNc80D5mv4JE278qo8biZCwcmkbdpqw==" - }, "node_modules/ethereumjs-abi/node_modules/bn.js": { "version": "4.12.0", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", @@ -12182,6 +12177,11 @@ "safe-buffer": "^5.1.1" } }, + "node_modules/ethereumjs-account/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, "node_modules/ethereumjs-account/node_modules/ethereumjs-util": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", @@ -12196,11 +12196,6 @@ "safe-buffer": "^5.1.1" } }, - "node_modules/ethereumjs-account/node_modules/ethereumjs-util/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, "node_modules/ethereumjs-block": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/ethereumjs-block/-/ethereumjs-block-1.7.1.tgz", @@ -12214,6 +12209,11 @@ "merkle-patricia-tree": "^2.1.2" } }, + "node_modules/ethereumjs-block/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, "node_modules/ethereumjs-block/node_modules/ethereumjs-tx": { "version": "1.3.7", "resolved": "https://registry.npmjs.org/ethereumjs-tx/-/ethereumjs-tx-1.3.7.tgz", @@ -12243,11 +12243,6 @@ "safe-buffer": "^5.1.1" } }, - "node_modules/ethereumjs-block/node_modules/ethereumjs-util/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, "node_modules/ethereumjs-common": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/ethereumjs-common/-/ethereumjs-common-1.5.2.tgz", @@ -12344,10 +12339,10 @@ "@types/node": "*" } }, - "node_modules/ethereumjs-vm/node_modules/@types/node": { - "version": "16.4.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.4.14.tgz", - "integrity": "sha512-GZpnVRNtv7sHDXIFncsERt+qvj4rzAgRQtnvzk3Z7OVNtThD2dHXYCMDNc80D5mv4JE278qo8biZCwcmkbdpqw==" + "node_modules/ethereumjs-vm/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" }, "node_modules/ethereumjs-vm/node_modules/ethereumjs-block": { "version": "2.2.2", @@ -12376,11 +12371,6 @@ "safe-buffer": "^5.1.1" } }, - "node_modules/ethereumjs-vm/node_modules/ethereumjs-block/node_modules/ethereumjs-util/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, "node_modules/ethereumjs-vm/node_modules/ethereumjs-util": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-6.2.1.tgz", @@ -12395,11 +12385,6 @@ "rlp": "^2.2.3" } }, - "node_modules/ethereumjs-vm/node_modules/ethereumjs-util/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, "node_modules/ethers": { "version": "5.4.4", "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.4.4.tgz", @@ -14925,28 +14910,20 @@ "node": ">= 0.4" } }, - "node_modules/intl-format-cache": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/intl-format-cache/-/intl-format-cache-4.3.1.tgz", - "integrity": "sha512-OEUYNA7D06agqPOYhbTkl0T8HA3QKSuwWh1HiClEnpd9vw7N+3XsQt5iZ0GUEchp5CW1fQk/tary+NsbF3yQ1Q==" - }, "node_modules/intl-messageformat": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-7.8.4.tgz", - "integrity": "sha512-yS0cLESCKCYjseCOGXuV4pxJm/buTfyCJ1nzQjryHmSehlptbZbn9fnlk1I9peLopZGGbjj46yHHiTAEZ1qOTA==", + "version": "9.9.1", + "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-9.9.1.tgz", + "integrity": "sha512-cuzS/XKHn//hvKka77JKU2dseiVY2dofQjIOZv6ZFxFt4Z9sPXnZ7KQ9Ak2r+4XBCjI04MqJ1PhKs/3X22AkfA==", "dependencies": { - "intl-format-cache": "^4.2.21", - "intl-messageformat-parser": "^3.6.4" + "@formatjs/fast-memoize": "1.2.0", + "@formatjs/icu-messageformat-parser": "2.0.11", + "tslib": "^2.1.0" } }, - "node_modules/intl-messageformat-parser": { - "version": "3.6.4", - "resolved": "https://registry.npmjs.org/intl-messageformat-parser/-/intl-messageformat-parser-3.6.4.tgz", - "integrity": "sha512-RgPGwue0mJtoX2Ax8EmMzJzttxjnva7gx0Q7mKJ4oALrTZvtmCeAw5Msz2PcjW4dtCh/h7vN/8GJCxZO1uv+OA==", - "deprecated": "We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser", - "dependencies": { - "@formatjs/intl-unified-numberformat": "^3.2.0" - } + "node_modules/intl-messageformat/node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" }, "node_modules/invariant": { "version": "2.2.4", @@ -17967,6 +17944,11 @@ "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=" }, + "node_modules/merkle-patricia-tree/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, "node_modules/merkle-patricia-tree/node_modules/ethereumjs-util": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", @@ -17981,11 +17963,6 @@ "safe-buffer": "^5.1.1" } }, - "node_modules/merkle-patricia-tree/node_modules/ethereumjs-util/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, "node_modules/merkle-patricia-tree/node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -18005,7 +17982,7 @@ "util-deprecate": "~1.0.1" } }, - "node_modules/merkle-patricia-tree/node_modules/readable-stream/node_modules/safe-buffer": { + "node_modules/merkle-patricia-tree/node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" @@ -18018,11 +17995,6 @@ "safe-buffer": "~5.1.0" } }, - "node_modules/merkle-patricia-tree/node_modules/string_decoder/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, "node_modules/methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", @@ -21702,27 +21674,65 @@ } }, "node_modules/react-intl": { - "version": "3.12.1", - "resolved": "https://registry.npmjs.org/react-intl/-/react-intl-3.12.1.tgz", - "integrity": "sha512-cgumW29mwROIqyp8NXStYsoIm27+8FqnxykiLSawWjOxGIBeLuN/+p2srei5SRIumcJefOkOIHP+NDck05RgHg==", - "dependencies": { - "@formatjs/intl-displaynames": "^1.2.0", - "@formatjs/intl-listformat": "^1.4.1", - "@formatjs/intl-relativetimeformat": "^4.5.9", - "@formatjs/intl-unified-numberformat": "^3.2.0", - "@formatjs/intl-utils": "^2.2.0", + "version": "5.20.10", + "resolved": "https://registry.npmjs.org/react-intl/-/react-intl-5.20.10.tgz", + "integrity": "sha512-zy0ZQhpjkGsKcK1BFo2HbGM/q8GBVovzoXZGQ76DowR0yr6UzQuPLkrlIrObL2zxIYiDaxaz+hUJaoa2a1xqOQ==", + "dependencies": { + "@formatjs/ecma402-abstract": "1.9.8", + "@formatjs/icu-messageformat-parser": "2.0.11", + "@formatjs/intl": "1.14.1", + "@formatjs/intl-displaynames": "5.2.3", + "@formatjs/intl-listformat": "6.3.3", "@types/hoist-non-react-statics": "^3.3.1", - "@types/invariant": "^2.2.31", + "@types/react": "17", "hoist-non-react-statics": "^3.3.2", - "intl-format-cache": "^4.2.21", - "intl-messageformat": "^7.8.4", - "intl-messageformat-parser": "^3.6.4", - "shallow-equal": "^1.2.1" + "intl-messageformat": "9.9.1", + "tslib": "^2.1.0" + }, + "peerDependencies": { + "react": "^16.3.0 || 17", + "typescript": "^4.2" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/react-intl/node_modules/@formatjs/intl": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@formatjs/intl/-/intl-1.14.1.tgz", + "integrity": "sha512-mtL8oBgFwTu0GHFnxaF93fk/zNzNkPzl+27Fwg5AZ88pWHWb7037dpODzoCBnaIVk4FBO5emUn/6jI9Byj8hOw==", + "dependencies": { + "@formatjs/ecma402-abstract": "1.9.8", + "@formatjs/fast-memoize": "1.2.0", + "@formatjs/icu-messageformat-parser": "2.0.11", + "@formatjs/intl-displaynames": "5.2.3", + "@formatjs/intl-listformat": "6.3.3", + "intl-messageformat": "9.9.1", + "tslib": "^2.1.0" }, "peerDependencies": { - "react": "^16.3.0" + "@types/node": "14 || 16", + "typescript": "^4.2" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, + "node_modules/react-intl/node_modules/@types/node": { + "version": "16.7.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.7.2.tgz", + "integrity": "sha512-TbG4TOx9hng8FKxaVrCisdaxKxqEwJ3zwHoCWXZ0Jw6mnvTInpaB99/2Cy4+XxpXtjNv9/TgfGSvZFyfV/t8Fw==", + "peer": true + }, + "node_modules/react-intl/node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + }, "node_modules/react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", @@ -26574,6 +26584,11 @@ "xtend": "^4.0.1" } }, + "node_modules/web3-provider-engine/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, "node_modules/web3-provider-engine/node_modules/cross-fetch": { "version": "2.2.5", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-2.2.5.tgz", @@ -26612,11 +26627,6 @@ "safe-buffer": "^5.1.1" } }, - "node_modules/web3-provider-engine/node_modules/ethereumjs-util/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, "node_modules/web3-provider-engine/node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -26636,7 +26646,7 @@ "util-deprecate": "~1.0.1" } }, - "node_modules/web3-provider-engine/node_modules/readable-stream/node_modules/safe-buffer": { + "node_modules/web3-provider-engine/node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" @@ -26649,11 +26659,6 @@ "safe-buffer": "~5.1.0" } }, - "node_modules/web3-provider-engine/node_modules/string_decoder/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, "node_modules/web3-provider-engine/node_modules/whatwg-fetch": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz", @@ -29696,9 +29701,9 @@ "integrity": "sha512-ij4wRiunFfaJxjB0BdrYHIH8FxBJpOwNPhhAcunlmPdXudL1WQV1qoP9un6JsEBAgQH+7UXyyjh0g7jTxXK6tg==" }, "@dcl/schemas": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/@dcl/schemas/-/schemas-1.5.1.tgz", - "integrity": "sha512-YL2Lb9Sn3AkjE7Kd+UE4iRz62sRYAKp1+e4eFuPH71V+06d2+kdJIV7ieOzRmYqiPjRXAxqxqrtTWjv3OWmN6Q==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@dcl/schemas/-/schemas-1.6.0.tgz", + "integrity": "sha512-jlTMzM51HLL+nbfXYvIPwiH2KDVfs6g/pzB+pH1R6kK8Jadz5DnQwtaRUFW2fPlkdxejeenuaxXvnaRKD7FaJw==", "requires": { "ajv": "^7.1.0" } @@ -30225,42 +30230,118 @@ "react-is": "^16.6.3" } }, - "@formatjs/intl-displaynames": { - "version": "1.2.10", - "resolved": "https://registry.npmjs.org/@formatjs/intl-displaynames/-/intl-displaynames-1.2.10.tgz", - "integrity": "sha512-GROA2RP6+7Ouu0WnHFF78O5XIU7pBfI19WM1qm93l6MFWibUk67nCfVCK3VAYJkLy8L8ZxjkYT11VIAfvSz8wg==", + "@formatjs/ecma402-abstract": { + "version": "1.9.8", + "resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-1.9.8.tgz", + "integrity": "sha512-2U4n11bLmTij/k4ePCEFKJILPYwdMcJTdnKVBi+JMWBgu5O1N+XhCazlE6QXqVO1Agh2Doh0b/9Jf1mSmSVfhA==", "requires": { - "@formatjs/intl-utils": "^2.3.0" + "@formatjs/intl-localematcher": "0.2.20", + "tslib": "^2.1.0" + }, + "dependencies": { + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + } } }, - "@formatjs/intl-listformat": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/@formatjs/intl-listformat/-/intl-listformat-1.4.8.tgz", - "integrity": "sha512-WNMQlEg0e50VZrGIkgD5n7+DAMGt3boKi1GJALfhFMymslJb5i+5WzWxyj/3a929Z6MAFsmzRIJjKuv+BxKAOQ==", + "@formatjs/fast-memoize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@formatjs/fast-memoize/-/fast-memoize-1.2.0.tgz", + "integrity": "sha512-fObitP9Tlc31SKrPHgkPgQpGo4+4yXfQQITTCNH8AZdEqB7Mq4nPrjpUL/tNGN3lEeJcFxDbi0haX8HM7QvQ8w==", "requires": { - "@formatjs/intl-utils": "^2.3.0" + "tslib": "^2.1.0" + }, + "dependencies": { + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + } } }, - "@formatjs/intl-relativetimeformat": { - "version": "4.5.16", - "resolved": "https://registry.npmjs.org/@formatjs/intl-relativetimeformat/-/intl-relativetimeformat-4.5.16.tgz", - "integrity": "sha512-IQ0haY97oHAH5OYUdykNiepdyEWj3SAT+Fp9ZpR85ov2JNiFx+12WWlxlVS8ehdyncC2ZMt/SwFIy2huK2+6/A==", + "@formatjs/icu-messageformat-parser": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.0.11.tgz", + "integrity": "sha512-5mWb8U8aulYGwnDZWrr+vdgn5PilvtrqQYQ1pvpgzQes/osi85TwmL2GqTGLlKIvBKD2XNA61kAqXYY95w4LWg==", "requires": { - "@formatjs/intl-utils": "^2.3.0" + "@formatjs/ecma402-abstract": "1.9.8", + "@formatjs/icu-skeleton-parser": "1.2.12", + "tslib": "^2.1.0" + }, + "dependencies": { + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + } } }, - "@formatjs/intl-unified-numberformat": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/@formatjs/intl-unified-numberformat/-/intl-unified-numberformat-3.3.7.tgz", - "integrity": "sha512-KnWgLRHzCAgT9eyt3OS34RHoyD7dPDYhRcuKn+/6Kv2knDF8Im43J6vlSW6Hm1w63fNq3ZIT1cFk7RuVO3Psag==", + "@formatjs/icu-skeleton-parser": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.2.12.tgz", + "integrity": "sha512-DTFxWmEA02ZNW6fsYjGYSADvtrqqjCYF7DSgCmMfaaE0gLP4pCdAgOPE+lkXXU+jP8iCw/YhMT2Seyk/C5lBWg==", "requires": { - "@formatjs/intl-utils": "^2.3.0" + "@formatjs/ecma402-abstract": "1.9.8", + "tslib": "^2.1.0" + }, + "dependencies": { + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + } } }, - "@formatjs/intl-utils": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@formatjs/intl-utils/-/intl-utils-2.3.0.tgz", - "integrity": "sha512-KWk80UPIzPmUg+P0rKh6TqspRw0G6eux1PuJr+zz47ftMaZ9QDwbGzHZbtzWkl5hgayM/qrKRutllRC7D/vVXQ==" + "@formatjs/intl-displaynames": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/@formatjs/intl-displaynames/-/intl-displaynames-5.2.3.tgz", + "integrity": "sha512-5BmhSurLbfgdeo0OBcNPPkIS8ikMMYaHe2NclxEQZqcMvrnQzNMNnUE2dDF5vZx+mkvKq77aQYzpc8RfqVsRCQ==", + "requires": { + "@formatjs/ecma402-abstract": "1.9.8", + "@formatjs/intl-localematcher": "0.2.20", + "tslib": "^2.1.0" + }, + "dependencies": { + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + } + } + }, + "@formatjs/intl-listformat": { + "version": "6.3.3", + "resolved": "https://registry.npmjs.org/@formatjs/intl-listformat/-/intl-listformat-6.3.3.tgz", + "integrity": "sha512-3nzAKgVS5rePDa5HiH0OwZgAhqxLtzlMc9Pg4QgajRHSP1TqFiMmQnnn52wd3+xVTb7cjZVm3JBnTv51/MhTOg==", + "requires": { + "@formatjs/ecma402-abstract": "1.9.8", + "@formatjs/intl-localematcher": "0.2.20", + "tslib": "^2.1.0" + }, + "dependencies": { + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + } + } + }, + "@formatjs/intl-localematcher": { + "version": "0.2.20", + "resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.2.20.tgz", + "integrity": "sha512-/Ro85goRZnCojzxOegANFYL0LaDIpdPjAukR7xMTjOtRx+3yyjR0ifGTOW3/Kjhmab3t6GnyHBYWZSudxEOxPA==", + "requires": { + "tslib": "^2.1.0" + }, + "dependencies": { + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + } + } }, "@hapi/address": { "version": "2.1.4", @@ -31413,11 +31494,6 @@ "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-5.1.2.tgz", "integrity": "sha512-h4lTMgMJctJybDp8CQrxTUiiYmedihHWkjnF/8Pxseu2S6Nlfcy8kwboQ8yejh456rP2yWoEVm1sS/FVsfM48w==" }, - "@types/invariant": { - "version": "2.2.34", - "resolved": "https://registry.npmjs.org/@types/invariant/-/invariant-2.2.34.tgz", - "integrity": "sha512-lYUtmJ9BqUN688fGY1U1HZoWT1/Jrmgigx2loq4ZcJpICECm/Om3V314BxdzypO0u5PORKGMM6x0OXaljV1YFg==" - }, "@types/isomorphic-fetch": { "version": "0.0.35", "resolved": "https://registry.npmjs.org/@types/isomorphic-fetch/-/isomorphic-fetch-0.0.35.tgz", @@ -31637,14 +31713,6 @@ "@types/react": "*" } }, - "@types/react-intl": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/react-intl/-/react-intl-3.0.0.tgz", - "integrity": "sha512-k8F3d05XQGEqSWIfK97bBjZe4z9RruXU9Wa7OZ2iUC5pdeIpzuQDZe/9C2J3Xir5//ZtAkhcv08Wfx3n5TBTQg==", - "requires": { - "react-intl": "*" - } - }, "@types/react-redux": { "version": "7.1.18", "resolved": "https://registry.npmjs.org/@types/react-redux/-/react-redux-7.1.18.tgz", @@ -31713,22 +31781,6 @@ "redux": "^4.0.0" } }, - "@types/redux-storage": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@types/redux-storage/-/redux-storage-4.1.0.tgz", - "integrity": "sha512-O9AeTfS8x5FFBBUCwORZkudLahIYURi4n8hIGyXKfVzik4JOYktI+FIWdNhn1CtGWBKsKg4nyc5gkkpDia/BvQ==", - "requires": { - "redux": "^3.6.0 || ^4.0.0" - } - }, - "@types/redux-storage-engine-localstorage": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/redux-storage-engine-localstorage/-/redux-storage-engine-localstorage-1.1.1.tgz", - "integrity": "sha512-JuX/kPFhLz5iaQOc/ynQaGjSv2DdfiMWsy6Dy3qpO/J3wFEXH170aG0ma4N3DNcwMP4OqnNRK4Y2xaqk57KPrQ==", - "requires": { - "@types/redux-storage": "*" - } - }, "@types/resolve": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-0.0.8.tgz", @@ -32103,36 +32155,36 @@ } }, "@walletconnect/browser-utils": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/browser-utils/-/browser-utils-1.5.4.tgz", - "integrity": "sha512-09yRcfQRQiDpwf6JY57UQOzFfSOunszcSFDFekV+hz8VdShdKmq02w0hp5c4i9T0dAX+eCHNUtOun+jN6CPIDw==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/browser-utils/-/browser-utils-1.6.5.tgz", + "integrity": "sha512-HLTysmlCkc2HN2OS6ewMG0v8E9oY2h9zNaDHe0BLN3ZxnsoMCVzkJxy7ryaXCemVdapmr6HgHFexGJoMbWaC4w==", "requires": { "@walletconnect/safe-json": "1.0.0", - "@walletconnect/types": "^1.5.4", + "@walletconnect/types": "^1.6.5", "@walletconnect/window-getters": "1.0.0", "@walletconnect/window-metadata": "1.0.0", "detect-browser": "5.2.0" } }, "@walletconnect/client": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/client/-/client-1.5.4.tgz", - "integrity": "sha512-NGslp4HfSBC/pf6QNpH49RQKW0IznqzR4Ooarr23yEcyO8XzOZDfra+Y7mKQkarXAN2O1HHBY3h3VF/C0mlwCw==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/client/-/client-1.6.5.tgz", + "integrity": "sha512-dRq1D3NEGwM2I3CpiwFsWy1rrdMKCMSfDUu3rCCXUE4zInx+pyq7IEFjYiSjtOEZzjRlUTqYwhjnYIezQZgh4w==", "requires": { - "@walletconnect/core": "^1.5.4", - "@walletconnect/iso-crypto": "^1.5.4", - "@walletconnect/types": "^1.5.4", - "@walletconnect/utils": "^1.5.4" + "@walletconnect/core": "^1.6.5", + "@walletconnect/iso-crypto": "^1.6.5", + "@walletconnect/types": "^1.6.5", + "@walletconnect/utils": "^1.6.5" } }, "@walletconnect/core": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-1.5.4.tgz", - "integrity": "sha512-jJWKA4fnrjcWaOK/d4ct130Ic8Ycf0ZSgaNMm/9Uh+t6CAFJmY2M3WTUf3UagGZ3+7vAGJwMYVR7NN4k86mfqg==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-1.6.5.tgz", + "integrity": "sha512-mmMTP8nZunjSCAy0ckafvt/JcdzcuSZPaAybqgKwx2rC9cc/3XWrdNsfiKMt8AFoQF87jGHem3905eFZYTqLXw==", "requires": { - "@walletconnect/socket-transport": "^1.5.4", - "@walletconnect/types": "^1.5.4", - "@walletconnect/utils": "^1.5.4" + "@walletconnect/socket-transport": "^1.6.5", + "@walletconnect/types": "^1.6.5", + "@walletconnect/utils": "^1.6.5" } }, "@walletconnect/crypto": { @@ -32169,24 +32221,24 @@ "integrity": "sha512-4BwqyWy6KpSvkocSaV7WR3BlZfrxLbJSLkg+j7Gl6pTDE+U55lLhJvQaMuDVazXYxcjBsG09k7UlH7cGiUI5vQ==" }, "@walletconnect/http-connection": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/http-connection/-/http-connection-1.5.4.tgz", - "integrity": "sha512-xiCiQzw4W4nuTQNqDuM/4Dwtf3/wX5CsGbR56RmUUgbxs4WRN7w4W3pXyogOX77zGGk3AUHxWEawppYNIq7sgQ==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/http-connection/-/http-connection-1.6.5.tgz", + "integrity": "sha512-5kr6wZ3DnqaBiwkeA9iKdawvIb3bIJNf8WA8X89YHE5KOzbkAsymjniZWs8asdl9Y9+8ZHJMPXtylyrkpT8wXA==", "requires": { - "@walletconnect/types": "^1.5.4", - "@walletconnect/utils": "^1.5.4", + "@walletconnect/types": "^1.6.5", + "@walletconnect/utils": "^1.6.5", "eventemitter3": "4.0.7", "xhr2-cookies": "1.1.0" } }, "@walletconnect/iso-crypto": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/iso-crypto/-/iso-crypto-1.5.4.tgz", - "integrity": "sha512-mwYyuPzWEvjkVi5DkgAu6aTjf2KMPmlXaIrqBPvGVeuhFrlxf3pYOjunBoxHm/Lnm9a9FQPwkGf6s9DQEl2r1A==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/iso-crypto/-/iso-crypto-1.6.5.tgz", + "integrity": "sha512-145VRX1+gudhHrnT2s81lLW/BEu3QgFMMRCrkxx9Tsl5JiLGcGbWkMxAl8zjGTMqnHeuQngyjvY1mO+3z27a7A==", "requires": { "@walletconnect/crypto": "^1.0.1", - "@walletconnect/types": "^1.5.4", - "@walletconnect/utils": "^1.5.4" + "@walletconnect/types": "^1.6.5", + "@walletconnect/utils": "^1.6.5" } }, "@walletconnect/jsonrpc-types": { @@ -32212,13 +32264,13 @@ "integrity": "sha512-ZtKRio4uCZ1JUF7LIdecmZt7FOLnX72RPSY7aUVu7mj7CSfxDwUn6gBuK6WGtH+NZCldBqDl5DenI5fFSvkKYw==" }, "@walletconnect/qrcode-modal": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/qrcode-modal/-/qrcode-modal-1.5.4.tgz", - "integrity": "sha512-8i/2ruMSHsWvkg7xOgSJSty/iMPiZ5MFdC8XxqxebdvYUDPB5/nyDihQFExpqBxeKk2QAOqtav3/38HbBinoLA==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/qrcode-modal/-/qrcode-modal-1.6.5.tgz", + "integrity": "sha512-XII/Pm7zS5pRxrakURuhbWO+SfwgOuLuvOBk/hr1ATK/y7R5p19P62mCSUrvSxHXca27IX1tZJRe9D161R0WgQ==", "requires": { - "@walletconnect/browser-utils": "^1.5.4", + "@walletconnect/browser-utils": "^1.6.5", "@walletconnect/mobile-registry": "^1.4.0", - "@walletconnect/types": "^1.5.4", + "@walletconnect/types": "^1.6.5", "copy-to-clipboard": "^3.3.1", "preact": "10.4.1", "qrcode": "1.4.4" @@ -32240,37 +32292,37 @@ "integrity": "sha512-QJzp/S/86sUAgWY6eh5MKYmSfZaRpIlmCJdi5uG4DJlKkZrHEF7ye7gA+VtbVzvTtpM/gRwO2plQuiooIeXjfg==" }, "@walletconnect/socket-transport": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/socket-transport/-/socket-transport-1.5.4.tgz", - "integrity": "sha512-9xPpN2QvRc8i65wIaDEiFLPWdgKY/S+0ba5zSTqKAyjQVWPBH+/wr4xcoOF1lLdMKanFiyEpH1z25+6ndp7cAw==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/socket-transport/-/socket-transport-1.6.5.tgz", + "integrity": "sha512-FRlgBr3EIxD3du5l/tuK6jdiva85YeRG+iZmo/RPnlVw4opy74WXb5JdCK9jXLcBEoDiY9Hz4j69aqnht6gIDQ==", "requires": { - "@walletconnect/types": "^1.5.4", - "@walletconnect/utils": "^1.5.4", - "ws": "7.3.0" + "@walletconnect/types": "^1.6.5", + "@walletconnect/utils": "^1.6.5", + "ws": "7.5.3" }, "dependencies": { "ws": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.3.0.tgz", - "integrity": "sha512-iFtXzngZVXPGgpTlP1rBqsUK82p9tKqsWRPg5L56egiljujJT3vGAYnHANvFxBieXrTFavhzhxW52jnaWV+w2w==", + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.3.tgz", + "integrity": "sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg==", "requires": {} } } }, "@walletconnect/types": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-1.5.4.tgz", - "integrity": "sha512-K3XQA5y2dfVfLObjrj4YPVcqxw3qZVpUan/UvsuC0e06vP+Gk6J6u2Xs196Or9/gLDSu05S/R69SukuWEtaHNA==" + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-1.6.5.tgz", + "integrity": "sha512-S9DsODI35PbIDuOSkIiF8SzTstqCqX/4+kV7n18vyukEFPlpSSHwZMwJUfzo9yJ0pqsqLNZta+jvb88gJRuAaA==" }, "@walletconnect/utils": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-1.5.4.tgz", - "integrity": "sha512-M/Wbm+kuaAo4dmfNY3UHsXnLpW0XpnoMChKlmPO56SqN0xK0GEUn4UGWxKTsR9WuhMcqajbjOnsI5m9PzIfMoQ==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-1.6.5.tgz", + "integrity": "sha512-QB5rn/1s0PKVitAQ2/mgWbay2XfN21y3ob+5g6IhxtJRW31bbMoZw5YfO6s4ixLaZZez5LNQXstvQAclRzB7jQ==", "requires": { - "@walletconnect/browser-utils": "^1.5.4", + "@walletconnect/browser-utils": "^1.6.5", "@walletconnect/encoding": "^1.0.0", "@walletconnect/jsonrpc-utils": "^1.0.0", - "@walletconnect/types": "^1.5.4", + "@walletconnect/types": "^1.6.5", "bn.js": "4.11.8", "js-sha3": "0.8.0", "query-string": "6.13.5" @@ -32304,15 +32356,15 @@ } }, "@walletconnect/web3-provider": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@walletconnect/web3-provider/-/web3-provider-1.5.4.tgz", - "integrity": "sha512-ArHHo5fscwG75YTlmvks+8GGgyDqA/mvFab1D/7EZzPPh/guJB6bjpn5db59g6eudyi+VybTRcNGnPSJVZGJvQ==", - "requires": { - "@walletconnect/client": "^1.5.4", - "@walletconnect/http-connection": "^1.5.4", - "@walletconnect/qrcode-modal": "^1.5.4", - "@walletconnect/types": "^1.5.4", - "@walletconnect/utils": "^1.5.4", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@walletconnect/web3-provider/-/web3-provider-1.6.5.tgz", + "integrity": "sha512-SeC7+1saHxvFn2wjt/3F0sTkDemHDNDbMkdZ3jtA7vjEw91Q0CmaYIuZk2UxyVM+tC1jL1l4yci/sgaFeAcXpQ==", + "requires": { + "@walletconnect/client": "^1.6.5", + "@walletconnect/http-connection": "^1.6.5", + "@walletconnect/qrcode-modal": "^1.6.5", + "@walletconnect/types": "^1.6.5", + "@walletconnect/utils": "^1.6.5", "web3-provider-engine": "16.0.1" } }, @@ -33060,9 +33112,9 @@ }, "dependencies": { "tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" } } }, @@ -35359,17 +35411,16 @@ "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" }, "decentraland-connect": { - "version": "2.18.0", - "resolved": "https://registry.npmjs.org/decentraland-connect/-/decentraland-connect-2.18.0.tgz", - "integrity": "sha512-Wj1kNIy2xhb7RxzR0r+QN2+HWD26NntGuSBKh/xoR4/wSYMB3jxz/K3VarExJCAGuFeXjO2IdAha67y8Ikog0g==", + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/decentraland-connect/-/decentraland-connect-2.19.0.tgz", + "integrity": "sha512-IUlLQUkD8xNhjBQp6jwiroJLlRvvcc79sad1eZJYf7Z0WF/b/oyt6BvsNubHJnSBmY5Bf97KEQ+ip9XHQobBUA==", "requires": { - "@dcl/schemas": ">=1.1.0", "@types/node": "^10.1.2", "@web3-react/fortmatic-connector": "^6.1.6", "@web3-react/injected-connector": "^6.0.7", "@web3-react/network-connector": "^6.1.3", "@web3-react/types": "^6.0.7", - "@web3-react/walletconnect-connector": "^6.1.6" + "@web3-react/walletconnect-connector": "^6.2.4" }, "dependencies": { "@types/node": { @@ -35380,64 +35431,33 @@ } }, "decentraland-dapps": { - "version": "12.17.1", - "resolved": "https://registry.npmjs.org/decentraland-dapps/-/decentraland-dapps-12.17.1.tgz", - "integrity": "sha512-gbhjndjsu305uVbUYe3lU66nGX9mNvEa5zPL/iPhdRxnPF4Y9DzTdj00/wb1YDSAg9vPNEFShJnO3HgEfzNpKg==", + "version": "12.24.0", + "resolved": "https://registry.npmjs.org/decentraland-dapps/-/decentraland-dapps-12.24.0.tgz", + "integrity": "sha512-vO00Dy9DV+D2YGF43RfhKafD9Uz/GrXEfu/5pW4eaV2wVS8GUOm1H/Xs/gUlN1Kvos7WhVyh01/h4L4oSm5nIA==", "requires": { "@0xsequence/multicall": "^0.25.1", "@0xsequence/relayer": "^0.25.1", - "@dcl/schemas": ">=1.1.0", "@types/flat": "0.0.28", - "@types/node": "^10.1.2", - "@types/react": "^16.4.7", - "@types/react-intl": "^3.0.0", - "@types/react-redux": "^6.0.4", - "@types/redux-storage-engine-localstorage": "^1.1.0", "@types/segment-analytics": "0.0.28", "@types/uuid": "^3.4.3", "axios": "^0.21.1", "date-fns": "^1.29.0", "dcl-catalyst-client": "^4.0.6", - "decentraland-connect": "^2.18.0", + "decentraland-connect": "^2.19.0", "decentraland-transactions": "^1.22.2", "decentraland-ui": "^3.6.0", "flat": "^4.1.0", - "react-intl": "^3.12.0", + "react-intl": "^5.20.7", "redux-persistence": "^1.2.0", "redux-persistence-engine-localstorage": "^1.0.0", "redux-storage-decorator-filter": "^1.1.8", "tslint": "^5.7.0", "tslint-config-prettier": "^1.10.0", "typesafe-actions": "^2.0.3", - "typescript": "^4.1.5", "web3x-codegen": "^4.0.6", "web3x-es": "^4.0.6" }, "dependencies": { - "@types/node": { - "version": "10.17.60", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.60.tgz", - "integrity": "sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==" - }, - "@types/react": { - "version": "16.14.13", - "resolved": "https://registry.npmjs.org/@types/react/-/react-16.14.13.tgz", - "integrity": "sha512-KznsRYfqPmbcA5pMxc4mYQ7UgsJa2tAgKE2YwEmY5xKaTVZXLAY/ImBohyQHnEoIjxIJR+Um4FmaEYDr3q3zlg==", - "requires": { - "@types/prop-types": "*", - "@types/scheduler": "*", - "csstype": "^3.0.2" - } - }, - "@types/react-redux": { - "version": "6.0.16", - "resolved": "https://registry.npmjs.org/@types/react-redux/-/react-redux-6.0.16.tgz", - "integrity": "sha512-80O9vdx+P2BzQuoK2E7ZF5GfUhgdjs7HaWWQXTAR1rUwLraO6nWpTqzUHdMWLFKIN0I+jw9Q/4oWKtIaDDecyg==", - "requires": { - "@types/react": "*", - "redux": "^4.0.0" - } - }, "date-fns": { "version": "1.30.1", "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-1.30.1.tgz", @@ -35464,8 +35484,6 @@ "balloon-css": "^0.5.0", "ethereum-blockies": "^0.1.1", "parallax-js": "^3.1.0", - "react": "^17.0.2", - "react-dom": "^17.0.2", "react-responsive": "^9.0.0-beta.3", "react-tile-map": "^0.3.2", "semantic-ui-css": "^2.4.1", @@ -37434,6 +37452,11 @@ "safe-event-emitter": "^1.0.1" }, "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, "ethereumjs-util": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", @@ -37446,13 +37469,6 @@ "ethjs-util": "^0.1.3", "rlp": "^2.0.0", "safe-buffer": "^5.1.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } } }, "json-rpc-engine": { @@ -37509,6 +37525,11 @@ "ethereumjs-util": "^5.1.1" }, "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, "ethereumjs-util": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", @@ -37521,13 +37542,6 @@ "ethjs-util": "^0.1.3", "rlp": "^2.0.0", "safe-buffer": "^5.1.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } } } } @@ -37566,7 +37580,6 @@ }, "ethereumjs-abi": { "version": "git+https://git@github.com/ethereumjs/ethereumjs-abi.git#ee3994657fa7a427238e6ba92a84d0b529bbcde0", - "integrity": "sha512-qs8G5KwnIO/thOQjv1RvR/4oiTsy6IaCsN+ory5dbiqFXz8sd239aWJH0wmsVNPimL5X1KzQheUpi6xAo6FU4w==", "from": "ethereumjs-abi@git+https://github.com/ethereumjs/ethereumjs-abi.git", "requires": { "bn.js": "^4.11.8", @@ -37581,11 +37594,6 @@ "@types/node": "*" } }, - "@types/node": { - "version": "16.4.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.4.14.tgz", - "integrity": "sha512-GZpnVRNtv7sHDXIFncsERt+qvj4rzAgRQtnvzk3Z7OVNtThD2dHXYCMDNc80D5mv4JE278qo8biZCwcmkbdpqw==" - }, "bn.js": { "version": "4.12.0", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", @@ -37617,6 +37625,11 @@ "safe-buffer": "^5.1.1" }, "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, "ethereumjs-util": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", @@ -37629,13 +37642,6 @@ "ethjs-util": "^0.1.3", "rlp": "^2.0.0", "safe-buffer": "^5.1.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } } } } @@ -37652,6 +37658,11 @@ "merkle-patricia-tree": "^2.1.2" }, "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, "ethereumjs-tx": { "version": "1.3.7", "resolved": "https://registry.npmjs.org/ethereumjs-tx/-/ethereumjs-tx-1.3.7.tgz", @@ -37680,13 +37691,6 @@ "ethjs-util": "^0.1.3", "rlp": "^2.0.0", "safe-buffer": "^5.1.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } } } } @@ -37787,10 +37791,10 @@ "@types/node": "*" } }, - "@types/node": { - "version": "16.4.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.4.14.tgz", - "integrity": "sha512-GZpnVRNtv7sHDXIFncsERt+qvj4rzAgRQtnvzk3Z7OVNtThD2dHXYCMDNc80D5mv4JE278qo8biZCwcmkbdpqw==" + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" }, "ethereumjs-block": { "version": "2.2.2", @@ -37816,13 +37820,6 @@ "ethjs-util": "^0.1.3", "rlp": "^2.0.0", "safe-buffer": "^5.1.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } } } } @@ -37839,13 +37836,6 @@ "ethereum-cryptography": "^0.1.3", "ethjs-util": "0.1.6", "rlp": "^2.2.3" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } } } } @@ -39904,26 +39894,21 @@ "side-channel": "^1.0.4" } }, - "intl-format-cache": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/intl-format-cache/-/intl-format-cache-4.3.1.tgz", - "integrity": "sha512-OEUYNA7D06agqPOYhbTkl0T8HA3QKSuwWh1HiClEnpd9vw7N+3XsQt5iZ0GUEchp5CW1fQk/tary+NsbF3yQ1Q==" - }, "intl-messageformat": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-7.8.4.tgz", - "integrity": "sha512-yS0cLESCKCYjseCOGXuV4pxJm/buTfyCJ1nzQjryHmSehlptbZbn9fnlk1I9peLopZGGbjj46yHHiTAEZ1qOTA==", - "requires": { - "intl-format-cache": "^4.2.21", - "intl-messageformat-parser": "^3.6.4" - } - }, - "intl-messageformat-parser": { - "version": "3.6.4", - "resolved": "https://registry.npmjs.org/intl-messageformat-parser/-/intl-messageformat-parser-3.6.4.tgz", - "integrity": "sha512-RgPGwue0mJtoX2Ax8EmMzJzttxjnva7gx0Q7mKJ4oALrTZvtmCeAw5Msz2PcjW4dtCh/h7vN/8GJCxZO1uv+OA==", + "version": "9.9.1", + "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-9.9.1.tgz", + "integrity": "sha512-cuzS/XKHn//hvKka77JKU2dseiVY2dofQjIOZv6ZFxFt4Z9sPXnZ7KQ9Ak2r+4XBCjI04MqJ1PhKs/3X22AkfA==", "requires": { - "@formatjs/intl-unified-numberformat": "^3.2.0" + "@formatjs/fast-memoize": "1.2.0", + "@formatjs/icu-messageformat-parser": "2.0.11", + "tslib": "^2.1.0" + }, + "dependencies": { + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + } } }, "invariant": { @@ -42300,6 +42285,11 @@ "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=" }, + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, "ethereumjs-util": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", @@ -42312,13 +42302,6 @@ "ethjs-util": "^0.1.3", "rlp": "^2.0.0", "safe-buffer": "^5.1.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } } }, "isarray": { @@ -42338,28 +42321,19 @@ "safe-buffer": "~5.1.1", "string_decoder": "~1.1.1", "util-deprecate": "~1.0.1" - }, - "dependencies": { - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - } } }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, "string_decoder": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "requires": { "safe-buffer": "~5.1.0" - }, - "dependencies": { - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - } } } } @@ -45309,22 +45283,47 @@ } }, "react-intl": { - "version": "3.12.1", - "resolved": "https://registry.npmjs.org/react-intl/-/react-intl-3.12.1.tgz", - "integrity": "sha512-cgumW29mwROIqyp8NXStYsoIm27+8FqnxykiLSawWjOxGIBeLuN/+p2srei5SRIumcJefOkOIHP+NDck05RgHg==", - "requires": { - "@formatjs/intl-displaynames": "^1.2.0", - "@formatjs/intl-listformat": "^1.4.1", - "@formatjs/intl-relativetimeformat": "^4.5.9", - "@formatjs/intl-unified-numberformat": "^3.2.0", - "@formatjs/intl-utils": "^2.2.0", + "version": "5.20.10", + "resolved": "https://registry.npmjs.org/react-intl/-/react-intl-5.20.10.tgz", + "integrity": "sha512-zy0ZQhpjkGsKcK1BFo2HbGM/q8GBVovzoXZGQ76DowR0yr6UzQuPLkrlIrObL2zxIYiDaxaz+hUJaoa2a1xqOQ==", + "requires": { + "@formatjs/ecma402-abstract": "1.9.8", + "@formatjs/icu-messageformat-parser": "2.0.11", + "@formatjs/intl": "1.14.1", + "@formatjs/intl-displaynames": "5.2.3", + "@formatjs/intl-listformat": "6.3.3", "@types/hoist-non-react-statics": "^3.3.1", - "@types/invariant": "^2.2.31", + "@types/react": "17", "hoist-non-react-statics": "^3.3.2", - "intl-format-cache": "^4.2.21", - "intl-messageformat": "^7.8.4", - "intl-messageformat-parser": "^3.6.4", - "shallow-equal": "^1.2.1" + "intl-messageformat": "9.9.1", + "tslib": "^2.1.0" + }, + "dependencies": { + "@formatjs/intl": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@formatjs/intl/-/intl-1.14.1.tgz", + "integrity": "sha512-mtL8oBgFwTu0GHFnxaF93fk/zNzNkPzl+27Fwg5AZ88pWHWb7037dpODzoCBnaIVk4FBO5emUn/6jI9Byj8hOw==", + "requires": { + "@formatjs/ecma402-abstract": "1.9.8", + "@formatjs/fast-memoize": "1.2.0", + "@formatjs/icu-messageformat-parser": "2.0.11", + "@formatjs/intl-displaynames": "5.2.3", + "@formatjs/intl-listformat": "6.3.3", + "intl-messageformat": "9.9.1", + "tslib": "^2.1.0" + } + }, + "@types/node": { + "version": "16.7.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.7.2.tgz", + "integrity": "sha512-TbG4TOx9hng8FKxaVrCisdaxKxqEwJ3zwHoCWXZ0Jw6mnvTInpaB99/2Cy4+XxpXtjNv9/TgfGSvZFyfV/t8Fw==", + "peer": true + }, + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + } } }, "react-is": { @@ -49230,6 +49229,11 @@ "xtend": "^4.0.1" }, "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, "cross-fetch": { "version": "2.2.5", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-2.2.5.tgz", @@ -49265,13 +49269,6 @@ "ethjs-util": "^0.1.3", "rlp": "^2.0.0", "safe-buffer": "^5.1.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - } } }, "isarray": { @@ -49291,28 +49288,19 @@ "safe-buffer": "~5.1.1", "string_decoder": "~1.1.1", "util-deprecate": "~1.0.1" - }, - "dependencies": { - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - } } }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, "string_decoder": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "requires": { "safe-buffer": "~5.1.0" - }, - "dependencies": { - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - } } }, "whatwg-fetch": { diff --git a/webapp/package.json b/webapp/package.json index 34c542506e..cd2f56fde0 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -8,7 +8,7 @@ "classnames": "^2.3.1", "connected-react-router": "^6.9.1", "date-fns": "^2.23.0", - "decentraland-dapps": "^12.17.1", + "decentraland-dapps": "^12.24.0", "decentraland-transactions": "^1.22.2", "decentraland-ui": "^3.9.0", "dotenv": "^10.0.0", diff --git a/webapp/src/components/BidPage/BidModal/BidModal.tsx b/webapp/src/components/BidPage/BidModal/BidModal.tsx index 2d65eb6daf..90e817323c 100644 --- a/webapp/src/components/BidPage/BidModal/BidModal.tsx +++ b/webapp/src/components/BidPage/BidModal/BidModal.tsx @@ -8,6 +8,7 @@ import { AuthorizationType } from 'decentraland-dapps/dist/modules/authorization/types' import { hasAuthorization } from 'decentraland-dapps/dist/modules/authorization/utils' +import { ChainButton } from 'decentraland-dapps/dist/containers' import { getAssetName, isOwnedBy } from '../../../modules/asset/utils' import { toMANA, fromMANA } from '../../../lib/mana' import { AssetAction } from '../../AssetAction' @@ -132,7 +133,7 @@ const BidModal = (props: Props) => { > {t('global.cancel')} - + { {t('global.cancel')} - + { {isDisabled || - !isAboveMaxPercentage || - (isAboveMaxPercentage && wantsToProceed) ? ( - + ) : ( - + ) diff --git a/webapp/src/components/SellPage/SellModal/SellModal.tsx b/webapp/src/components/SellPage/SellModal/SellModal.tsx index b7579d330e..4d343bff8d 100644 --- a/webapp/src/components/SellPage/SellModal/SellModal.tsx +++ b/webapp/src/components/SellPage/SellModal/SellModal.tsx @@ -8,6 +8,7 @@ import { } from 'decentraland-dapps/dist/modules/authorization/types' import { hasAuthorization } from 'decentraland-dapps/dist/modules/authorization/utils' import { t, T } from 'decentraland-dapps/dist/modules/translation/utils' +import { ChainButton } from 'decentraland-dapps/dist/containers' import { Header, Form, Field, Button, Modal } from 'decentraland-ui' import { ContractName } from 'decentraland-transactions' import { toMANA, fromMANA } from '../../../lib/mana' @@ -153,14 +154,15 @@ const SellModal = (props: Props) => { > {t('global.cancel')} - + diff --git a/webapp/src/components/SettingsPage/Authorization/Authorization.tsx b/webapp/src/components/SettingsPage/Authorization/Authorization.tsx index 415bb59397..5fc92126a6 100644 --- a/webapp/src/components/SettingsPage/Authorization/Authorization.tsx +++ b/webapp/src/components/SettingsPage/Authorization/Authorization.tsx @@ -1,7 +1,7 @@ import React, { useCallback } from 'react' import { Link } from 'react-router-dom' import { t, T } from 'decentraland-dapps/dist/modules/translation/utils' -import { TransactionLink } from 'decentraland-dapps/dist/containers' +import { ChainCheck, TransactionLink } from 'decentraland-dapps/dist/containers' import { getChainConfiguration } from 'decentraland-dapps/dist/lib/chainConfiguration' import { Form, Radio, Loader, Popup, RadioProps } from 'decentraland-ui' import { locations } from '../../../modules/routing/locations' @@ -41,11 +41,14 @@ const Authorization = (props: Props) => { } /> - handleOnChange(!!props.checked)} - /> + + {isEnabled => handleOnChange(!!props.checked)} + />} +
{ > {t('global.cancel')} - +
diff --git a/webapp/src/components/UserMenu/UserMenu.tsx b/webapp/src/components/UserMenu/UserMenu.tsx index 8244f86449..effb0d30a6 100644 --- a/webapp/src/components/UserMenu/UserMenu.tsx +++ b/webapp/src/components/UserMenu/UserMenu.tsx @@ -1,8 +1,9 @@ import React from 'react' import { UserMenu as BaseUserMenu } from 'decentraland-dapps/dist/containers' import { IntroPopup } from '../IntroPopup' +import { Props } from './UserMenu.types' -export default class UserMenu extends React.PureComponent { +export default class UserMenu extends React.PureComponent { render() { return ( <> diff --git a/webapp/src/modules/item/sagas.spec.ts b/webapp/src/modules/item/sagas.spec.ts index 6e523bcb6c..4ab891396b 100644 --- a/webapp/src/modules/item/sagas.spec.ts +++ b/webapp/src/modules/item/sagas.spec.ts @@ -1,13 +1,8 @@ import { expectSaga } from 'redux-saga-test-plan' -import { Address } from 'web3x-es/address' -import { getWallet } from '../wallet/selectors' import * as matchers from 'redux-saga-test-plan/matchers' import { ChainId, Item } from '@dcl/schemas' import { call, select } from 'redux-saga/effects' -import { ContractName, getContract } from 'decentraland-transactions' -import { CollectionStore } from '../../contracts/CollectionStore' -import { ContractFactory } from '../contract/ContractFactory' -import { sendTransaction } from '../wallet/utils' +import { sendTransaction } from 'decentraland-dapps/dist/modules/wallet/utils' import { buyItemRequest, buyItemFailure, @@ -19,10 +14,10 @@ import { fetchItemRequest, fetchItemFailure } from './actions' -import { itemSaga } from './sagas' -import { TxSend } from 'web3x-es/contract' +import { getWallet } from '../wallet/selectors' import { View } from '../ui/types' import { itemAPI } from '../vendor/decentraland/item/api' +import { itemSaga } from './sagas' const item = { itemId: 'anItemId', @@ -35,15 +30,6 @@ const wallet = { address: '0x32be343b94f860124dc4fee278fdcbd38c102d88' } -const collectionStoreContractConfig = getContract( - ContractName.CollectionStore, - item.chainId -) -const collectionStoreContract = new CollectionStore( - jest.fn() as any, - Address.fromString(collectionStoreContractConfig.address) -) - const txHash = '0x9fc518261399c1bd236997706347f8b117a061cef5518073b1c3eefd5efbff84' @@ -66,28 +52,11 @@ describe('when handling the buy items request action', () => { }) }) - describe("when there's an error while building the store contract", () => { - it('should dispatch an action signaling the failure of the action handling', () => { - return expectSaga(itemSaga) - .provide([ - [select(getWallet), wallet], - [matchers.call.fn(ContractFactory.build), Promise.reject(anError)] - ]) - .put(buyItemFailure(anError.message)) - .dispatch(buyItemRequest(item)) - .run({ silenceTimeout: true }) - }) - }) - describe('when sending the meta transaction fails', () => { it('should dispatch an action signaling the failure of the action handling', () => { return expectSaga(itemSaga) .provide([ [select(getWallet), wallet], - [ - matchers.call.fn(ContractFactory.build), - Promise.resolve(collectionStoreContract) - ], [matchers.call.fn(sendTransaction), Promise.reject(anError)] ]) .put(buyItemFailure(anError.message)) @@ -97,38 +66,11 @@ describe('when handling the buy items request action', () => { }) describe('when the meta transaction is sent succesfully', () => { - const buyTransactionParameters = [ - { - collection: Address.fromString(item.contractAddress), - ids: [item.itemId], - prices: [item.price], - beneficiaries: [Address.fromString(wallet.address)] - } - ] - - const txBuy = {} as TxSend - it('should send a meta transaction to the collection store contract living in the chain provided by the item and dispatch the success action', () => { return expectSaga(itemSaga) .provide([ [select(getWallet), wallet], - [ - matchers.call.fn(ContractFactory.build), - Promise.resolve(collectionStoreContract) - ], - [ - call(collectionStoreContract.methods.buy, buyTransactionParameters), - txBuy - ], - [ - call( - sendTransaction, - txBuy, - collectionStoreContractConfig, - Address.fromString(wallet.address) - ), - Promise.resolve(txHash) - ] + [matchers.call.fn(sendTransaction), Promise.resolve(txHash)] ]) .put(buyItemSuccess(item.chainId, txHash, item)) .dispatch(buyItemRequest(item)) diff --git a/webapp/src/modules/item/sagas.ts b/webapp/src/modules/item/sagas.ts index c96e308533..41ac584c07 100644 --- a/webapp/src/modules/item/sagas.ts +++ b/webapp/src/modules/item/sagas.ts @@ -1,16 +1,9 @@ import { Item } from '@dcl/schemas' import { put, takeEvery } from '@redux-saga/core/effects' -import { - ContractData, - ContractName, - getContract -} from 'decentraland-transactions' +import { ContractName, getContract } from 'decentraland-transactions' +import { sendTransaction } from 'decentraland-dapps/dist/modules/wallet/utils' import { call, select } from 'redux-saga/effects' -import { - CollectionStore, - CollectionStoreTransactionReceipt -} from '../../contracts/CollectionStore' -import { ContractFactory } from '../contract/ContractFactory' +import { push } from 'connected-react-router' import { itemAPI } from '../vendor/decentraland/item/api' import { getWallet } from '../wallet/selectors' import { @@ -28,10 +21,6 @@ import { FETCH_ITEM_REQUEST, BUY_ITEM_SUCCESS } from './actions' -import { Address } from 'web3x-es/address' -import { sendTransaction } from '../wallet/utils' -import { TxSend } from 'web3x-es/contract' -import { push } from 'connected-react-router' import { locations } from '../routing/locations' export function* itemSaga() { @@ -79,33 +68,15 @@ function* handleBuyItem(action: BuyItemRequestAction) { throw new Error('A defined wallet is required to buy an item') } - const collectionStoreContractConfig: ContractData = getContract( - ContractName.CollectionStore, - item.chainId - ) - const collectionStoreContract: CollectionStore = yield call( - [ContractFactory, 'build'], - CollectionStore, - collectionStoreContractConfig.address - ) - - const txBuy: TxSend = yield call( - collectionStoreContract.methods.buy, - [ - { - collection: Address.fromString(item.contractAddress), - ids: [item.itemId], - prices: [item.price], - beneficiaries: [Address.fromString(wallet.address)] - } - ] - ) + const contract = getContract(ContractName.CollectionStore, item.chainId) const txHash: string = yield call( sendTransaction, - txBuy, - collectionStoreContractConfig, - Address.fromString(wallet.address) + contract, + collectionStore => + collectionStore.buy([ + [item.contractAddress, [item.itemId], [item.price], [wallet.address]] + ]) ) yield put(buyItemSuccess(item.chainId, txHash, item)) diff --git a/webapp/src/modules/sagas.ts b/webapp/src/modules/sagas.ts index ec35eb833a..03aaeae4f6 100644 --- a/webapp/src/modules/sagas.ts +++ b/webapp/src/modules/sagas.ts @@ -1,5 +1,5 @@ import { all } from 'redux-saga/effects' -import { createAuthorizationSaga } from 'decentraland-dapps/dist/modules/authorization/sagas' +import { authorizationSaga } from 'decentraland-dapps/dist/modules/authorization/sagas' import { createAnalyticsSaga } from 'decentraland-dapps/dist/modules/analytics/sagas' import { createProfileSaga } from 'decentraland-dapps/dist/modules/profile/sagas' import { transactionSaga } from 'decentraland-dapps/dist/modules/transaction/sagas' @@ -16,15 +16,10 @@ import { uiSaga } from './ui/sagas' import { walletSaga } from './wallet/sagas' import { itemSaga } from './item/sagas' -import { TRANSACTIONS_API_URL } from './wallet/utils' - const analyticsSaga = createAnalyticsSaga() const profileSaga = createProfileSaga({ peerUrl: process.env.REACT_APP_PEER_URL! }) -const authorizationSaga = createAuthorizationSaga({ - metaTransactionServerUrl: TRANSACTIONS_API_URL -}) export function* rootSaga() { yield all([ diff --git a/webapp/src/modules/vendor/decentraland/NFTService.ts b/webapp/src/modules/vendor/decentraland/NFTService.ts index 5b349ecf0e..37c9c9e277 100644 --- a/webapp/src/modules/vendor/decentraland/NFTService.ts +++ b/webapp/src/modules/vendor/decentraland/NFTService.ts @@ -1,15 +1,12 @@ -import { Address } from 'web3x-es/address' import { Network } from '@dcl/schemas' import { Wallet } from 'decentraland-dapps/dist/modules/wallet/types' +import { sendTransaction } from 'decentraland-dapps/dist/modules/wallet/utils' import { ContractData, ContractName, getContract } from 'decentraland-transactions' -import { ERC721 } from '../../../contracts/ERC721' -import { ContractFactory } from '../../contract/ContractFactory' import { NFT, NFTsFetchParams, NFTsCountParams } from '../../nft/types' -import { sendTransaction } from '../../wallet/utils' import { Account } from '../../account/types' import ERC721Abi from '../../../contracts/ERC721Abi' import { NFTService as NFTServiceInterface } from '../services' @@ -56,14 +53,11 @@ export class NFTService return [nft, response.order || undefined] as const } - async transfer(wallet: Wallet | null, toAddress: string, nft: NFT) { + async transfer(wallet: Wallet | null, to: string, nft: NFT) { if (!wallet) { throw new Error('Invalid address. Wallet must be connected.') } - const from = Address.fromString(wallet.address) - const to = Address.fromString(toAddress) - const erc721 = await ContractFactory.build(ERC721, nft.contractAddress) const contract: ContractData = nft.network !== Network.ETHEREUM ? { @@ -78,8 +72,9 @@ export class NFTService version: '1' } - const transferFrom = erc721.methods.transferFrom(from, to, nft.tokenId) - return sendTransaction(transferFrom, contract, from) + return sendTransaction(contract, erc721 => + erc721.transferFrom(wallet.address, to, nft.tokenId) + ) } toAccount(address: string): Account { diff --git a/webapp/src/modules/vendor/decentraland/OrderService.ts b/webapp/src/modules/vendor/decentraland/OrderService.ts index 18eb73b356..cc7d987528 100644 --- a/webapp/src/modules/vendor/decentraland/OrderService.ts +++ b/webapp/src/modules/vendor/decentraland/OrderService.ts @@ -1,15 +1,12 @@ -import { Address } from 'web3x-es/address' -import { toWei } from 'web3x-es/utils' +import { utils } from 'ethers' import { ContractName, getContract } from 'decentraland-transactions' import { Wallet } from 'decentraland-dapps/dist/modules/wallet/types' -import { Marketplace } from '../../../contracts/Marketplace' -import { ContractFactory } from '../../contract/ContractFactory' +import { sendTransaction } from 'decentraland-dapps/dist/modules/wallet/utils' import { NFT } from '../../nft/types' import { Order, OrderStatus } from '../../order/types' import { orderAPI } from './order/api' import { VendorName } from '../types' import { OrderService as OrderServiceInterface } from '../services' -import { sendTransaction } from '../../wallet/utils' export class OrderService implements OrderServiceInterface { @@ -23,87 +20,53 @@ export class OrderService } async create( - wallet: Wallet | null, + _wallet: Wallet | null, nft: NFT, price: number, expiresAt: number ) { - const contractData = getContract(ContractName.Marketplace, nft.chainId) - const marketplace = await this.getMarketplaceContract(contractData.address) - - if (!wallet) { - throw new Error('Invalid address. Wallet must be connected.') - } - const from = Address.fromString(wallet.address) - - const createOrder = marketplace.methods.createOrder( - Address.fromString(nft.contractAddress), - nft.tokenId, - toWei(price.toString(), 'ether'), - expiresAt + const contract = getContract(ContractName.Marketplace, nft.chainId) + return sendTransaction(contract, marketplace => + marketplace.createOrder( + nft.contractAddress, + nft.tokenId, + utils.parseEther(price.toString()), + expiresAt + ) ) - - return sendTransaction(createOrder, contractData, from) } async execute( - wallet: Wallet | null, + _wallet: Wallet | null, nft: NFT, order: Order, fingerprint?: string ) { - const contractData = getContract(ContractName.Marketplace, nft.chainId) - const marketplace = await this.getMarketplaceContract(contractData.address) - const { price } = order - - if (!wallet) { - throw new Error('Invalid address. Wallet must be connected.') - } - const from = Address.fromString(wallet.address) - + const contract = getContract(ContractName.Marketplace, nft.chainId) if (fingerprint) { - return marketplace.methods - .safeExecuteOrder( - Address.fromString(nft.contractAddress), + return sendTransaction(contract, marketplace => + marketplace.safeExecuteOrder( + nft.contractAddress, nft.tokenId, - price, + order.price, fingerprint ) - .send({ from }) - .getTxHash() + ) } else { - const executeOrder = marketplace.methods.executeOrder( - Address.fromString(nft.contractAddress), - nft.tokenId, - price + return sendTransaction(contract, marketplace => + marketplace.executeOrder(nft.contractAddress, nft.tokenId, order.price) ) - - return sendTransaction(executeOrder, contractData, from) } } - async cancel(wallet: Wallet | null, nft: NFT) { - const contractData = getContract(ContractName.Marketplace, nft.chainId) - const marketplace = await this.getMarketplaceContract(contractData.address) - - if (!wallet) { - throw new Error('Invalid address. Wallet must be connected.') - } - - const from = Address.fromString(wallet.address) - const cancelOrder = marketplace.methods.cancelOrder( - Address.fromString(nft.contractAddress), - nft.tokenId + async cancel(_wallet: Wallet | null, nft: NFT) { + const contract = getContract(ContractName.Marketplace, nft.chainId) + return sendTransaction(contract, marketplace => + marketplace.cancelOrder(nft.contractAddress, nft.tokenId) ) - - return sendTransaction(cancelOrder, contractData, from) } canSell() { return true } - - private getMarketplaceContract(address: string) { - return ContractFactory.build(Marketplace, address) - } } diff --git a/webapp/src/modules/wallet/sagas.ts b/webapp/src/modules/wallet/sagas.ts index 22b491bb2f..aa45f92335 100644 --- a/webapp/src/modules/wallet/sagas.ts +++ b/webapp/src/modules/wallet/sagas.ts @@ -14,15 +14,17 @@ import { Authorization, AuthorizationType } from 'decentraland-dapps/dist/modules/authorization/types' +import { ContractName } from 'decentraland-transactions' import { getContractNames } from '../vendor' import { contracts, getContract } from '../contract/utils' import { isPartner } from '../vendor/utils' -import { ContractName } from 'decentraland-transactions' +import { TRANSACTIONS_API_URL } from './utils' const baseWalletSaga = createWalletSaga({ CHAIN_ID: +(process.env.REACT_APP_CHAIN_ID || 1), - POLL_INTERVAL: 0 + POLL_INTERVAL: 0, + TRANSACTIONS_API_URL }) export function* walletSaga() { diff --git a/webapp/src/modules/wallet/utils.ts b/webapp/src/modules/wallet/utils.ts index 29e38b40e7..a9555b384a 100644 --- a/webapp/src/modules/wallet/utils.ts +++ b/webapp/src/modules/wallet/utils.ts @@ -1,16 +1,3 @@ -import { TxSend } from 'web3x-es/contract' -import { Address } from 'web3x-es/address' -import { Network } from '@dcl/schemas' -import { getChainConfiguration } from 'decentraland-dapps/dist/lib/chainConfiguration' -import { - ContractData, - sendMetaTransaction as baseSendMetaTransaction -} from 'decentraland-transactions' -import { - getConnectedProvider, - getNetworkProvider -} from 'decentraland-dapps/dist/lib/eth' - export const TRANSACTIONS_API_URL = process.env.REACT_APP_TRANSACTIONS_API_URL export function shortenAddress(address: string) { @@ -26,42 +13,3 @@ export function addressEquals(address1?: string, address2?: string) { address1.toLowerCase() === address2.toLowerCase() ) } - -export function sendTransaction( - method: TxSend, - contract: ContractData, - from: Address -): Promise { - const { network } = getChainConfiguration(contract.chainId) - - switch (network) { - case Network.ETHEREUM: - return method.send({ from }).getTxHash() - case Network.MATIC: { - return sendMetaTransaction(method, contract, from) - } - default: - throw new Error(`Undefined network ${network}`) - } -} - -export async function sendMetaTransaction( - method: TxSend, - contract: ContractData, - from: Address -): Promise { - const provider = await getConnectedProvider() - if (!provider) { - throw new Error('Could not get a valid connected Wallet') - } - const metaTxProvider = await getNetworkProvider(contract.chainId) - const txData = getMethodData(method, from) - return baseSendMetaTransaction(provider, metaTxProvider, txData, contract, { - serverURL: TRANSACTIONS_API_URL - }) -} - -export function getMethodData(method: TxSend, from: Address): string { - const payload = method.getSendRequestPayload({ from }) - return payload.params[0].data -}