Skip to content

Commit aecaf82

Browse files
committed
Build: (893be65) display immutable in embedded connect in web-SDK (#388)
1 parent 3b5f8dd commit aecaf82

File tree

10 files changed

+32
-23
lines changed

10 files changed

+32
-23
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { p as process$1, g as getDefaultExportFromCjs } from "./index-BdYwbppP.js";
1+
import { p as process$1, g as getDefaultExportFromCjs } from "./index-DBAtkmLD.js";
22
var browser = { exports: {} };
33
var ms;
44
var hasRequiredMs;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { q as BaseError, u as getUrl, x as stringify, y as decodeErrorResult, z as isAddressEqual, A as call, C as concat, D as encodeAbiParameters, H as HttpRequestError, F as isHex } from "./index-BdYwbppP.js";
1+
import { q as BaseError, u as getUrl, x as stringify, y as decodeErrorResult, z as isAddressEqual, A as call, C as concat, D as encodeAbiParameters, H as HttpRequestError, F as isHex } from "./index-DBAtkmLD.js";
22
class OffchainLookupError extends BaseError {
33
constructor({ callbackSelector, cause, data, extraData, sender, urls }) {
44
var _a;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { B as Buffer, g as getDefaultExportFromCjs, b as bytesToHex, s as sha256, E as EventEmitter } from "./index-BdYwbppP.js";
1+
import { B as Buffer, g as getDefaultExportFromCjs, b as bytesToHex, s as sha256, E as EventEmitter } from "./index-DBAtkmLD.js";
22
import { D, g, c as clsx, h, y } from "./hooks.module-B8FgZbnF.js";
33
class ScopedLocalStorage {
44
constructor(scope, module) {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { c as commonjsGlobal, a as bnExports, B as Buffer$7, r as require$$2$1, i as inherits_browserExports, d as getAugmentedNamespace, e as eventsExports, f as require$$3, p as process$1, t as tslib_es6, h as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-BdYwbppP.js";
1+
import { c as commonjsGlobal, a as bnExports, B as Buffer$7, r as require$$2$1, i as inherits_browserExports, d as getAugmentedNamespace, e as eventsExports, f as require$$3, p as process$1, t as tslib_es6, h as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-DBAtkmLD.js";
22
import { p as preact_module, a as clsx_m, b as hooks_module } from "./hooks.module-B8FgZbnF.js";
3-
import { b as browserExports } from "./browser-BhSa_01B.js";
3+
import { b as browserExports } from "./browser-BSJ994Qx.js";
44
var dist$5 = {};
55
var CoinbaseWalletSDK$1 = {};
66
var walletLogo$1 = {};
Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-3q_9FTop.js","./hooks.module-B8FgZbnF.js","./index-DVaOW2QW.js","./browser-BhSa_01B.js","./metamask-sdk-D_TQPJHl.js"])))=>i.map(i=>d[i]);
1+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BP0t4n4r.js","./hooks.module-B8FgZbnF.js","./index-D0BbH42J.js","./browser-BSJ994Qx.js","./metamask-sdk-DjSqjP2Y.js"])))=>i.map(i=>d[i]);
22
var __defProp = Object.defineProperty;
33
var __typeError = (msg) => {
44
throw TypeError(msg);
@@ -20450,7 +20450,7 @@ async function call(client2, args) {
2045020450
} catch (err2) {
2045120451
const data3 = getRevertErrorData(err2);
2045220452
const { offchainLookup, offchainLookupSignature } = await __vitePreload(async () => {
20453-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-COtmzn90.js");
20453+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-BR9seZMk.js");
2045420454
return { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 };
2045520455
}, true ? [] : void 0, import.meta.url);
2045620456
if (client2.ccipRead !== false && (data3 == null ? void 0 : data3.slice(0, 10)) === offchainLookupSignature && to)
@@ -134970,7 +134970,7 @@ function version4(parameters) {
134970134970
};
134971134971
})();
134972134972
const { createCoinbaseWalletSDK } = await __vitePreload(async () => {
134973-
const { createCoinbaseWalletSDK: createCoinbaseWalletSDK2 } = await import("./index-3q_9FTop.js");
134973+
const { createCoinbaseWalletSDK: createCoinbaseWalletSDK2 } = await import("./index-BP0t4n4r.js");
134974134974
return { createCoinbaseWalletSDK: createCoinbaseWalletSDK2 };
134975134975
}, true ? __vite__mapDeps([0,1]) : void 0, import.meta.url);
134976134976
const sdk = createCoinbaseWalletSDK({
@@ -135145,7 +135145,7 @@ function version3(parameters) {
135145135145
if (!walletProvider) {
135146135146
const CoinbaseWalletSDK = await (async () => {
135147135147
const { default: SDK } = await __vitePreload(async () => {
135148-
const { default: SDK2 } = await import("./index-DVaOW2QW.js").then((n2) => n2.i);
135148+
const { default: SDK2 } = await import("./index-D0BbH42J.js").then((n2) => n2.i);
135149135149
return { default: SDK2 };
135150135150
}, true ? __vite__mapDeps([2,1,3]) : void 0, import.meta.url);
135151135151
if (typeof SDK !== "function" && typeof SDK.default === "function")
@@ -135385,7 +135385,7 @@ function metaMask$1(parameters = {}) {
135385135385
var _a4, _b2, _c2, _d3, _e6;
135386135386
const MetaMaskSDK = await (async () => {
135387135387
const { default: SDK } = await __vitePreload(async () => {
135388-
const { default: SDK2 } = await import("./metamask-sdk-D_TQPJHl.js");
135388+
const { default: SDK2 } = await import("./metamask-sdk-DjSqjP2Y.js");
135389135389
return { default: SDK2 };
135390135390
}, true ? __vite__mapDeps([4,3]) : void 0, import.meta.url);
135391135391
if (typeof SDK !== "function" && typeof SDK.default === "function")
@@ -135737,7 +135737,7 @@ function walletConnect$1(parameters) {
135737135737
if (!optionalChains.length)
135738135738
return;
135739135739
const { EthereumProvider } = await __vitePreload(async () => {
135740-
const { EthereumProvider: EthereumProvider2 } = await import("./index.es-FmmaE6Bi.js");
135740+
const { EthereumProvider: EthereumProvider2 } = await import("./index.es-B_QxQtpq.js");
135741135741
return { EthereumProvider: EthereumProvider2 };
135742135742
}, true ? [] : void 0, import.meta.url);
135743135743
return await EthereumProvider.init({
@@ -136689,6 +136689,9 @@ const getDefaultWaasConnectors = (options) => {
136689136689
defaultNetwork: defaultChainId
136690136690
}));
136691136691
}
136692+
if ((options == null ? void 0 : options.additionalWallets) && (options == null ? void 0 : options.additionalWallets.length) > 0) {
136693+
wallets.push(...options.additionalWallets);
136694+
}
136692136695
return getConnectWallets(projectAccessKey2, wallets);
136693136696
};
136694136697
const getDefaultUniversalConnectors = (options) => {
@@ -259695,7 +259698,13 @@ const config = walletType$1 === "waas" ? createConfig("waas", {
259695259698
},
259696259699
walletConnect: {
259697259700
projectId: walletConnectProjectId
259698-
}
259701+
},
259702+
additionalWallets: [
259703+
immutable({
259704+
passportInstance,
259705+
environment: K$5.SANDBOX
259706+
})
259707+
]
259699259708
}) : createConfig("universal", {
259700259709
...connectConfig,
259701259710
appName: "Sequence Web SDK Demo",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
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-L-y8NgSX.js";
2-
import "./index-BdYwbppP.js";
1+
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-WBbqB-Hi.js";
2+
import "./index-DBAtkmLD.js";
33
/**
44
* @license
55
* Copyright 2019 Google LLC
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Bc_UcI_Z.js","./index-BdYwbppP.js","./index-BHwcnrtI.css"])))=>i.map(i=>d[i]);
2-
import { B as Buffer, _ as __vitePreload } from "./index-BdYwbppP.js";
1+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DDDZb3Cl.js","./index-DBAtkmLD.js","./index-BHwcnrtI.css"])))=>i.map(i=>d[i]);
2+
import { B as Buffer, _ as __vitePreload } from "./index-DBAtkmLD.js";
33
const t = Symbol();
44
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) => {
55
c.set(e, t2);
@@ -776,7 +776,7 @@ class WalletConnectModal {
776776
}
777777
async initUi() {
778778
if (typeof window !== "undefined") {
779-
await __vitePreload(() => import("./index-Bc_UcI_Z.js"), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
779+
await __vitePreload(() => import("./index-DDDZb3Cl.js"), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
780780
const modal = document.createElement("wcm-modal");
781781
document.body.insertAdjacentElement("beforeend", modal);
782782
OptionsCtrl.setIsUiLoaded(true);
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-L-y8NgSX.js","./index-BdYwbppP.js","./index-BHwcnrtI.css"])))=>i.map(i=>d[i]);
2-
import { p as process$1, d as getAugmentedNamespace, j as global, B as Buffer, m as recoverAddress, o as elliptic, e as eventsExports, g as getDefaultExportFromCjs, c as commonjsGlobal, w as wt$4, _ as __vitePreload } from "./index-BdYwbppP.js";
1+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-WBbqB-Hi.js","./index-DBAtkmLD.js","./index-BHwcnrtI.css"])))=>i.map(i=>d[i]);
2+
import { p as process$1, d as getAugmentedNamespace, j as global, B as Buffer, m as recoverAddress, o as elliptic, e as eventsExports, g as getDefaultExportFromCjs, c as commonjsGlobal, w as wt$4, _ as __vitePreload } from "./index-DBAtkmLD.js";
33
var __spreadArray = function(to2, from2, pack) {
44
if (pack || arguments.length === 2) for (var i3 = 0, l2 = from2.length, ar2; i3 < l2; i3++) {
55
if (ar2 || !(i3 in from2)) {
@@ -11759,7 +11759,7 @@ class w {
1175911759
if (this.rpc = this.getRpcConfig(t), this.chainId = this.rpc.chains.length ? v(this.rpc.chains) : v(this.rpc.optionalChains), this.signer = await oh.init({ projectId: this.rpc.projectId, metadata: this.rpc.metadata, disableProviderPing: t.disableProviderPing, relayUrl: t.relayUrl, storage: t.storage, storageOptions: t.storageOptions, customStoragePrefix: t.customStoragePrefix, telemetryEnabled: t.telemetryEnabled, logger: t.logger }), this.registerEventListeners(), await this.loadPersistedSession(), this.rpc.showQrModal) {
1176011760
let s2;
1176111761
try {
11762-
const { WalletConnectModal: i3 } = await __vitePreload(() => import("./index-L-y8NgSX.js").then((n3) => n3.i), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
11762+
const { WalletConnectModal: i3 } = await __vitePreload(() => import("./index-WBbqB-Hi.js").then((n3) => n3.i), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
1176311763
s2 = i3;
1176411764
} catch {
1176511765
throw new Error("To use QR modal, please install @walletconnect/modal package");
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { c as commonjsGlobal, g as getDefaultExportFromCjs, n, j as global, v as v4, k as eventemitter2Exports, l as validate, _ as __vitePreload } from "./index-BdYwbppP.js";
2-
import { t } from "./browser-BhSa_01B.js";
1+
import { c as commonjsGlobal, g as getDefaultExportFromCjs, n, j as global, v as v4, k as eventemitter2Exports, l as validate, _ as __vitePreload } from "./index-DBAtkmLD.js";
2+
import { t } from "./browser-BSJ994Qx.js";
33
var browserPonyfill = { exports: {} };
44
(function(module, exports) {
55
var __global__ = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || typeof commonjsGlobal !== "undefined" && commonjsGlobal;

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
Learn how to configure a non-root public URL by running `npm run build`.
2222
-->
2323
<title>Sequence Web SDK Demo</title>
24-
<script type="module" crossorigin src="./assets/index-BdYwbppP.js"></script>
24+
<script type="module" crossorigin src="./assets/index-DBAtkmLD.js"></script>
2525
<link rel="stylesheet" crossorigin href="./assets/index-BHwcnrtI.css">
2626
</head>
2727
<body>

0 commit comments

Comments
 (0)