From dec5bd36eaa4c331b28058100cd503a08003d779 Mon Sep 17 00:00:00 2001 From: ByteAtATime Date: Tue, 30 Apr 2024 17:51:52 -0700 Subject: [PATCH] fix(svelte): add @wagmi/connectors package (required by web3modal) --- packages/svelte/package.json | 1 + yarn.lock | 221 ++++++++++++++++++++++++++++++++++- 2 files changed, 218 insertions(+), 4 deletions(-) diff --git a/packages/svelte/package.json b/packages/svelte/package.json index 247ad8e..b4a6126 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -47,6 +47,7 @@ "@tanstack/svelte-query": "^5.28.9", "@uniswap/sdk-core": "^4.2.0", "@uniswap/v2-sdk": "^4.3.0", + "@wagmi/connectors": "^4.3.0", "@wagmi/core": "^2.6.13", "@web3modal/wagmi": "^4.1.3", "abitype": "^1.0.2", diff --git a/yarn.lock b/yarn.lock index e3e5a35..133489a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -99,6 +99,15 @@ __metadata: languageName: node linkType: hard +"@babel/runtime@npm:^7.19.4": + version: 7.24.5 + resolution: "@babel/runtime@npm:7.24.5" + dependencies: + regenerator-runtime: ^0.14.0 + checksum: 755383192f3ac32ba4c62bd4f1ae92aed5b82d2c6665f39eb28fa94546777cf5c63493ea92dd03f1c2e621b17e860f190c056684b7f234270fdc91e29beda063 + languageName: node + linkType: hard + "@babel/types@npm:^7.24.0, @babel/types@npm:^7.8.3": version: 7.24.0 resolution: "@babel/types@npm:7.24.0" @@ -1263,7 +1272,7 @@ __metadata: languageName: node linkType: hard -"@metamask/json-rpc-engine@npm:^7.0.0": +"@metamask/json-rpc-engine@npm:^7.0.0, @metamask/json-rpc-engine@npm:^7.3.2": version: 7.3.3 resolution: "@metamask/json-rpc-engine@npm:7.3.3" dependencies: @@ -1274,6 +1283,18 @@ __metadata: languageName: node linkType: hard +"@metamask/json-rpc-middleware-stream@npm:^6.0.2": + version: 6.0.2 + resolution: "@metamask/json-rpc-middleware-stream@npm:6.0.2" + dependencies: + "@metamask/json-rpc-engine": ^7.3.2 + "@metamask/safe-event-emitter": ^3.0.0 + "@metamask/utils": ^8.3.0 + readable-stream: ^3.6.2 + checksum: e831041b03e9f48f584f4425188f72b58974f95b60429c9fe8b5561da69c6bbfad2f2b2199acdff06ee718967214b65c05604d4f85f3287186619683487f1060 + languageName: node + linkType: hard + "@metamask/object-multiplex@npm:^1.1.0": version: 1.3.0 resolution: "@metamask/object-multiplex@npm:1.3.0" @@ -1285,6 +1306,16 @@ __metadata: languageName: node linkType: hard +"@metamask/object-multiplex@npm:^2.0.0": + version: 2.0.0 + resolution: "@metamask/object-multiplex@npm:2.0.0" + dependencies: + once: ^1.4.0 + readable-stream: ^3.6.2 + checksum: 54baea752a3ac7c2742c376512e00d4902d383e9da8787574d3b21eb0081523309e24e3915a98f3ae0341d65712b6832d2eb7eeb862f4ef0da1ead52dcde5387 + languageName: node + linkType: hard + "@metamask/onboarding@npm:^1.0.1": version: 1.0.1 resolution: "@metamask/onboarding@npm:1.0.1" @@ -1324,6 +1355,26 @@ __metadata: languageName: node linkType: hard +"@metamask/providers@npm:^15.0.0": + version: 15.0.0 + resolution: "@metamask/providers@npm:15.0.0" + dependencies: + "@metamask/json-rpc-engine": ^7.3.2 + "@metamask/json-rpc-middleware-stream": ^6.0.2 + "@metamask/object-multiplex": ^2.0.0 + "@metamask/rpc-errors": ^6.2.1 + "@metamask/safe-event-emitter": ^3.0.0 + "@metamask/utils": ^8.3.0 + detect-browser: ^5.2.0 + extension-port-stream: ^3.0.0 + fast-deep-equal: ^3.1.3 + is-stream: ^2.0.0 + readable-stream: ^3.6.2 + webextension-polyfill: ^0.10.0 + checksum: 42571450e79d69d943384f557f6a61e0f73101d49804fb6e8075d791959f76c42b8ff626f711d434674792d77aead6cb8a32b04a3dcd53598c8aff24cbb1ad25 + languageName: node + linkType: hard + "@metamask/rpc-errors@npm:^6.2.1": version: 6.2.1 resolution: "@metamask/rpc-errors@npm:6.2.1" @@ -1364,6 +1415,25 @@ __metadata: languageName: node linkType: hard +"@metamask/sdk-communication-layer@npm:0.18.5": + version: 0.18.5 + resolution: "@metamask/sdk-communication-layer@npm:0.18.5" + dependencies: + bufferutil: ^4.0.8 + date-fns: ^2.29.3 + debug: ^4.3.4 + utf-8-validate: ^6.0.3 + uuid: ^8.3.2 + peerDependencies: + cross-fetch: ^3.1.5 + eciesjs: ^0.3.16 + eventemitter2: ^6.4.7 + readable-stream: ^3.6.2 + socket.io-client: ^4.5.1 + checksum: 7d8e632e0d8b95a093272a941adcf8b40d257a3b285dac0821c60a8ff36d1915a4998f0950bc3a7bd89dc9f15b0c00034e7d5a71a590218d1e5bdccc9224a2b5 + languageName: node + linkType: hard + "@metamask/sdk-install-modal-web@npm:0.14.1": version: 0.14.1 resolution: "@metamask/sdk-install-modal-web@npm:0.14.1" @@ -1379,6 +1449,28 @@ __metadata: languageName: node linkType: hard +"@metamask/sdk-install-modal-web@npm:0.18.5": + version: 0.18.5 + resolution: "@metamask/sdk-install-modal-web@npm:0.18.5" + dependencies: + qr-code-styling: ^1.6.0-rc.1 + peerDependencies: + i18next: 22.5.1 + react: ^18.2.0 + react-dom: ^18.2.0 + react-i18next: ^13.2.2 + react-native: "*" + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + react-native: + optional: true + checksum: 57fd8dc802ef0d2949c34df6387abf3633bfb0da03cbce570735060991337835a8846694216bfe14d2764fa21cf0d70fc14cecb442b02f8e468f3560acc7b8e7 + languageName: node + linkType: hard + "@metamask/sdk@npm:0.14.3": version: 0.14.3 resolution: "@metamask/sdk@npm:0.14.3" @@ -1420,6 +1512,50 @@ __metadata: languageName: node linkType: hard +"@metamask/sdk@npm:0.18.6": + version: 0.18.6 + resolution: "@metamask/sdk@npm:0.18.6" + dependencies: + "@metamask/onboarding": ^1.0.1 + "@metamask/providers": ^15.0.0 + "@metamask/sdk-communication-layer": 0.18.5 + "@metamask/sdk-install-modal-web": 0.18.5 + "@types/dom-screen-wake-lock": ^1.0.0 + bowser: ^2.9.0 + cross-fetch: ^4.0.0 + debug: ^4.3.4 + eciesjs: ^0.3.15 + eth-rpc-errors: ^4.0.3 + eventemitter2: ^6.4.7 + i18next: 22.5.1 + i18next-browser-languagedetector: 7.1.0 + obj-multiplex: ^1.0.0 + pump: ^3.0.0 + qrcode-terminal-nooctal: ^0.12.1 + react-native-webview: ^11.26.0 + readable-stream: ^3.6.2 + rollup-plugin-visualizer: ^5.9.2 + socket.io-client: ^4.5.1 + util: ^0.12.4 + uuid: ^8.3.2 + peerDependencies: + "@react-native-async-storage/async-storage": ^1.19.6 + react: ^18.2.0 + react-dom: ^18.2.0 + react-native: "*" + peerDependenciesMeta: + "@react-native-async-storage/async-storage": + optional: true + react: + optional: true + react-dom: + optional: true + react-native: + optional: true + checksum: 936ce46f32cdba4dbc3dc892a245e85fbd7ff73c75b5625f2faa30b771b6d0ff2223c5021629361d0e2c8c45f22227f322444df9f6eaf4a961c61b9f06333200 + languageName: node + linkType: hard + "@metamask/utils@npm:^5.0.0, @metamask/utils@npm:^5.0.1": version: 5.0.2 resolution: "@metamask/utils@npm:5.0.2" @@ -2386,6 +2522,7 @@ __metadata: "@typescript-eslint/parser": ^7.0.0 "@uniswap/sdk-core": ^4.2.0 "@uniswap/v2-sdk": ^4.3.0 + "@wagmi/connectors": ^4.3.0 "@wagmi/core": ^2.6.13 "@web3modal/wagmi": ^4.1.3 abitype: ^1.0.2 @@ -3811,6 +3948,27 @@ __metadata: languageName: node linkType: hard +"@wagmi/connectors@npm:^4.3.0": + version: 4.3.0 + resolution: "@wagmi/connectors@npm:4.3.0" + dependencies: + "@coinbase/wallet-sdk": 3.9.1 + "@metamask/sdk": 0.18.6 + "@safe-global/safe-apps-provider": 0.18.1 + "@safe-global/safe-apps-sdk": 8.1.0 + "@walletconnect/ethereum-provider": 2.11.2 + "@walletconnect/modal": 2.6.2 + peerDependencies: + "@wagmi/core": 2.8.0 + typescript: ">=5.0.4" + viem: 2.x + peerDependenciesMeta: + typescript: + optional: true + checksum: ed2544276bb3692face2662dbce3342017d2d949b7f247ed34ba7680b2e99258652ea6f7ffa63a46b6c46afd6cfcb47e9b6d034bb6100cc8efb0b7aae60b7195 + languageName: node + linkType: hard + "@wagmi/core@npm:^2.6.13, @wagmi/core@npm:^2.6.5": version: 2.6.16 resolution: "@wagmi/core@npm:2.6.16" @@ -4479,6 +4637,15 @@ __metadata: languageName: node linkType: hard +"abort-controller@npm:^3.0.0": + version: 3.0.0 + resolution: "abort-controller@npm:3.0.0" + dependencies: + event-target-shim: ^5.0.0 + checksum: 170bdba9b47b7e65906a28c8ce4f38a7a369d78e2271706f020849c1bfe0ee2067d4261df8bbb66eb84f79208fd5b710df759d64191db58cfba7ce8ef9c54b75 + languageName: node + linkType: hard + "abstract-level@npm:^1.0.0, abstract-level@npm:^1.0.2, abstract-level@npm:^1.0.3": version: 1.0.3 resolution: "abstract-level@npm:1.0.3" @@ -7664,6 +7831,13 @@ __metadata: languageName: node linkType: hard +"event-target-shim@npm:^5.0.0": + version: 5.0.1 + resolution: "event-target-shim@npm:5.0.1" + checksum: 1ffe3bb22a6d51bdeb6bf6f7cf97d2ff4a74b017ad12284cc9e6a279e727dc30a5de6bb613e5596ff4dc3e517841339ad09a7eec44266eccb1aa201a30448166 + languageName: node + linkType: hard + "eventemitter2@npm:^6.4.5, eventemitter2@npm:^6.4.7": version: 6.4.9 resolution: "eventemitter2@npm:6.4.9" @@ -7778,6 +7952,16 @@ __metadata: languageName: node linkType: hard +"extension-port-stream@npm:^3.0.0": + version: 3.0.0 + resolution: "extension-port-stream@npm:3.0.0" + dependencies: + readable-stream: ^3.6.2 || ^4.4.2 + webextension-polyfill: ">=0.10.0 <1.0" + checksum: 4f51d2258a96154c2d916a8a5425636a2b0817763e9277f7dc378d08b6f050c90d185dbde4313d27cf66ad99d4b3116479f9f699c40358c64cccfa524d2b55bf + languageName: node + linkType: hard + "extsprintf@npm:1.3.0": version: 1.3.0 resolution: "extsprintf@npm:1.3.0" @@ -9174,6 +9358,15 @@ __metadata: languageName: node linkType: hard +"i18next-browser-languagedetector@npm:7.1.0": + version: 7.1.0 + resolution: "i18next-browser-languagedetector@npm:7.1.0" + dependencies: + "@babel/runtime": ^7.19.4 + checksum: 36981b9a9995ed66387f3735cceffe107ed3cdb6ca278d45fa243fabc65669c0eca095ed4a55a93dac046ca1eb23fd986ec0079723be7ebb8505e6ba25f379bb + languageName: node + linkType: hard + "i18next-browser-languagedetector@npm:^7.1.0": version: 7.2.1 resolution: "i18next-browser-languagedetector@npm:7.2.1" @@ -12217,6 +12410,13 @@ __metadata: languageName: node linkType: hard +"process@npm:^0.11.10": + version: 0.11.10 + resolution: "process@npm:0.11.10" + checksum: bfcce49814f7d172a6e6a14d5fa3ac92cc3d0c3b9feb1279774708a719e19acd673995226351a082a9ae99978254e320ccda4240ddc474ba31a76c79491ca7c3 + languageName: node + linkType: hard + "promise-retry@npm:^2.0.1": version: 2.0.1 resolution: "promise-retry@npm:2.0.1" @@ -12493,7 +12693,7 @@ __metadata: languageName: node linkType: hard -"readable-stream@npm:^3.1.1, readable-stream@npm:^3.6.0": +"readable-stream@npm:^3.1.1, readable-stream@npm:^3.6.0, readable-stream@npm:^3.6.2": version: 3.6.2 resolution: "readable-stream@npm:3.6.2" dependencies: @@ -12504,6 +12704,19 @@ __metadata: languageName: node linkType: hard +"readable-stream@npm:^3.6.2 || ^4.4.2": + version: 4.5.2 + resolution: "readable-stream@npm:4.5.2" + dependencies: + abort-controller: ^3.0.0 + buffer: ^6.0.3 + events: ^3.3.0 + process: ^0.11.10 + string_decoder: ^1.3.0 + checksum: c4030ccff010b83e4f33289c535f7830190773e274b3fcb6e2541475070bdfd69c98001c3b0cb78763fc00c8b62f514d96c2b10a8bd35d5ce45203a25fa1d33a + languageName: node + linkType: hard + "readdirp@npm:~3.2.0": version: 3.2.0 resolution: "readdirp@npm:3.2.0" @@ -13749,7 +13962,7 @@ __metadata: languageName: node linkType: hard -"string_decoder@npm:^1.1.1": +"string_decoder@npm:^1.1.1, string_decoder@npm:^1.3.0": version: 1.3.0 resolution: "string_decoder@npm:1.3.0" dependencies: @@ -15288,7 +15501,7 @@ __metadata: languageName: node linkType: hard -"webextension-polyfill@npm:>=0.10.0 <1.0": +"webextension-polyfill@npm:>=0.10.0 <1.0, webextension-polyfill@npm:^0.10.0": version: 0.10.0 resolution: "webextension-polyfill@npm:0.10.0" checksum: 4a59036bda571360c2c0b2fb03fe1dc244f233946bcf9a6766f677956c40fd14d270aaa69cdba95e4ac521014afbe4008bfa5959d0ac39f91c990eb206587f91