diff --git a/webapp/.eslintrc.cjs b/webapp/.eslintrc.cjs index 6cadb1e864..d5ef10e665 100644 --- a/webapp/.eslintrc.cjs +++ b/webapp/.eslintrc.cjs @@ -11,16 +11,12 @@ module.exports = { files: ['*.ts', '*.tsx', '*.cjs'], extends: ['plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', 'prettier'], rules: { - '@typescript-eslint/no-unsafe-declaration-merging': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-unsafe-declaration-merging - '@typescript-eslint/no-redundant-type-constituents': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-redundant-type-constituents '@typescript-eslint/no-floating-promises': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-floating-promises '@typescript-eslint/no-unsafe-return': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-unsafe-return '@typescript-eslint/naming-convention': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/naming-convention/ - '@typescript-eslint/no-unnecessary-type-assertion': 'error', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-unnecessary-type-assertion '@typescript-eslint/explicit-module-boundary-types': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/explicit-module-boundary-types '@typescript-eslint/restrict-template-expressions': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/restrict-template-expressions '@typescript-eslint/no-base-to-string': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-base-to-string - '@typescript-eslint/ban-types': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/ban-types '@typescript-eslint/unbound-method': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/unbound-method '@typescript-eslint/ban-ts-comment': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/ban-ts-comment '@typescript-eslint/no-unsafe-assignment': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-unsafe-assignment/ @@ -29,7 +25,6 @@ module.exports = { '@typescript-eslint/no-unsafe-argument': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-unsafe-argument/ '@typescript-eslint/no-explicit-any': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-explicit-any '@typescript-eslint/no-non-null-assertion': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-non-null-assertion - '@typescript-eslint/await-thenable': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/await-thenable 'import/order': 'off', // TODO: migrate code progressively to remove this line. '@typescript-eslint/no-non-null-asserted-optional-chain': 'off', // TODO: migrate code progressively to remove this line. https://typescript-eslint.io/rules/no-non-null-asserted-optional-chain '@typescript-eslint/no-unsafe-enum-comparison': 'off' diff --git a/webapp/package-lock.json b/webapp/package-lock.json index f493659ac5..b34f6d204a 100644 --- a/webapp/package-lock.json +++ b/webapp/package-lock.json @@ -27,9 +27,9 @@ "dcl-catalyst-commons": "^9.0.1", "decentraland-connect": "^6.2.0", "decentraland-crypto-fetch": "^1.0.3", - "decentraland-dapps": "^19.0.0", - "decentraland-transactions": "^2.3.1", - "decentraland-ui": "^5.8.0", + "decentraland-dapps": "^19.0.3", + "decentraland-transactions": "^2.3.2", + "decentraland-ui": "^5.10.1", "ethers": "^5.6.8", "graphql": "^14.7.0", "history": "^4.10.1", @@ -1776,397 +1776,6 @@ "esbuild": "*" } }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.1.tgz", - "integrity": "sha512-m55cpeupQ2DbuRGQMMZDzbv9J9PgVelPjlcmM5kxHnrBdBx6REaEd7LamYV7Dm8N7rCyR/XwU6rVP8ploKtIkA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "aix" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.1.tgz", - "integrity": "sha512-4j0+G27/2ZXGWR5okcJi7pQYhmkVgb4D7UKwxcqrjhvp5TKWx3cUjgB1CGj1mfdmJBQ9VnUGgUhign+FPF2Zgw==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.1.tgz", - "integrity": "sha512-hCnXNF0HM6AjowP+Zou0ZJMWWa1VkD77BXe959zERgGJBBxB+sV+J9f/rcjeg2c5bsukD/n17RKWXGFCO5dD5A==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.1.tgz", - "integrity": "sha512-MSfZMBoAsnhpS+2yMFYIQUPs8Z19ajwfuaSZx+tSl09xrHZCjbeXXMsUF/0oq7ojxYEpsSo4c0SfjxOYXRbpaA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.1.tgz", - "integrity": "sha512-Ylk6rzgMD8klUklGPzS414UQLa5NPXZD5tf8JmQU8GQrj6BrFA/Ic9tb2zRe1kOZyCbGl+e8VMbDRazCEBqPvA==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.1.tgz", - "integrity": "sha512-pFIfj7U2w5sMp52wTY1XVOdoxw+GDwy9FsK3OFz4BpMAjvZVs0dT1VXs8aQm22nhwoIWUmIRaE+4xow8xfIDZA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.1.tgz", - "integrity": "sha512-UyW1WZvHDuM4xDz0jWun4qtQFauNdXjXOtIy7SYdf7pbxSWWVlqhnR/T2TpX6LX5NI62spt0a3ldIIEkPM6RHw==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.1.tgz", - "integrity": "sha512-itPwCw5C+Jh/c624vcDd9kRCCZVpzpQn8dtwoYIt2TJF3S9xJLiRohnnNrKwREvcZYx0n8sCSbvGH349XkcQeg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.1.tgz", - "integrity": "sha512-LojC28v3+IhIbfQ+Vu4Ut5n3wKcgTu6POKIHN9Wpt0HnfgUGlBuyDDQR4jWZUZFyYLiz4RBBBmfU6sNfn6RhLw==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.1.tgz", - "integrity": "sha512-cX8WdlF6Cnvw/DO9/X7XLH2J6CkBnz7Twjpk56cshk9sjYVcuh4sXQBy5bmTwzBjNVZze2yaV1vtcJS04LbN8w==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.1.tgz", - "integrity": "sha512-4H/sQCy1mnnGkUt/xszaLlYJVTz3W9ep52xEefGtd6yXDQbz/5fZE5dFLUgsPdbUOQANcVUa5iO6g3nyy5BJiw==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.1.tgz", - "integrity": "sha512-c0jgtB+sRHCciVXlyjDcWb2FUuzlGVRwGXgI+3WqKOIuoo8AmZAddzeOHeYLtD+dmtHw3B4Xo9wAUdjlfW5yYA==", - "cpu": [ - "loong64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.1.tgz", - "integrity": "sha512-TgFyCfIxSujyuqdZKDZ3yTwWiGv+KnlOeXXitCQ+trDODJ+ZtGOzLkSWngynP0HZnTsDyBbPy7GWVXWaEl6lhA==", - "cpu": [ - "mips64el" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.1.tgz", - "integrity": "sha512-b+yuD1IUeL+Y93PmFZDZFIElwbmFfIKLKlYI8M6tRyzE6u7oEP7onGk0vZRh8wfVGC2dZoy0EqX1V8qok4qHaw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.1.tgz", - "integrity": "sha512-wpDlpE0oRKZwX+GfomcALcouqjjV8MIX8DyTrxfyCfXxoKQSDm45CZr9fanJ4F6ckD4yDEPT98SrjvLwIqUCgg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.1.tgz", - "integrity": "sha512-5BepC2Au80EohQ2dBpyTquqGCES7++p7G+7lXe1bAIvMdXm4YYcEfZtQrP4gaoZ96Wv1Ute61CEHFU7h4FMueQ==", - "cpu": [ - "s390x" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.1.tgz", - "integrity": "sha512-5gRPk7pKuaIB+tmH+yKd2aQTRpqlf1E4f/mC+tawIm/CGJemZcHZpp2ic8oD83nKgUPMEd0fNanrnFljiruuyA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.1.tgz", - "integrity": "sha512-4fL68JdrLV2nVW2AaWZBv3XEm3Ae3NZn/7qy2KGAt3dexAgSVT+Hc97JKSZnqezgMlv9x6KV0ZkZY7UO5cNLCg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "netbsd" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.1.tgz", - "integrity": "sha512-GhRuXlvRE+twf2ES+8REbeCb/zeikNqwD3+6S5y5/x+DYbAQUNl0HNBs4RQJqrechS4v4MruEr8ZtAin/hK5iw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "openbsd" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.1.tgz", - "integrity": "sha512-ZnWEyCM0G1Ex6JtsygvC3KUUrlDXqOihw8RicRuQAzw+c4f1D66YlPNNV3rkjVW90zXVsHwZYWbJh3v+oQFM9Q==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "sunos" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.1.tgz", - "integrity": "sha512-QZ6gXue0vVQY2Oon9WyLFCdSuYbXSoxaZrPuJ4c20j6ICedfsDilNPYfHLlMH7vGfU5DQR0czHLmJvH4Nzis/A==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.1.tgz", - "integrity": "sha512-HzcJa1NcSWTAU0MJIxOho8JftNp9YALui3o+Ny7hCh0v5f90nprly1U3Sj1Ldj/CvKKdvvFsCRvDkpsEMp4DNw==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.1.tgz", - "integrity": "sha512-0MBh53o6XtI6ctDnRMeQ+xoCN8kD2qI1rY1KgF/xdWQwoFeKou7puvDfV8/Wv4Ctx2rRpET/gGdz3YlNtNACSA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": ">=12" - } - }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -4489,6 +4098,7 @@ "cpu": [ "arm" ], + "dev": true, "optional": true, "os": [ "android" @@ -4501,6 +4111,7 @@ "cpu": [ "arm64" ], + "dev": true, "optional": true, "os": [ "android" @@ -4513,6 +4124,7 @@ "cpu": [ "arm64" ], + "dev": true, "optional": true, "os": [ "darwin" @@ -4525,6 +4137,7 @@ "cpu": [ "x64" ], + "dev": true, "optional": true, "os": [ "darwin" @@ -4537,6 +4150,7 @@ "cpu": [ "arm" ], + "dev": true, "optional": true, "os": [ "linux" @@ -4549,6 +4163,7 @@ "cpu": [ "arm64" ], + "dev": true, "optional": true, "os": [ "linux" @@ -4561,6 +4176,7 @@ "cpu": [ "arm64" ], + "dev": true, "optional": true, "os": [ "linux" @@ -4573,6 +4189,7 @@ "cpu": [ "riscv64" ], + "dev": true, "optional": true, "os": [ "linux" @@ -4585,6 +4202,7 @@ "cpu": [ "x64" ], + "dev": true, "optional": true, "os": [ "linux" @@ -4597,6 +4215,7 @@ "cpu": [ "x64" ], + "dev": true, "optional": true, "os": [ "linux" @@ -4609,6 +4228,7 @@ "cpu": [ "arm64" ], + "dev": true, "optional": true, "os": [ "win32" @@ -4621,6 +4241,7 @@ "cpu": [ "ia32" ], + "dev": true, "optional": true, "os": [ "win32" @@ -4633,6 +4254,7 @@ "cpu": [ "x64" ], + "dev": true, "optional": true, "os": [ "win32" @@ -7400,30 +7022,6 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/babel-plugin-module-resolver": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/babel-plugin-module-resolver/-/babel-plugin-module-resolver-5.0.0.tgz", - "integrity": "sha512-g0u+/ChLSJ5+PzYwLwP8Rp8Rcfowz58TJNCe+L/ui4rpzE/mg//JVX0EWBUYoxaextqnwuGHzfGp2hh0PPV25Q==", - "dev": true, - "peer": true, - "dependencies": { - "find-babel-config": "^2.0.0", - "glob": "^8.0.3", - "pkg-up": "^3.1.0", - "reselect": "^4.1.7", - "resolve": "^1.22.1" - }, - "engines": { - "node": ">= 16" - } - }, - "node_modules/babel-plugin-module-resolver/node_modules/reselect": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/reselect/-/reselect-4.1.8.tgz", - "integrity": "sha512-ab9EmR80F/zQTMNeneUr4cv+jSwPJgIlvEmVwLerwrWVbpLlBuls9XHzIeTFy4cegU2NHBp3va0LKOzU5qFEYQ==", - "dev": true, - "peer": true - }, "node_modules/babel-preset-current-node-syntax": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", @@ -9062,20 +8660,6 @@ "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" } }, - "node_modules/dcl-tslint-config-standard/node_modules/typescript": { - "version": "3.9.10", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", - "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", - "dev": true, - "peer": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, "node_modules/debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -9228,9 +8812,9 @@ } }, "node_modules/decentraland-dapps": { - "version": "19.0.2", - "resolved": "https://registry.npmjs.org/decentraland-dapps/-/decentraland-dapps-19.0.2.tgz", - "integrity": "sha512-6XVHnAv9m4/UUEwJIi9l30srTn32UUHxphF7ja0b6QpndU3Fd2w46FxlHr1edj0bWwxp9I2/PSHB6q+YfRQGow==", + "version": "19.0.3", + "resolved": "https://registry.npmjs.org/decentraland-dapps/-/decentraland-dapps-19.0.3.tgz", + "integrity": "sha512-fGIHa7z+alYa6aHcSAoH1txtmJag7QOjPQ7tw49F9u0NnaBpOSnEkSxZBBweSkURnV8MX8kCCa49zAtOe6h3hg==", "dependencies": { "@0xsequence/multicall": "^0.25.1", "@0xsequence/relayer": "^0.25.1", @@ -9247,8 +8831,8 @@ "dcl-catalyst-client": "^21.1.0", "decentraland-connect": "^6.2.0", "decentraland-crypto-fetch": "^2.0.1", - "decentraland-transactions": "^2.3.1", - "decentraland-ui": "^5.8.0", + "decentraland-transactions": "^2.3.2", + "decentraland-ui": "^5.10.1", "ethers": "^5.6.8", "events": "^3.3.0", "flat": "^5.0.2", @@ -9355,24 +8939,10 @@ "node": ">= 4" } }, - "node_modules/decentraland-dapps/node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", - "optional": true, - "peer": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, "node_modules/decentraland-transactions": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/decentraland-transactions/-/decentraland-transactions-2.3.1.tgz", - "integrity": "sha512-0CPwk9G89XxMlRUII4e3vqpRwabfeQ1mpym3VP3bU4SCWvzslcN8qUqcuhwLtJRtdKRNh39bb3Ylxld0a83NIw==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/decentraland-transactions/-/decentraland-transactions-2.3.2.tgz", + "integrity": "sha512-VsYCQaJLO1tGcB94wW9yZcHCoAyznpV7gzK4bRQzSs9+oMC+MUhppNKpO8KZMHtYU/vvb88kDh9PDBbjb7RiAw==", "dependencies": { "@0xsquid/sdk": "^2.8.9", "@0xsquid/squid-types": "^0.1.51", @@ -9384,9 +8954,9 @@ } }, "node_modules/decentraland-ui": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/decentraland-ui/-/decentraland-ui-5.10.0.tgz", - "integrity": "sha512-3Bcr3xIlDkgfKE/V/ARuowRwzOsVVZYbalK0ifBeUzAMeGNjTwctV8w/wfxuk+bbkpJ3Of9oZSNVUSVxKsnqug==", + "version": "5.10.1", + "resolved": "https://registry.npmjs.org/decentraland-ui/-/decentraland-ui-5.10.1.tgz", + "integrity": "sha512-OrZGWLtKsWjlntciglebHh9UOs/SDRVJeUgWmSSoXtpblSrGR6QL0NgJoY9rupudtlTM7rjENj5ufbbTkvwpgA==", "dependencies": { "@dcl/schemas": "^10.2.0", "@dcl/ui-env": "^1.4.0", @@ -10093,45 +9663,6 @@ "node": ">=0.12" } }, - "node_modules/esbuild": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.1.tgz", - "integrity": "sha512-OJwEgrpWm/PCMsLVWXKqvcjme3bHNpOgN7Tb6cQnR5n0TPbQx1/Xrn7rqM+wn17bYeT6MGB5sn1Bh5YiGi70nA==", - "dev": true, - "hasInstallScript": true, - "peer": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.20.1", - "@esbuild/android-arm": "0.20.1", - "@esbuild/android-arm64": "0.20.1", - "@esbuild/android-x64": "0.20.1", - "@esbuild/darwin-arm64": "0.20.1", - "@esbuild/darwin-x64": "0.20.1", - "@esbuild/freebsd-arm64": "0.20.1", - "@esbuild/freebsd-x64": "0.20.1", - "@esbuild/linux-arm": "0.20.1", - "@esbuild/linux-arm64": "0.20.1", - "@esbuild/linux-ia32": "0.20.1", - "@esbuild/linux-loong64": "0.20.1", - "@esbuild/linux-mips64el": "0.20.1", - "@esbuild/linux-ppc64": "0.20.1", - "@esbuild/linux-riscv64": "0.20.1", - "@esbuild/linux-s390x": "0.20.1", - "@esbuild/linux-x64": "0.20.1", - "@esbuild/netbsd-x64": "0.20.1", - "@esbuild/openbsd-x64": "0.20.1", - "@esbuild/sunos-x64": "0.20.1", - "@esbuild/win32-arm64": "0.20.1", - "@esbuild/win32-ia32": "0.20.1", - "@esbuild/win32-x64": "0.20.1" - } - }, "node_modules/escalade": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", @@ -12283,20 +11814,6 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, - "node_modules/find-babel-config": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/find-babel-config/-/find-babel-config-2.0.0.tgz", - "integrity": "sha512-dOKT7jvF3hGzlW60Gc3ONox/0rRZ/tz7WCil0bqA1In/3I8f1BctpXahRnEKDySZqci7u+dqq93sZST9fOJpFw==", - "dev": true, - "peer": true, - "dependencies": { - "json5": "^2.1.1", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, "node_modules/find-cache-dir": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", @@ -18011,6 +17528,7 @@ "version": "4.12.1", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.12.1.tgz", "integrity": "sha512-ggqQKvx/PsB0FaWXhIvVkSWh7a/PCLQAsMjBc+nA2M8Rv2/HG0X6zvixAB7KyZBRtifBUhy5k8voQX/mRnABPg==", + "dev": true, "dependencies": { "@types/estree": "1.0.5" }, diff --git a/webapp/package.json b/webapp/package.json index 71a9ff56aa..b0f5fd6dbf 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -22,9 +22,9 @@ "dcl-catalyst-commons": "^9.0.1", "decentraland-connect": "^6.2.0", "decentraland-crypto-fetch": "^1.0.3", - "decentraland-dapps": "^19.0.0", - "decentraland-transactions": "^2.3.1", - "decentraland-ui": "^5.8.0", + "decentraland-dapps": "^19.0.3", + "decentraland-transactions": "^2.3.2", + "decentraland-ui": "^5.10.1", "ethers": "^5.6.8", "graphql": "^14.7.0", "history": "^4.10.1", diff --git a/webapp/src/components/ActivityPage/Transaction/TransactionDetail/TransactionDetail.types.ts b/webapp/src/components/ActivityPage/Transaction/TransactionDetail/TransactionDetail.types.ts index aab7f8098c..d4f95280d1 100644 --- a/webapp/src/components/ActivityPage/Transaction/TransactionDetail/TransactionDetail.types.ts +++ b/webapp/src/components/ActivityPage/Transaction/TransactionDetail/TransactionDetail.types.ts @@ -7,6 +7,3 @@ export type Props = { text: React.ReactNode tx: Transaction } - -export type MapStateProps = {} -export type MapDispatchProps = {} diff --git a/webapp/src/components/AssetCard/AssetCard.container.ts b/webapp/src/components/AssetCard/AssetCard.container.ts index a0f8f4e7ae..8a62841934 100644 --- a/webapp/src/components/AssetCard/AssetCard.container.ts +++ b/webapp/src/components/AssetCard/AssetCard.container.ts @@ -11,7 +11,7 @@ import { getOpenRentalId } from '../../modules/rental/utils' import { getRentalById } from '../../modules/rental/selectors' import { getPageName, getSortBy, getWearablesUrlParams } from '../../modules/routing/selectors' import { PageName } from '../../modules/routing/types' -import { MapStateProps, OwnProps, MapDispatchProps } from './AssetCard.types' +import { MapStateProps, OwnProps } from './AssetCard.types' import AssetCard from './AssetCard' const mapState = (state: RootState, ownProps: OwnProps): MapStateProps => { @@ -43,6 +43,4 @@ const mapState = (state: RootState, ownProps: OwnProps): MapStateProps => { } } -const mapDispatch = (): MapDispatchProps => ({}) - -export default connect(mapState, mapDispatch)(AssetCard) +export default connect(mapState)(AssetCard) diff --git a/webapp/src/components/AssetCard/AssetCard.types.ts b/webapp/src/components/AssetCard/AssetCard.types.ts index 83a9753680..fb304c21bc 100644 --- a/webapp/src/components/AssetCard/AssetCard.types.ts +++ b/webapp/src/components/AssetCard/AssetCard.types.ts @@ -20,5 +20,4 @@ export type MapStateProps = Pick< Props, 'showListedTag' | 'price' | 'showRentalChip' | 'rental' | 'isClaimingBackLandTransactionPending' | 'sortBy' | 'appliedFilters' > -export type MapDispatchProps = {} export type OwnProps = Pick diff --git a/webapp/src/components/AssetCard/ProximityTags/ProximityTags.container.ts b/webapp/src/components/AssetCard/ProximityTags/ProximityTags.container.ts index a4663f41f4..9184d3887c 100644 --- a/webapp/src/components/AssetCard/ProximityTags/ProximityTags.container.ts +++ b/webapp/src/components/AssetCard/ProximityTags/ProximityTags.container.ts @@ -1,13 +1,11 @@ import { connect } from 'react-redux' import { RootState } from '../../../modules/reducer' import { getProximities } from '../../../modules/proximity/selectors' -import { MapStateProps, MapDispatchProps, MapDispatch } from './ProximityTags.types' +import { MapStateProps } from './ProximityTags.types' import ProximityTags from './ProximityTags' const mapState = (state: RootState): MapStateProps => ({ proximities: getProximities(state) }) -const mapDispatch = (_dispatch: MapDispatch): MapDispatchProps => ({}) - -export default connect(mapState, mapDispatch)(ProximityTags) +export default connect(mapState)(ProximityTags) diff --git a/webapp/src/components/AssetCard/ProximityTags/ProximityTags.types.ts b/webapp/src/components/AssetCard/ProximityTags/ProximityTags.types.ts index 3aea116196..3fce09475f 100644 --- a/webapp/src/components/AssetCard/ProximityTags/ProximityTags.types.ts +++ b/webapp/src/components/AssetCard/ProximityTags/ProximityTags.types.ts @@ -8,5 +8,4 @@ export type Props = { } export type MapStateProps = Pick -export type MapDispatchProps = {} export type MapDispatch = Dispatch diff --git a/webapp/src/components/AssetPage/ErrorBoundary/ErrorBoundary.tsx b/webapp/src/components/AssetPage/ErrorBoundary/ErrorBoundary.tsx index 87bfcb48c3..f0801152f0 100644 --- a/webapp/src/components/AssetPage/ErrorBoundary/ErrorBoundary.tsx +++ b/webapp/src/components/AssetPage/ErrorBoundary/ErrorBoundary.tsx @@ -1,10 +1,10 @@ -import React from 'react' +import { Component } from 'react' import { t } from 'decentraland-dapps/dist/modules/translation/utils' import { Center } from 'decentraland-ui' -import { Props, State } from './ErrorBoundary.types' +import { State } from './ErrorBoundary.types' -export default class ErrorBoundary extends React.Component { - constructor(props: Props) { +export default class ErrorBoundary extends Component { + constructor(props: unknown) { super(props) this.state = { hasError: false } } diff --git a/webapp/src/components/AssetPage/ErrorBoundary/ErrorBoundary.types.ts b/webapp/src/components/AssetPage/ErrorBoundary/ErrorBoundary.types.ts index 11e5fd9a78..1d9fc83c0a 100644 --- a/webapp/src/components/AssetPage/ErrorBoundary/ErrorBoundary.types.ts +++ b/webapp/src/components/AssetPage/ErrorBoundary/ErrorBoundary.types.ts @@ -1,5 +1,3 @@ -export type Props = {} - export type State = { hasError: boolean } diff --git a/webapp/src/components/AssetPage/ItemDetail/ItemDetail.types.ts b/webapp/src/components/AssetPage/ItemDetail/ItemDetail.types.ts index c6f24e4fb9..6720f89158 100644 --- a/webapp/src/components/AssetPage/ItemDetail/ItemDetail.types.ts +++ b/webapp/src/components/AssetPage/ItemDetail/ItemDetail.types.ts @@ -13,6 +13,3 @@ export enum SmartWearableRequiredPermission { export type Props = { item: Item } - -export type MapDispatchProps = {} -export type MapDispatch = {} diff --git a/webapp/src/components/AssetPage/OwnersTable/OwnersTable.types.ts b/webapp/src/components/AssetPage/OwnersTable/OwnersTable.types.ts index 5ebe700361..b801365600 100644 --- a/webapp/src/components/AssetPage/OwnersTable/OwnersTable.types.ts +++ b/webapp/src/components/AssetPage/OwnersTable/OwnersTable.types.ts @@ -5,9 +5,6 @@ export type Props = { orderDirection?: OrderDirection } -export type MapStateProps = {} -export type MapDispatchProps = {} - export enum OrderDirection { ASC = 'asc', DESC = 'desc' diff --git a/webapp/src/components/AssetPage/ProximityHighlights/ProximityHighlights.container.ts b/webapp/src/components/AssetPage/ProximityHighlights/ProximityHighlights.container.ts index 0b2d6191ab..7fb1e2e943 100644 --- a/webapp/src/components/AssetPage/ProximityHighlights/ProximityHighlights.container.ts +++ b/webapp/src/components/AssetPage/ProximityHighlights/ProximityHighlights.container.ts @@ -1,13 +1,11 @@ import { connect } from 'react-redux' import { RootState } from '../../../modules/reducer' import { getProximities } from '../../../modules/proximity/selectors' -import { MapStateProps, MapDispatchProps, MapDispatch } from './ProximityHighlights.types' +import { MapStateProps } from './ProximityHighlights.types' import ProximityHighlights from './ProximityHighlights' const mapState = (state: RootState): MapStateProps => ({ proximities: getProximities(state) }) -const mapDispatch = (_dispatch: MapDispatch): MapDispatchProps => ({}) - -export default connect(mapState, mapDispatch)(ProximityHighlights) +export default connect(mapState)(ProximityHighlights) diff --git a/webapp/src/components/AssetPage/ProximityHighlights/ProximityHighlights.types.ts b/webapp/src/components/AssetPage/ProximityHighlights/ProximityHighlights.types.ts index 3aea116196..3fce09475f 100644 --- a/webapp/src/components/AssetPage/ProximityHighlights/ProximityHighlights.types.ts +++ b/webapp/src/components/AssetPage/ProximityHighlights/ProximityHighlights.types.ts @@ -8,5 +8,4 @@ export type Props = { } export type MapStateProps = Pick -export type MapDispatchProps = {} export type MapDispatch = Dispatch diff --git a/webapp/src/components/AssetPage/RentalHistory/RentalHistory.types.ts b/webapp/src/components/AssetPage/RentalHistory/RentalHistory.types.ts index af51cdaffa..f34bfc1731 100644 --- a/webapp/src/components/AssetPage/RentalHistory/RentalHistory.types.ts +++ b/webapp/src/components/AssetPage/RentalHistory/RentalHistory.types.ts @@ -3,6 +3,3 @@ import { NFT } from '../../../modules/nft/types' export type Props = { asset: NFT } - -export type MapStateProps = {} -export type MapDispatchProps = {} diff --git a/webapp/src/components/AssetPage/TransactionHistory/TransactionHistory.types.ts b/webapp/src/components/AssetPage/TransactionHistory/TransactionHistory.types.ts index 4970028fc4..42fe316235 100644 --- a/webapp/src/components/AssetPage/TransactionHistory/TransactionHistory.types.ts +++ b/webapp/src/components/AssetPage/TransactionHistory/TransactionHistory.types.ts @@ -3,6 +3,3 @@ import { Asset } from '../../../modules/asset/types' export type Props = { asset: Asset | null } - -export type MapStateProps = {} -export type MapDispatchProps = {} diff --git a/webapp/src/components/Atlas/Popup/Popup.types.ts b/webapp/src/components/Atlas/Popup/Popup.types.ts index 9435962dc9..3dcf86b93c 100644 --- a/webapp/src/components/Atlas/Popup/Popup.types.ts +++ b/webapp/src/components/Atlas/Popup/Popup.types.ts @@ -9,7 +9,5 @@ export type Props = { position: 'left' | 'right' } -export type MapStateProps = {} -export type MapDispatchProps = {} export type MapDispatch = Dispatch export type OwnProps = Pick diff --git a/webapp/src/components/Campaign/CampaignBadge/CampaignBadge.types.ts b/webapp/src/components/Campaign/CampaignBadge/CampaignBadge.types.ts index b8517e23ea..888bc9f639 100644 --- a/webapp/src/components/Campaign/CampaignBadge/CampaignBadge.types.ts +++ b/webapp/src/components/Campaign/CampaignBadge/CampaignBadge.types.ts @@ -4,5 +4,3 @@ export type Props = { } export type MapStateProps = Pick -export type MapDispatchProps = {} -export type MapDispatch = {} diff --git a/webapp/src/components/ManageAssetPage/Sell/Sell.container.ts b/webapp/src/components/ManageAssetPage/Sell/Sell.container.ts index 74f59ad005..471404bb85 100644 --- a/webapp/src/components/ManageAssetPage/Sell/Sell.container.ts +++ b/webapp/src/components/ManageAssetPage/Sell/Sell.container.ts @@ -2,12 +2,9 @@ import { Dispatch } from 'redux' import { connect } from 'react-redux' import { openModal } from 'decentraland-dapps/dist/modules/modal/actions' -import { RootState } from '../../../modules/reducer' -import { MapDispatchProps, MapStateProps, OwnProps } from './Sell.types' +import { MapDispatchProps, OwnProps } from './Sell.types' import Sell from './Sell' -const mapState = (_state: RootState): MapStateProps => ({}) - const mapDispatch = (dispatch: Dispatch, ownProps: OwnProps): MapDispatchProps => ({ // TODO: @Rentals, add the mapDispatch that opens the sell modal once implemented onEditOrder: () => @@ -27,4 +24,4 @@ const mapDispatch = (dispatch: Dispatch, ownProps: OwnProps): MapDispatchProps = ) }) -export default connect(mapState, mapDispatch)(Sell) +export default connect(undefined, mapDispatch)(Sell) diff --git a/webapp/src/components/ManageAssetPage/Sell/Sell.types.ts b/webapp/src/components/ManageAssetPage/Sell/Sell.types.ts index 4ed788a8be..629746bd14 100644 --- a/webapp/src/components/ManageAssetPage/Sell/Sell.types.ts +++ b/webapp/src/components/ManageAssetPage/Sell/Sell.types.ts @@ -12,8 +12,5 @@ export type Props = { onListForSale: () => void } -export type MapStateProps = {} - export type MapDispatchProps = Pick - export type OwnProps = Pick diff --git a/webapp/src/components/Modals/ClaimNameFatFingerModal/ClaimNameFatFingerModal.spec.tsx b/webapp/src/components/Modals/ClaimNameFatFingerModal/ClaimNameFatFingerModal.spec.tsx index 4566f875c5..841defe1a2 100644 --- a/webapp/src/components/Modals/ClaimNameFatFingerModal/ClaimNameFatFingerModal.spec.tsx +++ b/webapp/src/components/Modals/ClaimNameFatFingerModal/ClaimNameFatFingerModal.spec.tsx @@ -110,7 +110,7 @@ describe('ClaimNameFatFingerModal', () => { beforeEach(() => { encodeFunctionMock = jest.fn() getSignerMock.mockResolvedValueOnce(signerMock as unknown as ethers.providers.JsonRpcSigner) - ;(DCLController__factory.connect as jest.Mock).mockResolvedValueOnce({ + ;(DCLController__factory.connect as jest.Mock).mockReturnValueOnce({ interface: { encodeFunctionData: encodeFunctionMock } diff --git a/webapp/src/components/Modals/ClaimNameFatFingerModal/ClaimNameFatFingerModal.tsx b/webapp/src/components/Modals/ClaimNameFatFingerModal/ClaimNameFatFingerModal.tsx index ccfe14552b..5632154694 100644 --- a/webapp/src/components/Modals/ClaimNameFatFingerModal/ClaimNameFatFingerModal.tsx +++ b/webapp/src/components/Modals/ClaimNameFatFingerModal/ClaimNameFatFingerModal.tsx @@ -57,7 +57,7 @@ const ClaimNameFatFingerModal = ({ const wertURL = config.get('WERT_URL') if (wallet) { const signer = await getSigner() - const factory = await DCLController__factory.connect(CONTROLLER_V2_ADDRESS, signer) + const factory = DCLController__factory.connect(CONTROLLER_V2_ADDRESS, signer) const sc_input_data = factory.interface.encodeFunctionData('register', [ENSName, wallet.address]) diff --git a/webapp/src/components/Modals/ListsLaunchModal/ListsLaunchModal.types.ts b/webapp/src/components/Modals/ListsLaunchModal/ListsLaunchModal.types.ts index cefe34f7a8..603d085597 100644 --- a/webapp/src/components/Modals/ListsLaunchModal/ListsLaunchModal.types.ts +++ b/webapp/src/components/Modals/ListsLaunchModal/ListsLaunchModal.types.ts @@ -4,4 +4,3 @@ export type Props = { } export type MapStateProps = Pick -export type MapDispatchProps = {} diff --git a/webapp/src/components/Modals/RentalListingModal/CreateOrEditListingStep/CreateOrEditListingStep.types.ts b/webapp/src/components/Modals/RentalListingModal/CreateOrEditListingStep/CreateOrEditListingStep.types.ts index db6fc086d0..6dfd80ed59 100644 --- a/webapp/src/components/Modals/RentalListingModal/CreateOrEditListingStep/CreateOrEditListingStep.types.ts +++ b/webapp/src/components/Modals/RentalListingModal/CreateOrEditListingStep/CreateOrEditListingStep.types.ts @@ -12,7 +12,5 @@ export type Props = { isListForRentAgain: boolean | null } -export type MapStateProps = {} -export type MapDispatchProps = {} export type MapDispatch = Dispatch export type OwnProps = Pick diff --git a/webapp/src/components/Vendor/VendorMenu/VendorMenu.types.ts b/webapp/src/components/Vendor/VendorMenu/VendorMenu.types.ts index 7c790ce449..283749976e 100644 --- a/webapp/src/components/Vendor/VendorMenu/VendorMenu.types.ts +++ b/webapp/src/components/Vendor/VendorMenu/VendorMenu.types.ts @@ -12,5 +12,3 @@ export type Props = { } export type MapStateProps = Pick -export type MapDispatchProps = {} -export type MapDispatch = {} diff --git a/webapp/src/modules/favorites/types.ts b/webapp/src/modules/favorites/types.ts index ed277f241d..eebf3c593b 100644 --- a/webapp/src/modules/favorites/types.ts +++ b/webapp/src/modules/favorites/types.ts @@ -29,8 +29,6 @@ export type List = { previewOfItemIds?: string[] } -export type ListBrowseOptions = {} - export enum ListsBrowseSortBy { NAME_ASC = 'name_asc', NAME_DESC = 'name_desc', diff --git a/webapp/src/modules/nft/hooks.spec.tsx b/webapp/src/modules/nft/hooks.spec.tsx index 26d7fefe44..3165c2ae1b 100644 --- a/webapp/src/modules/nft/hooks.spec.tsx +++ b/webapp/src/modules/nft/hooks.spec.tsx @@ -98,7 +98,8 @@ describe('when the nft is an estate', () => { ] } } - ;(useSelector as jest.Mock).mockImplementation((callback: Function) => callback(appData)) + + ;(useSelector as jest.Mock).mockImplementation((callback: (appData: unknown) => unknown) => callback(appData)) fingerprint = '0x123123' contractFingerprint = '0x456456' diff --git a/webapp/src/modules/vendor/nft/types.ts b/webapp/src/modules/vendor/nft/types.ts index 4994faf3ba..277faa81e4 100644 --- a/webapp/src/modules/vendor/nft/types.ts +++ b/webapp/src/modules/vendor/nft/types.ts @@ -2,7 +2,7 @@ import { VendorName } from '../types' import * as decentraland from '../decentraland' -export type NFTsFetchFilters = V extends VendorName.DECENTRALAND +export type NFTsFetchFilters = V extends VendorName.DECENTRALAND ? decentraland.NFTsFetchFilters : V extends unknown ? decentraland.NFTsFetchFilters diff --git a/webapp/src/modules/vendor/services.ts b/webapp/src/modules/vendor/services.ts index 61b81b1816..022648f045 100644 --- a/webapp/src/modules/vendor/services.ts +++ b/webapp/src/modules/vendor/services.ts @@ -16,7 +16,6 @@ export type Contract = Omit & { export interface AnalyticsService { fetchVolumeData: (timeframe: AnalyticsTimeframe) => Promise } -export class AnalyticsService {} export interface NFTService { fetch: ( @@ -31,9 +30,6 @@ export interface NFTService { ) => Promise, Order | null, RentalListing | null]> transfer: (wallet: Wallet | null, toAddress: string, nft: NFT) => Promise } -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export class NFTService {} - export interface OrderService { fetchOrders: (params: OrderFilters, sortBy: OrderSortBy) => Promise create: (wallet: Wallet | null, nft: NFT, price: number, expiresAt: number) => Promise @@ -41,9 +37,6 @@ export interface OrderService { cancel: (wallet: Wallet | null, order: Order) => Promise canSell(): boolean } -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export class OrderService {} - export interface BidService { fetchBySeller: (seller: string) => Promise fetchByBidder: (bidder: string) => Promise @@ -52,11 +45,8 @@ export interface BidService { accept: (wallet: Wallet | null, bid: Bid) => Promise cancel: (wallet: Wallet | null, bid: Bid) => Promise } -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export class BidService {} export interface ContractService { getContracts(): Promise getTransferType: (address: string) => TransferType } -export class ContractService {}