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 ae8f07b commit fae00c0
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions assets/index-bc6f0296.js → assets/index-53847741.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-7c051153.js";
import { ac as browser } from "./index-4306758b.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-efd9f7df.js";
import { ac as browser } from "./index-fc6d18d2.js";
/**
* @license
* Copyright 2019 Google LLC
Expand Down
2 changes: 1 addition & 1 deletion assets/index-b8b0e3c7.js → assets/index-90d26802.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-4306758b.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-fc6d18d2.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
2 changes: 1 addition & 1 deletion assets/index-bc87b345.js → assets/index-a0bd348d.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-4306758b.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-fc6d18d2.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-c842141c.js → assets/index-a373930a.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-4306758b.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-fc6d18d2.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-7c051153.js → assets/index-efd9f7df.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { aa as __vitePreload } from "./index-4306758b.js";
import { aa as __vitePreload } from "./index-fc6d18d2.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-bc6f0296.js"), true ? ["./index-bc6f0296.js","./index-4306758b.js","./index-51b56c12.css"] : void 0, import.meta.url);
await __vitePreload(() => import("./index-53847741.js"), true ? ["./index-53847741.js","./index-fc6d18d2.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
14 changes: 7 additions & 7 deletions assets/index-4306758b.js → assets/index-fc6d18d2.js
Original file line number Diff line number Diff line change
Expand Up @@ -11284,7 +11284,7 @@ function version4(parameters) {
options: ((_a3 = parameters.preference) == null ? void 0 : _a3.options) ?? "all"
};
})();
const { createCoinbaseWalletSDK } = await __vitePreload(() => import("./index-b8b0e3c7.js"), true ? ["./index-b8b0e3c7.js","./hooks.module-2202d2c9.js"] : void 0, import.meta.url);
const { createCoinbaseWalletSDK } = await __vitePreload(() => import("./index-90d26802.js"), true ? ["./index-90d26802.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 @@ -11456,7 +11456,7 @@ function version3(parameters) {
var _a3;
if (!walletProvider) {
const CoinbaseWalletSDK = await (async () => {
const { default: SDK } = await __vitePreload(() => import("./index-c842141c.js").then((n5) => n5.i), true ? ["./index-c842141c.js","./hooks.module-2202d2c9.js"] : void 0, import.meta.url);
const { default: SDK } = await __vitePreload(() => import("./index-a373930a.js").then((n5) => n5.i), true ? ["./index-a373930a.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 @@ -11689,7 +11689,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-c12d343d.js"), true ? [] : void 0, import.meta.url);
const { EthereumProvider: EthereumProvider2 } = await __vitePreload(() => import("./index.es-326aeb41.js"), true ? [] : void 0, import.meta.url);
return await EthereumProvider2.init({
...parameters,
disableProviderPing: true,
Expand Down Expand Up @@ -16739,7 +16739,7 @@ function v$4() {
case 0:
if ((typeof window === "undefined" ? "undefined" : o$1(window)) > "u")
return [2];
return [4, __vitePreload(() => import("./index-bc87b345.js"), true ? [] : void 0, import.meta.url)];
return [4, __vitePreload(() => import("./index-a0bd348d.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 @@ -50479,7 +50479,7 @@ function trustWallet(props = {}) {
id: "trust",
walletType: "evm",
showQRCode: false,
platforms: ["tg-pc", "browser-android", "browser-ios", "browser-pc"],
platforms: ["tg-android", "tg-ios", "tg-pc", "browser-android", "browser-ios", "browser-pc"],
isInstalled() {
return !!getProvider$1$1();
},
Expand Down Expand Up @@ -50603,8 +50603,8 @@ function walletConnect(props = {}) {
qrModalOptions: {
explorerRecommendedWalletIds: [
"8a0ee50d1f22f6651afcae7eb4253e52a3310b90af5daef78a8c4929a9bb99d4",
"c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96",
"4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0"
"4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0",
"c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96"
]
},
...connectorOptions,
Expand Down
4 changes: 2 additions & 2 deletions assets/index.es-c12d343d.js → assets/index.es-326aeb41.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-4306758b.js";
import { a3 as eventsExports, a7 as Wo, a8 as er, a9 as Ev, aa as __vitePreload, ab as Nr } from "./index-fc6d18d2.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-7c051153.js").then((n) => n.i), true ? ["./index-7c051153.js","./index-4306758b.js","./index-51b56c12.css"] : void 0, import.meta.url);
const { WalletConnectModal: i } = await __vitePreload(() => import("./index-efd9f7df.js").then((n) => n.i), true ? ["./index-efd9f7df.js","./index-fc6d18d2.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
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-4306758b.js"></script>
<script type="module" crossorigin src="./assets/index-fc6d18d2.js"></script>
<link rel="stylesheet" href="./assets/index-51b56c12.css">
</head>

Expand Down

0 comments on commit fae00c0

Please sign in to comment.