diff --git a/assets/index-54839d80.js b/assets/index-0ae37e35.js similarity index 99% rename from assets/index-54839d80.js rename to assets/index-0ae37e35.js index 6d98944..1c3acf2 100644 --- a/assets/index-54839d80.js +++ b/assets/index-0ae37e35.js @@ -1,5 +1,5 @@ -import { T as ThemeCtrl, M as ModalCtrl, R as RouterCtrl, E as ExplorerCtrl, C as CoreUtil, a as ToastCtrl, b as EventsCtrl, O as OptionsCtrl, c as ConfigCtrl } from "./index-21951aa9.js"; -import { ac as browser } from "./index-18e9ae4b.js"; +import { T as ThemeCtrl, M as ModalCtrl, R as RouterCtrl, E as ExplorerCtrl, C as CoreUtil, a as ToastCtrl, b as EventsCtrl, O as OptionsCtrl, c as ConfigCtrl } from "./index-99acfce7.js"; +import { ac as browser } from "./index-b3e54596.js"; /** * @license * Copyright 2019 Google LLC diff --git a/assets/index-54fea2e1.js b/assets/index-2798e905.js similarity index 99% rename from assets/index-54fea2e1.js rename to assets/index-2798e905.js index 6adf499..4808ce1 100644 --- a/assets/index-54fea2e1.js +++ b/assets/index-2798e905.js @@ -1,4 +1,4 @@ -import { R as Hash, S as createView, T as exists$1, U as toBytes, V as output$1, X as wrapConstructor, Y as rotr, Z as getAugmentedNamespace, k as getDefaultExportFromCjs, $ as bytesToHex, O } from "./index-18e9ae4b.js"; +import { R as Hash, S as createView, T as exists$1, U as toBytes, V as output$1, X as wrapConstructor, Y as rotr, Z as getAugmentedNamespace, k as getDefaultExportFromCjs, $ as bytesToHex, O } from "./index-b3e54596.js"; import { q, _, c as clsx, h, y } from "./hooks.module-2202d2c9.js"; const crypto$1 = typeof globalThis === "object" && "crypto" in globalThis ? globalThis.crypto : void 0; const crypto$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ diff --git a/assets/index-21951aa9.js b/assets/index-99acfce7.js similarity index 99% rename from assets/index-21951aa9.js rename to assets/index-99acfce7.js index f6d2df0..f517baf 100644 --- a/assets/index-21951aa9.js +++ b/assets/index-99acfce7.js @@ -1,4 +1,4 @@ -import { aa as __vitePreload } from "./index-18e9ae4b.js"; +import { aa as __vitePreload } from "./index-b3e54596.js"; const t = Symbol(); const s = Object.getPrototypeOf, c = /* @__PURE__ */ new WeakMap(), l = (e) => e && (c.has(e) ? c.get(e) : s(e) === Object.prototype || s(e) === Array.prototype), y = (e) => l(e) && e[t] || null, h = (e, t2 = true) => { c.set(e, t2); @@ -791,7 +791,7 @@ class WalletConnectModal { } async initUi() { if (typeof window !== "undefined") { - await __vitePreload(() => import("./index-54839d80.js"), true ? ["./index-54839d80.js","./index-18e9ae4b.js","./index-51b56c12.css"] : void 0, import.meta.url); + await __vitePreload(() => import("./index-0ae37e35.js"), true ? ["./index-0ae37e35.js","./index-b3e54596.js","./index-51b56c12.css"] : void 0, import.meta.url); const modal = document.createElement("wcm-modal"); document.body.insertAdjacentElement("beforeend", modal); OptionsCtrl.setIsUiLoaded(true); diff --git a/assets/index-18e9ae4b.js b/assets/index-b3e54596.js similarity index 99% rename from assets/index-18e9ae4b.js rename to assets/index-b3e54596.js index 4da37d9..85559b7 100644 --- a/assets/index-18e9ae4b.js +++ b/assets/index-b3e54596.js @@ -11187,7 +11187,7 @@ function version4(parameters) { options: ((_a3 = parameters.preference) == null ? void 0 : _a3.options) ?? "all" }; })(); - const { createCoinbaseWalletSDK } = await __vitePreload(() => import("./index-54fea2e1.js"), true ? ["./index-54fea2e1.js","./hooks.module-2202d2c9.js"] : void 0, import.meta.url); + const { createCoinbaseWalletSDK } = await __vitePreload(() => import("./index-2798e905.js"), true ? ["./index-2798e905.js","./hooks.module-2202d2c9.js"] : void 0, import.meta.url); const sdk = createCoinbaseWalletSDK({ ...parameters, appChainIds: config2.chains.map((x3) => x3.id), @@ -11359,7 +11359,7 @@ function version3(parameters) { var _a3; if (!walletProvider) { const CoinbaseWalletSDK = await (async () => { - const { default: SDK } = await __vitePreload(() => import("./index-53665674.js").then((n5) => n5.i), true ? ["./index-53665674.js","./hooks.module-2202d2c9.js"] : void 0, import.meta.url); + const { default: SDK } = await __vitePreload(() => import("./index-ef588c81.js").then((n5) => n5.i), true ? ["./index-ef588c81.js","./hooks.module-2202d2c9.js"] : void 0, import.meta.url); if (typeof SDK !== "function" && typeof SDK.default === "function") return SDK.default; return SDK; @@ -11596,7 +11596,7 @@ function metaMask$1(parameters = {}) { async function initProvider() { var _a3; const MetaMaskSDK = await (async () => { - const { default: SDK } = await __vitePreload(() => import("./metamask-sdk-6c6f58b3.js").then((n5) => n5.m), true ? [] : void 0, import.meta.url); + const { default: SDK } = await __vitePreload(() => import("./metamask-sdk-a5df3995.js").then((n5) => n5.m), true ? [] : void 0, import.meta.url); if (typeof SDK !== "function" && typeof SDK.default === "function") return SDK.default; return SDK; @@ -11925,7 +11925,7 @@ function walletConnect$1(parameters) { const optionalChains = config2.chains.map((x3) => x3.id); if (!optionalChains.length) return; - const { EthereumProvider: EthereumProvider2 } = await __vitePreload(() => import("./index.es-00d1f4e5.js"), true ? [] : void 0, import.meta.url); + const { EthereumProvider: EthereumProvider2 } = await __vitePreload(() => import("./index.es-79983d7d.js"), true ? [] : void 0, import.meta.url); return await EthereumProvider2.init({ ...parameters, disableProviderPing: true, @@ -17088,7 +17088,7 @@ function v$4() { case 0: if ((typeof window === "undefined" ? "undefined" : o$1(window)) > "u") return [2]; - return [4, __vitePreload(() => import("./index-df5cc2ae.js"), true ? [] : void 0, import.meta.url)]; + return [4, __vitePreload(() => import("./index-e4a8cc1b.js"), true ? [] : void 0, import.meta.url)]; case 1: l2 = s2.sent().default, f4 = h4 || ((e18 = a3.chains[0]) === null || e18 === void 0 ? void 0 : e18.id), d4 = n5.infuraId ? {} : a3.chains.reduce(function(n6, e19) { return c$3(r$3({}, n6), t({}, e19.id, e19.rpcUrls.default.http[0])); @@ -120754,10 +120754,10 @@ function SetEvmWalletClickRef(props) { }; disconnect2(); clearTimeout(timerRef.current); - const isBinanceWeb3Wallet = binanceWeb3Wallet().id === walletId; - const delay2 = isBinanceWeb3Wallet ? 0 : 300; + const useSDK = [binanceWeb3Wallet().id, metaMask().id].includes(walletId); + const delay2 = useSDK ? 0 : 300; timerRef.current = setTimeout(() => { - if (isBinanceWeb3Wallet) { + if (useSDK) { connect2({ connector }); diff --git a/assets/index-df5cc2ae.js b/assets/index-e4a8cc1b.js similarity index 99% rename from assets/index-df5cc2ae.js rename to assets/index-e4a8cc1b.js index 77bf3e3..6ff7421 100644 --- a/assets/index-df5cc2ae.js +++ b/assets/index-e4a8cc1b.js @@ -1,4 +1,4 @@ -import { O, e as ea$2, Q as Q$2, z as z$1, a as ep$1, r as rm, b as ed$1, m, W as W$1, c as reactExports, d as eh$1, f as createRoot, g as rP, h as rT, i as rj, j as rC, k as getDefaultExportFromCjs, l as rh, _ as _BN, n as commonjsGlobal, o as eD, p as ej, q as q$1, s as rl, t as rd, u as rp, v as r_, w as rA, x as rS, y as rs, A as W$2, B as rN, C as rc, D as rf, G as G$1, E as eM, F as decode, H as et$1, I as ef$1, J as rx, K as rD, L as ey$1, M as ev$1, N as ee$1, P as eC } from "./index-18e9ae4b.js"; +import { O, e as ea$2, Q as Q$2, z as z$1, a as ep$1, r as rm, b as ed$1, m, W as W$1, c as reactExports, d as eh$1, f as createRoot, g as rP, h as rT, i as rj, j as rC, k as getDefaultExportFromCjs, l as rh, _ as _BN, n as commonjsGlobal, o as eD, p as ej, q as q$1, s as rl, t as rd, u as rp, v as r_, w as rA, x as rS, y as rs, A as W$2, B as rN, C as rc, D as rf, G as G$1, E as eM, F as decode, H as et$1, I as ef$1, J as rx, K as rD, L as ey$1, M as ev$1, N as ee$1, P as eC } from "./index-b3e54596.js"; function e$6(e2, t3, r2, n11, i2, o2, s2) { try { var u2 = e2[o2](s2); diff --git a/assets/index-53665674.js b/assets/index-ef588c81.js similarity index 99% rename from assets/index-53665674.js rename to assets/index-ef588c81.js index f765d7e..4ba9661 100644 --- a/assets/index-53665674.js +++ b/assets/index-ef588c81.js @@ -1,4 +1,4 @@ -import { n as commonjsGlobal, a0 as bnExports, a1 as safeBufferExports, a2 as inherits_browserExports, Z as getAugmentedNamespace, a3 as eventsExports, a4 as buffer, a5 as require$$3, a6 as eventemitter3Exports, k as getDefaultExportFromCjs } from "./index-18e9ae4b.js"; +import { n as commonjsGlobal, a0 as bnExports, a1 as safeBufferExports, a2 as inherits_browserExports, Z as getAugmentedNamespace, a3 as eventsExports, a4 as buffer, a5 as require$$3, a6 as eventemitter3Exports, k as getDefaultExportFromCjs } from "./index-b3e54596.js"; import { p as preact_module, a as clsx_m, b as hooks_module } from "./hooks.module-2202d2c9.js"; function _mergeNamespaces(n, m) { for (var i = 0; i < m.length; i++) { diff --git a/assets/index.es-00d1f4e5.js b/assets/index.es-79983d7d.js similarity index 98% rename from assets/index.es-00d1f4e5.js rename to assets/index.es-79983d7d.js index 0a350ac..3868d1d 100644 --- a/assets/index.es-00d1f4e5.js +++ b/assets/index.es-79983d7d.js @@ -1,4 +1,4 @@ -import { a3 as eventsExports, a7 as Wo, a8 as er, a9 as Ev, aa as __vitePreload, ab as Nr } from "./index-18e9ae4b.js"; +import { a3 as eventsExports, a7 as Wo, a8 as er, a9 as Ev, aa as __vitePreload, ab as Nr } from "./index-b3e54596.js"; const R = "wc", T = "ethereum_provider", $ = `${R}@2:${T}:`, j = "https://rpc.walletconnect.org/v1/", u = ["eth_sendTransaction", "personal_sign"], y = ["eth_accounts", "eth_requestAccounts", "eth_sendRawTransaction", "eth_sign", "eth_signTransaction", "eth_signTypedData", "eth_signTypedData_v3", "eth_signTypedData_v4", "eth_sendTransaction", "personal_sign", "wallet_switchEthereumChain", "wallet_addEthereumChain", "wallet_getPermissions", "wallet_requestPermissions", "wallet_registerOnboarding", "wallet_watchAsset", "wallet_scanQRCode", "wallet_sendCalls", "wallet_getCapabilities", "wallet_getCallsStatus", "wallet_showCallsStatus"], g = ["chainChanged", "accountsChanged"], b = ["chainChanged", "accountsChanged", "message", "disconnect", "connect"]; var q = Object.defineProperty, N = Object.defineProperties, D = Object.getOwnPropertyDescriptors, M = Object.getOwnPropertySymbols, U = Object.prototype.hasOwnProperty, Q = Object.prototype.propertyIsEnumerable, O = (r, t, s) => t in r ? q(r, t, { enumerable: true, configurable: true, writable: true, value: s }) : r[t] = s, p = (r, t) => { for (var s in t || (t = {})) @@ -171,7 +171,7 @@ class C { if (this.rpc = this.getRpcConfig(t), this.chainId = this.rpc.chains.length ? m(this.rpc.chains) : m(this.rpc.optionalChains), this.signer = await Ev.init({ projectId: this.rpc.projectId, metadata: this.rpc.metadata, disableProviderPing: t.disableProviderPing, relayUrl: t.relayUrl, storageOptions: t.storageOptions, customStoragePrefix: t.customStoragePrefix, telemetryEnabled: t.telemetryEnabled }), this.registerEventListeners(), await this.loadPersistedSession(), this.rpc.showQrModal) { let s; try { - const { WalletConnectModal: i } = await __vitePreload(() => import("./index-21951aa9.js").then((n) => n.i), true ? ["./index-21951aa9.js","./index-18e9ae4b.js","./index-51b56c12.css"] : void 0, import.meta.url); + const { WalletConnectModal: i } = await __vitePreload(() => import("./index-99acfce7.js").then((n) => n.i), true ? ["./index-99acfce7.js","./index-b3e54596.js","./index-51b56c12.css"] : void 0, import.meta.url); s = i; } catch { throw new Error("To use QR modal, please install @walletconnect/modal package"); diff --git a/assets/metamask-sdk-6c6f58b3.js b/assets/metamask-sdk-a5df3995.js similarity index 99% rename from assets/metamask-sdk-6c6f58b3.js rename to assets/metamask-sdk-a5df3995.js index 8273fe5..cd5a0aa 100644 --- a/assets/metamask-sdk-6c6f58b3.js +++ b/assets/metamask-sdk-a5df3995.js @@ -1,4 +1,4 @@ -import { k as getDefaultExportFromCjs, n as commonjsGlobal } from "./index-18e9ae4b.js"; +import { k as getDefaultExportFromCjs, n as commonjsGlobal } from "./index-b3e54596.js"; function _mergeNamespaces(n, m) { for (var i = 0; i < m.length; i++) { const e = m[i]; diff --git a/index.html b/index.html index b2a3321..ed10d04 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ WalletKit Vite Example - +