From a0ecd2bfb53d60d60c30c85310e6e346d123e8b1 Mon Sep 17 00:00:00 2001 From: wenty22 Date: Tue, 7 Jan 2025 22:57:14 +0800 Subject: [PATCH] Updates --- ...rowser-e85219df.js => browser-470b7755.js} | 2 +- .../{index-e59bc2eb.js => index-1fd09253.js} | 4 +- .../{index-cdfebd9e.js => index-34e592ef.js} | 4 +- .../{index-5efd78c0.js => index-41c3a48b.js} | 2 +- .../{index-ff3c83ed.js => index-63c32043.js} | 2 +- .../{index-8b6bfd7a.js => index-e96e1866.js} | 223 ++---------------- .../{index-1d2f6188.js => index-fcd8b6be.js} | 4 +- ...ex.es-97fda719.js => index.es-b0834761.js} | 4 +- ...k-d40ba655.js => metamask-sdk-714f4a3a.js} | 4 +- index.html | 2 +- 10 files changed, 32 insertions(+), 219 deletions(-) rename assets/{browser-e85219df.js => browser-470b7755.js} (99%) rename assets/{index-e59bc2eb.js => index-1fd09253.js} (99%) rename assets/{index-cdfebd9e.js => index-34e592ef.js} (99%) rename assets/{index-5efd78c0.js => index-41c3a48b.js} (99%) rename assets/{index-ff3c83ed.js => index-63c32043.js} (99%) rename assets/{index-8b6bfd7a.js => index-e96e1866.js} (99%) rename assets/{index-1d2f6188.js => index-fcd8b6be.js} (99%) rename assets/{index.es-97fda719.js => index.es-b0834761.js} (98%) rename assets/{metamask-sdk-d40ba655.js => metamask-sdk-714f4a3a.js} (99%) diff --git a/assets/browser-e85219df.js b/assets/browser-470b7755.js similarity index 99% rename from assets/browser-e85219df.js rename to assets/browser-470b7755.js index ec3fb91..e82d6a8 100644 --- a/assets/browser-e85219df.js +++ b/assets/browser-470b7755.js @@ -1,4 +1,4 @@ -import { g as getDefaultExportFromCjs } from "./index-8b6bfd7a.js"; +import { g as getDefaultExportFromCjs } from "./index-e96e1866.js"; var browser = { exports: {} }; var ms; var hasRequiredMs; diff --git a/assets/index-e59bc2eb.js b/assets/index-1fd09253.js similarity index 99% rename from assets/index-e59bc2eb.js rename to assets/index-1fd09253.js index fe094df..868e33a 100644 --- a/assets/index-e59bc2eb.js +++ b/assets/index-1fd09253.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-cdfebd9e.js"; -import { a8 as dijkstraExports } from "./index-8b6bfd7a.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-34e592ef.js"; +import { a8 as dijkstraExports } from "./index-e96e1866.js"; /** * @license * Copyright 2019 Google LLC diff --git a/assets/index-cdfebd9e.js b/assets/index-34e592ef.js similarity index 99% rename from assets/index-cdfebd9e.js rename to assets/index-34e592ef.js index 28db3c7..645960d 100644 --- a/assets/index-cdfebd9e.js +++ b/assets/index-34e592ef.js @@ -1,4 +1,4 @@ -import { a3 as __vitePreload } from "./index-8b6bfd7a.js"; +import { a3 as __vitePreload } from "./index-e96e1866.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-e59bc2eb.js"), true ? ["./index-e59bc2eb.js","./index-8b6bfd7a.js","./index-6434e334.css"] : void 0, import.meta.url); + await __vitePreload(() => import("./index-1fd09253.js"), true ? ["./index-1fd09253.js","./index-e96e1866.js","./index-6434e334.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-5efd78c0.js b/assets/index-41c3a48b.js similarity index 99% rename from assets/index-5efd78c0.js rename to assets/index-41c3a48b.js index d2b84b8..7f97a37 100644 --- a/assets/index-5efd78c0.js +++ b/assets/index-41c3a48b.js @@ -1,4 +1,4 @@ -import { c as commonjsGlobal, g as getDefaultExportFromCjs, B as BN$1, O, e as ea$2, Q as Q$2, z as z$1, a as ep, r as rm, b as ed$1, m, W as W$1, d as reactExports, f as eh$1, h as createRoot, i as rP, j as rT, k as rj, l as rC, n as rh, o as rl, p as rd, q as eD, s as ej, t as q$1, u as rp, v as r_, w as rA, x as rS, y as rs, A as W$2, C as rN, D as rc, E as rf, G as G$1, F as eM, H as ef$1, I as rx, J as decode, K as et$1, L as rD, M as ey, N as ev, P as ee$1, R as eC } from "./index-8b6bfd7a.js"; +import { c as commonjsGlobal, g as getDefaultExportFromCjs, B as BN$1, O, e as ea$2, Q as Q$2, z as z$1, a as ep, r as rm, b as ed$1, m, W as W$1, d as reactExports, f as eh$1, h as createRoot, i as rP, j as rT, k as rj, l as rC, n as rh, o as rl, p as rd, q as eD, s as ej, t as q$1, u as rp, v as r_, w as rA, x as rS, y as rs, A as W$2, C as rN, D as rc, E as rf, G as G$1, F as eM, H as ef$1, I as rx, J as decode, K as et$1, L as rD, M as ey, N as ev, P as ee$1, R as eC } from "./index-e96e1866.js"; var sha3$1 = { exports: {} }; /** * [js-sha3]{@link https://github.com/emn178/js-sha3} diff --git a/assets/index-ff3c83ed.js b/assets/index-63c32043.js similarity index 99% rename from assets/index-ff3c83ed.js rename to assets/index-63c32043.js index d059836..cdbd455 100644 --- a/assets/index-ff3c83ed.js +++ b/assets/index-63c32043.js @@ -1,4 +1,4 @@ -import { S as getAugmentedNamespace, g as getDefaultExportFromCjs, T as bytesToHex, U as sha256, O } from "./index-8b6bfd7a.js"; +import { S as getAugmentedNamespace, g as getDefaultExportFromCjs, T as bytesToHex, U as sha256, O } from "./index-e96e1866.js"; import { D, g, c as clsx, h, y } from "./hooks.module-1f3364a3.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-8b6bfd7a.js b/assets/index-e96e1866.js similarity index 99% rename from assets/index-8b6bfd7a.js rename to assets/index-e96e1866.js index 1541a78..ecb8b77 100644 --- a/assets/index-8b6bfd7a.js +++ b/assets/index-e96e1866.js @@ -8381,18 +8381,6 @@ function parseAccount(account) { return { address: account, type: "json-rpc" }; return account; } -class AccountNotFoundError extends BaseError$2 { - constructor({ docsPath } = {}) { - super([ - "Could not find an Account to execute with this Action.", - "Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client." - ].join("\n"), { - docsPath, - docsSlug: "account", - name: "AccountNotFoundError" - }); - } -} const stringify$3 = (value, replacer, space) => JSON.stringify(value, (key2, value_) => { const value2 = typeof value_ === "bigint" ? value_.toString() : value_; return typeof replacer === "function" ? replacer(key2, value2) : value2; @@ -9351,26 +9339,6 @@ function getHttpRpcClient(url, options = {}) { } }; } -async function signMessage$2(client2, { account: account_ = client2.account, message: message2 }) { - if (!account_) - throw new AccountNotFoundError({ - docsPath: "/docs/actions/wallet/signMessage" - }); - const account = parseAccount(account_); - if (account.signMessage) - return account.signMessage({ message: message2 }); - const message_ = (() => { - if (typeof message2 === "string") - return stringToHex(message2); - if (message2.raw instanceof Uint8Array) - return toHex$3(message2.raw); - return message2.raw; - })(); - return client2.request({ - method: "personal_sign", - params: [message_, account.address] - }, { retryCount: 0 }); -} function anumber(n4) { if (!Number.isSafeInteger(n4) || n4 < 0) throw new Error("positive integer expected, got " + n4); @@ -11483,15 +11451,6 @@ const secp256k1$3 = createCurve$2({ }, sha256$4); BigInt(0); secp256k1$3.ProjectivePoint; -function getAction(client2, actionFn, name2) { - const action_implicit = client2[actionFn.name]; - if (typeof action_implicit === "function") - return action_implicit; - const action_explicit = client2[name2]; - if (typeof action_explicit === "function") - return action_explicit; - return (params) => actionFn(client2, params); -} const version$6 = "2.16.0"; const getVersion$1 = () => `@wagmi/core@${version$6}`; var __classPrivateFieldGet$5 = globalThis && globalThis.__classPrivateFieldGet || function(receiver, state, kind, f4) { @@ -11595,61 +11554,6 @@ class ConnectorAlreadyConnectedError extends BaseError$1 { }); } } -class ConnectorNotConnectedError extends BaseError$1 { - constructor() { - super("Connector not connected."); - Object.defineProperty(this, "name", { - enumerable: true, - configurable: true, - writable: true, - value: "ConnectorNotConnectedError" - }); - } -} -class ConnectorAccountNotFoundError extends BaseError$1 { - constructor({ address: address2, connector }) { - super(`Account "${address2}" not found for connector "${connector.name}".`); - Object.defineProperty(this, "name", { - enumerable: true, - configurable: true, - writable: true, - value: "ConnectorAccountNotFoundError" - }); - } -} -class ConnectorChainMismatchError extends BaseError$1 { - constructor({ connectionChainId, connectorChainId }) { - super(`The current chain of the connector (id: ${connectorChainId}) does not match the connection's chain (id: ${connectionChainId}).`, { - metaMessages: [ - `Current Chain ID: ${connectorChainId}`, - `Expected Chain ID: ${connectionChainId}` - ] - }); - Object.defineProperty(this, "name", { - enumerable: true, - configurable: true, - writable: true, - value: "ConnectorChainMismatchError" - }); - } -} -class ConnectorUnavailableReconnectingError extends BaseError$1 { - constructor({ connector }) { - super(`Connector "${connector.name}" unavailable while reconnecting.`, { - details: [ - "During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`.", - "All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.", - "This error commonly occurs for connectors that asynchronously inject after reconnection has already started." - ].join(" ") - }); - Object.defineProperty(this, "name", { - enumerable: true, - configurable: true, - writable: true, - value: "ConnectorUnavailableReconnectingError" - }); - } -} async function connect(config2, parameters) { var _a3; let connector; @@ -11752,17 +11656,6 @@ function createTransport({ key: key2, name: name2, request, retryCount = 3, retr value }; } -function custom(provider, config2 = {}) { - const { key: key2 = "custom", name: name2 = "Custom Provider", retryDelay } = config2; - return ({ retryCount: defaultRetryCount }) => createTransport({ - key: key2, - name: name2, - request: provider.request.bind(provider), - retryCount: config2.retryCount ?? defaultRetryCount, - retryDelay, - type: "custom" - }); -} class UrlRequiredError extends BaseError$2 { constructor() { super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.", { @@ -11826,51 +11719,6 @@ function http(url, config2 = {}) { }); }; } -async function getConnectorClient(config2, parameters = {}) { - let connection; - if (parameters.connector) { - const { connector: connector2 } = parameters; - if (config2.state.status === "reconnecting" && !connector2.getAccounts && !connector2.getChainId) - throw new ConnectorUnavailableReconnectingError({ connector: connector2 }); - const [accounts2, chainId2] = await Promise.all([ - connector2.getAccounts(), - connector2.getChainId() - ]); - connection = { - accounts: accounts2, - chainId: chainId2, - connector: connector2 - }; - } else - connection = config2.state.connections.get(config2.state.current); - if (!connection) - throw new ConnectorNotConnectedError(); - const chainId = parameters.chainId ?? connection.chainId; - const connectorChainId = await connection.connector.getChainId(); - if (connectorChainId !== connection.chainId) - throw new ConnectorChainMismatchError({ - connectionChainId: connection.chainId, - connectorChainId - }); - const connector = connection.connector; - if (connector.getClient) - return connector.getClient({ chainId }); - const account = parseAccount(parameters.account ?? connection.accounts[0]); - account.address = getAddress$2(account.address); - if (parameters.account && !connection.accounts.some((x3) => x3.toLowerCase() === account.address.toLowerCase())) - throw new ConnectorAccountNotFoundError({ - address: account.address, - connector - }); - const chain = config2.chains.find((chain2) => chain2.id === chainId); - const provider = await connection.connector.getProvider({ chainId }); - return createClient({ - account, - chain, - name: "Connector Client", - transport: (opts) => custom(provider)({ ...opts, retryCount: 0 }) - }); -} async function disconnect(config2, parameters = {}) { var _a3, _b2; let connector; @@ -12124,19 +11972,6 @@ async function reconnect(config2, parameters = {}) { isReconnecting = false; return connections; } -async function signMessage$1(config2, parameters) { - const { account, connector, ...rest } = parameters; - let client2; - if (typeof account === "object" && account.type === "local") - client2 = config2.getClient(); - else - client2 = await getConnectorClient(config2, { account, connector }); - const action = getAction(client2, signMessage$2, "signMessage"); - return action({ - ...rest, - ...account ? { account } : {} - }); -} class ProviderNotFoundError extends BaseError$1 { constructor() { super("Provider not found."); @@ -13723,7 +13558,7 @@ function version4(parameters) { options: ((_a3 = parameters.preference) == null ? void 0 : _a3.options) ?? "all" }; })(); - const { createCoinbaseWalletSDK } = await __vitePreload(() => import("./index-ff3c83ed.js"), true ? ["./index-ff3c83ed.js","./hooks.module-1f3364a3.js"] : void 0, import.meta.url); + const { createCoinbaseWalletSDK } = await __vitePreload(() => import("./index-63c32043.js"), true ? ["./index-63c32043.js","./hooks.module-1f3364a3.js"] : void 0, import.meta.url); const sdk = createCoinbaseWalletSDK({ ...parameters, appChainIds: config2.chains.map((x3) => x3.id), @@ -13895,7 +13730,7 @@ function version3(parameters) { var _a3; if (!walletProvider) { const CoinbaseWalletSDK = await (async () => { - const { default: SDK } = await __vitePreload(() => import("./index-1d2f6188.js").then((n4) => n4.i), true ? ["./index-1d2f6188.js","./hooks.module-1f3364a3.js","./browser-e85219df.js"] : void 0, import.meta.url); + const { default: SDK } = await __vitePreload(() => import("./index-fcd8b6be.js").then((n4) => n4.i), true ? ["./index-fcd8b6be.js","./hooks.module-1f3364a3.js","./browser-470b7755.js"] : void 0, import.meta.url); if (typeof SDK !== "function" && typeof SDK.default === "function") return SDK.default; return SDK; @@ -14132,7 +13967,7 @@ function metaMask$1(parameters = {}) { async function initProvider() { var _a3, _b2, _c2, _d2, _e3; const MetaMaskSDK = await (async () => { - const { default: SDK } = await __vitePreload(() => import("./metamask-sdk-d40ba655.js"), true ? ["./metamask-sdk-d40ba655.js","./browser-e85219df.js"] : void 0, import.meta.url); + const { default: SDK } = await __vitePreload(() => import("./metamask-sdk-714f4a3a.js"), true ? ["./metamask-sdk-714f4a3a.js","./browser-470b7755.js"] : void 0, import.meta.url); if (typeof SDK !== "function" && typeof SDK.default === "function") return SDK.default; return SDK; @@ -14492,7 +14327,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-97fda719.js"), true ? [] : void 0, import.meta.url); + const { EthereumProvider: EthereumProvider2 } = await __vitePreload(() => import("./index.es-b0834761.js"), true ? [] : void 0, import.meta.url); return await EthereumProvider2.init({ ...parameters, disableProviderPing: true, @@ -19327,14 +19162,6 @@ function disconnectMutationOptions(config2) { mutationKey: ["disconnect"] }; } -function signMessageMutationOptions(config2) { - return { - mutationFn(variables) { - return signMessage$1(config2, variables); - }, - mutationKey: ["signMessage"] - }; -} var QueryClientContext = reactExports.createContext( void 0 ); @@ -19446,20 +19273,6 @@ function useDisconnect(parameters = {}) { disconnectAsync: mutateAsync }; } -function useSignMessage(parameters = {}) { - const { mutation } = parameters; - const config2 = useConfig(parameters); - const mutationOptions = signMessageMutationOptions(config2); - const { mutate, mutateAsync, ...result } = useMutation({ - ...mutation, - ...mutationOptions - }); - return { - ...result, - signMessage: mutate, - signMessageAsync: mutateAsync - }; -} function n$5(n4, e12, t2, r2, i2, c2, o2) { try { var s2 = n4[c2](o2); @@ -19723,7 +19536,7 @@ function m$3() { case 0: if ((typeof window === "undefined" ? "undefined" : o$1(window)) > "u") return [2]; - return [4, __vitePreload(() => import("./index-5efd78c0.js"), true ? [] : void 0, import.meta.url)]; + return [4, __vitePreload(() => import("./index-41c3a48b.js"), true ? [] : void 0, import.meta.url)]; case 1: l2 = s2.sent().default, f4 = h4 || ((e12 = a3.chains[0]) === null || e12 === void 0 ? void 0 : e12.id), d4 = n4.infuraId ? {} : a3.chains.reduce(function(n5, e13) { return c$4(r$3({}, n5), t$1({}, e13.id, e13.rpcUrls.default.http[0])); @@ -100996,6 +100809,7 @@ function binanceWallet(props = {}) { return `https://app.binance.com/cedefi/wc?uri=${encodedUri}`; }, getCreateConnectorFn() { + const { useDeeplink = true } = connectorOptions; if (rL()) { let isReady = false; return injected({ @@ -101014,7 +100828,7 @@ function binanceWallet(props = {}) { ...connectorOptions }); } - if (typeof window !== "undefined") { + if (typeof window !== "undefined" && !useDeeplink) { const originalAppendChild = document.body.appendChild; document.body.appendChild = function(node2, ...params) { var _a3; @@ -121802,7 +121616,16 @@ const config = { autoConnect: true, initialChainId: 1, walletConnectProjectId: "518ee55b46bc23b5b496b03b1322aa13", - wallets: [binanceWallet(), metaMask(), trustWallet(), walletConnect()], + wallets: [ + binanceWallet({ + connectorOptions: { + useDeeplink: false + } + }), + metaMask(), + trustWallet(), + walletConnect() + ], chains: [mainnet] }) }; @@ -121816,23 +121639,13 @@ function ConnectButton() { const { onOpen } = useConnectModal(); const { address: address2 } = useAccount(); const { disconnect: disconnect2 } = useDisconnect(); - const { signMessage: signMessage2 } = useSignMessage(); if (address2) { return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [ "address:", address2 ] }), - /* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: () => disconnect2(), children: "disconnect" }), - /* @__PURE__ */ jsxRuntimeExports.jsx( - "button", - { - onClick: () => signMessage2({ - message: "hello" - }), - children: "sign" - } - ) + /* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: () => disconnect2(), children: "disconnect" }) ] }); } return /* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: () => onOpen(), children: "connect" }); diff --git a/assets/index-1d2f6188.js b/assets/index-fcd8b6be.js similarity index 99% rename from assets/index-1d2f6188.js rename to assets/index-fcd8b6be.js index c015b57..fbb675e 100644 --- a/assets/index-1d2f6188.js +++ b/assets/index-fcd8b6be.js @@ -1,6 +1,6 @@ -import { c as commonjsGlobal, V as bnExports, X as safeBufferExports, Y as inherits_browserExports, S as getAugmentedNamespace, Z as eventsExports, _ as buffer, $ as require$$3, a0 as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-8b6bfd7a.js"; +import { c as commonjsGlobal, V as bnExports, X as safeBufferExports, Y as inherits_browserExports, S as getAugmentedNamespace, Z as eventsExports, _ as buffer, $ as require$$3, a0 as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-e96e1866.js"; import { p as preact_module, a as clsx_m, b as hooks_module } from "./hooks.module-1f3364a3.js"; -import { b as browserExports } from "./browser-e85219df.js"; +import { b as browserExports } from "./browser-470b7755.js"; function _mergeNamespaces(n, m) { for (var i = 0; i < m.length; i++) { const e = m[i]; diff --git a/assets/index.es-97fda719.js b/assets/index.es-b0834761.js similarity index 98% rename from assets/index.es-97fda719.js rename to assets/index.es-b0834761.js index 28d67c5..e9db844 100644 --- a/assets/index.es-97fda719.js +++ b/assets/index.es-b0834761.js @@ -1,4 +1,4 @@ -import { Z as eventsExports, a4 as Wo, a5 as er, a6 as Ev, a3 as __vitePreload, a7 as Nr } from "./index-8b6bfd7a.js"; +import { Z as eventsExports, a4 as Wo, a5 as er, a6 as Ev, a3 as __vitePreload, a7 as Nr } from "./index-e96e1866.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-cdfebd9e.js").then((n) => n.i), true ? ["./index-cdfebd9e.js","./index-8b6bfd7a.js","./index-6434e334.css"] : void 0, import.meta.url); + const { WalletConnectModal: i } = await __vitePreload(() => import("./index-34e592ef.js").then((n) => n.i), true ? ["./index-34e592ef.js","./index-e96e1866.js","./index-6434e334.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-d40ba655.js b/assets/metamask-sdk-714f4a3a.js similarity index 99% rename from assets/metamask-sdk-d40ba655.js rename to assets/metamask-sdk-714f4a3a.js index a0b26bc..14a9b3d 100644 --- a/assets/metamask-sdk-d40ba655.js +++ b/assets/metamask-sdk-714f4a3a.js @@ -1,5 +1,5 @@ -import { c as commonjsGlobal, g as getDefaultExportFromCjs, a1 as v4, a2 as validate, a3 as __vitePreload } from "./index-8b6bfd7a.js"; -import { t } from "./browser-e85219df.js"; +import { c as commonjsGlobal, g as getDefaultExportFromCjs, a1 as v4, a2 as validate, a3 as __vitePreload } from "./index-e96e1866.js"; +import { t } from "./browser-470b7755.js"; var browserPonyfill = { exports: {} }; (function(module, exports) { var __global__ = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || typeof commonjsGlobal !== "undefined" && commonjsGlobal; diff --git a/index.html b/index.html index a31d6ad..1702e60 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ - +