diff --git a/package-lock.json b/package-lock.json index 4fcc8ec..a2b6418 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,8 +10,8 @@ "dependencies": { "@emotion/react": "^11.10.4", "@emotion/styled": "^11.10.4", - "@fairdatasociety/fdp-contracts-js": "^3.8.0", - "@fairdatasociety/fdp-storage": "^0.10.0", + "@fairdatasociety/fdp-contracts-js": "^3.10.0", + "@fairdatasociety/fdp-storage": "^0.17.0", "@mui/icons-material": "^5.10.6", "@mui/material": "^5.10.7", "@testing-library/jest-dom": "^5.16.5", @@ -2608,14 +2608,14 @@ } }, "node_modules/@ethersphere/bee-js": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@ethersphere/bee-js/-/bee-js-6.0.0.tgz", - "integrity": "sha512-Ae+GTGSmNjLY1mw2kz9GmXtHqjU3/OHKb6jeXJuh8oLuHKGXJ1LbhUCSlV5aX0dOA83H/4iay4B8OEqjIJmv4w==", + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/@ethersphere/bee-js/-/bee-js-6.7.0.tgz", + "integrity": "sha512-t1bsUj9BmICuRL6XENTVyZZCfkFuCjc6pQxOekuVFLBd0Qpmyf87iRpVizvZN5IKhVqqw9xCzkg8otJKQdAKNA==", "dependencies": { "@ethersphere/swarm-cid": "^0.1.0", "@types/readable-stream": "^2.3.13", - "axios": "^1.3.4", - "cafe-utility": "^9.0.1", + "axios": "^0.27.2", + "cafe-utility": "^10.8.1", "elliptic": "^6.5.4", "fetch-blob": "2.1.2", "isomorphic-ws": "^4.0.1", @@ -2633,16 +2633,6 @@ "npm": ">=6.0.0" } }, - "node_modules/@ethersphere/bee-js/node_modules/axios": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz", - "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==", - "dependencies": { - "follow-redirects": "^1.15.0", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - } - }, "node_modules/@ethersphere/bee-js/node_modules/semver": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", @@ -3366,29 +3356,34 @@ } }, "node_modules/@fairdatasociety/fdp-contracts-js": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/@fairdatasociety/fdp-contracts-js/-/fdp-contracts-js-3.8.0.tgz", - "integrity": "sha512-Lfr/kxCBZ4IYWwAkeRa2fSi9suYd5DxTG5xunfuwMm32FeB99fL7tI19sb5tjPyRj6bphJPaRWmFCdPJ+yfZsg==", + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/@fairdatasociety/fdp-contracts-js/-/fdp-contracts-js-3.10.0.tgz", + "integrity": "sha512-kaHu9UZBs2s58PQZ6o2SUn4vtswLBPLkIdFt8WH+6uHO8WA73gOGK5Ue9/WIN1tYu/bcgQpNNiO5xhQn99mW5g==", "peerDependencies": { "ethers": ">=5.6.4" } }, "node_modules/@fairdatasociety/fdp-storage": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/@fairdatasociety/fdp-storage/-/fdp-storage-0.10.0.tgz", - "integrity": "sha512-VubhcQ2dhV+ntmuEa11jhzntSbIa0HKFcuNpbyo3WDQ7Wha13+NkCDL4bs07PRhzWCETrOcmkCJxoAHh2r6n9A==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@fairdatasociety/fdp-storage/-/fdp-storage-0.17.0.tgz", + "integrity": "sha512-ki1YtdGdTB4widXDn+aUeqiLRmtXBcHFw5VyF/Lljugw91xgRb3gWDG9nn5UFWfju1Wm/2CY7btS/EixaBFHNA==", "dependencies": { - "@ethersphere/bee-js": "^6.0.0", - "@fairdatasociety/fdp-contracts-js": "^3.7.1", - "crypto-js": "^4.1.1", + "@ethersphere/bee-js": "^6.2.0", + "@fairdatasociety/fdp-contracts-js": "^3.10.0", + "crypto-js": "^4.2.0", "ethers": "^5.5.2", - "js-sha3": "^0.8.0" + "js-sha3": "^0.9.2" }, "engines": { "node": ">=16.0.0", - "npm": ">=8.0.0" + "npm": ">=9.0.0" } }, + "node_modules/@fairdatasociety/fdp-storage/node_modules/js-sha3": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.9.3.tgz", + "integrity": "sha512-BcJPCQeLg6WjEx3FE591wVAevlli8lxsxm9/FzV4HXkV49TmBH38Yvrpce6fjbADGMKFrBMGTqrVz3qPIZ88Gg==" + }, "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", @@ -10332,9 +10327,9 @@ } }, "node_modules/cafe-utility": { - "version": "9.10.0", - "resolved": "https://registry.npmjs.org/cafe-utility/-/cafe-utility-9.10.0.tgz", - "integrity": "sha512-m14jYM3DbtMcCfp09HzLI4mdd3jbgR6+bb3a0jB/HC2pQnIB+5LS45wrcUt2XPHq2YUkVmhHzyRbnesIHer6uQ==" + "version": "10.29.0", + "resolved": "https://registry.npmjs.org/cafe-utility/-/cafe-utility-10.29.0.tgz", + "integrity": "sha512-B9smYtLQ0iicTMT2RMuflXNIIDRnny+Evdg5ztoJLom2B2V3Xd1te8IiHvWM0elqUbcjTI4ODrBGQeLluWsDwA==" }, "node_modules/call-bind": { "version": "1.0.2", @@ -11165,9 +11160,9 @@ } }, "node_modules/crypto-js": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz", - "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==" + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", + "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==" }, "node_modules/crypto-random-string": { "version": "2.0.0", @@ -23667,7 +23662,8 @@ "node_modules/proxy-from-env": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true }, "node_modules/psl": { "version": "1.9.0", @@ -31579,14 +31575,14 @@ } }, "@ethersphere/bee-js": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@ethersphere/bee-js/-/bee-js-6.0.0.tgz", - "integrity": "sha512-Ae+GTGSmNjLY1mw2kz9GmXtHqjU3/OHKb6jeXJuh8oLuHKGXJ1LbhUCSlV5aX0dOA83H/4iay4B8OEqjIJmv4w==", + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/@ethersphere/bee-js/-/bee-js-6.7.0.tgz", + "integrity": "sha512-t1bsUj9BmICuRL6XENTVyZZCfkFuCjc6pQxOekuVFLBd0Qpmyf87iRpVizvZN5IKhVqqw9xCzkg8otJKQdAKNA==", "requires": { "@ethersphere/swarm-cid": "^0.1.0", "@types/readable-stream": "^2.3.13", - "axios": "^1.3.4", - "cafe-utility": "^9.0.1", + "axios": "^0.27.2", + "cafe-utility": "^10.8.1", "elliptic": "^6.5.4", "fetch-blob": "2.1.2", "isomorphic-ws": "^4.0.1", @@ -31597,16 +31593,6 @@ "ws": "^8.7.0" }, "dependencies": { - "axios": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz", - "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==", - "requires": { - "follow-redirects": "^1.15.0", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - } - }, "semver": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", @@ -32012,21 +31998,28 @@ } }, "@fairdatasociety/fdp-contracts-js": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/@fairdatasociety/fdp-contracts-js/-/fdp-contracts-js-3.8.0.tgz", - "integrity": "sha512-Lfr/kxCBZ4IYWwAkeRa2fSi9suYd5DxTG5xunfuwMm32FeB99fL7tI19sb5tjPyRj6bphJPaRWmFCdPJ+yfZsg==", + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/@fairdatasociety/fdp-contracts-js/-/fdp-contracts-js-3.10.0.tgz", + "integrity": "sha512-kaHu9UZBs2s58PQZ6o2SUn4vtswLBPLkIdFt8WH+6uHO8WA73gOGK5Ue9/WIN1tYu/bcgQpNNiO5xhQn99mW5g==", "requires": {} }, "@fairdatasociety/fdp-storage": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/@fairdatasociety/fdp-storage/-/fdp-storage-0.10.0.tgz", - "integrity": "sha512-VubhcQ2dhV+ntmuEa11jhzntSbIa0HKFcuNpbyo3WDQ7Wha13+NkCDL4bs07PRhzWCETrOcmkCJxoAHh2r6n9A==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@fairdatasociety/fdp-storage/-/fdp-storage-0.17.0.tgz", + "integrity": "sha512-ki1YtdGdTB4widXDn+aUeqiLRmtXBcHFw5VyF/Lljugw91xgRb3gWDG9nn5UFWfju1Wm/2CY7btS/EixaBFHNA==", "requires": { - "@ethersphere/bee-js": "^6.0.0", - "@fairdatasociety/fdp-contracts-js": "^3.7.1", - "crypto-js": "^4.1.1", + "@ethersphere/bee-js": "^6.2.0", + "@fairdatasociety/fdp-contracts-js": "^3.10.0", + "crypto-js": "^4.2.0", "ethers": "^5.5.2", - "js-sha3": "^0.8.0" + "js-sha3": "^0.9.2" + }, + "dependencies": { + "js-sha3": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.9.3.tgz", + "integrity": "sha512-BcJPCQeLg6WjEx3FE591wVAevlli8lxsxm9/FzV4HXkV49TmBH38Yvrpce6fjbADGMKFrBMGTqrVz3qPIZ88Gg==" + } } }, "@formatjs/intl-unified-numberformat": { @@ -37313,9 +37306,9 @@ } }, "cafe-utility": { - "version": "9.10.0", - "resolved": "https://registry.npmjs.org/cafe-utility/-/cafe-utility-9.10.0.tgz", - "integrity": "sha512-m14jYM3DbtMcCfp09HzLI4mdd3jbgR6+bb3a0jB/HC2pQnIB+5LS45wrcUt2XPHq2YUkVmhHzyRbnesIHer6uQ==" + "version": "10.29.0", + "resolved": "https://registry.npmjs.org/cafe-utility/-/cafe-utility-10.29.0.tgz", + "integrity": "sha512-B9smYtLQ0iicTMT2RMuflXNIIDRnny+Evdg5ztoJLom2B2V3Xd1te8IiHvWM0elqUbcjTI4ODrBGQeLluWsDwA==" }, "call-bind": { "version": "1.0.2", @@ -37967,9 +37960,9 @@ } }, "crypto-js": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz", - "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==" + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", + "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==" }, "crypto-random-string": { "version": "2.0.0", @@ -47201,7 +47194,8 @@ "proxy-from-env": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true }, "psl": { "version": "1.9.0", diff --git a/package.json b/package.json index 13c458d..23ecfe2 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "dependencies": { "@emotion/react": "^11.10.4", "@emotion/styled": "^11.10.4", - "@fairdatasociety/fdp-contracts-js": "^3.8.0", - "@fairdatasociety/fdp-storage": "^0.10.0", + "@fairdatasociety/fdp-contracts-js": "^3.10.0", + "@fairdatasociety/fdp-storage": "^0.17.0", "@mui/icons-material": "^5.10.6", "@mui/material": "^5.10.7", "@testing-library/jest-dom": "^5.16.5", diff --git a/src/context/network.context.tsx b/src/context/network.context.tsx index d707a75..31e4bb5 100644 --- a/src/context/network.context.tsx +++ b/src/context/network.context.tsx @@ -29,6 +29,11 @@ export const networks: Network[] = [ config: getEnsEnvironmentConfig(Environments.ARBITRUM_GOERLI), minBalance: utils.parseUnits("0.001", "ether"), }, + { + label: "zkEVM Testnet", + config: getEnsEnvironmentConfig(Environments.ZKEVM_TESTNET), + minBalance: utils.parseUnits("0.001", "ether"), + }, ]; if (process.env.REACT_APP_ENVIRONMENT === "LOCALHOST") { diff --git a/src/model/network.model.ts b/src/model/network.model.ts index da167fe..2768822 100644 --- a/src/model/network.model.ts +++ b/src/model/network.model.ts @@ -9,8 +9,11 @@ export interface Network { ensRegistry: string; fdsRegistrar: string; publicResolver: string; + reverseResolver: string; + nameResolver: string; }; gasEstimation: number; performChecks: boolean; + gasEstimation: number; }; }