Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wenty22 committed Jan 20, 2025
1 parent 6d65ace commit 6bfd340
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 21 deletions.
2 changes: 1 addition & 1 deletion assets/browser-5886afcb.js → assets/browser-d249ceeb.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { g as getDefaultExportFromCjs } from "./index-d492d5fd.js";
import { g as getDefaultExportFromCjs } from "./index-2da387da.js";
var browser = { exports: {} };
var ms;
var hasRequiredMs;
Expand Down
23 changes: 16 additions & 7 deletions assets/index-d492d5fd.js → assets/index-2da387da.js
Original file line number Diff line number Diff line change
Expand Up @@ -16033,7 +16033,7 @@ function version4(parameters) {
options: ((_a3 = parameters.preference) == null ? void 0 : _a3.options) ?? "all"
};
})();
const { createCoinbaseWalletSDK } = await __vitePreload(() => import("./index-3bef324c.js"), true ? ["./index-3bef324c.js","./hooks.module-1f3364a3.js"] : void 0, import.meta.url);
const { createCoinbaseWalletSDK } = await __vitePreload(() => import("./index-d2113643.js"), true ? ["./index-d2113643.js","./hooks.module-1f3364a3.js"] : void 0, import.meta.url);
const sdk = createCoinbaseWalletSDK({
...parameters,
appChainIds: config2.chains.map((x3) => x3.id),
Expand Down Expand Up @@ -16205,7 +16205,7 @@ function version3(parameters) {
var _a3;
if (!walletProvider) {
const CoinbaseWalletSDK = await (async () => {
const { default: SDK } = await __vitePreload(() => import("./index-8413eb0c.js").then((n4) => n4.i), true ? ["./index-8413eb0c.js","./hooks.module-1f3364a3.js","./browser-5886afcb.js"] : void 0, import.meta.url);
const { default: SDK } = await __vitePreload(() => import("./index-fb9bbf92.js").then((n4) => n4.i), true ? ["./index-fb9bbf92.js","./hooks.module-1f3364a3.js","./browser-d249ceeb.js"] : void 0, import.meta.url);
if (typeof SDK !== "function" && typeof SDK.default === "function")
return SDK.default;
return SDK;
Expand Down Expand Up @@ -16442,7 +16442,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-390d2fac.js"), true ? ["./metamask-sdk-390d2fac.js","./browser-5886afcb.js"] : void 0, import.meta.url);
const { default: SDK } = await __vitePreload(() => import("./metamask-sdk-08b559e3.js"), true ? ["./metamask-sdk-08b559e3.js","./browser-d249ceeb.js"] : void 0, import.meta.url);
if (typeof SDK !== "function" && typeof SDK.default === "function")
return SDK.default;
return SDK;
Expand Down Expand Up @@ -16802,7 +16802,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-1862cc18.js"), true ? [] : void 0, import.meta.url);
const { EthereumProvider: EthereumProvider2 } = await __vitePreload(() => import("./index.es-3294fd59.js"), true ? [] : void 0, import.meta.url);
return await EthereumProvider2.init({
...parameters,
disableProviderPing: true,
Expand Down Expand Up @@ -19792,7 +19792,7 @@ function m$2() {
case 0:
if ((typeof window === "undefined" ? "undefined" : o$1(window)) > "u")
return [2];
return [4, __vitePreload(() => import("./index-e1396018.js"), true ? [] : void 0, import.meta.url)];
return [4, __vitePreload(() => import("./index-baddc454.js"), true ? [] : void 0, import.meta.url)];
case 1:
l2 = s2.sent().default, f3 = h4 || ((e18 = a3.chains[0]) === null || e18 === void 0 ? void 0 : e18.id), d4 = n4.infuraId ? {} : a3.chains.reduce(function(n5, e19) {
return c$3(r$3({}, n5), t({}, e19.id, e19.rpcUrls.default.http[0]));
Expand Down Expand Up @@ -89267,10 +89267,19 @@ function useWalletConnectUri(props = {}) {
};
}
function EvmUriProvider() {
const enabled = isTMA() && isMobile();
const { wallets: wallets2 } = useWalletKit();
const enabled = reactExports.useMemo(() => {
return wallets2.some(
(e18) => {
var _a3;
return ((_a3 = getWalletBehaviorOnPlatform(e18)) == null ? void 0 : _a3.connectType) === "uri";
}
);
}, [wallets2]);
const { wcUri } = useWalletConnectUri({
enabled
});
console.log(wcUri);
setEvmGlobalData({
globalWcUri: wcUri
});
Expand Down Expand Up @@ -90304,7 +90313,7 @@ function SetEvmWalletClickRef(props) {
}
}
};
if (isMobile()) {
if ((behavior == null ? void 0 : behavior.connectType) === "uri") {
handleJumping();
} else {
timerRef.current = setTimeout(handleJumping, 600);
Expand Down
4 changes: 2 additions & 2 deletions assets/index-14d96c2c.js → assets/index-8c5a5563.js
Original file line number Diff line number Diff line change
@@ -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-29b75dfd.js";
import { a8 as dijkstraExports } from "./index-d492d5fd.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-e49d16c1.js";
import { a8 as dijkstraExports } from "./index-2da387da.js";
/**
* @license
* Copyright 2019 Google LLC
Expand Down
2 changes: 1 addition & 1 deletion assets/index-e1396018.js → assets/index-baddc454.js
Original file line number Diff line number Diff line change
@@ -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-d492d5fd.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-2da387da.js";
var sha3$1 = { exports: {} };
/**
* [js-sha3]{@link https://github.com/emn178/js-sha3}
Expand Down
2 changes: 1 addition & 1 deletion assets/index-3bef324c.js → assets/index-d2113643.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { S as getAugmentedNamespace, g as getDefaultExportFromCjs, T as bytesToHex, U as sha256, O } from "./index-d492d5fd.js";
import { S as getAugmentedNamespace, g as getDefaultExportFromCjs, T as bytesToHex, U as sha256, O } from "./index-2da387da.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({
Expand Down
4 changes: 2 additions & 2 deletions assets/index-29b75dfd.js → assets/index-e49d16c1.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { a4 as __vitePreload } from "./index-d492d5fd.js";
import { a4 as __vitePreload } from "./index-2da387da.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);
Expand Down Expand Up @@ -791,7 +791,7 @@ class WalletConnectModal {
}
async initUi() {
if (typeof window !== "undefined") {
await __vitePreload(() => import("./index-14d96c2c.js"), true ? ["./index-14d96c2c.js","./index-d492d5fd.js","./index-6434e334.css"] : void 0, import.meta.url);
await __vitePreload(() => import("./index-8c5a5563.js"), true ? ["./index-8c5a5563.js","./index-2da387da.js","./index-6434e334.css"] : void 0, import.meta.url);
const modal = document.createElement("wcm-modal");
document.body.insertAdjacentElement("beforeend", modal);
OptionsCtrl.setIsUiLoaded(true);
Expand Down
4 changes: 2 additions & 2 deletions assets/index-8413eb0c.js → assets/index-fb9bbf92.js
Original file line number Diff line number Diff line change
@@ -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-d492d5fd.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-2da387da.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-5886afcb.js";
import { b as browserExports } from "./browser-d249ceeb.js";
function _mergeNamespaces(n, m) {
for (var i = 0; i < m.length; i++) {
const e = m[i];
Expand Down
4 changes: 2 additions & 2 deletions assets/index.es-1862cc18.js → assets/index.es-3294fd59.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Z as eventsExports, a1 as Wo, a2 as er, a3 as Ev, a4 as __vitePreload, a5 as Nr } from "./index-d492d5fd.js";
import { Z as eventsExports, a1 as Wo, a2 as er, a3 as Ev, a4 as __vitePreload, a5 as Nr } from "./index-2da387da.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 = {}))
Expand Down Expand Up @@ -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-29b75dfd.js").then((n) => n.i), true ? ["./index-29b75dfd.js","./index-d492d5fd.js","./index-6434e334.css"] : void 0, import.meta.url);
const { WalletConnectModal: i } = await __vitePreload(() => import("./index-e49d16c1.js").then((n) => n.i), true ? ["./index-e49d16c1.js","./index-2da387da.js","./index-6434e334.css"] : void 0, import.meta.url);
s = i;
} catch {
throw new Error("To use QR modal, please install @walletconnect/modal package");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { c as commonjsGlobal, g as getDefaultExportFromCjs, a6 as v4, a7 as validate, a4 as __vitePreload } from "./index-d492d5fd.js";
import { t } from "./browser-5886afcb.js";
import { c as commonjsGlobal, g as getDefaultExportFromCjs, a6 as v4, a7 as validate, a4 as __vitePreload } from "./index-2da387da.js";
import { t } from "./browser-d249ceeb.js";
var browserPonyfill = { exports: {} };
(function(module, exports) {
var __global__ = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || typeof commonjsGlobal !== "undefined" && commonjsGlobal;
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script>
var vConsole = new window.VConsole();
</script>
<script type="module" crossorigin src="./assets/index-d492d5fd.js"></script>
<script type="module" crossorigin src="./assets/index-2da387da.js"></script>
<link rel="stylesheet" href="./assets/index-6434e334.css">
</head>

Expand Down

0 comments on commit 6bfd340

Please sign in to comment.