Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wenty22 committed Dec 2, 2024
1 parent 754d249 commit b8ac2d5
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion assets/index-4f1f50cd.js → assets/index-28afd065.js
Original file line number Diff line number Diff line change
@@ -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$$0$2, a6 as eventemitter3Exports, k as getDefaultExportFromCjs } from "./index-58d734d2.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$$0$2, a6 as eventemitter3Exports, k as getDefaultExportFromCjs } from "./index-2ff07c02.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++) {
Expand Down
2 changes: 1 addition & 1 deletion assets/index-cc21699f.js → assets/index-2d3420f0.js
Original file line number Diff line number Diff line change
@@ -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-58d734d2.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-2ff07c02.js";
function e$6(e2, t3, r2, n11, i2, o2, s2) {
try {
var u2 = e2[o2](s2);
Expand Down
16 changes: 8 additions & 8 deletions assets/index-58d734d2.js → assets/index-2ff07c02.js
Original file line number Diff line number Diff line change
Expand Up @@ -8821,8 +8821,8 @@ class UnknownRpcError extends RpcError {
}
}
const scriptRel = "modulepreload";
const assetsURL = function(dep) {
return "/" + dep;
const assetsURL = function(dep, importerUrl) {
return new URL(dep, importerUrl).href;
};
const seen = {};
const __vitePreload = function preload(baseModule, deps, importerUrl) {
Expand All @@ -8831,7 +8831,7 @@ const __vitePreload = function preload(baseModule, deps, importerUrl) {
}
const links = document.getElementsByTagName("link");
return Promise.all(deps.map((dep) => {
dep = assetsURL(dep);
dep = assetsURL(dep, importerUrl);
if (dep in seen)
return;
seen[dep] = true;
Expand Down Expand Up @@ -13458,7 +13458,7 @@ function version4(parameters) {
options: ((_a3 = parameters.preference) == null ? void 0 : _a3.options) ?? "all"
};
})();
const { createCoinbaseWalletSDK } = await __vitePreload(() => import("./index-8ac0e978.js"), true ? ["assets/index-8ac0e978.js","assets/hooks.module-2202d2c9.js"] : void 0);
const { createCoinbaseWalletSDK } = await __vitePreload(() => import("./index-c110a2be.js"), true ? ["./index-c110a2be.js","./hooks.module-2202d2c9.js"] : void 0, import.meta.url);
const sdk = createCoinbaseWalletSDK({
...parameters,
appChainIds: config2.chains.map((x2) => x2.id),
Expand Down Expand Up @@ -13630,7 +13630,7 @@ function version3(parameters) {
var _a3;
if (!walletProvider) {
const CoinbaseWalletSDK = await (async () => {
const { default: SDK } = await __vitePreload(() => import("./index-4f1f50cd.js").then((n4) => n4.i), true ? ["assets/index-4f1f50cd.js","assets/hooks.module-2202d2c9.js"] : void 0);
const { default: SDK } = await __vitePreload(() => import("./index-28afd065.js").then((n4) => n4.i), true ? ["./index-28afd065.js","./hooks.module-2202d2c9.js"] : void 0, import.meta.url);
if (typeof SDK !== "function" && typeof SDK.default === "function")
return SDK.default;
return SDK;
Expand Down Expand Up @@ -13863,7 +13863,7 @@ function walletConnect$1(parameters) {
const optionalChains = config2.chains.map((x2) => x2.id);
if (!optionalChains.length)
return;
const { EthereumProvider: EthereumProvider2 } = await __vitePreload(() => import("./index.es-050fe910.js"), true ? [] : void 0);
const { EthereumProvider: EthereumProvider2 } = await __vitePreload(() => import("./index.es-3f1eb903.js"), true ? [] : void 0, import.meta.url);
return await EthereumProvider2.init({
...parameters,
disableProviderPing: true,
Expand Down Expand Up @@ -16739,7 +16739,7 @@ function v$3() {
case 0:
if ((typeof window === "undefined" ? "undefined" : o$1(window)) > "u")
return [2];
return [4, __vitePreload(() => import("./index-cc21699f.js"), true ? [] : void 0)];
return [4, __vitePreload(() => import("./index-2d3420f0.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$2({}, n5), t({}, e19.id, e19.rpcUrls.default.http[0]));
Expand Down Expand Up @@ -114489,7 +114489,7 @@ async function getProvider() {
if (typeof window === "undefined")
return;
try {
const { WalletTgSdk } = (await __vitePreload(() => import("./index.es-07d215c7.js"), true ? [] : void 0)).default;
const { WalletTgSdk } = (await __vitePreload(() => import("./index.es-07d215c7.js"), true ? [] : void 0, import.meta.url)).default;
const { ethereum } = new WalletTgSdk({
metaData: {
hostname: window.location.hostname
Expand Down
4 changes: 2 additions & 2 deletions assets/index-ec6535e9.js → assets/index-ae776250.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-ca7dc909.js";
import { aY as browser } from "./index-58d734d2.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-e2c5adfd.js";
import { aY as browser } from "./index-2ff07c02.js";
/**
* @license
* Copyright 2019 Google LLC
Expand Down
2 changes: 1 addition & 1 deletion assets/index-8ac0e978.js → assets/index-c110a2be.js
Original file line number Diff line number Diff line change
@@ -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-58d734d2.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-2ff07c02.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({
Expand Down
12 changes: 6 additions & 6 deletions assets/index-ca7dc909.js → assets/index-e2c5adfd.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { aX as __vitePreload } from "./index-58d734d2.js";
import { aX as __vitePreload } from "./index-2ff07c02.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 @@ -89,7 +89,7 @@ const buildProxyFunction = (objectIs = Object.is, newProxy = (target, handler) =
};
const propProxyStates = /* @__PURE__ */ new Map();
const addPropListener = (prop, propProxyState) => {
if (({ "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false } ? "production" : void 0) !== "production" && propProxyStates.has(prop)) {
if (({ "BASE_URL": "./", "MODE": "production", "DEV": false, "PROD": true, "SSR": false } ? "production" : void 0) !== "production" && propProxyStates.has(prop)) {
throw new Error("prop listener already exists");
}
if (listeners.size) {
Expand All @@ -111,7 +111,7 @@ const buildProxyFunction = (objectIs = Object.is, newProxy = (target, handler) =
listeners.add(listener);
if (listeners.size === 1) {
propProxyStates.forEach(([propProxyState, prevRemove], prop) => {
if (({ "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false } ? "production" : void 0) !== "production" && prevRemove) {
if (({ "BASE_URL": "./", "MODE": "production", "DEV": false, "PROD": true, "SSR": false } ? "production" : void 0) !== "production" && prevRemove) {
throw new Error("remove already exists");
}
const remove = propProxyState[3](createPropListener(prop));
Expand Down Expand Up @@ -221,7 +221,7 @@ function proxy(initialObject = {}) {
}
function subscribe(proxyObject, callback, notifyInSync) {
const proxyState = proxyStateMap.get(proxyObject);
if (({ "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false } ? "production" : void 0) !== "production" && !proxyState) {
if (({ "BASE_URL": "./", "MODE": "production", "DEV": false, "PROD": true, "SSR": false } ? "production" : void 0) !== "production" && !proxyState) {
console.warn("Please use proxy object");
}
let promise;
Expand Down Expand Up @@ -252,7 +252,7 @@ function subscribe(proxyObject, callback, notifyInSync) {
}
function snapshot(proxyObject, handlePromise) {
const proxyState = proxyStateMap.get(proxyObject);
if (({ "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false } ? "production" : void 0) !== "production" && !proxyState) {
if (({ "BASE_URL": "./", "MODE": "production", "DEV": false, "PROD": true, "SSR": false } ? "production" : void 0) !== "production" && !proxyState) {
console.warn("Please use proxy object");
}
const [target, ensureVersion, createSnapshot] = proxyState;
Expand Down Expand Up @@ -791,7 +791,7 @@ class WalletConnectModal {
}
async initUi() {
if (typeof window !== "undefined") {
await __vitePreload(() => import("./index-ec6535e9.js"), true ? ["assets/index-ec6535e9.js","assets/index-58d734d2.js","assets/index-51b56c12.css"] : void 0);
await __vitePreload(() => import("./index-ae776250.js"), true ? ["./index-ae776250.js","./index-2ff07c02.js","./index-51b56c12.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.es-050fe910.js → assets/index.es-3f1eb903.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { a5 as require$$0$1, n as commonjsGlobal, a7 as minimalisticAssert, a2 as inherits_browserExports, a8 as hash$2, a9 as getWindowMetadata_1, aa as getDocument_1, ab as getNavigator_1, ac as cjs, ad as sha256, ae as fromString, af as toString, ag as x25519, ah as random, ai as HKDF_1, aj as chacha20poly1305, ak as concat, al as decodeJWT, am as queryString, an as detect, ao as getLocation_1, ap as createStorage, aq as safeJsonStringify, ar as createStore, as as get, at as set, au as del, av as keys, aw as clear, ax as safeJsonParse, ay as IEvents, az as bs$1, aA as E$2, aB as y$4, a3 as eventsExports, aC as k$1, aD as A$1, aE as i, aF as generateKeyPair, aG as encodeIss, aH as signJWT, aI as getBigIntRpcId, aJ as Mg, aK as o, aL as f, aM as isJsonRpcRequest, aN as isJsonRpcResponse, aO as formatJsonRpcResult, aP as Jg, aQ as formatJsonRpcError, aR as isJsonRpcResult, aS as isJsonRpcError, aT as formatJsonRpcRequest, aU as r$1, aV as payloadId, aW as f$1, aX as __vitePreload } from "./index-58d734d2.js";
import { a5 as require$$0$1, n as commonjsGlobal, a7 as minimalisticAssert, a2 as inherits_browserExports, a8 as hash$2, a9 as getWindowMetadata_1, aa as getDocument_1, ab as getNavigator_1, ac as cjs, ad as sha256, ae as fromString, af as toString, ag as x25519, ah as random, ai as HKDF_1, aj as chacha20poly1305, ak as concat, al as decodeJWT, am as queryString, an as detect, ao as getLocation_1, ap as createStorage, aq as safeJsonStringify, ar as createStore, as as get, at as set, au as del, av as keys, aw as clear, ax as safeJsonParse, ay as IEvents, az as bs$1, aA as E$2, aB as y$4, a3 as eventsExports, aC as k$1, aD as A$1, aE as i, aF as generateKeyPair, aG as encodeIss, aH as signJWT, aI as getBigIntRpcId, aJ as Mg, aK as o, aL as f, aM as isJsonRpcRequest, aN as isJsonRpcResponse, aO as formatJsonRpcResult, aP as Jg, aQ as formatJsonRpcError, aR as isJsonRpcResult, aS as isJsonRpcError, aT as formatJsonRpcRequest, aU as r$1, aV as payloadId, aW as f$1, aX as __vitePreload } from "./index-2ff07c02.js";
var elliptic = {};
const name = "elliptic";
const version = "6.6.1";
Expand Down Expand Up @@ -18269,7 +18269,7 @@ class C2 {
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: i2 } = await __vitePreload(() => import("./index-ca7dc909.js").then((n2) => n2.i), true ? ["assets/index-ca7dc909.js","assets/index-58d734d2.js","assets/index-51b56c12.css"] : void 0);
const { WalletConnectModal: i2 } = await __vitePreload(() => import("./index-e2c5adfd.js").then((n2) => n2.i), true ? ["./index-e2c5adfd.js","./index-2ff07c02.js","./index-51b56c12.css"] : void 0, import.meta.url);
s = i2;
} catch {
throw new Error("To use QR modal, please install @walletconnect/modal package");
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="./vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WalletKit Vite Example</title>
<script type="module" crossorigin src="/assets/index-58d734d2.js"></script>
<link rel="stylesheet" href="/assets/index-51b56c12.css">
<script type="module" crossorigin src="./assets/index-2ff07c02.js"></script>
<link rel="stylesheet" href="./assets/index-51b56c12.css">
</head>

<body>
Expand Down

0 comments on commit b8ac2d5

Please sign in to comment.