From 700d0a68a464466f0127d860e63ec0ea91b76ec5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 20:20:38 +0000 Subject: [PATCH 01/46] Bump @headlessui/react from 1.4.2 to 1.4.3 (#156) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1a17078..74d91fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "@fortawesome/free-regular-svg-icons": "^5.15.4", "@fortawesome/free-solid-svg-icons": "^5.15.4", "@fortawesome/react-fontawesome": "^0.1.16", - "@headlessui/react": "^1.4.2", + "@headlessui/react": "^1.4.3", "@testing-library/jest-dom": "^5.16.1", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", @@ -2250,9 +2250,9 @@ } }, "node_modules/@headlessui/react": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.4.2.tgz", - "integrity": "sha512-N8tv7kLhg9qGKBkVdtg572BvKvWhmiudmeEpOCyNwzOsZHCXBtl8AazGikIfUS+vBoub20Fse3BjawXDVPPdug==", + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.4.3.tgz", + "integrity": "sha512-n2IQkaaw0aAAlQS5MEXsM4uRK+w18CrM72EqnGRl/UBOQeQajad8oiKXR9Nk15jOzTFQjpxzrZMf1NxHidFBiw==", "engines": { "node": ">=10" }, @@ -21005,9 +21005,9 @@ } }, "@headlessui/react": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.4.2.tgz", - "integrity": "sha512-N8tv7kLhg9qGKBkVdtg572BvKvWhmiudmeEpOCyNwzOsZHCXBtl8AazGikIfUS+vBoub20Fse3BjawXDVPPdug==", + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.4.3.tgz", + "integrity": "sha512-n2IQkaaw0aAAlQS5MEXsM4uRK+w18CrM72EqnGRl/UBOQeQajad8oiKXR9Nk15jOzTFQjpxzrZMf1NxHidFBiw==", "requires": {} }, "@istanbuljs/load-nyc-config": { diff --git a/package.json b/package.json index be1adae..43d98b8 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@fortawesome/free-regular-svg-icons": "^5.15.4", "@fortawesome/free-solid-svg-icons": "^5.15.4", "@fortawesome/react-fontawesome": "^0.1.16", - "@headlessui/react": "^1.4.2", + "@headlessui/react": "^1.4.3", "@testing-library/jest-dom": "^5.16.1", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", From 242272bb5b251c2fb0c8b6b1061253d6df92c293 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 20:21:27 +0000 Subject: [PATCH 02/46] Bump @chainlink/contracts from 0.2.2 to 0.3.1 (#153) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 74d91fa..48e6251 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@blackbox-vision/react-qr-reader": "^5.0.0", - "@chainlink/contracts": "^0.2.2", + "@chainlink/contracts": "^0.3.1", "@craco/craco": "^6.4.3", "@fontsource/fira-code": "^4.5.2", "@fontsource/roboto": "^4.5.1", @@ -1229,9 +1229,9 @@ } }, "node_modules/@chainlink/contracts": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@chainlink/contracts/-/contracts-0.2.2.tgz", - "integrity": "sha512-wxXPbt7O3aZaUSG34ufFASC5amRSL6eeYCqsa+2gpqbB8Hk7B7FydEDCI5dqvAC444TlFskPHcVbizCZkRHPpw==" + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@chainlink/contracts/-/contracts-0.3.1.tgz", + "integrity": "sha512-A8DRvmfNCwLS1iduPPj7wNAZJMe9/ZimMhoHhbbBiq+7Vq/HFjiNcdoQ5NinFdXD5aTsoNUGG5pAYKj7YMpm9A==" }, "node_modules/@cnakazawa/watch": { "version": "1.0.4", @@ -20407,9 +20407,9 @@ } }, "@chainlink/contracts": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@chainlink/contracts/-/contracts-0.2.2.tgz", - "integrity": "sha512-wxXPbt7O3aZaUSG34ufFASC5amRSL6eeYCqsa+2gpqbB8Hk7B7FydEDCI5dqvAC444TlFskPHcVbizCZkRHPpw==" + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@chainlink/contracts/-/contracts-0.3.1.tgz", + "integrity": "sha512-A8DRvmfNCwLS1iduPPj7wNAZJMe9/ZimMhoHhbbBiq+7Vq/HFjiNcdoQ5NinFdXD5aTsoNUGG5pAYKj7YMpm9A==" }, "@cnakazawa/watch": { "version": "1.0.4", diff --git a/package.json b/package.json index 43d98b8..584dbc5 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "MIT", "dependencies": { "@blackbox-vision/react-qr-reader": "^5.0.0", - "@chainlink/contracts": "^0.2.2", + "@chainlink/contracts": "^0.3.1", "@craco/craco": "^6.4.3", "@fontsource/fira-code": "^4.5.2", "@fontsource/roboto": "^4.5.1", From 7be412199cb61244532767d9f6388c80a6a1bc54 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 20:28:41 +0000 Subject: [PATCH 03/46] Bump @types/react from 17.0.38 to 17.0.39 (#158) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 48e6251..5dd7043 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "@testing-library/user-event": "^12.1.10", "@types/jest": "^26.0.24", "@types/node": "^16.11.14", - "@types/react": "^17.0.38", + "@types/react": "^17.0.39", "@types/react-blockies": "^1.4.1", "@types/react-dom": "^17.0.11", "@types/react-highlight": "^0.12.5", @@ -3233,9 +3233,9 @@ "license": "MIT" }, "node_modules/@types/react": { - "version": "17.0.38", - "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.38.tgz", - "integrity": "sha512-SI92X1IA+FMnP3qM5m4QReluXzhcmovhZnLNm3pyeQlooi02qI7sLiepEYqT678uNiyc25XfCqxREFpy3W7YhQ==", + "version": "17.0.39", + "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.39.tgz", + "integrity": "sha512-UVavlfAxDd/AgAacMa60Azl7ygyQNRwC/DsHZmKgNvPmRR5p70AJ5Q9EAmL2NWOJmeV+vVUI4IAP7GZrN8h8Ug==", "dependencies": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -21643,9 +21643,9 @@ "version": "1.5.4" }, "@types/react": { - "version": "17.0.38", - "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.38.tgz", - "integrity": "sha512-SI92X1IA+FMnP3qM5m4QReluXzhcmovhZnLNm3pyeQlooi02qI7sLiepEYqT678uNiyc25XfCqxREFpy3W7YhQ==", + "version": "17.0.39", + "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.39.tgz", + "integrity": "sha512-UVavlfAxDd/AgAacMa60Azl7ygyQNRwC/DsHZmKgNvPmRR5p70AJ5Q9EAmL2NWOJmeV+vVUI4IAP7GZrN8h8Ug==", "requires": { "@types/prop-types": "*", "@types/scheduler": "*", diff --git a/package.json b/package.json index 584dbc5..d5d34eb 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "@testing-library/user-event": "^12.1.10", "@types/jest": "^26.0.24", "@types/node": "^16.11.14", - "@types/react": "^17.0.38", + "@types/react": "^17.0.39", "@types/react-blockies": "^1.4.1", "@types/react-dom": "^17.0.11", "@types/react-highlight": "^0.12.5", From f2c43305168316c43adc47ef875660166a5bfd3a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 20:29:53 +0000 Subject: [PATCH 04/46] Bump ethers from 5.5.2 to 5.5.4 (#157) --- package-lock.json | 62 +++++++++++++++++++++++------------------------ package.json | 2 +- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5dd7043..b271916 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "@types/react-highlight": "^0.12.5", "@types/react-syntax-highlighter": "^13.5.2", "chart.js": "^3.7.0", - "ethers": "^5.5.2", + "ethers": "^5.5.4", "highlightjs-solidity": "^2.0.3", "react": "^17.0.2", "react-blockies": "^1.4.1", @@ -1775,9 +1775,9 @@ ] }, "node_modules/@ethersproject/networks": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.5.1.tgz", - "integrity": "sha512-tYRDM4zZtSUcKnD4UMuAlj7SeXH/k5WC4SP2u1Pn57++JdXHkRu2zwNkgNogZoxHzhm9Q6qqurDBVptHOsW49Q==", + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.5.2.tgz", + "integrity": "sha512-NEqPxbGBfy6O3x4ZTISb90SjEDkWYDUbEeIFhJly0F7sZjoQMnj5KYzMSkMkLKZ+1fGpx00EDpHQCy6PrDupkQ==", "funding": [ { "type": "individual", @@ -1830,9 +1830,9 @@ } }, "node_modules/@ethersproject/providers": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.5.1.tgz", - "integrity": "sha512-2zdD5sltACDWhjUE12Kucg2PcgM6V2q9JMyVvObtVGnzJu+QSmibbP+BHQyLWZUBfLApx2942+7DC5D+n4wBQQ==", + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.5.3.tgz", + "integrity": "sha512-ZHXxXXXWHuwCQKrgdpIkbzMNJMvs+9YWemanwp1fA7XZEv7QlilseysPvQe0D7Q7DlkJX/w/bGA1MdgK2TbGvA==", "funding": [ { "type": "individual", @@ -1886,9 +1886,9 @@ } }, "node_modules/@ethersproject/random": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@ethersproject/random/-/random-5.5.0.tgz", - "integrity": "sha512-egGYZwZ/YIFKMHcoBUo8t3a8Hb/TKYX8BCBoLjudVCZh892welR3jOxgOmb48xznc9bTcMm7Tpwc1gHC1PFNFQ==", + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/@ethersproject/random/-/random-5.5.1.tgz", + "integrity": "sha512-YaU2dQ7DuhL5Au7KbcQLHxcRHfgyNgvFV4sQOo0HrtW3Zkrc9ctWNz8wXQ4uCSfSDsqX2vcjhroxU5RQRV0nqA==", "funding": [ { "type": "individual", @@ -8201,9 +8201,9 @@ } }, "node_modules/ethers": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.5.2.tgz", - "integrity": "sha512-EF5W+6Wwcu6BqVwpgmyR5U2+L4c1FQzlM/02dkZOugN3KF0cG9bzHZP+TDJglmPm2/IzCEJDT7KBxzayk7SAHw==", + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.5.4.tgz", + "integrity": "sha512-N9IAXsF8iKhgHIC6pquzRgPBJEzc9auw3JoRkaKe+y4Wl/LFBtDDunNe7YmdomontECAcC5APaAgWZBiu1kirw==", "funding": [ { "type": "individual", @@ -8230,11 +8230,11 @@ "@ethersproject/json-wallets": "5.5.0", "@ethersproject/keccak256": "5.5.0", "@ethersproject/logger": "5.5.0", - "@ethersproject/networks": "5.5.1", + "@ethersproject/networks": "5.5.2", "@ethersproject/pbkdf2": "5.5.0", "@ethersproject/properties": "5.5.0", - "@ethersproject/providers": "5.5.1", - "@ethersproject/random": "5.5.0", + "@ethersproject/providers": "5.5.3", + "@ethersproject/random": "5.5.1", "@ethersproject/rlp": "5.5.0", "@ethersproject/sha2": "5.5.0", "@ethersproject/signing-key": "5.5.0", @@ -20721,9 +20721,9 @@ "integrity": "sha512-rIY/6WPm7T8n3qS2vuHTUBPdXHl+rGxWxW5okDfo9J4Z0+gRRZT0msvUdIJkE4/HS29GUMziwGaaKO2bWONBrg==" }, "@ethersproject/networks": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.5.1.tgz", - "integrity": "sha512-tYRDM4zZtSUcKnD4UMuAlj7SeXH/k5WC4SP2u1Pn57++JdXHkRu2zwNkgNogZoxHzhm9Q6qqurDBVptHOsW49Q==", + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.5.2.tgz", + "integrity": "sha512-NEqPxbGBfy6O3x4ZTISb90SjEDkWYDUbEeIFhJly0F7sZjoQMnj5KYzMSkMkLKZ+1fGpx00EDpHQCy6PrDupkQ==", "requires": { "@ethersproject/logger": "^5.5.0" } @@ -20746,9 +20746,9 @@ } }, "@ethersproject/providers": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.5.1.tgz", - "integrity": "sha512-2zdD5sltACDWhjUE12Kucg2PcgM6V2q9JMyVvObtVGnzJu+QSmibbP+BHQyLWZUBfLApx2942+7DC5D+n4wBQQ==", + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.5.3.tgz", + "integrity": "sha512-ZHXxXXXWHuwCQKrgdpIkbzMNJMvs+9YWemanwp1fA7XZEv7QlilseysPvQe0D7Q7DlkJX/w/bGA1MdgK2TbGvA==", "requires": { "@ethersproject/abstract-provider": "^5.5.0", "@ethersproject/abstract-signer": "^5.5.0", @@ -20780,9 +20780,9 @@ } }, "@ethersproject/random": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@ethersproject/random/-/random-5.5.0.tgz", - "integrity": "sha512-egGYZwZ/YIFKMHcoBUo8t3a8Hb/TKYX8BCBoLjudVCZh892welR3jOxgOmb48xznc9bTcMm7Tpwc1gHC1PFNFQ==", + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/@ethersproject/random/-/random-5.5.1.tgz", + "integrity": "sha512-YaU2dQ7DuhL5Au7KbcQLHxcRHfgyNgvFV4sQOo0HrtW3Zkrc9ctWNz8wXQ4uCSfSDsqX2vcjhroxU5RQRV0nqA==", "requires": { "@ethersproject/bytes": "^5.5.0", "@ethersproject/logger": "^5.5.0" @@ -25004,9 +25004,9 @@ "version": "1.8.1" }, "ethers": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.5.2.tgz", - "integrity": "sha512-EF5W+6Wwcu6BqVwpgmyR5U2+L4c1FQzlM/02dkZOugN3KF0cG9bzHZP+TDJglmPm2/IzCEJDT7KBxzayk7SAHw==", + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.5.4.tgz", + "integrity": "sha512-N9IAXsF8iKhgHIC6pquzRgPBJEzc9auw3JoRkaKe+y4Wl/LFBtDDunNe7YmdomontECAcC5APaAgWZBiu1kirw==", "requires": { "@ethersproject/abi": "5.5.0", "@ethersproject/abstract-provider": "5.5.1", @@ -25023,11 +25023,11 @@ "@ethersproject/json-wallets": "5.5.0", "@ethersproject/keccak256": "5.5.0", "@ethersproject/logger": "5.5.0", - "@ethersproject/networks": "5.5.1", + "@ethersproject/networks": "5.5.2", "@ethersproject/pbkdf2": "5.5.0", "@ethersproject/properties": "5.5.0", - "@ethersproject/providers": "5.5.1", - "@ethersproject/random": "5.5.0", + "@ethersproject/providers": "5.5.3", + "@ethersproject/random": "5.5.1", "@ethersproject/rlp": "5.5.0", "@ethersproject/sha2": "5.5.0", "@ethersproject/signing-key": "5.5.0", diff --git a/package.json b/package.json index d5d34eb..d4c8752 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "@types/react-highlight": "^0.12.5", "@types/react-syntax-highlighter": "^13.5.2", "chart.js": "^3.7.0", - "ethers": "^5.5.2", + "ethers": "^5.5.4", "highlightjs-solidity": "^2.0.3", "react": "^17.0.2", "react-blockies": "^1.4.1", From 34121f850c57f2ebc3a9047a2bb8dd5747352a63 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 20:51:37 +0000 Subject: [PATCH 05/46] Bump ssri from 6.0.1 to 6.0.2 (#161) --- package-lock.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b271916..590a31c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19173,8 +19173,9 @@ } }, "node_modules/webpack/node_modules/ssri": { - "version": "6.0.1", - "license": "ISC", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.2.tgz", + "integrity": "sha512-cepbSq/neFK7xB6A50KHN0xHDotYzq58wWCa5LeWqnPrHG8GzfEjO/4O8kpmcGW+oaxkvhEJCWgbgNk4/ZV93Q==", "dependencies": { "figgy-pudding": "^3.5.1" } @@ -32174,7 +32175,9 @@ } }, "ssri": { - "version": "6.0.1", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.2.tgz", + "integrity": "sha512-cepbSq/neFK7xB6A50KHN0xHDotYzq58wWCa5LeWqnPrHG8GzfEjO/4O8kpmcGW+oaxkvhEJCWgbgNk4/ZV93Q==", "requires": { "figgy-pudding": "^3.5.1" } From 4a1076a92d824f501cf7080e28ba86b12608f1b4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 20:51:55 +0000 Subject: [PATCH 06/46] Bump ws from 6.2.1 to 6.2.2 (#160) --- package-lock.json | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 590a31c..5a27969 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11151,8 +11151,9 @@ } }, "node_modules/jsdom/node_modules/ws": { - "version": "7.4.3", - "license": "MIT", + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.6.tgz", + "integrity": "sha512-6GLgCqo2cy2A2rjCNFlxQS6ZljG/coZfZXclldI8FB/1G3CCI36Zd8xy2HrFVACi8tfk5XrgLQEk+P0Tnz9UcA==", "engines": { "node": ">=8.3.0" }, @@ -19503,8 +19504,9 @@ } }, "node_modules/ws": { - "version": "6.2.1", - "license": "MIT", + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz", + "integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==", "dependencies": { "async-limiter": "~1.0.0" } @@ -26967,7 +26969,9 @@ } }, "ws": { - "version": "7.4.3", + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.6.tgz", + "integrity": "sha512-6GLgCqo2cy2A2rjCNFlxQS6ZljG/coZfZXclldI8FB/1G3CCI36Zd8xy2HrFVACi8tfk5XrgLQEk+P0Tnz9UcA==", "requires": {} } } @@ -32665,7 +32669,9 @@ } }, "ws": { - "version": "6.2.1", + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz", + "integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==", "requires": { "async-limiter": "~1.0.0" } From 4f73ccf89ee53df983615f5d5237afb20998ef98 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 20:52:36 +0000 Subject: [PATCH 07/46] Bump nanoid from 3.1.23 to 3.2.0 (#159) --- package-lock.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5a27969..8ece9df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11935,9 +11935,9 @@ "optional": true }, "node_modules/nanoid": { - "version": "3.1.23", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.23.tgz", - "integrity": "sha512-FiB0kzdP0FFVGDKlRLEQ1BgDzU87dy5NnzjeW9YZNt+/c3+q82EQDUwniSAUxp/F0gFNI1ZhKU1FqYsMuqZVnw==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.2.0.tgz", + "integrity": "sha512-fmsZYa9lpn69Ad5eDn7FMcnnSR+8R34W9qJEijxYhTbfOWzr22n1QxCMzXLK+ODyW2973V3Fux959iQoUxzUIA==", "bin": { "nanoid": "bin/nanoid.cjs" }, @@ -27473,9 +27473,9 @@ "optional": true }, "nanoid": { - "version": "3.1.23", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.23.tgz", - "integrity": "sha512-FiB0kzdP0FFVGDKlRLEQ1BgDzU87dy5NnzjeW9YZNt+/c3+q82EQDUwniSAUxp/F0gFNI1ZhKU1FqYsMuqZVnw==" + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.2.0.tgz", + "integrity": "sha512-fmsZYa9lpn69Ad5eDn7FMcnnSR+8R34W9qJEijxYhTbfOWzr22n1QxCMzXLK+ODyW2973V3Fux959iQoUxzUIA==" }, "nanomatch": { "version": "1.2.13", From b77dcc9ac1a03fbab269e89f12ff7d8e4250d817 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 20:53:26 +0000 Subject: [PATCH 08/46] Bump follow-redirects from 1.13.2 to 1.14.7 (#162) --- package-lock.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8ece9df..e274584 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8755,14 +8755,15 @@ } }, "node_modules/follow-redirects": { - "version": "1.13.2", + "version": "1.14.7", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", + "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==", "funding": [ { "type": "individual", "url": "https://github.com/sponsors/RubenVerborgh" } ], - "license": "MIT", "engines": { "node": ">=4.0" }, @@ -25422,7 +25423,9 @@ } }, "follow-redirects": { - "version": "1.13.2" + "version": "1.14.7", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", + "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==" }, "for-in": { "version": "1.0.2" From 9504bb0d26417c0975e141288a4886019fb62404 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 5 Feb 2022 17:56:11 +0000 Subject: [PATCH 09/46] Bump @fontsource/space-grotesk from 4.5.0 to 4.5.1 (#164) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index e274584..c9119d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@fontsource/fira-code": "^4.5.2", "@fontsource/roboto": "^4.5.1", "@fontsource/roboto-mono": "^4.5.0", - "@fontsource/space-grotesk": "^4.5.0", + "@fontsource/space-grotesk": "^4.5.1", "@fortawesome/fontawesome-svg-core": "^1.2.36", "@fortawesome/free-brands-svg-icons": "^5.15.4", "@fortawesome/free-regular-svg-icons": "^5.15.4", @@ -2147,9 +2147,9 @@ "integrity": "sha512-/6Gm6fJjBHZiFNyvzIKGJkVuyifoc1aoTel+pkzdhxNh7yNhFyokCoChdbbqZEpGKpqs5uld74G5TJthUVFyjw==" }, "node_modules/@fontsource/space-grotesk": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/@fontsource/space-grotesk/-/space-grotesk-4.5.0.tgz", - "integrity": "sha512-Kdnq5m31DsJ8l/VCpZGz4QpIxLLvNVh4MyVGY0PmDh7aY9aM5rmO2NF49dJ0749gLPgMW6Moc/xjgW95G0MbMg==" + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@fontsource/space-grotesk/-/space-grotesk-4.5.1.tgz", + "integrity": "sha512-RWw+cCaJIsdYKVbkpmDHQAvXujddYrEhyi8yNWxP4l7mq0Hn0OIZHkb40bLMmwsRzE4EVt8+bNLXhwpp5jybuA==" }, "node_modules/@fortawesome/fontawesome-common-types": { "version": "0.2.36", @@ -20935,9 +20935,9 @@ "integrity": "sha512-/6Gm6fJjBHZiFNyvzIKGJkVuyifoc1aoTel+pkzdhxNh7yNhFyokCoChdbbqZEpGKpqs5uld74G5TJthUVFyjw==" }, "@fontsource/space-grotesk": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/@fontsource/space-grotesk/-/space-grotesk-4.5.0.tgz", - "integrity": "sha512-Kdnq5m31DsJ8l/VCpZGz4QpIxLLvNVh4MyVGY0PmDh7aY9aM5rmO2NF49dJ0749gLPgMW6Moc/xjgW95G0MbMg==" + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@fontsource/space-grotesk/-/space-grotesk-4.5.1.tgz", + "integrity": "sha512-RWw+cCaJIsdYKVbkpmDHQAvXujddYrEhyi8yNWxP4l7mq0Hn0OIZHkb40bLMmwsRzE4EVt8+bNLXhwpp5jybuA==" }, "@fortawesome/fontawesome-common-types": { "version": "0.2.36", diff --git a/package.json b/package.json index d4c8752..4ce56b7 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "@fontsource/fira-code": "^4.5.2", "@fontsource/roboto": "^4.5.1", "@fontsource/roboto-mono": "^4.5.0", - "@fontsource/space-grotesk": "^4.5.0", + "@fontsource/space-grotesk": "^4.5.1", "@fortawesome/fontawesome-svg-core": "^1.2.36", "@fortawesome/free-brands-svg-icons": "^5.15.4", "@fortawesome/free-regular-svg-icons": "^5.15.4", From d9f6816389cec624f315c02590ac529d82abada8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 5 Feb 2022 17:56:25 +0000 Subject: [PATCH 10/46] Bump @testing-library/jest-dom from 5.16.1 to 5.16.2 (#165) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index c9119d9..325b352 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "@fortawesome/free-solid-svg-icons": "^5.15.4", "@fortawesome/react-fontawesome": "^0.1.16", "@headlessui/react": "^1.4.3", - "@testing-library/jest-dom": "^5.16.1", + "@testing-library/jest-dom": "^5.16.2", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", "@types/jest": "^26.0.24", @@ -2970,9 +2970,9 @@ } }, "node_modules/@testing-library/jest-dom": { - "version": "5.16.1", - "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.1.tgz", - "integrity": "sha512-ajUJdfDIuTCadB79ukO+0l8O+QwN0LiSxDaYUTI4LndbbUsGi6rWU1SCexXzBA2NSjlVB9/vbkasQIL3tmPBjw==", + "version": "5.16.2", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.2.tgz", + "integrity": "sha512-6ewxs1MXWwsBFZXIk4nKKskWANelkdUehchEOokHsN8X7c2eKXGw+77aRV63UU8f/DTSVUPLaGxdrj4lN7D/ug==", "dependencies": { "@babel/runtime": "^7.9.2", "@types/testing-library__jest-dom": "^5.9.1", @@ -21440,9 +21440,9 @@ } }, "@testing-library/jest-dom": { - "version": "5.16.1", - "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.1.tgz", - "integrity": "sha512-ajUJdfDIuTCadB79ukO+0l8O+QwN0LiSxDaYUTI4LndbbUsGi6rWU1SCexXzBA2NSjlVB9/vbkasQIL3tmPBjw==", + "version": "5.16.2", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.2.tgz", + "integrity": "sha512-6ewxs1MXWwsBFZXIk4nKKskWANelkdUehchEOokHsN8X7c2eKXGw+77aRV63UU8f/DTSVUPLaGxdrj4lN7D/ug==", "requires": { "@babel/runtime": "^7.9.2", "@types/testing-library__jest-dom": "^5.9.1", diff --git a/package.json b/package.json index 4ce56b7..e7f948c 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "@fortawesome/free-solid-svg-icons": "^5.15.4", "@fortawesome/react-fontawesome": "^0.1.16", "@headlessui/react": "^1.4.3", - "@testing-library/jest-dom": "^5.16.1", + "@testing-library/jest-dom": "^5.16.2", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", "@types/jest": "^26.0.24", From f6c9210a9c362cabc91470627a92485ed78d2788 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 5 Feb 2022 17:56:57 +0000 Subject: [PATCH 11/46] Bump swr from 1.1.2 to 1.2.1 (#163) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 325b352..faa967d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -46,7 +46,7 @@ "react-scripts": "4.0.3", "react-syntax-highlighter": "^15.4.5", "serve": "^13.0.2", - "swr": "^1.1.2", + "swr": "^1.2.1", "typescript": "^4.5.4", "use-keyboard-shortcut": "^1.1.2", "web-vitals": "^1.0.1" @@ -17209,9 +17209,9 @@ } }, "node_modules/swr": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/swr/-/swr-1.1.2.tgz", - "integrity": "sha512-UsM0eo5T+kRPyWFZtWRx2XR5qzohs/LS4lDC0GCyLpCYFmsfTk28UCVDbOE9+KtoXY4FnwHYiF+ZYEU3hnJ1lQ==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/swr/-/swr-1.2.1.tgz", + "integrity": "sha512-1cuWXqJqXcFwbgONGCY4PHZ8v05009JdHsC3CIC6u7d00kgbMswNr1sHnnhseOBxtzVqcCNpOHEgVDciRer45w==", "peerDependencies": { "react": "^16.11.0 || ^17.0.0 || ^18.0.0" } @@ -31087,9 +31087,9 @@ } }, "swr": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/swr/-/swr-1.1.2.tgz", - "integrity": "sha512-UsM0eo5T+kRPyWFZtWRx2XR5qzohs/LS4lDC0GCyLpCYFmsfTk28UCVDbOE9+KtoXY4FnwHYiF+ZYEU3hnJ1lQ==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/swr/-/swr-1.2.1.tgz", + "integrity": "sha512-1cuWXqJqXcFwbgONGCY4PHZ8v05009JdHsC3CIC6u7d00kgbMswNr1sHnnhseOBxtzVqcCNpOHEgVDciRer45w==", "requires": {} }, "symbol-tree": { diff --git a/package.json b/package.json index e7f948c..1a397e5 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "react-scripts": "4.0.3", "react-syntax-highlighter": "^15.4.5", "serve": "^13.0.2", - "swr": "^1.1.2", + "swr": "^1.2.1", "typescript": "^4.5.4", "use-keyboard-shortcut": "^1.1.2", "web-vitals": "^1.0.1" From e6eb57e5417b1a7093cec3e5fbfc80081acc978a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 5 Feb 2022 17:57:54 +0000 Subject: [PATCH 12/46] Bump @fontsource/roboto from 4.5.1 to 4.5.3 (#166) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index faa967d..914d346 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@chainlink/contracts": "^0.3.1", "@craco/craco": "^6.4.3", "@fontsource/fira-code": "^4.5.2", - "@fontsource/roboto": "^4.5.1", + "@fontsource/roboto": "^4.5.3", "@fontsource/roboto-mono": "^4.5.0", "@fontsource/space-grotesk": "^4.5.1", "@fortawesome/fontawesome-svg-core": "^1.2.36", @@ -2137,9 +2137,9 @@ "integrity": "sha512-wNUvcqmm1dZYTbJlkbFZL9Huu7p+Hwaa4CLNTPql3CG90Rh9dSi43wNg5AnVHxjAhWQOGlCpSrEswnnHu1CkxA==" }, "node_modules/@fontsource/roboto": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@fontsource/roboto/-/roboto-4.5.1.tgz", - "integrity": "sha512-3mhfL+eNPG/woMNqwD/OHaW5qMpeGEBsDwzmhFmjB1yUV+M+M9P0NhP/AyHvnGz3DrqkvZ7CPzNMa+UkVLeELg==" + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/@fontsource/roboto/-/roboto-4.5.3.tgz", + "integrity": "sha512-NUvBTj332dFRdiVkLlavXbDGoD2zyyeGYmMyrXOnctg/3e4pq95+rJgNfUP+k4v8UBk2L1aomGw9dDjbRdAmTg==" }, "node_modules/@fontsource/roboto-mono": { "version": "4.5.0", @@ -20925,9 +20925,9 @@ "integrity": "sha512-wNUvcqmm1dZYTbJlkbFZL9Huu7p+Hwaa4CLNTPql3CG90Rh9dSi43wNg5AnVHxjAhWQOGlCpSrEswnnHu1CkxA==" }, "@fontsource/roboto": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@fontsource/roboto/-/roboto-4.5.1.tgz", - "integrity": "sha512-3mhfL+eNPG/woMNqwD/OHaW5qMpeGEBsDwzmhFmjB1yUV+M+M9P0NhP/AyHvnGz3DrqkvZ7CPzNMa+UkVLeELg==" + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/@fontsource/roboto/-/roboto-4.5.3.tgz", + "integrity": "sha512-NUvBTj332dFRdiVkLlavXbDGoD2zyyeGYmMyrXOnctg/3e4pq95+rJgNfUP+k4v8UBk2L1aomGw9dDjbRdAmTg==" }, "@fontsource/roboto-mono": { "version": "4.5.0", diff --git a/package.json b/package.json index 1a397e5..29ac8e1 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "@chainlink/contracts": "^0.3.1", "@craco/craco": "^6.4.3", "@fontsource/fira-code": "^4.5.2", - "@fontsource/roboto": "^4.5.1", + "@fontsource/roboto": "^4.5.3", "@fontsource/roboto-mono": "^4.5.0", "@fontsource/space-grotesk": "^4.5.1", "@fortawesome/fontawesome-svg-core": "^1.2.36", From 0610c2fd1aa26d162492da1dff23227d818df21b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 5 Feb 2022 18:00:22 +0000 Subject: [PATCH 13/46] Bump @fontsource/fira-code from 4.5.2 to 4.5.4 (#167) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 914d346..a02d5ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@blackbox-vision/react-qr-reader": "^5.0.0", "@chainlink/contracts": "^0.3.1", "@craco/craco": "^6.4.3", - "@fontsource/fira-code": "^4.5.2", + "@fontsource/fira-code": "^4.5.4", "@fontsource/roboto": "^4.5.3", "@fontsource/roboto-mono": "^4.5.0", "@fontsource/space-grotesk": "^4.5.1", @@ -2132,9 +2132,9 @@ } }, "node_modules/@fontsource/fira-code": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/@fontsource/fira-code/-/fira-code-4.5.2.tgz", - "integrity": "sha512-wNUvcqmm1dZYTbJlkbFZL9Huu7p+Hwaa4CLNTPql3CG90Rh9dSi43wNg5AnVHxjAhWQOGlCpSrEswnnHu1CkxA==" + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/@fontsource/fira-code/-/fira-code-4.5.4.tgz", + "integrity": "sha512-VXA5wQqU8ieKD3n2wKA+0asywXXkgJc4JxR3IAfVEnRKcz93xd0UpZtmgL3sPeWZQSPc194yikIi0y2hxSGDpA==" }, "node_modules/@fontsource/roboto": { "version": "4.5.3", @@ -20920,9 +20920,9 @@ } }, "@fontsource/fira-code": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/@fontsource/fira-code/-/fira-code-4.5.2.tgz", - "integrity": "sha512-wNUvcqmm1dZYTbJlkbFZL9Huu7p+Hwaa4CLNTPql3CG90Rh9dSi43wNg5AnVHxjAhWQOGlCpSrEswnnHu1CkxA==" + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/@fontsource/fira-code/-/fira-code-4.5.4.tgz", + "integrity": "sha512-VXA5wQqU8ieKD3n2wKA+0asywXXkgJc4JxR3IAfVEnRKcz93xd0UpZtmgL3sPeWZQSPc194yikIi0y2hxSGDpA==" }, "@fontsource/roboto": { "version": "4.5.3", diff --git a/package.json b/package.json index 29ac8e1..173d569 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "@blackbox-vision/react-qr-reader": "^5.0.0", "@chainlink/contracts": "^0.3.1", "@craco/craco": "^6.4.3", - "@fontsource/fira-code": "^4.5.2", + "@fontsource/fira-code": "^4.5.4", "@fontsource/roboto": "^4.5.3", "@fontsource/roboto-mono": "^4.5.0", "@fontsource/space-grotesk": "^4.5.1", From 410b58d7668d60f9309ff3f95bff03744b49c251 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sat, 5 Feb 2022 15:03:00 -0300 Subject: [PATCH 14/46] Increase dependabot limit --- .github/dependabot.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d1f0d08..9040b86 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,4 @@ updates: directory: "/" schedule: interval: "daily" + open-pull-requests-limit: 20 From a2aea1ec5a0bc632e3db628524293c2c4f0a83d4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 5 Feb 2022 18:03:25 +0000 Subject: [PATCH 15/46] Bump @fontsource/space-grotesk from 4.5.1 to 4.5.2 (#168) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index a02d5ac..87536b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@fontsource/fira-code": "^4.5.4", "@fontsource/roboto": "^4.5.3", "@fontsource/roboto-mono": "^4.5.0", - "@fontsource/space-grotesk": "^4.5.1", + "@fontsource/space-grotesk": "^4.5.2", "@fortawesome/fontawesome-svg-core": "^1.2.36", "@fortawesome/free-brands-svg-icons": "^5.15.4", "@fortawesome/free-regular-svg-icons": "^5.15.4", @@ -2147,9 +2147,9 @@ "integrity": "sha512-/6Gm6fJjBHZiFNyvzIKGJkVuyifoc1aoTel+pkzdhxNh7yNhFyokCoChdbbqZEpGKpqs5uld74G5TJthUVFyjw==" }, "node_modules/@fontsource/space-grotesk": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@fontsource/space-grotesk/-/space-grotesk-4.5.1.tgz", - "integrity": "sha512-RWw+cCaJIsdYKVbkpmDHQAvXujddYrEhyi8yNWxP4l7mq0Hn0OIZHkb40bLMmwsRzE4EVt8+bNLXhwpp5jybuA==" + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/@fontsource/space-grotesk/-/space-grotesk-4.5.2.tgz", + "integrity": "sha512-yvNMZE4gMShwbwW8ARu2NImA5A4dPvrFsnEUWWUTn98OxV5JwlPMRCsiZMbtWHbLgFjAjh5w7GqIK961vftNgQ==" }, "node_modules/@fortawesome/fontawesome-common-types": { "version": "0.2.36", @@ -20935,9 +20935,9 @@ "integrity": "sha512-/6Gm6fJjBHZiFNyvzIKGJkVuyifoc1aoTel+pkzdhxNh7yNhFyokCoChdbbqZEpGKpqs5uld74G5TJthUVFyjw==" }, "@fontsource/space-grotesk": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@fontsource/space-grotesk/-/space-grotesk-4.5.1.tgz", - "integrity": "sha512-RWw+cCaJIsdYKVbkpmDHQAvXujddYrEhyi8yNWxP4l7mq0Hn0OIZHkb40bLMmwsRzE4EVt8+bNLXhwpp5jybuA==" + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/@fontsource/space-grotesk/-/space-grotesk-4.5.2.tgz", + "integrity": "sha512-yvNMZE4gMShwbwW8ARu2NImA5A4dPvrFsnEUWWUTn98OxV5JwlPMRCsiZMbtWHbLgFjAjh5w7GqIK961vftNgQ==" }, "@fortawesome/fontawesome-common-types": { "version": "0.2.36", diff --git a/package.json b/package.json index 173d569..47d9f3e 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "@fontsource/fira-code": "^4.5.4", "@fontsource/roboto": "^4.5.3", "@fontsource/roboto-mono": "^4.5.0", - "@fontsource/space-grotesk": "^4.5.1", + "@fontsource/space-grotesk": "^4.5.2", "@fortawesome/fontawesome-svg-core": "^1.2.36", "@fortawesome/free-brands-svg-icons": "^5.15.4", "@fortawesome/free-regular-svg-icons": "^5.15.4", From 0832bbbdc2fe783307423c9c82d711c5acad9055 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 5 Feb 2022 18:04:27 +0000 Subject: [PATCH 16/46] Bump typescript from 4.5.4 to 4.5.5 (#169) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 87536b5..9abe3ad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,7 +47,7 @@ "react-syntax-highlighter": "^15.4.5", "serve": "^13.0.2", "swr": "^1.2.1", - "typescript": "^4.5.4", + "typescript": "^4.5.5", "use-keyboard-shortcut": "^1.1.2", "web-vitals": "^1.0.1" }, @@ -18132,9 +18132,9 @@ } }, "node_modules/typescript": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.4.tgz", - "integrity": "sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg==", + "version": "4.5.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz", + "integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -31720,9 +31720,9 @@ } }, "typescript": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.4.tgz", - "integrity": "sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg==" + "version": "4.5.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz", + "integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==" }, "unicode-canonical-property-names-ecmascript": { "version": "1.0.4" diff --git a/package.json b/package.json index 47d9f3e..ff08585 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "react-syntax-highlighter": "^15.4.5", "serve": "^13.0.2", "swr": "^1.2.1", - "typescript": "^4.5.4", + "typescript": "^4.5.5", "use-keyboard-shortcut": "^1.1.2", "web-vitals": "^1.0.1" }, From fee6b8561a790d6dffa82dc1d77129df4be5b990 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 5 Feb 2022 18:07:43 +0000 Subject: [PATCH 17/46] Bump @fortawesome/react-fontawesome from 0.1.16 to 0.1.17 (#171) --- package-lock.json | 31 +++++++++++++++++-------------- package.json | 2 +- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9abe3ad..6323865 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "@fortawesome/free-brands-svg-icons": "^5.15.4", "@fortawesome/free-regular-svg-icons": "^5.15.4", "@fortawesome/free-solid-svg-icons": "^5.15.4", - "@fortawesome/react-fontawesome": "^0.1.16", + "@fortawesome/react-fontawesome": "^0.1.17", "@headlessui/react": "^1.4.3", "@testing-library/jest-dom": "^5.16.2", "@testing-library/react": "^11.1.0", @@ -2209,11 +2209,11 @@ } }, "node_modules/@fortawesome/react-fontawesome": { - "version": "0.1.16", - "resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-0.1.16.tgz", - "integrity": "sha512-aLmzDwC9rEOAJv2UJdMns89VZR5Ry4IHu5dQQh24Z/lWKEm44lfQr1UNalZlkUaQN8d155tNh+CS7ntntj1VMA==", + "version": "0.1.17", + "resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-0.1.17.tgz", + "integrity": "sha512-dX43Z5IvMaW7fwzU8farosYjKNGfRb2HB/DgjVBHeJZ/NSnuuaujPPx0YOdcAq+n3mqn70tyCde2HM1mqbhiuw==", "dependencies": { - "prop-types": "^15.7.2" + "prop-types": "^15.8.1" }, "peerDependencies": { "@fortawesome/fontawesome-svg-core": "~1 || >=1.3.0-beta1", @@ -14111,12 +14111,13 @@ } }, "node_modules/prop-types": { - "version": "15.7.2", - "license": "MIT", + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", - "react-is": "^16.8.1" + "react-is": "^16.13.1" } }, "node_modules/prop-types/node_modules/react-is": { @@ -20977,11 +20978,11 @@ } }, "@fortawesome/react-fontawesome": { - "version": "0.1.16", - "resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-0.1.16.tgz", - "integrity": "sha512-aLmzDwC9rEOAJv2UJdMns89VZR5Ry4IHu5dQQh24Z/lWKEm44lfQr1UNalZlkUaQN8d155tNh+CS7ntntj1VMA==", + "version": "0.1.17", + "resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-0.1.17.tgz", + "integrity": "sha512-dX43Z5IvMaW7fwzU8farosYjKNGfRb2HB/DgjVBHeJZ/NSnuuaujPPx0YOdcAq+n3mqn70tyCde2HM1mqbhiuw==", "requires": { - "prop-types": "^15.7.2" + "prop-types": "^15.8.1" } }, "@hapi/address": { @@ -28944,11 +28945,13 @@ } }, "prop-types": { - "version": "15.7.2", + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", "requires": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", - "react-is": "^16.8.1" + "react-is": "^16.13.1" }, "dependencies": { "react-is": { diff --git a/package.json b/package.json index ff08585..9d4a340 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "@fortawesome/free-brands-svg-icons": "^5.15.4", "@fortawesome/free-regular-svg-icons": "^5.15.4", "@fortawesome/free-solid-svg-icons": "^5.15.4", - "@fortawesome/react-fontawesome": "^0.1.16", + "@fortawesome/react-fontawesome": "^0.1.17", "@headlessui/react": "^1.4.3", "@testing-library/jest-dom": "^5.16.2", "@testing-library/react": "^11.1.0", From 31571e067bcf6c6db5c86983728e29347952307b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 5 Feb 2022 18:10:27 +0000 Subject: [PATCH 18/46] Bump @fontsource/roboto-mono from 4.5.0 to 4.5.2 (#172) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6323865..cd4e7f8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@craco/craco": "^6.4.3", "@fontsource/fira-code": "^4.5.4", "@fontsource/roboto": "^4.5.3", - "@fontsource/roboto-mono": "^4.5.0", + "@fontsource/roboto-mono": "^4.5.2", "@fontsource/space-grotesk": "^4.5.2", "@fortawesome/fontawesome-svg-core": "^1.2.36", "@fortawesome/free-brands-svg-icons": "^5.15.4", @@ -2142,9 +2142,9 @@ "integrity": "sha512-NUvBTj332dFRdiVkLlavXbDGoD2zyyeGYmMyrXOnctg/3e4pq95+rJgNfUP+k4v8UBk2L1aomGw9dDjbRdAmTg==" }, "node_modules/@fontsource/roboto-mono": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/@fontsource/roboto-mono/-/roboto-mono-4.5.0.tgz", - "integrity": "sha512-/6Gm6fJjBHZiFNyvzIKGJkVuyifoc1aoTel+pkzdhxNh7yNhFyokCoChdbbqZEpGKpqs5uld74G5TJthUVFyjw==" + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/@fontsource/roboto-mono/-/roboto-mono-4.5.2.tgz", + "integrity": "sha512-MoWKypBXIyZMnvExDTmaRWJSBNLQvKNaWAk2rAwXCNP5AtIa7mzawx9Yfl1LxCY/kVjhMZHPPKtt75CNQQHzQA==" }, "node_modules/@fontsource/space-grotesk": { "version": "4.5.2", @@ -20931,9 +20931,9 @@ "integrity": "sha512-NUvBTj332dFRdiVkLlavXbDGoD2zyyeGYmMyrXOnctg/3e4pq95+rJgNfUP+k4v8UBk2L1aomGw9dDjbRdAmTg==" }, "@fontsource/roboto-mono": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/@fontsource/roboto-mono/-/roboto-mono-4.5.0.tgz", - "integrity": "sha512-/6Gm6fJjBHZiFNyvzIKGJkVuyifoc1aoTel+pkzdhxNh7yNhFyokCoChdbbqZEpGKpqs5uld74G5TJthUVFyjw==" + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/@fontsource/roboto-mono/-/roboto-mono-4.5.2.tgz", + "integrity": "sha512-MoWKypBXIyZMnvExDTmaRWJSBNLQvKNaWAk2rAwXCNP5AtIa7mzawx9Yfl1LxCY/kVjhMZHPPKtt75CNQQHzQA==" }, "@fontsource/space-grotesk": { "version": "4.5.2", diff --git a/package.json b/package.json index 9d4a340..c9eedf3 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "@craco/craco": "^6.4.3", "@fontsource/fira-code": "^4.5.4", "@fontsource/roboto": "^4.5.3", - "@fontsource/roboto-mono": "^4.5.0", + "@fontsource/roboto-mono": "^4.5.2", "@fontsource/space-grotesk": "^4.5.2", "@fortawesome/fontawesome-svg-core": "^1.2.36", "@fortawesome/free-brands-svg-icons": "^5.15.4", From 93f960724ac7c53ab13affd1392223c3d02012cc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 19:06:36 +0000 Subject: [PATCH 19/46] Bump @fontsource/space-grotesk from 4.5.2 to 4.5.3 (#181) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index cd4e7f8..317e8b1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@fontsource/fira-code": "^4.5.4", "@fontsource/roboto": "^4.5.3", "@fontsource/roboto-mono": "^4.5.2", - "@fontsource/space-grotesk": "^4.5.2", + "@fontsource/space-grotesk": "^4.5.3", "@fortawesome/fontawesome-svg-core": "^1.2.36", "@fortawesome/free-brands-svg-icons": "^5.15.4", "@fortawesome/free-regular-svg-icons": "^5.15.4", @@ -2147,9 +2147,9 @@ "integrity": "sha512-MoWKypBXIyZMnvExDTmaRWJSBNLQvKNaWAk2rAwXCNP5AtIa7mzawx9Yfl1LxCY/kVjhMZHPPKtt75CNQQHzQA==" }, "node_modules/@fontsource/space-grotesk": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/@fontsource/space-grotesk/-/space-grotesk-4.5.2.tgz", - "integrity": "sha512-yvNMZE4gMShwbwW8ARu2NImA5A4dPvrFsnEUWWUTn98OxV5JwlPMRCsiZMbtWHbLgFjAjh5w7GqIK961vftNgQ==" + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/@fontsource/space-grotesk/-/space-grotesk-4.5.3.tgz", + "integrity": "sha512-uhCiGA3DXiT7BLCcbKzSDlgUp6Pct50+WObzLJvee8qnA2ezH/cfWlIU3+3ydc1poxQuR6+jJN2Cd8XjpOB9lg==" }, "node_modules/@fortawesome/fontawesome-common-types": { "version": "0.2.36", @@ -20936,9 +20936,9 @@ "integrity": "sha512-MoWKypBXIyZMnvExDTmaRWJSBNLQvKNaWAk2rAwXCNP5AtIa7mzawx9Yfl1LxCY/kVjhMZHPPKtt75CNQQHzQA==" }, "@fontsource/space-grotesk": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/@fontsource/space-grotesk/-/space-grotesk-4.5.2.tgz", - "integrity": "sha512-yvNMZE4gMShwbwW8ARu2NImA5A4dPvrFsnEUWWUTn98OxV5JwlPMRCsiZMbtWHbLgFjAjh5w7GqIK961vftNgQ==" + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/@fontsource/space-grotesk/-/space-grotesk-4.5.3.tgz", + "integrity": "sha512-uhCiGA3DXiT7BLCcbKzSDlgUp6Pct50+WObzLJvee8qnA2ezH/cfWlIU3+3ydc1poxQuR6+jJN2Cd8XjpOB9lg==" }, "@fortawesome/fontawesome-common-types": { "version": "0.2.36", diff --git a/package.json b/package.json index c9eedf3..3fc9e5b 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "@fontsource/fira-code": "^4.5.4", "@fontsource/roboto": "^4.5.3", "@fontsource/roboto-mono": "^4.5.2", - "@fontsource/space-grotesk": "^4.5.2", + "@fontsource/space-grotesk": "^4.5.3", "@fortawesome/fontawesome-svg-core": "^1.2.36", "@fortawesome/free-brands-svg-icons": "^5.15.4", "@fortawesome/free-regular-svg-icons": "^5.15.4", From afea35855e0139b71283ff7285798dd05b319096 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 19:06:58 +0000 Subject: [PATCH 20/46] Bump @fontsource/fira-code from 4.5.4 to 4.5.5 (#178) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 317e8b1..372a153 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@blackbox-vision/react-qr-reader": "^5.0.0", "@chainlink/contracts": "^0.3.1", "@craco/craco": "^6.4.3", - "@fontsource/fira-code": "^4.5.4", + "@fontsource/fira-code": "^4.5.5", "@fontsource/roboto": "^4.5.3", "@fontsource/roboto-mono": "^4.5.2", "@fontsource/space-grotesk": "^4.5.3", @@ -2132,9 +2132,9 @@ } }, "node_modules/@fontsource/fira-code": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/@fontsource/fira-code/-/fira-code-4.5.4.tgz", - "integrity": "sha512-VXA5wQqU8ieKD3n2wKA+0asywXXkgJc4JxR3IAfVEnRKcz93xd0UpZtmgL3sPeWZQSPc194yikIi0y2hxSGDpA==" + "version": "4.5.5", + "resolved": "https://registry.npmjs.org/@fontsource/fira-code/-/fira-code-4.5.5.tgz", + "integrity": "sha512-bwsPmA5HW11SR0oIkgqSJYI3A8KP8aQLRCCH/EnR9gLHRuTFi1iG7GQ3wDTKy/AhECQJAKjXZ+mkVKlMxUaYCQ==" }, "node_modules/@fontsource/roboto": { "version": "4.5.3", @@ -20921,9 +20921,9 @@ } }, "@fontsource/fira-code": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/@fontsource/fira-code/-/fira-code-4.5.4.tgz", - "integrity": "sha512-VXA5wQqU8ieKD3n2wKA+0asywXXkgJc4JxR3IAfVEnRKcz93xd0UpZtmgL3sPeWZQSPc194yikIi0y2hxSGDpA==" + "version": "4.5.5", + "resolved": "https://registry.npmjs.org/@fontsource/fira-code/-/fira-code-4.5.5.tgz", + "integrity": "sha512-bwsPmA5HW11SR0oIkgqSJYI3A8KP8aQLRCCH/EnR9gLHRuTFi1iG7GQ3wDTKy/AhECQJAKjXZ+mkVKlMxUaYCQ==" }, "@fontsource/roboto": { "version": "4.5.3", diff --git a/package.json b/package.json index 3fc9e5b..1680833 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "@blackbox-vision/react-qr-reader": "^5.0.0", "@chainlink/contracts": "^0.3.1", "@craco/craco": "^6.4.3", - "@fontsource/fira-code": "^4.5.4", + "@fontsource/fira-code": "^4.5.5", "@fontsource/roboto": "^4.5.3", "@fontsource/roboto-mono": "^4.5.2", "@fontsource/space-grotesk": "^4.5.3", From 14ee1ebef37b957df7b0d60627e8452738b6362f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 19:08:59 +0000 Subject: [PATCH 21/46] Bump @fontsource/roboto-mono from 4.5.2 to 4.5.3 (#180) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 372a153..06cfff5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@craco/craco": "^6.4.3", "@fontsource/fira-code": "^4.5.5", "@fontsource/roboto": "^4.5.3", - "@fontsource/roboto-mono": "^4.5.2", + "@fontsource/roboto-mono": "^4.5.3", "@fontsource/space-grotesk": "^4.5.3", "@fortawesome/fontawesome-svg-core": "^1.2.36", "@fortawesome/free-brands-svg-icons": "^5.15.4", @@ -2142,9 +2142,9 @@ "integrity": "sha512-NUvBTj332dFRdiVkLlavXbDGoD2zyyeGYmMyrXOnctg/3e4pq95+rJgNfUP+k4v8UBk2L1aomGw9dDjbRdAmTg==" }, "node_modules/@fontsource/roboto-mono": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/@fontsource/roboto-mono/-/roboto-mono-4.5.2.tgz", - "integrity": "sha512-MoWKypBXIyZMnvExDTmaRWJSBNLQvKNaWAk2rAwXCNP5AtIa7mzawx9Yfl1LxCY/kVjhMZHPPKtt75CNQQHzQA==" + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/@fontsource/roboto-mono/-/roboto-mono-4.5.3.tgz", + "integrity": "sha512-ELuIIUBo1kq2hFmOXjWv9o2VbM22Pct2F0T+D8f5T0MxDKIqkh0m1JMs9bbTzMjc+wVvyJ6LU5EiNkO26kLlKA==" }, "node_modules/@fontsource/space-grotesk": { "version": "4.5.3", @@ -20931,9 +20931,9 @@ "integrity": "sha512-NUvBTj332dFRdiVkLlavXbDGoD2zyyeGYmMyrXOnctg/3e4pq95+rJgNfUP+k4v8UBk2L1aomGw9dDjbRdAmTg==" }, "@fontsource/roboto-mono": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/@fontsource/roboto-mono/-/roboto-mono-4.5.2.tgz", - "integrity": "sha512-MoWKypBXIyZMnvExDTmaRWJSBNLQvKNaWAk2rAwXCNP5AtIa7mzawx9Yfl1LxCY/kVjhMZHPPKtt75CNQQHzQA==" + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/@fontsource/roboto-mono/-/roboto-mono-4.5.3.tgz", + "integrity": "sha512-ELuIIUBo1kq2hFmOXjWv9o2VbM22Pct2F0T+D8f5T0MxDKIqkh0m1JMs9bbTzMjc+wVvyJ6LU5EiNkO26kLlKA==" }, "@fontsource/space-grotesk": { "version": "4.5.3", diff --git a/package.json b/package.json index 1680833..17ded0d 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "@craco/craco": "^6.4.3", "@fontsource/fira-code": "^4.5.5", "@fontsource/roboto": "^4.5.3", - "@fontsource/roboto-mono": "^4.5.2", + "@fontsource/roboto-mono": "^4.5.3", "@fontsource/space-grotesk": "^4.5.3", "@fortawesome/fontawesome-svg-core": "^1.2.36", "@fortawesome/free-brands-svg-icons": "^5.15.4", From c847e119919e36da16e488f5141dccee714b9a87 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 19:13:24 +0000 Subject: [PATCH 22/46] Bump @chainlink/contracts from 0.3.1 to 0.4.0 (#179) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 06cfff5..fa02fd3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@blackbox-vision/react-qr-reader": "^5.0.0", - "@chainlink/contracts": "^0.3.1", + "@chainlink/contracts": "^0.4.0", "@craco/craco": "^6.4.3", "@fontsource/fira-code": "^4.5.5", "@fontsource/roboto": "^4.5.3", @@ -1229,9 +1229,9 @@ } }, "node_modules/@chainlink/contracts": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@chainlink/contracts/-/contracts-0.3.1.tgz", - "integrity": "sha512-A8DRvmfNCwLS1iduPPj7wNAZJMe9/ZimMhoHhbbBiq+7Vq/HFjiNcdoQ5NinFdXD5aTsoNUGG5pAYKj7YMpm9A==" + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@chainlink/contracts/-/contracts-0.4.0.tgz", + "integrity": "sha512-yZGeCBd7d+qxfw9r/JxtPzsW2kCc6MorPRZ/tDKnaJI98H99j5P2Fosfehmcwk6wVZlz+0Bp4kS1y480nw3Zow==" }, "node_modules/@cnakazawa/watch": { "version": "1.0.4", @@ -20412,9 +20412,9 @@ } }, "@chainlink/contracts": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@chainlink/contracts/-/contracts-0.3.1.tgz", - "integrity": "sha512-A8DRvmfNCwLS1iduPPj7wNAZJMe9/ZimMhoHhbbBiq+7Vq/HFjiNcdoQ5NinFdXD5aTsoNUGG5pAYKj7YMpm9A==" + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@chainlink/contracts/-/contracts-0.4.0.tgz", + "integrity": "sha512-yZGeCBd7d+qxfw9r/JxtPzsW2kCc6MorPRZ/tDKnaJI98H99j5P2Fosfehmcwk6wVZlz+0Bp4kS1y480nw3Zow==" }, "@cnakazawa/watch": { "version": "1.0.4", diff --git a/package.json b/package.json index 17ded0d..df6357f 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "MIT", "dependencies": { "@blackbox-vision/react-qr-reader": "^5.0.0", - "@chainlink/contracts": "^0.3.1", + "@chainlink/contracts": "^0.4.0", "@craco/craco": "^6.4.3", "@fontsource/fira-code": "^4.5.5", "@fontsource/roboto": "^4.5.3", From 8669003ac68ee98cb3bbb02523f18b43e193e149 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sun, 13 Feb 2022 15:48:29 -0300 Subject: [PATCH 23/46] Quick and dirty hack to hide london dashboard from sepolia until fixed --- src/Home.tsx | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/Home.tsx b/src/Home.tsx index d1d8b49..8781549 100644 --- a/src/Home.tsx +++ b/src/Home.tsx @@ -62,17 +62,19 @@ const Home: React.FC = () => {
- -
- - - - Check out the special dashboard for EIP-1559 - - - -
-
+ {provider?.network.chainId !== 11155111 && ( + +
+ + + + Check out the special dashboard for EIP-1559 + + + +
+
+ )}
{latestBlock && ( Date: Sun, 13 Feb 2022 16:15:51 -0300 Subject: [PATCH 24/46] Configure set of resolvers per chainId --- .../CompositeAddressResolver.ts | 11 +++-- src/api/address-resolver/index.ts | 45 ++++++++++++------- src/useResolvedAddresses.ts | 5 ++- 3 files changed, 41 insertions(+), 20 deletions(-) diff --git a/src/api/address-resolver/CompositeAddressResolver.ts b/src/api/address-resolver/CompositeAddressResolver.ts index 55a7318..d6abe9a 100644 --- a/src/api/address-resolver/CompositeAddressResolver.ts +++ b/src/api/address-resolver/CompositeAddressResolver.ts @@ -17,9 +17,14 @@ export class CompositeAddressResolver address: string ): Promise | undefined> { for (const r of this.resolvers) { - const resolvedAddress = await r.resolveAddress(provider, address); - if (resolvedAddress !== undefined) { - return [r, resolvedAddress]; + try { + const resolvedAddress = await r.resolveAddress(provider, address); + if (resolvedAddress !== undefined) { + return [r, resolvedAddress]; + } + } catch (err) { + console.warn(`Error while trying to resolve addr ${address}`); + console.warn(err); } } diff --git a/src/api/address-resolver/index.ts b/src/api/address-resolver/index.ts index 57f1b37..5997e01 100644 --- a/src/api/address-resolver/index.ts +++ b/src/api/address-resolver/index.ts @@ -19,23 +19,38 @@ import { HardcodedAddressResolver } from "./HardcodedAddressResolver"; export type ResolvedAddresses = Record>; // Create and configure the main resolver -export const ensResolver = new ENSAddressResolver(); -export const uniswapV1Resolver = new UniswapV1Resolver(); -export const uniswapV2Resolver = new UniswapV2Resolver(); -export const uniswapV3Resolver = new UniswapV3Resolver(); -export const ercTokenResolver = new ERCTokenResolver(); -export const hardcodedResolver = new HardcodedAddressResolver(); +const ensResolver = new ENSAddressResolver(); +const uniswapV1Resolver = new UniswapV1Resolver(); +const uniswapV2Resolver = new UniswapV2Resolver(); +const uniswapV3Resolver = new UniswapV3Resolver(); +const ercTokenResolver = new ERCTokenResolver(); +const hardcodedResolver = new HardcodedAddressResolver(); -const _mainResolver = new CompositeAddressResolver(); -_mainResolver.addResolver(ensResolver); -_mainResolver.addResolver(uniswapV3Resolver); -_mainResolver.addResolver(uniswapV2Resolver); -_mainResolver.addResolver(uniswapV1Resolver); -_mainResolver.addResolver(ercTokenResolver); -_mainResolver.addResolver(hardcodedResolver); +const _mainnetResolver = new CompositeAddressResolver(); +_mainnetResolver.addResolver(ensResolver); +_mainnetResolver.addResolver(uniswapV3Resolver); +_mainnetResolver.addResolver(uniswapV2Resolver); +_mainnetResolver.addResolver(uniswapV1Resolver); +_mainnetResolver.addResolver(ercTokenResolver); +_mainnetResolver.addResolver(hardcodedResolver); -export const mainResolver: IAddressResolver> = - _mainResolver; +const _defaultResolver = new CompositeAddressResolver(); +_defaultResolver.addResolver(hardcodedResolver); + +const resolvers: Record>> = { + 1: _mainnetResolver, + 0: _defaultResolver, +}; + +export const getResolver = ( + chainId: number +): IAddressResolver> => { + const resolver = resolvers[chainId]; + if (resolver === undefined) { + return resolver[0]; // default MAGIC NUMBER + } + return resolver; +}; export const resolverRendererRegistry = new Map< IAddressResolver, diff --git a/src/useResolvedAddresses.ts b/src/useResolvedAddresses.ts index 056fa98..4870072 100644 --- a/src/useResolvedAddresses.ts +++ b/src/useResolvedAddresses.ts @@ -2,7 +2,7 @@ import { useState, useEffect, useContext } from "react"; import { BaseProvider } from "@ethersproject/providers"; import { getAddress, isAddress } from "@ethersproject/address"; import useSWRImmutable from "swr/immutable"; -import { mainResolver } from "./api/address-resolver"; +import { getResolver } from "./api/address-resolver"; import { SelectedResolvedName } from "./api/address-resolver/CompositeAddressResolver"; import { RuntimeContext } from "./useRuntime"; import { ChecksummedAddress } from "./types"; @@ -76,7 +76,8 @@ export const useResolvedAddress = ( if (!provider) { return undefined; } - return mainResolver.resolveAddress(provider, address); + const resolver = getResolver(provider.network.chainId); + return resolver.resolveAddress(provider, address); }; const { data, error } = useSWRImmutable(address, fetcher); From 82b003f29b51502cd1360a06b4bbea8efdd81ed7 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Tue, 15 Feb 2022 17:58:10 -0300 Subject: [PATCH 25/46] Add support for sepolia testnet --- src/WarningHeader.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/WarningHeader.tsx b/src/WarningHeader.tsx index b21c249..e1bc28c 100644 --- a/src/WarningHeader.tsx +++ b/src/WarningHeader.tsx @@ -17,6 +17,8 @@ const WarningHeader: React.FC = () => { chainMsg = "Görli Testnet"; } else if (chainId === 42) { chainMsg = "Kovan Testnet"; + } else if (chainId === 11155111) { + chainMsg = "Sepolia Testnet"; } return (
From 288f6c92cde0041158eb5e7e4908abb1af885b5b Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Fri, 18 Feb 2022 02:32:39 -0300 Subject: [PATCH 26/46] Fix search by block hash --- src/params.ts | 2 +- src/useErigonHooks.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/params.ts b/src/params.ts index b1ef13b..f26ef7a 100644 --- a/src/params.ts +++ b/src/params.ts @@ -1,3 +1,3 @@ -export const MIN_API_LEVEL = 6; +export const MIN_API_LEVEL = 7; export const PAGE_SIZE = 25; diff --git a/src/useErigonHooks.ts b/src/useErigonHooks.ts index 45378f5..54e1800 100644 --- a/src/useErigonHooks.ts +++ b/src/useErigonHooks.ts @@ -39,10 +39,8 @@ export const readBlock = async ( ) => { let blockPromise: Promise; if (isHexString(blockNumberOrHash, 32)) { - // TODO: fix - blockPromise = provider.send("eth_getBlockByHash", [ + blockPromise = provider.send("ots_getBlockDetailsByHash", [ blockNumberOrHash, - false, ]); } else { blockPromise = provider.send("ots_getBlockDetails", [blockNumberOrHash]); From 33839eb5efc8b2f113f74bdd45baa8833efc75d3 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Fri, 18 Feb 2022 03:39:37 -0300 Subject: [PATCH 27/46] Hide ENS label when network does not support it --- src/Header.tsx | 4 +++- src/Home.tsx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Header.tsx b/src/Header.tsx index 251e584..7feec16 100644 --- a/src/Header.tsx +++ b/src/Header.tsx @@ -44,7 +44,9 @@ const Header: React.FC = () => { className="w-full border-t border-b border-l rounded-l focus:outline-none px-2 py-1 text-sm" type="text" size={60} - placeholder='Type "/" to search by address / txn hash / block number / ENS name' + placeholder={`Type "/" to search by address / txn hash / block number${ + provider?.network.ensAddress ? " / ENS name" : "" + }`} onChange={handleChange} ref={searchRef} /> diff --git a/src/Home.tsx b/src/Home.tsx index 8781549..2bcb23d 100644 --- a/src/Home.tsx +++ b/src/Home.tsx @@ -39,7 +39,9 @@ const Home: React.FC = () => { className="w-full border-l border-t border-b rounded-l focus:outline-none px-2 py-1" type="text" size={50} - placeholder="Search by address / txn hash / block number / ENS name" + placeholder={`Search by address / txn hash / block number${ + provider?.network.ensAddress ? " / ENS name" : "" + }`} onChange={handleChange} ref={searchRef} autoFocus From 488f267d480c79247d39b1f949e268e335fc44bc Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Fri, 18 Feb 2022 03:46:37 -0300 Subject: [PATCH 28/46] Disable search by ENS name if network does not support it --- src/Address.tsx | 5 +++- src/components/AddressOrENSNameNotFound.tsx | 5 +++- src/useResolvedAddresses.ts | 32 ++++++++++++--------- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/src/Address.tsx b/src/Address.tsx index 3b9b62d..f739e7b 100644 --- a/src/Address.tsx +++ b/src/Address.tsx @@ -100,7 +100,10 @@ const Address: React.FC = () => { return ( {error ? ( - + ) : ( checksummedAddress && ( <> diff --git a/src/components/AddressOrENSNameNotFound.tsx b/src/components/AddressOrENSNameNotFound.tsx index 437aa6c..8cc5059 100644 --- a/src/components/AddressOrENSNameNotFound.tsx +++ b/src/components/AddressOrENSNameNotFound.tsx @@ -4,16 +4,19 @@ import ContentFrame from "../ContentFrame"; type AddressOrENSNameNotFoundProps = { addressOrENSName: string; + supportsENS: boolean; }; const AddressOrENSNameNotFound: React.FC = ({ addressOrENSName, + supportsENS, }) => ( <> Transaction Details
- "{addressOrENSName}" is not an ETH address or ENS name. + "{addressOrENSName}" is not an ETH address + {supportsENS && " or ENS name"}.
diff --git a/src/useResolvedAddresses.ts b/src/useResolvedAddresses.ts index 4870072..93db361 100644 --- a/src/useResolvedAddresses.ts +++ b/src/useResolvedAddresses.ts @@ -48,19 +48,25 @@ export const useAddressOrENS = ( if (!provider) { return; } - const resolveName = async () => { - const resolvedAddress = await provider.resolveName(addressOrName); - if (resolvedAddress !== null) { - setENS(true); - setError(false); - setChecksummedAddress(resolvedAddress); - } else { - setENS(false); - setError(true); - setChecksummedAddress(undefined); - } - }; - resolveName(); + if (provider.network.ensAddress) { + const resolveName = async () => { + const resolvedAddress = await provider.resolveName(addressOrName); + if (resolvedAddress !== null) { + setENS(true); + setError(false); + setChecksummedAddress(resolvedAddress); + } else { + setENS(false); + setError(true); + setChecksummedAddress(undefined); + } + }; + resolveName(); + } else { + setENS(false); + setError(true); + setChecksummedAddress(undefined); + } }, [provider, addressOrName, urlFixer]); return [checksummedAddress, isENS, error]; From 9ca79e838f62c44727af5074e5b4c254ab9f5100 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Fri, 18 Feb 2022 04:06:36 -0300 Subject: [PATCH 29/46] Fix block number not found --- src/Block.tsx | 10 +++++++--- src/components/BlockNotFound.tsx | 16 ++++++++++++++++ src/special/london/Blocks.tsx | 3 +++ src/useErigonHooks.ts | 13 ++++++++----- 4 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 src/components/BlockNotFound.tsx diff --git a/src/Block.tsx b/src/Block.tsx index 473ef75..0b96cda 100644 --- a/src/Block.tsx +++ b/src/Block.tsx @@ -25,6 +25,7 @@ import { useLatestBlockNumber } from "./useLatestBlock"; import { blockTxsURL } from "./url"; import { useBlockData } from "./useErigonHooks"; import { useETHUSDOracle } from "./usePriceOracle"; +import BlockNotFound from "./components/BlockNotFound"; const Block: React.FC = () => { const { provider } = useContext(RuntimeContext); @@ -35,10 +36,10 @@ const Block: React.FC = () => { const block = useBlockData(provider, blockNumberOrHash); useEffect(() => { - if (block) { - document.title = `Block #${block.number} | Otterscan`; + if (block !== undefined) { + document.title = `Block #${blockNumberOrHash} | Otterscan`; } - }, [block]); + }, [blockNumberOrHash, block]); const extraStr = useMemo(() => { try { @@ -71,6 +72,9 @@ const Block: React.FC = () => { )}
+ {block === null && ( + + )} {block && ( diff --git a/src/components/BlockNotFound.tsx b/src/components/BlockNotFound.tsx new file mode 100644 index 0000000..6a875db --- /dev/null +++ b/src/components/BlockNotFound.tsx @@ -0,0 +1,16 @@ +import React from "react"; +import ContentFrame from "../ContentFrame"; + +type BlockNotFoundProps = { + blockNumberOrHash: string; +}; + +const BlockNotFound: React.FC = ({ blockNumberOrHash }) => ( + <> + +
Block "{blockNumberOrHash}" not found.
+
+ +); + +export default React.memo(BlockNotFound); diff --git a/src/special/london/Blocks.tsx b/src/special/london/Blocks.tsx index 095bbc2..8a00597 100644 --- a/src/special/london/Blocks.tsx +++ b/src/special/london/Blocks.tsx @@ -75,6 +75,9 @@ const Blocks: React.FC = ({ latestBlock, targetBlockNumber }) => { if (_blocks.length > 0 && blockNumber === _blocks[0].number) { return _blocks; } + if (extBlock === null) { + return _blocks; + } // Leave the last block because of transition animation const newBlocks = [extBlock, ..._blocks].slice( diff --git a/src/useErigonHooks.ts b/src/useErigonHooks.ts index 54e1800..c0d958b 100644 --- a/src/useErigonHooks.ts +++ b/src/useErigonHooks.ts @@ -36,7 +36,7 @@ export interface ExtendedBlock extends Block { export const readBlock = async ( provider: JsonRpcProvider, blockNumberOrHash: string -) => { +): Promise => { let blockPromise: Promise; if (isHexString(blockNumberOrHash, 32)) { blockPromise = provider.send("ots_getBlockDetailsByHash", [ @@ -47,6 +47,9 @@ export const readBlock = async ( } const _rawBlock = await blockPromise; + if (_rawBlock === null) { + return null; + } const _block = provider.formatter.block(_rawBlock.block); const _rawIssuance = _rawBlock.issuance; @@ -160,11 +163,11 @@ export const useBlockTransactions = ( export const useBlockData = ( provider: JsonRpcProvider | undefined, blockNumberOrHash: string -) => { - const [block, setBlock] = useState(); +): ExtendedBlock | null | undefined => { + const [block, setBlock] = useState(); useEffect(() => { if (!provider) { - return; + return undefined; } const _readBlock = async () => { @@ -199,7 +202,7 @@ export const useTxData = ( return; } - let _block: ExtendedBlock | undefined; + let _block: ExtendedBlock | null | undefined; if (_response.blockNumber) { _block = await readBlock(provider, _response.blockNumber.toString()); } From 088781babb36703e77744678a0166345595c85b6 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Fri, 18 Feb 2022 04:11:10 -0300 Subject: [PATCH 30/46] Fix negative block numbers --- src/components/BlockNotFound.tsx | 8 +++----- src/useErigonHooks.ts | 6 +++++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/BlockNotFound.tsx b/src/components/BlockNotFound.tsx index 6a875db..b1ddee8 100644 --- a/src/components/BlockNotFound.tsx +++ b/src/components/BlockNotFound.tsx @@ -6,11 +6,9 @@ type BlockNotFoundProps = { }; const BlockNotFound: React.FC = ({ blockNumberOrHash }) => ( - <> - -
Block "{blockNumberOrHash}" not found.
-
- + +
Block "{blockNumberOrHash}" not found.
+
); export default React.memo(BlockNotFound); diff --git a/src/useErigonHooks.ts b/src/useErigonHooks.ts index c0d958b..ad9b0b8 100644 --- a/src/useErigonHooks.ts +++ b/src/useErigonHooks.ts @@ -43,7 +43,11 @@ export const readBlock = async ( blockNumberOrHash, ]); } else { - blockPromise = provider.send("ots_getBlockDetails", [blockNumberOrHash]); + const blockNumber = parseInt(blockNumberOrHash); + if (isNaN(blockNumber) || blockNumber < 0) { + return null; + } + blockPromise = provider.send("ots_getBlockDetails", [blockNumber]); } const _rawBlock = await blockPromise; From 109dd837b1cea46a241623b5691d3c0ae5c0492a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 19 Feb 2022 04:24:23 +0000 Subject: [PATCH 31/46] Bump chart.js from 3.7.0 to 3.7.1 (#182) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index fa02fd3..7e14416 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "@types/react-dom": "^17.0.11", "@types/react-highlight": "^0.12.5", "@types/react-syntax-highlighter": "^13.5.2", - "chart.js": "^3.7.0", + "chart.js": "^3.7.1", "ethers": "^5.5.4", "highlightjs-solidity": "^2.0.3", "react": "^17.0.2", @@ -5689,9 +5689,9 @@ } }, "node_modules/chart.js": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-3.7.0.tgz", - "integrity": "sha512-31gVuqqKp3lDIFmzpKIrBeum4OpZsQjSIAqlOpgjosHDJZlULtvwLEZKtEhIAZc7JMPaHlYMys40Qy9Mf+1AAg==" + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-3.7.1.tgz", + "integrity": "sha512-8knRegQLFnPQAheZV8MjxIXc5gQEfDFD897BJgv/klO/vtIyFFmgMXrNfgrXpbTr/XbTturxRgxIXx/Y+ASJBA==" }, "node_modules/check-types": { "version": "11.1.2", @@ -23353,9 +23353,9 @@ "integrity": "sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==" }, "chart.js": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-3.7.0.tgz", - "integrity": "sha512-31gVuqqKp3lDIFmzpKIrBeum4OpZsQjSIAqlOpgjosHDJZlULtvwLEZKtEhIAZc7JMPaHlYMys40Qy9Mf+1AAg==" + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-3.7.1.tgz", + "integrity": "sha512-8knRegQLFnPQAheZV8MjxIXc5gQEfDFD897BJgv/klO/vtIyFFmgMXrNfgrXpbTr/XbTturxRgxIXx/Y+ASJBA==" }, "check-types": { "version": "11.1.2" diff --git a/package.json b/package.json index df6357f..de2e659 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@types/react-dom": "^17.0.11", "@types/react-highlight": "^0.12.5", "@types/react-syntax-highlighter": "^13.5.2", - "chart.js": "^3.7.0", + "chart.js": "^3.7.1", "ethers": "^5.5.4", "highlightjs-solidity": "^2.0.3", "react": "^17.0.2", From 6f7b23b38366ea4d902ac4154e500b2b75162a35 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 19 Feb 2022 04:24:56 +0000 Subject: [PATCH 32/46] Bump follow-redirects from 1.14.7 to 1.14.8 (#183) --- package-lock.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7e14416..6a561a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8755,9 +8755,9 @@ } }, "node_modules/follow-redirects": { - "version": "1.14.7", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", - "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==", + "version": "1.14.8", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.8.tgz", + "integrity": "sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA==", "funding": [ { "type": "individual", @@ -25424,9 +25424,9 @@ } }, "follow-redirects": { - "version": "1.14.7", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", - "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==" + "version": "1.14.8", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.8.tgz", + "integrity": "sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA==" }, "for-in": { "version": "1.0.2" From f88856825ada0edbbd8bfabdb369e1d847f6ad42 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 19 Feb 2022 04:27:04 +0000 Subject: [PATCH 33/46] Bump use-keyboard-shortcut from 1.1.2 to 1.1.3 (#184) --- package-lock.json | 18 +++++++++--------- package.json | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6a561a2..0aa3320 100644 --- a/package-lock.json +++ b/package-lock.json @@ -48,7 +48,7 @@ "serve": "^13.0.2", "swr": "^1.2.1", "typescript": "^4.5.5", - "use-keyboard-shortcut": "^1.1.2", + "use-keyboard-shortcut": "^1.1.3", "web-vitals": "^1.0.1" }, "devDependencies": { @@ -18376,12 +18376,12 @@ } }, "node_modules/use-keyboard-shortcut": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/use-keyboard-shortcut/-/use-keyboard-shortcut-1.1.2.tgz", - "integrity": "sha512-VrAu1avPLuFHShGo1RiPtCZ6htwsnLRlZc/w4+jmK99HCvIGG5WThz1KsoGgP8KCxP5c8a+pDjtnCgBg+3bXzA==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/use-keyboard-shortcut/-/use-keyboard-shortcut-1.1.3.tgz", + "integrity": "sha512-3xGUkPMu0WEYAAoIkt39F6MVNqw37mb+IMVUmqLVYT7mLlB9WWp+qGWzZ4WhmbfKtM1/lIP8BiZkXSE8wwfXzQ==", "peerDependencies": { - "react": "^16.8.0", - "react-dom": "^16.8.0" + "react": ">=16.8", + "react-dom": ">=16.8" } }, "node_modules/util": { @@ -31875,9 +31875,9 @@ "version": "3.1.1" }, "use-keyboard-shortcut": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/use-keyboard-shortcut/-/use-keyboard-shortcut-1.1.2.tgz", - "integrity": "sha512-VrAu1avPLuFHShGo1RiPtCZ6htwsnLRlZc/w4+jmK99HCvIGG5WThz1KsoGgP8KCxP5c8a+pDjtnCgBg+3bXzA==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/use-keyboard-shortcut/-/use-keyboard-shortcut-1.1.3.tgz", + "integrity": "sha512-3xGUkPMu0WEYAAoIkt39F6MVNqw37mb+IMVUmqLVYT7mLlB9WWp+qGWzZ4WhmbfKtM1/lIP8BiZkXSE8wwfXzQ==", "requires": {} }, "util": { diff --git a/package.json b/package.json index de2e659..40f8113 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "serve": "^13.0.2", "swr": "^1.2.1", "typescript": "^4.5.5", - "use-keyboard-shortcut": "^1.1.2", + "use-keyboard-shortcut": "^1.1.3", "web-vitals": "^1.0.1" }, "scripts": { From 40130472dd1277ff6c26c87b5c3776da7f497bf4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 19 Feb 2022 04:32:49 +0000 Subject: [PATCH 34/46] Bump highlightjs-solidity from 2.0.3 to 2.0.4 (#185) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0aa3320..1a42ecd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,7 +34,7 @@ "@types/react-syntax-highlighter": "^13.5.2", "chart.js": "^3.7.1", "ethers": "^5.5.4", - "highlightjs-solidity": "^2.0.3", + "highlightjs-solidity": "^2.0.4", "react": "^17.0.2", "react-blockies": "^1.4.1", "react-chartjs-2": "^4.0.0", @@ -9363,9 +9363,9 @@ } }, "node_modules/highlightjs-solidity": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/highlightjs-solidity/-/highlightjs-solidity-2.0.3.tgz", - "integrity": "sha512-tjFm5dtIE61VQBzjlZmkCtY5fLs3CaEABbVuUNyXeW+UuOCsxMg3MsPFy0kCelHP74hPpkoqDejLrbnV1axAIw==" + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/highlightjs-solidity/-/highlightjs-solidity-2.0.4.tgz", + "integrity": "sha512-jsmfDXrjjxt4LxWfzp27j4CX6qYk6B8uK8sxzEDyGts8Ut1IuVlFCysAu6n5RrgHnuEKA+SCIcGPweO7qlPhCg==" }, "node_modules/history": { "version": "5.2.0", @@ -25804,9 +25804,9 @@ "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==" }, "highlightjs-solidity": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/highlightjs-solidity/-/highlightjs-solidity-2.0.3.tgz", - "integrity": "sha512-tjFm5dtIE61VQBzjlZmkCtY5fLs3CaEABbVuUNyXeW+UuOCsxMg3MsPFy0kCelHP74hPpkoqDejLrbnV1axAIw==" + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/highlightjs-solidity/-/highlightjs-solidity-2.0.4.tgz", + "integrity": "sha512-jsmfDXrjjxt4LxWfzp27j4CX6qYk6B8uK8sxzEDyGts8Ut1IuVlFCysAu6n5RrgHnuEKA+SCIcGPweO7qlPhCg==" }, "history": { "version": "5.2.0", diff --git a/package.json b/package.json index 40f8113..6ecf68b 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "@types/react-syntax-highlighter": "^13.5.2", "chart.js": "^3.7.1", "ethers": "^5.5.4", - "highlightjs-solidity": "^2.0.3", + "highlightjs-solidity": "^2.0.4", "react": "^17.0.2", "react-blockies": "^1.4.1", "react-chartjs-2": "^4.0.0", From 2e24b8be7336b644b40f6e33322d9ce02b8463be Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 19 Feb 2022 04:33:24 +0000 Subject: [PATCH 35/46] Bump url-parse from 1.5.1 to 1.5.7 (#188) --- package-lock.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1a42ecd..ad29f36 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18357,8 +18357,9 @@ } }, "node_modules/url-parse": { - "version": "1.5.1", - "license": "MIT", + "version": "1.5.7", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.7.tgz", + "integrity": "sha512-HxWkieX+STA38EDk7CE9MEryFeHCKzgagxlGvsdS7WBImq9Mk+PGwiT56w82WI3aicwJA8REp42Cxo98c8FZMA==", "dependencies": { "querystringify": "^2.1.1", "requires-port": "^1.0.0" @@ -31865,7 +31866,9 @@ } }, "url-parse": { - "version": "1.5.1", + "version": "1.5.7", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.7.tgz", + "integrity": "sha512-HxWkieX+STA38EDk7CE9MEryFeHCKzgagxlGvsdS7WBImq9Mk+PGwiT56w82WI3aicwJA8REp42Cxo98c8FZMA==", "requires": { "querystringify": "^2.1.1", "requires-port": "^1.0.0" From 88d0116d4ede50532b3e074a1bc0bd7a4ee3e8dd Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sat, 19 Feb 2022 01:57:16 -0300 Subject: [PATCH 36/46] Add docs for the new ots_getBlockDetails method --- docs/custom-jsonrpc.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/custom-jsonrpc.md b/docs/custom-jsonrpc.md index 497800b..383d68f 100644 --- a/docs/custom-jsonrpc.md +++ b/docs/custom-jsonrpc.md @@ -74,6 +74,7 @@ All methods are prefixed with the `ots_` namespace in order to make it clear it | `ots_getTransactionError` | Extract the transaction raw error output. | In order to get the error message or custom error from a failed transaction, you need to get its error output and decoded it. This info is not exposed through standard APIs. | | `ots_traceTransaction` | Extract all variations of calls, contract creation and self-destructs and returns a call tree. | This is an optimized version of tracing; regular tracing returns lots of data, and custom tracing using a JS tracer could be slow. | | `ots_getBlockDetails` | Tailor-made and expanded version of `eth_getBlock*` for block details page in Otterscan. | The standard `eth_getBlock*` is quite verbose and it doesn't bring all info we need. We explicitly remove the transaction list (unnecessary for that page and also this call doesn't scale well), log blooms and other unnecessary fields. We add issuance and block fees info and return all of this in just one call. | +| `ots_getBlockDetailsByHash` | Same as `ots_getBlockDetails`, but it accepts a block hash as parameter. | | | `ots_getBlockTransactions` | Get paginated transactions for a certain block. Also remove some verbose fields like logs. | As block size increases, getting all transactions from a block at once doesn't scale, so the first point here is to add pagination support. The second point is that receipts may have big, unnecessary information, like logs. So we cap all of them to save network bandwidth. | | `ots_searchTransactionsBefore` and `ots_searchTransactionsAfter` | Gets paginated inbound/outbound transaction calls for a certain address. | There is no native support for any kind of transaction search in the standard JSON-RPC API. We don't want to introduce an additional indexer middleware in Otterscan, so we implemented in-node search. | | `ots_getTransactionBySenderAndNonce` | Gets the transaction hash for a certain sender address, given its nonce. | There is no native support for this search in the standard JSON-RPC API. Otterscan needs it to allow user navigation between nonces from the same sender address. | From ee0ea1a2e3c603fa6026a0a48cda0c093e3b3565 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sat, 19 Feb 2022 06:17:40 -0300 Subject: [PATCH 37/46] Extract common component --- src/address/AddressTransactionResults.tsx | 64 ++++++++++------------- 1 file changed, 29 insertions(+), 35 deletions(-) diff --git a/src/address/AddressTransactionResults.tsx b/src/address/AddressTransactionResults.tsx index cc8665e..f19a43a 100644 --- a/src/address/AddressTransactionResults.tsx +++ b/src/address/AddressTransactionResults.tsx @@ -11,7 +11,7 @@ import { SelectionContext, useSelection } from "../useSelection"; import { useMultipleETHUSDOracle } from "../usePriceOracle"; import { RuntimeContext } from "../useRuntime"; import { useParams, useSearchParams } from "react-router-dom"; -import { ChecksummedAddress } from "../types"; +import { ChecksummedAddress, ProcessedTransaction } from "../types"; import { useContractsMetadata } from "../hooks"; type AddressTransactionResultsProps = { @@ -120,23 +120,7 @@ const AddressTransactionResults: React.FC = ({ return ( -
-
- {page === undefined ? ( - <>Waiting for search results... - ) : ( - <>{page.length} transactions on this page - )} -
- -
+ = ({ metadatas={metadatas} /> ))} -
-
- {page === undefined ? ( - <>Waiting for search results... - ) : ( - <>{page.length} transactions on this page - )} -
- -
+ ) : ( @@ -178,4 +146,30 @@ const AddressTransactionResults: React.FC = ({ ); }; +type NavBarProps = { + address: ChecksummedAddress; + page: ProcessedTransaction[] | undefined; + controller: SearchController | undefined; +}; + +const NavBar: React.FC = ({ address, page, controller }) => ( +
+
+ {page === undefined ? ( + <>Waiting for search results... + ) : ( + <>{page.length} transactions on this page + )} +
+ +
+); + export default AddressTransactionResults; From d00d6cba0b27eb814c707610d5c4a17d68d853cf Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sat, 19 Feb 2022 07:42:36 -0300 Subject: [PATCH 38/46] Add contract creator panel to address overview page --- src/address/AddressTransactionResults.tsx | 64 +++++++++++++++-------- src/params.ts | 2 +- src/useErigonHooks.ts | 53 +++++++++++++++++++ 3 files changed, 96 insertions(+), 23 deletions(-) diff --git a/src/address/AddressTransactionResults.tsx b/src/address/AddressTransactionResults.tsx index f19a43a..4fd7b25 100644 --- a/src/address/AddressTransactionResults.tsx +++ b/src/address/AddressTransactionResults.tsx @@ -1,6 +1,10 @@ import React, { useContext, useEffect, useMemo, useState } from "react"; import { BlockTag } from "@ethersproject/providers"; import ContentFrame from "../ContentFrame"; +import InfoRow from "../components/InfoRow"; +import TransactionAddress from "../components/TransactionAddress"; +import Copy from "../components/Copy"; +import TransactionLink from "../components/TransactionLink"; import PendingResults from "../search/PendingResults"; import ResultHeader from "../search/ResultHeader"; import { SearchController } from "../search/search"; @@ -13,6 +17,7 @@ import { RuntimeContext } from "../useRuntime"; import { useParams, useSearchParams } from "react-router-dom"; import { ChecksummedAddress, ProcessedTransaction } from "../types"; import { useContractsMetadata } from "../hooks"; +import { useContractCreator } from "../useErigonHooks"; type AddressTransactionResultsProps = { address: ChecksummedAddress; @@ -117,31 +122,46 @@ const AddressTransactionResults: React.FC = ({ return _addresses; }, [address, page]); const metadatas = useContractsMetadata(addresses, provider); + const creator = useContractCreator(provider, address); return ( - - - {page ? ( - - {page.map((tx) => ( - - ))} - - - ) : ( - - )} + + + {creator && ( + +
+ + + at + tx: + +
+
+ )} + + + {page ? ( + <> + {page.map((tx) => ( + + ))} + + + ) : ( + + )} +
); }; diff --git a/src/params.ts b/src/params.ts index f26ef7a..26f7291 100644 --- a/src/params.ts +++ b/src/params.ts @@ -1,3 +1,3 @@ -export const MIN_API_LEVEL = 7; +export const MIN_API_LEVEL = 8; export const PAGE_SIZE = 25; diff --git a/src/useErigonHooks.ts b/src/useErigonHooks.ts index ad9b0b8..0039963 100644 --- a/src/useErigonHooks.ts +++ b/src/useErigonHooks.ts @@ -605,3 +605,56 @@ export const useTransactionBySenderAndNonce = ( } return data; }; + +type ContractCreatorKey = { + type: "cc"; + network: number; + address: ChecksummedAddress; +}; + +type ContractCreator = { + hash: string; + creator: ChecksummedAddress; +}; + +export const useContractCreator = ( + provider: JsonRpcProvider | undefined, + address: ChecksummedAddress | undefined +): ContractCreator | null | undefined => { + const { data, error } = useSWR< + ContractCreator | null | undefined, + any, + ContractCreatorKey | null + >( + provider && address + ? { + type: "cc", + network: provider.network.chainId, + address, + } + : null, + getContractCreatorFetcher(provider!) + ); + + if (error) { + return undefined; + } + return data as ContractCreator; +}; + +const getContractCreatorFetcher = + (provider: JsonRpcProvider) => + async ({ + network, + address, + }: ContractCreatorKey): Promise => { + const result = (await provider.send("ots_experimentalGetContractCreator", [ + address, + ])) as ContractCreator; + + // Empty or success + if (result) { + result.creator = provider.formatter.address(result.creator); + } + return result; + }; From 22a0bc58883729c026bbb1719b620e9d49cb002d Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sat, 19 Feb 2022 08:01:34 -0300 Subject: [PATCH 39/46] Add current balance --- src/address/AddressTransactionResults.tsx | 10 ++++++++-- src/useErigonHooks.ts | 21 +++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/src/address/AddressTransactionResults.tsx b/src/address/AddressTransactionResults.tsx index 4fd7b25..48fb2d9 100644 --- a/src/address/AddressTransactionResults.tsx +++ b/src/address/AddressTransactionResults.tsx @@ -2,6 +2,7 @@ import React, { useContext, useEffect, useMemo, useState } from "react"; import { BlockTag } from "@ethersproject/providers"; import ContentFrame from "../ContentFrame"; import InfoRow from "../components/InfoRow"; +import FormattedBalance from "../components/FormattedBalance"; import TransactionAddress from "../components/TransactionAddress"; import Copy from "../components/Copy"; import TransactionLink from "../components/TransactionLink"; @@ -17,7 +18,7 @@ import { RuntimeContext } from "../useRuntime"; import { useParams, useSearchParams } from "react-router-dom"; import { ChecksummedAddress, ProcessedTransaction } from "../types"; import { useContractsMetadata } from "../hooks"; -import { useContractCreator } from "../useErigonHooks"; +import { useAddressBalance, useContractCreator } from "../useErigonHooks"; type AddressTransactionResultsProps = { address: ChecksummedAddress; @@ -122,12 +123,17 @@ const AddressTransactionResults: React.FC = ({ return _addresses; }, [address, page]); const metadatas = useContractsMetadata(addresses, provider); + const balance = useAddressBalance(provider, address); const creator = useContractCreator(provider, address); return ( - + {balance && ( + + Ether{" "} + + )} {creator && (
diff --git a/src/useErigonHooks.ts b/src/useErigonHooks.ts index 0039963..5db5ee1 100644 --- a/src/useErigonHooks.ts +++ b/src/useErigonHooks.ts @@ -658,3 +658,24 @@ const getContractCreatorFetcher = } return result; }; + +export const useAddressBalance = ( + provider: JsonRpcProvider | undefined, + address: ChecksummedAddress | undefined +): BigNumber | null | undefined => { + const [balance, setBalance] = useState(); + + useEffect(() => { + if (!provider || !address) { + return undefined; + } + + const readBalance = async () => { + const _balance = await provider.getBalance(address); + setBalance(_balance); + }; + readBalance(); + }, [provider, address]); + + return balance; +}; From 4b6910d2a1f80708d7c1be13e4b59a37c476423b Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sat, 19 Feb 2022 15:07:28 -0300 Subject: [PATCH 40/46] Improve creator/tx display UI --- src/address/AddressTransactionResults.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/address/AddressTransactionResults.tsx b/src/address/AddressTransactionResults.tsx index 48fb2d9..88ae415 100644 --- a/src/address/AddressTransactionResults.tsx +++ b/src/address/AddressTransactionResults.tsx @@ -131,17 +131,19 @@ const AddressTransactionResults: React.FC = ({ {balance && ( - Ether{" "} + Ether )} {creator && ( -
- - - at - tx: - +
+
+ + +
+
+ +
)} From dcc125293a3e28658691123614b815faab0be99e Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sat, 19 Feb 2022 15:19:56 -0300 Subject: [PATCH 41/46] Use standard TransactionValue component; add docs --- src/address/AddressTransactionResults.tsx | 4 ++-- src/components/FormattedBalance.tsx | 1 + src/components/TransactionValue.tsx | 10 ++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/address/AddressTransactionResults.tsx b/src/address/AddressTransactionResults.tsx index 88ae415..24793d0 100644 --- a/src/address/AddressTransactionResults.tsx +++ b/src/address/AddressTransactionResults.tsx @@ -2,7 +2,7 @@ import React, { useContext, useEffect, useMemo, useState } from "react"; import { BlockTag } from "@ethersproject/providers"; import ContentFrame from "../ContentFrame"; import InfoRow from "../components/InfoRow"; -import FormattedBalance from "../components/FormattedBalance"; +import TransactionValue from "../components/TransactionValue"; import TransactionAddress from "../components/TransactionAddress"; import Copy from "../components/Copy"; import TransactionLink from "../components/TransactionLink"; @@ -131,7 +131,7 @@ const AddressTransactionResults: React.FC = ({ {balance && ( - Ether + )} {creator && ( diff --git a/src/components/FormattedBalance.tsx b/src/components/FormattedBalance.tsx index 6f83163..7da298e 100644 --- a/src/components/FormattedBalance.tsx +++ b/src/components/FormattedBalance.tsx @@ -7,6 +7,7 @@ type FormatterBalanceProps = { decimals?: number; }; +// TODO: remove duplication with TransactionValue component const FormattedBalance: React.FC = ({ value, decimals = 18, diff --git a/src/components/TransactionValue.tsx b/src/components/TransactionValue.tsx index f403b4a..618ec2e 100644 --- a/src/components/TransactionValue.tsx +++ b/src/components/TransactionValue.tsx @@ -8,6 +8,16 @@ type TransactionValueProps = { hideUnit?: boolean; }; +/** + * Standard component for displaying balances. It: + * + * - Commify non-decimal parts, i.e., 1,000,000.00 + * - Light gray absolute zero values + * - Cut out decimal part is it is 0 to reduce UI clutter, i.e., show + * 123 instead of 123.00 + * + * TODO: remove duplication with FormattedBalance + */ const TransactionValue: React.FC = ({ value, decimals = 18, From 40c254756577c8cf503c83d110bc9c96d5ae58d4 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sat, 19 Feb 2022 15:25:37 -0300 Subject: [PATCH 42/46] Extract unit name --- src/components/TransactionValue.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/TransactionValue.tsx b/src/components/TransactionValue.tsx index 618ec2e..c7a8d2c 100644 --- a/src/components/TransactionValue.tsx +++ b/src/components/TransactionValue.tsx @@ -6,6 +6,7 @@ type TransactionValueProps = { value: BigNumber; decimals?: number; hideUnit?: boolean; + unitName?: string; }; /** @@ -22,16 +23,17 @@ const TransactionValue: React.FC = ({ value, decimals = 18, hideUnit, + unitName = "ETH", }) => { const formattedValue = formatValue(value, decimals); return ( {formattedValue} - {!hideUnit && " Ether"} + {!hideUnit && ` ${unitName}`} ); }; From 60931863fa27e0e10c8a0a9d3c2ad343d8cebd62 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sat, 19 Feb 2022 16:42:25 -0300 Subject: [PATCH 43/46] Add USD price next to ETH balance on address page --- src/PriceBox.tsx | 1 + src/address/AddressTransactionResults.tsx | 20 +++++++++++++++++--- src/components/ETH2USDValue.tsx | 7 +++++++ 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/src/PriceBox.tsx b/src/PriceBox.tsx index ad73d06..2ebb5d7 100644 --- a/src/PriceBox.tsx +++ b/src/PriceBox.tsx @@ -10,6 +10,7 @@ import { useLatestBlock } from "./useLatestBlock"; const ETH_FEED_DECIMALS = 8; +// TODO: reduce duplication with useETHUSDOracle const PriceBox: React.FC = () => { const { provider } = useContext(RuntimeContext); const latestBlock = useLatestBlock(provider); diff --git a/src/address/AddressTransactionResults.tsx b/src/address/AddressTransactionResults.tsx index 24793d0..1a95535 100644 --- a/src/address/AddressTransactionResults.tsx +++ b/src/address/AddressTransactionResults.tsx @@ -3,6 +3,7 @@ import { BlockTag } from "@ethersproject/providers"; import ContentFrame from "../ContentFrame"; import InfoRow from "../components/InfoRow"; import TransactionValue from "../components/TransactionValue"; +import ETH2USDValue from "../components/ETH2USDValue"; import TransactionAddress from "../components/TransactionAddress"; import Copy from "../components/Copy"; import TransactionLink from "../components/TransactionLink"; @@ -101,9 +102,12 @@ const AddressTransactionResults: React.FC = ({ // TODO: dedup blockTags const blockTags: BlockTag[] = useMemo(() => { if (!page) { - return []; + return ["latest"]; } - return page.map((t) => t.blockNumber); + + const blockTags: BlockTag[] = page.map((t) => t.blockNumber); + blockTags.push("latest"); + return blockTags; }, [page]); const priceMap = useMultipleETHUSDOracle(provider, blockTags); @@ -131,7 +135,17 @@ const AddressTransactionResults: React.FC = ({ {balance && ( - +
+ + {!balance.isZero() && priceMap["latest"] !== undefined && ( + + + + )} +
)} {creator && ( diff --git a/src/components/ETH2USDValue.tsx b/src/components/ETH2USDValue.tsx index ef131d8..53ece53 100644 --- a/src/components/ETH2USDValue.tsx +++ b/src/components/ETH2USDValue.tsx @@ -7,6 +7,13 @@ type ETH2USDValueProps = { eth2USDValue: BigNumber; }; +/** + * Basic display of ETH -> USD values WITHOUT box decoration, only + * text formatting. + * + * USD amounts are displayed commified with 2 decimals places and $ prefix, + * i.e., "$1,000.00". + */ const ETH2USDValue: React.FC = ({ ethAmount, eth2USDValue, From 48ab6940018fa1c4782e69d7b68b0c60d2cf5202 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sat, 19 Feb 2022 16:55:27 -0300 Subject: [PATCH 44/46] Fix wrap --- src/components/Copy.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Copy.tsx b/src/components/Copy.tsx index 86e902d..41d048e 100644 --- a/src/components/Copy.tsx +++ b/src/components/Copy.tsx @@ -22,7 +22,7 @@ const Copy: React.FC = ({ value, rounded }) => { return (