From ae73d2205962b77df8e6f36a6213d942fa77a673 Mon Sep 17 00:00:00 2001 From: Claude Barde Date: Wed, 27 Oct 2021 08:57:06 +0100 Subject: [PATCH] Switched dapp to Hangzhounet and updated Taquito version --- package-lock.json | 204 ++++++++++++++-------------- package.json | 6 +- src/App.tsx | 8 +- src/components/ConnectWallet.tsx | 6 +- src/components/DisconnectWallet.tsx | 2 +- 5 files changed, 114 insertions(+), 112 deletions(-) diff --git a/package-lock.json b/package-lock.json index 15fac1e..ddfd3f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,9 +9,9 @@ "version": "0.1.0", "dependencies": { "@ledgerhq/hw-transport-u2f": "^5.22.0", - "@taquito/beacon-wallet": "^9.2.0-stablelib.0", - "@taquito/ledger-signer": "^9.2.0-stablelib.0", - "@taquito/taquito": "^9.2.0-stablelib.0", + "@taquito/beacon-wallet": "^10.2.1", + "@taquito/ledger-signer": "^10.2.1", + "@taquito/taquito": "^10.2.1", "@testing-library/jest-dom": "^5.11.9", "@testing-library/react": "^11.2.5", "@testing-library/user-event": "^12.6.3", @@ -28,9 +28,9 @@ } }, "node_modules/@airgap/beacon-sdk": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@airgap/beacon-sdk/-/beacon-sdk-2.3.1.tgz", - "integrity": "sha512-KhlerqRlI9LxkxY6sq5ar5g6KuzEEGEacnMg7AWxL/Pdq3WXGfMrdzVOO+4wOgB8f1/A8MRn0l/zjwAFZqAvYA==", + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@airgap/beacon-sdk/-/beacon-sdk-2.3.5.tgz", + "integrity": "sha512-fBSiJVSHA0fTLn3DVfRqGPYOn8O/ud924vrdRtN8mp95ZU6h8FyhDiQeaaY2oUtwXEvYRKJByBCjVMIFQxkvpw==", "dependencies": { "@types/chrome": "0.0.115", "@types/libsodium-wrappers": "0.7.7", @@ -2245,22 +2245,22 @@ } }, "node_modules/@taquito/beacon-wallet": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@taquito/beacon-wallet/-/beacon-wallet-9.2.0.tgz", - "integrity": "sha512-Hw5Ybz9nLYTDnH0PFVmnq4vEXnJQ4Otcm/0GEd7W8JNZh4YzwEC/zytyStL/yMhVb2DduDYJd2D+KTfyqlMSpw==", + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@taquito/beacon-wallet/-/beacon-wallet-10.2.1.tgz", + "integrity": "sha512-2AWL8CHExAd6RG5ZoPAm4bx6ZQIeszbASckjDE1q9wHtPkVrMdLyQAr1FlQsXdONR/Qm8ZCyJ+Xy63ABZ9TegQ==", "dependencies": { - "@airgap/beacon-sdk": "^2.2.9", - "@taquito/taquito": "^9.2.0", - "@taquito/utils": "^9.2.0" + "@airgap/beacon-sdk": "^2.3.5", + "@taquito/taquito": "^10.2.1", + "@taquito/utils": "^10.2.1" }, "engines": { "node": ">=6.0.0" } }, "node_modules/@taquito/http-utils": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@taquito/http-utils/-/http-utils-9.2.0.tgz", - "integrity": "sha512-OvfQIikCopGM1IbH1Heapih9lEf5FaHh+7/zhT7/8J0FIq48eE4Pha91JesMKsMvWImSiQ4Sro7Uz29/6r3u5Q==", + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@taquito/http-utils/-/http-utils-10.2.1.tgz", + "integrity": "sha512-RZmGxJFllTHC5LuxrPcVQoH/MpDvQehLjE1czSmL2Dz1VZlzI4Q6Ie+pG5nHQODRPqE8ABi/2aHAGGYMQWqKZg==", "dependencies": { "xhr2-cookies": "^1.1.0" }, @@ -2269,13 +2269,13 @@ } }, "node_modules/@taquito/ledger-signer": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@taquito/ledger-signer/-/ledger-signer-9.2.0.tgz", - "integrity": "sha512-4Z4MNxHagLIpjQ/2ev2xCbMh005b37BXwM4/x42AHncEB8OBeKf/lDgBgnhNJ/RMFWbMv4J402ow3iUeIQ1aIg==", + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@taquito/ledger-signer/-/ledger-signer-10.2.1.tgz", + "integrity": "sha512-bjDxQa1Y02FbB1JVfEK7stWtYAPM8km8RbnJjudBJGcikcaHUZ8Gb0u9zs2R7MJ6rAaPSmklJI0h/sN8jTabSw==", "dependencies": { "@ledgerhq/hw-transport": "^5.51.1", - "@taquito/taquito": "^9.2.0", - "@taquito/utils": "^9.2.0", + "@taquito/taquito": "^10.2.1", + "@taquito/utils": "^10.2.1", "@types/jest": "^26.0.23", "buffer": "^6.0.3", "libsodium-wrappers": "0.7.8" @@ -2308,20 +2308,20 @@ } }, "node_modules/@taquito/michel-codec": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@taquito/michel-codec/-/michel-codec-9.2.0.tgz", - "integrity": "sha512-1nnqb2EbsvSzHCtigrKnT0wPXDg/8p/w0dGewRNlE4t001oW/E36YORWtZjhLrFLEHvq+LKFf/xS/OrMhKzoWg==", + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@taquito/michel-codec/-/michel-codec-10.2.1.tgz", + "integrity": "sha512-VSHELyuiwso1qCpAEZkH7JdDlZdHxTjyvZcBsfnfpbdpCrAUpCB48P4NZOnvZ58SYt9VS1bNAa5GRvQyOnNvMQ==", "engines": { "node": ">=6.0.0" } }, "node_modules/@taquito/michelson-encoder": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@taquito/michelson-encoder/-/michelson-encoder-9.2.0.tgz", - "integrity": "sha512-12Fsww2PAZHeG/xexXBeT2Vydk3KDechJrhCoXTeLUnmT55zMMbHmdmShMsywNd3ehqTWUaQLuxgNVPS+LWYxA==", + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@taquito/michelson-encoder/-/michelson-encoder-10.2.1.tgz", + "integrity": "sha512-HYCtDGCWtyCgOQjmxYLYw5ftejG0FUfAW1FzZWIW6w2ars1TInSbLNeVRZs+EmbD3L8wOaxaOlgdsMoDnGqM/g==", "dependencies": { - "@taquito/rpc": "^9.2.0", - "@taquito/utils": "^9.2.0", + "@taquito/rpc": "^10.2.1", + "@taquito/utils": "^10.2.1", "bignumber.js": "^9.0.1", "fast-json-stable-stringify": "^2.1.0" }, @@ -2338,11 +2338,11 @@ } }, "node_modules/@taquito/rpc": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@taquito/rpc/-/rpc-9.2.0.tgz", - "integrity": "sha512-Wj4x1URbFM3Two5k3twilAGut0LQXhVOILTOL3f3oFotFzvTgwhtdOXODxzhts4XyZbzv7fLnYVsCqrhsTKo7Q==", + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@taquito/rpc/-/rpc-10.2.1.tgz", + "integrity": "sha512-Vg80sGLICkEKGls+7YEd0uFpsp8dwx2kNeGgCbpNROIs0S6Slsd0UfDlaZGlllWeUAKr5r6baexYrTKFuWs/UA==", "dependencies": { - "@taquito/http-utils": "^9.2.0", + "@taquito/http-utils": "^10.2.1", "bignumber.js": "^9.0.1", "lodash": "^4.17.21" }, @@ -2359,16 +2359,16 @@ } }, "node_modules/@taquito/taquito": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@taquito/taquito/-/taquito-9.2.0.tgz", - "integrity": "sha512-oCgF2BIXwRu0o64JppHKYpkq7N5EzfZQXvSQm/ecWEP5Kk2Uf7qNza7yid5zESIuIwTPwGJAv4D8kyc3QYi8Jg==", + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@taquito/taquito/-/taquito-10.2.1.tgz", + "integrity": "sha512-ay61aKhFQPnYGu5d9jqEvaZE0EzE6tO9MD+5vOu6/NFVThBd7ysOQS1PB0VprL9SupM1NVDFnEJ8GtE8SYgk8g==", "hasInstallScript": true, "dependencies": { - "@taquito/http-utils": "^9.2.0", - "@taquito/michel-codec": "^9.2.0", - "@taquito/michelson-encoder": "^9.2.0", - "@taquito/rpc": "^9.2.0", - "@taquito/utils": "^9.2.0", + "@taquito/http-utils": "^10.2.1", + "@taquito/michel-codec": "^10.2.1", + "@taquito/michelson-encoder": "^10.2.1", + "@taquito/rpc": "^10.2.1", + "@taquito/utils": "^10.2.1", "bignumber.js": "^9.0.1", "rx-sandbox": "^1.0.4", "rxjs": "^6.6.3" @@ -2386,9 +2386,9 @@ } }, "node_modules/@taquito/utils": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@taquito/utils/-/utils-9.2.0.tgz", - "integrity": "sha512-pawB2Wqym/evBvSvF4AWeu5b+Zo1NArhqRrdoNOP6iBjhTfb7dcgavjhMFgG7/ATF6C17Mkqtn+Tp2V65i3MPA==", + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@taquito/utils/-/utils-10.2.1.tgz", + "integrity": "sha512-oW/D9irojwjorIV/0yO32Gyr+zSnITkVkOwVmnxge6DYHWC7aqPbdwiDwc4/GewKXNngBDqDEjEEPhkp0ZnvJw==", "dependencies": { "blakejs": "^1.1.0", "bs58check": "^2.1.2", @@ -2718,9 +2718,9 @@ } }, "node_modules/@types/har-format": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@types/har-format/-/har-format-1.2.7.tgz", - "integrity": "sha512-/TPzUG0tJn5x1TUcVLlDx2LqbE58hyOzDVAc9kf8SpOEmguHjU6bKUyfqb211AdqLOmU/SNyXvLKPNP5qTlfRw==" + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@types/har-format/-/har-format-1.2.8.tgz", + "integrity": "sha512-OP6L9VuZNdskgNN3zFQQ54ceYD8OLq5IbqO4VK91ORLfOm7WdT/CiT/pHEBSQEqCInJ2y3O6iCm/zGtPElpgJQ==" }, "node_modules/@types/html-minifier-terser": { "version": "5.1.1", @@ -4135,9 +4135,9 @@ } }, "node_modules/base-x": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.8.tgz", - "integrity": "sha512-Rl/1AWP4J/zRrk54hhlxH4drNxPJXYUaKffODVI53/dAsV4t9fBxyxYKAVPU1XBHxYwOWP9h9H0hM2MVw4YfJA==", + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", + "integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==", "dependencies": { "safe-buffer": "^5.0.1" } @@ -5136,9 +5136,9 @@ "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" }, "node_modules/cookiejar": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.2.tgz", - "integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA==" + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.3.tgz", + "integrity": "sha512-JxbCBUdrfr6AQjOXrxoTvAMJO4HBTUIlBzslcJPAz+/KT8yk53fXun51u+RenNYvad/+Vc2DIz5o9UxlCDymFQ==" }, "node_modules/copy-concurrently": { "version": "1.0.5", @@ -19470,9 +19470,9 @@ }, "dependencies": { "@airgap/beacon-sdk": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@airgap/beacon-sdk/-/beacon-sdk-2.3.1.tgz", - "integrity": "sha512-KhlerqRlI9LxkxY6sq5ar5g6KuzEEGEacnMg7AWxL/Pdq3WXGfMrdzVOO+4wOgB8f1/A8MRn0l/zjwAFZqAvYA==", + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@airgap/beacon-sdk/-/beacon-sdk-2.3.5.tgz", + "integrity": "sha512-fBSiJVSHA0fTLn3DVfRqGPYOn8O/ud924vrdRtN8mp95ZU6h8FyhDiQeaaY2oUtwXEvYRKJByBCjVMIFQxkvpw==", "requires": { "@types/chrome": "0.0.115", "@types/libsodium-wrappers": "0.7.7", @@ -21491,31 +21491,31 @@ } }, "@taquito/beacon-wallet": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@taquito/beacon-wallet/-/beacon-wallet-9.2.0.tgz", - "integrity": "sha512-Hw5Ybz9nLYTDnH0PFVmnq4vEXnJQ4Otcm/0GEd7W8JNZh4YzwEC/zytyStL/yMhVb2DduDYJd2D+KTfyqlMSpw==", + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@taquito/beacon-wallet/-/beacon-wallet-10.2.1.tgz", + "integrity": "sha512-2AWL8CHExAd6RG5ZoPAm4bx6ZQIeszbASckjDE1q9wHtPkVrMdLyQAr1FlQsXdONR/Qm8ZCyJ+Xy63ABZ9TegQ==", "requires": { - "@airgap/beacon-sdk": "^2.2.9", - "@taquito/taquito": "^9.2.0", - "@taquito/utils": "^9.2.0" + "@airgap/beacon-sdk": "^2.3.5", + "@taquito/taquito": "^10.2.1", + "@taquito/utils": "^10.2.1" } }, "@taquito/http-utils": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@taquito/http-utils/-/http-utils-9.2.0.tgz", - "integrity": "sha512-OvfQIikCopGM1IbH1Heapih9lEf5FaHh+7/zhT7/8J0FIq48eE4Pha91JesMKsMvWImSiQ4Sro7Uz29/6r3u5Q==", + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@taquito/http-utils/-/http-utils-10.2.1.tgz", + "integrity": "sha512-RZmGxJFllTHC5LuxrPcVQoH/MpDvQehLjE1czSmL2Dz1VZlzI4Q6Ie+pG5nHQODRPqE8ABi/2aHAGGYMQWqKZg==", "requires": { "xhr2-cookies": "^1.1.0" } }, "@taquito/ledger-signer": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@taquito/ledger-signer/-/ledger-signer-9.2.0.tgz", - "integrity": "sha512-4Z4MNxHagLIpjQ/2ev2xCbMh005b37BXwM4/x42AHncEB8OBeKf/lDgBgnhNJ/RMFWbMv4J402ow3iUeIQ1aIg==", + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@taquito/ledger-signer/-/ledger-signer-10.2.1.tgz", + "integrity": "sha512-bjDxQa1Y02FbB1JVfEK7stWtYAPM8km8RbnJjudBJGcikcaHUZ8Gb0u9zs2R7MJ6rAaPSmklJI0h/sN8jTabSw==", "requires": { "@ledgerhq/hw-transport": "^5.51.1", - "@taquito/taquito": "^9.2.0", - "@taquito/utils": "^9.2.0", + "@taquito/taquito": "^10.2.1", + "@taquito/utils": "^10.2.1", "@types/jest": "^26.0.23", "buffer": "^6.0.3", "libsodium-wrappers": "0.7.8" @@ -21533,17 +21533,17 @@ } }, "@taquito/michel-codec": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@taquito/michel-codec/-/michel-codec-9.2.0.tgz", - "integrity": "sha512-1nnqb2EbsvSzHCtigrKnT0wPXDg/8p/w0dGewRNlE4t001oW/E36YORWtZjhLrFLEHvq+LKFf/xS/OrMhKzoWg==" + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@taquito/michel-codec/-/michel-codec-10.2.1.tgz", + "integrity": "sha512-VSHELyuiwso1qCpAEZkH7JdDlZdHxTjyvZcBsfnfpbdpCrAUpCB48P4NZOnvZ58SYt9VS1bNAa5GRvQyOnNvMQ==" }, "@taquito/michelson-encoder": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@taquito/michelson-encoder/-/michelson-encoder-9.2.0.tgz", - "integrity": "sha512-12Fsww2PAZHeG/xexXBeT2Vydk3KDechJrhCoXTeLUnmT55zMMbHmdmShMsywNd3ehqTWUaQLuxgNVPS+LWYxA==", + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@taquito/michelson-encoder/-/michelson-encoder-10.2.1.tgz", + "integrity": "sha512-HYCtDGCWtyCgOQjmxYLYw5ftejG0FUfAW1FzZWIW6w2ars1TInSbLNeVRZs+EmbD3L8wOaxaOlgdsMoDnGqM/g==", "requires": { - "@taquito/rpc": "^9.2.0", - "@taquito/utils": "^9.2.0", + "@taquito/rpc": "^10.2.1", + "@taquito/utils": "^10.2.1", "bignumber.js": "^9.0.1", "fast-json-stable-stringify": "^2.1.0" }, @@ -21556,11 +21556,11 @@ } }, "@taquito/rpc": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@taquito/rpc/-/rpc-9.2.0.tgz", - "integrity": "sha512-Wj4x1URbFM3Two5k3twilAGut0LQXhVOILTOL3f3oFotFzvTgwhtdOXODxzhts4XyZbzv7fLnYVsCqrhsTKo7Q==", + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@taquito/rpc/-/rpc-10.2.1.tgz", + "integrity": "sha512-Vg80sGLICkEKGls+7YEd0uFpsp8dwx2kNeGgCbpNROIs0S6Slsd0UfDlaZGlllWeUAKr5r6baexYrTKFuWs/UA==", "requires": { - "@taquito/http-utils": "^9.2.0", + "@taquito/http-utils": "^10.2.1", "bignumber.js": "^9.0.1", "lodash": "^4.17.21" }, @@ -21573,15 +21573,15 @@ } }, "@taquito/taquito": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@taquito/taquito/-/taquito-9.2.0.tgz", - "integrity": "sha512-oCgF2BIXwRu0o64JppHKYpkq7N5EzfZQXvSQm/ecWEP5Kk2Uf7qNza7yid5zESIuIwTPwGJAv4D8kyc3QYi8Jg==", - "requires": { - "@taquito/http-utils": "^9.2.0", - "@taquito/michel-codec": "^9.2.0", - "@taquito/michelson-encoder": "^9.2.0", - "@taquito/rpc": "^9.2.0", - "@taquito/utils": "^9.2.0", + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@taquito/taquito/-/taquito-10.2.1.tgz", + "integrity": "sha512-ay61aKhFQPnYGu5d9jqEvaZE0EzE6tO9MD+5vOu6/NFVThBd7ysOQS1PB0VprL9SupM1NVDFnEJ8GtE8SYgk8g==", + "requires": { + "@taquito/http-utils": "^10.2.1", + "@taquito/michel-codec": "^10.2.1", + "@taquito/michelson-encoder": "^10.2.1", + "@taquito/rpc": "^10.2.1", + "@taquito/utils": "^10.2.1", "bignumber.js": "^9.0.1", "rx-sandbox": "^1.0.4", "rxjs": "^6.6.3" @@ -21595,9 +21595,9 @@ } }, "@taquito/utils": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@taquito/utils/-/utils-9.2.0.tgz", - "integrity": "sha512-pawB2Wqym/evBvSvF4AWeu5b+Zo1NArhqRrdoNOP6iBjhTfb7dcgavjhMFgG7/ATF6C17Mkqtn+Tp2V65i3MPA==", + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/@taquito/utils/-/utils-10.2.1.tgz", + "integrity": "sha512-oW/D9irojwjorIV/0yO32Gyr+zSnITkVkOwVmnxge6DYHWC7aqPbdwiDwc4/GewKXNngBDqDEjEEPhkp0ZnvJw==", "requires": { "blakejs": "^1.1.0", "bs58check": "^2.1.2", @@ -21875,9 +21875,9 @@ } }, "@types/har-format": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@types/har-format/-/har-format-1.2.7.tgz", - "integrity": "sha512-/TPzUG0tJn5x1TUcVLlDx2LqbE58hyOzDVAc9kf8SpOEmguHjU6bKUyfqb211AdqLOmU/SNyXvLKPNP5qTlfRw==" + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@types/har-format/-/har-format-1.2.8.tgz", + "integrity": "sha512-OP6L9VuZNdskgNN3zFQQ54ceYD8OLq5IbqO4VK91ORLfOm7WdT/CiT/pHEBSQEqCInJ2y3O6iCm/zGtPElpgJQ==" }, "@types/html-minifier-terser": { "version": "5.1.1", @@ -23167,9 +23167,9 @@ } }, "base-x": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.8.tgz", - "integrity": "sha512-Rl/1AWP4J/zRrk54hhlxH4drNxPJXYUaKffODVI53/dAsV4t9fBxyxYKAVPU1XBHxYwOWP9h9H0hM2MVw4YfJA==", + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", + "integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==", "requires": { "safe-buffer": "^5.0.1" } @@ -24002,9 +24002,9 @@ "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" }, "cookiejar": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.2.tgz", - "integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA==" + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.3.tgz", + "integrity": "sha512-JxbCBUdrfr6AQjOXrxoTvAMJO4HBTUIlBzslcJPAz+/KT8yk53fXun51u+RenNYvad/+Vc2DIz5o9UxlCDymFQ==" }, "copy-concurrently": { "version": "1.0.5", diff --git a/package.json b/package.json index 7039967..1f0100b 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "private": true, "dependencies": { "@ledgerhq/hw-transport-u2f": "^5.22.0", - "@taquito/beacon-wallet": "^9.2.0-stablelib.0", - "@taquito/ledger-signer": "^9.2.0-stablelib.0", - "@taquito/taquito": "^9.2.0-stablelib.0", + "@taquito/beacon-wallet": "^10.2.1", + "@taquito/ledger-signer": "^10.2.1", + "@taquito/taquito": "^10.2.1", "@testing-library/jest-dom": "^5.11.9", "@testing-library/react": "^11.2.5", "@testing-library/user-event": "^12.6.3", diff --git a/src/App.tsx b/src/App.tsx index 64c05f5..60621f8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -17,7 +17,7 @@ enum BeaconConnection { const App = () => { const [Tezos, setTezos] = useState( - new TezosToolkit("https://api.tez.ie/rpc/granadanet") + new TezosToolkit("https://hangzhounet.api.tez.ie") ); const [contract, setContract] = useState(undefined); const [publicToken, setPublicToken] = useState(""); @@ -30,7 +30,9 @@ const App = () => { const [activeTab, setActiveTab] = useState("transfer"); // Granadanet Increment/Decrement contract - const contractAddress: string = "KT1K3XVNzsmur7VRgY8CAHPUENaErzzEpe4e"; + // const contractAddress: string = "KT1K3XVNzsmur7VRgY8CAHPUENaErzzEpe4e"; + // Hangzhounet Increment/Decrement contract + const contractAddress: string = "KT1WiPWNcBMcXJButkkvroRGkzs45n3iZ13c"; const generateQrCode = (): { __html: string } => { const qr = qrcode(0, "L"); @@ -137,7 +139,7 @@ const App = () => {

  diff --git a/src/components/ConnectWallet.tsx b/src/components/ConnectWallet.tsx index 78efdcd..b8768e5 100644 --- a/src/components/ConnectWallet.tsx +++ b/src/components/ConnectWallet.tsx @@ -52,8 +52,8 @@ const ConnectButton = ({ try { await wallet.requestPermissions({ network: { - type: NetworkType.GRANADANET, - rpcUrl: "https://api.tez.ie/rpc/granadanet" + type: NetworkType.HANGZHOUNET, + rpcUrl: "https://hangzhounet.api.tez.ie" } }); // gets user's address @@ -87,7 +87,7 @@ const ConnectButton = ({ // creates a wallet instance const wallet = new BeaconWallet({ name: "Taquito Boilerplate", - preferredNetwork: NetworkType.GRANADANET, + preferredNetwork: NetworkType.HANGZHOUNET, disableDefaultEvents: true, // Disable all events / UI. This also disables the pairing alert. eventHandlers: { // To keep the pairing alert, we have to add the following default event handlers back diff --git a/src/components/DisconnectWallet.tsx b/src/components/DisconnectWallet.tsx index 45e6643..e39c5cb 100644 --- a/src/components/DisconnectWallet.tsx +++ b/src/components/DisconnectWallet.tsx @@ -26,7 +26,7 @@ const DisconnectButton = ({ setUserAddress(""); setUserBalance(0); setWallet(null); - const tezosTK = new TezosToolkit("https://api.tez.ie/rpc/granadanet"); + const tezosTK = new TezosToolkit("https://hangzhounet.api.tez.ie"); setTezos(tezosTK); setBeaconConnection(false); setPublicToken(null);