diff --git a/assets/browser-6d91c636.js b/assets/browser-fe647dfc.js similarity index 99% rename from assets/browser-6d91c636.js rename to assets/browser-fe647dfc.js index 28ddd5b..d75c9a5 100644 --- a/assets/browser-6d91c636.js +++ b/assets/browser-fe647dfc.js @@ -1,4 +1,4 @@ -import { g as getDefaultExportFromCjs } from "./index-1e2798b8.js"; +import { g as getDefaultExportFromCjs } from "./index-2ae434b2.js"; var browser = { exports: {} }; var ms; var hasRequiredMs; diff --git a/assets/index-7233da31.js b/assets/index-0d33af54.js similarity index 99% rename from assets/index-7233da31.js rename to assets/index-0d33af54.js index 36b3b6e..bba61a3 100644 --- a/assets/index-7233da31.js +++ b/assets/index-0d33af54.js @@ -1,4 +1,4 @@ -import { S as getAugmentedNamespace, g as getDefaultExportFromCjs, T as bytesToHex, U as sha256, O } from "./index-1e2798b8.js"; +import { S as getAugmentedNamespace, g as getDefaultExportFromCjs, T as bytesToHex, U as sha256, O } from "./index-2ae434b2.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-1e2798b8.js b/assets/index-2ae434b2.js similarity index 99% rename from assets/index-1e2798b8.js rename to assets/index-2ae434b2.js index 48e787c..40b62d0 100644 --- a/assets/index-1e2798b8.js +++ b/assets/index-2ae434b2.js @@ -13558,7 +13558,7 @@ function version4(parameters) { options: ((_a3 = parameters.preference) == null ? void 0 : _a3.options) ?? "all" }; })(); - const { createCoinbaseWalletSDK } = await __vitePreload(() => import("./index-7233da31.js"), true ? ["./index-7233da31.js","./hooks.module-1f3364a3.js"] : void 0, import.meta.url); + const { createCoinbaseWalletSDK } = await __vitePreload(() => import("./index-0d33af54.js"), true ? ["./index-0d33af54.js","./hooks.module-1f3364a3.js"] : void 0, import.meta.url); const sdk = createCoinbaseWalletSDK({ ...parameters, appChainIds: config2.chains.map((x3) => x3.id), @@ -13730,7 +13730,7 @@ function version3(parameters) { var _a3; if (!walletProvider) { const CoinbaseWalletSDK = await (async () => { - const { default: SDK } = await __vitePreload(() => import("./index-358dcfe3.js").then((n4) => n4.i), true ? ["./index-358dcfe3.js","./hooks.module-1f3364a3.js","./browser-6d91c636.js"] : void 0, import.meta.url); + const { default: SDK } = await __vitePreload(() => import("./index-cdce08d9.js").then((n4) => n4.i), true ? ["./index-cdce08d9.js","./hooks.module-1f3364a3.js","./browser-fe647dfc.js"] : void 0, import.meta.url); if (typeof SDK !== "function" && typeof SDK.default === "function") return SDK.default; return SDK; @@ -13967,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-5db25d61.js"), true ? ["./metamask-sdk-5db25d61.js","./browser-6d91c636.js"] : void 0, import.meta.url); + const { default: SDK } = await __vitePreload(() => import("./metamask-sdk-6bc5935e.js"), true ? ["./metamask-sdk-6bc5935e.js","./browser-fe647dfc.js"] : void 0, import.meta.url); if (typeof SDK !== "function" && typeof SDK.default === "function") return SDK.default; return SDK; @@ -14327,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-11261169.js"), true ? [] : void 0, import.meta.url); + const { EthereumProvider: EthereumProvider2 } = await __vitePreload(() => import("./index.es-5754f0f0.js"), true ? [] : void 0, import.meta.url); return await EthereumProvider2.init({ ...parameters, disableProviderPing: true, @@ -19536,7 +19536,7 @@ function m$3() { case 0: if ((typeof window === "undefined" ? "undefined" : o$1(window)) > "u") return [2]; - return [4, __vitePreload(() => import("./index-50db9597.js"), true ? [] : void 0, import.meta.url)]; + return [4, __vitePreload(() => import("./index-a59effdc.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])); @@ -100809,7 +100809,6 @@ function binanceWallet(props = {}) { return `https://app.binance.com/cedefi/wc?uri=${encodedUri}`; }, getCreateConnectorFn() { - const { useDeeplink = true } = connectorOptions; if (rL()) { let isReady = false; return injected({ @@ -100828,12 +100827,12 @@ function binanceWallet(props = {}) { ...connectorOptions }); } - if (typeof window !== "undefined" && !useDeeplink) { + if (typeof window !== "undefined" && isMobile() && isTMA()) { const originalAppendChild = document.body.appendChild; document.body.appendChild = function(node2, ...params) { var _a3; if (node2 instanceof HTMLAnchorElement && ((_a3 = node2.href) == null ? void 0 : _a3.startsWith("bnc://"))) { - node2.href = `https://app.binance.com/mp/app?_dp=${window.btoa(node2.href)}`; + node2.href = `https://app.binance.com/en/download?_dp=${window.btoa(node2.href)}`; } return originalAppendChild.call(document.body, node2, ...params); }; @@ -121616,16 +121615,7 @@ const config = { autoConnect: true, initialChainId: 1, walletConnectProjectId: "518ee55b46bc23b5b496b03b1322aa13", - wallets: [ - binanceWallet({ - connectorOptions: { - useDeeplink: false - } - }), - metaMask(), - trustWallet(), - walletConnect() - ], + wallets: [binanceWallet(), metaMask(), trustWallet(), walletConnect()], chains: [mainnet] }) }; diff --git a/assets/index-32a50f99.js b/assets/index-71f7f7b0.js similarity index 99% rename from assets/index-32a50f99.js rename to assets/index-71f7f7b0.js index 4d1528d..ffdd476 100644 --- a/assets/index-32a50f99.js +++ b/assets/index-71f7f7b0.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-9b011b94.js"; -import { a8 as dijkstraExports } from "./index-1e2798b8.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-bb5662c3.js"; +import { a8 as dijkstraExports } from "./index-2ae434b2.js"; /** * @license * Copyright 2019 Google LLC diff --git a/assets/index-50db9597.js b/assets/index-a59effdc.js similarity index 99% rename from assets/index-50db9597.js rename to assets/index-a59effdc.js index fbe90b7..2dcdea6 100644 --- a/assets/index-50db9597.js +++ b/assets/index-a59effdc.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-1e2798b8.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-2ae434b2.js"; var sha3$1 = { exports: {} }; /** * [js-sha3]{@link https://github.com/emn178/js-sha3} diff --git a/assets/index-9b011b94.js b/assets/index-bb5662c3.js similarity index 99% rename from assets/index-9b011b94.js rename to assets/index-bb5662c3.js index 50bfe72..3200d2e 100644 --- a/assets/index-9b011b94.js +++ b/assets/index-bb5662c3.js @@ -1,4 +1,4 @@ -import { a3 as __vitePreload } from "./index-1e2798b8.js"; +import { a3 as __vitePreload } from "./index-2ae434b2.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-32a50f99.js"), true ? ["./index-32a50f99.js","./index-1e2798b8.js","./index-6434e334.css"] : void 0, import.meta.url); + await __vitePreload(() => import("./index-71f7f7b0.js"), true ? ["./index-71f7f7b0.js","./index-2ae434b2.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-358dcfe3.js b/assets/index-cdce08d9.js similarity index 99% rename from assets/index-358dcfe3.js rename to assets/index-cdce08d9.js index 26d33dd..3aecdfe 100644 --- a/assets/index-358dcfe3.js +++ b/assets/index-cdce08d9.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-1e2798b8.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-2ae434b2.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-6d91c636.js"; +import { b as browserExports } from "./browser-fe647dfc.js"; function _mergeNamespaces(n, m) { for (var i = 0; i < m.length; i++) { const e = m[i]; diff --git a/assets/index.es-11261169.js b/assets/index.es-5754f0f0.js similarity index 98% rename from assets/index.es-11261169.js rename to assets/index.es-5754f0f0.js index 44ba0c5..012b3d2 100644 --- a/assets/index.es-11261169.js +++ b/assets/index.es-5754f0f0.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-1e2798b8.js"; +import { Z as eventsExports, a4 as Wo, a5 as er, a6 as Ev, a3 as __vitePreload, a7 as Nr } from "./index-2ae434b2.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-9b011b94.js").then((n) => n.i), true ? ["./index-9b011b94.js","./index-1e2798b8.js","./index-6434e334.css"] : void 0, import.meta.url); + const { WalletConnectModal: i } = await __vitePreload(() => import("./index-bb5662c3.js").then((n) => n.i), true ? ["./index-bb5662c3.js","./index-2ae434b2.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-5db25d61.js b/assets/metamask-sdk-6bc5935e.js similarity index 99% rename from assets/metamask-sdk-5db25d61.js rename to assets/metamask-sdk-6bc5935e.js index b5004ef..17277b6 100644 --- a/assets/metamask-sdk-5db25d61.js +++ b/assets/metamask-sdk-6bc5935e.js @@ -1,5 +1,5 @@ -import { c as commonjsGlobal, g as getDefaultExportFromCjs, a1 as v4, a2 as validate, a3 as __vitePreload } from "./index-1e2798b8.js"; -import { t } from "./browser-6d91c636.js"; +import { c as commonjsGlobal, g as getDefaultExportFromCjs, a1 as v4, a2 as validate, a3 as __vitePreload } from "./index-2ae434b2.js"; +import { t } from "./browser-fe647dfc.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 df041ad..60186d1 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ - +