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 f9ba717 commit 36f9f6d
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions assets/index-54839d80.js → assets/index-0ae37e35.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-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
Expand Down
2 changes: 1 addition & 1 deletion assets/index-54fea2e1.js → assets/index-2798e905.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-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({
Expand Down
4 changes: 2 additions & 2 deletions assets/index-21951aa9.js → assets/index-99acfce7.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down Expand Up @@ -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);
Expand Down
16 changes: 8 additions & 8 deletions assets/index-18e9ae4b.js → assets/index-b3e54596.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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]));
Expand Down Expand Up @@ -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
});
Expand Down
2 changes: 1 addition & 1 deletion assets/index-df5cc2ae.js → assets/index-e4a8cc1b.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-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);
Expand Down
2 changes: 1 addition & 1 deletion assets/index-53665674.js → assets/index-ef588c81.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$$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++) {
Expand Down
4 changes: 2 additions & 2 deletions assets/index.es-00d1f4e5.js → assets/index.es-79983d7d.js
Original file line number Diff line number Diff line change
@@ -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 = {}))
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-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");
Expand Down
Original file line number Diff line number Diff line change
@@ -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];
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<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-18e9ae4b.js"></script>
<script type="module" crossorigin src="./assets/index-b3e54596.js"></script>
<link rel="stylesheet" href="./assets/index-51b56c12.css">
</head>

Expand Down

0 comments on commit 36f9f6d

Please sign in to comment.