Skip to content

Commit

Permalink
Build: (7fe369c) Wallet fee options (#217)
Browse files Browse the repository at this point in the history
* WIP

* Check for collection logo image

* Make collection detail view image loader match container width

* Disable back button in conformation screen

* Add missing border radius for collection detail list item

* Update fee option hook to allow last registered handler to be triggered

* Show txn pending state in confirmation view

* Fix zeroAddress and null case for native token fee option

* Remove unnecessary id

* Remove logs

* Update transaction confirmation and fee option UIs
  • Loading branch information
corbanbrook committed Dec 17, 2024
1 parent 82b23fd commit 7330366
Show file tree
Hide file tree
Showing 11 changed files with 326 additions and 120 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { a as getAugmentedNamespace, h as dist, g as getDefaultExportFromCjs } from "./index-IZV5kIPU.js";
import { a as getAugmentedNamespace, h as dist, g as getDefaultExportFromCjs } from "./index-C1SjSLmA.js";
const require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(dist);
var inherits_browser = { exports: {} };
if (typeof Object.create === "function") {
Expand Down
2 changes: 1 addition & 1 deletion assets/browser-C6tFLLwW.js → assets/browser-BsrK5m4C.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { p as process$1, g as getDefaultExportFromCjs } from "./index-IZV5kIPU.js";
import { p as process$1, g as getDefaultExportFromCjs } from "./index-C1SjSLmA.js";
var browser = { exports: {} };
var ms;
var hasRequiredMs;
Expand Down
2 changes: 1 addition & 1 deletion assets/ccip-0UZ9SbL0.js → assets/ccip-BMO0LA0d.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { i as BaseError, j as getUrl, k as stringify, l as decodeErrorResult, m as isAddressEqual, o as call, q as concat, r as encodeAbiParameters, H as HttpRequestError, u as isHex } from "./index-IZV5kIPU.js";
import { i as BaseError, j as getUrl, k as stringify, l as decodeErrorResult, m as isAddressEqual, o as call, q as concat, r as encodeAbiParameters, H as HttpRequestError, u as isHex } from "./index-C1SjSLmA.js";
class OffchainLookupError extends BaseError {
constructor({ callbackSelector, cause, data, extraData, sender, urls }) {
var _a;
Expand Down
6 changes: 3 additions & 3 deletions assets/index-IIZ_s-is.js → assets/index-BjN8zAHE.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CeftjqzJ.js","./index-IZV5kIPU.js","./index-g_cLYwVj.css"])))=>i.map(i=>d[i]);
import { B as Buffer, _ as __vitePreload } from "./index-IZV5kIPU.js";
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DiRSBp0V.js","./index-C1SjSLmA.js","./index-g_cLYwVj.css"])))=>i.map(i=>d[i]);
import { B as Buffer, _ as __vitePreload } from "./index-C1SjSLmA.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 @@ -789,7 +789,7 @@ class WalletConnectModal {
}
async initUi() {
if (typeof window !== "undefined") {
await __vitePreload(() => import("./index-CeftjqzJ.js"), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
await __vitePreload(() => import("./index-DiRSBp0V.js"), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
const modal = document.createElement("wcm-modal");
document.body.insertAdjacentElement("beforeend", modal);
OptionsCtrl.setIsUiLoaded(true);
Expand Down
408 changes: 307 additions & 101 deletions assets/index-IZV5kIPU.js → assets/index-C1SjSLmA.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/index-DEv_Qz7e.js → assets/index-DF20gIsG.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { B as Buffer, g as getDefaultExportFromCjs, b as bytesToHex, s as sha256, E as EventEmitter } from "./index-IZV5kIPU.js";
import { B as Buffer, g as getDefaultExportFromCjs, b as bytesToHex, s as sha256, E as EventEmitter } from "./index-C1SjSLmA.js";
import { D, g, c as clsx, h, y } from "./hooks.module-C1UUl86a.js";
class ScopedLocalStorage {
constructor(scope, module) {
Expand Down
4 changes: 2 additions & 2 deletions assets/index-CeftjqzJ.js → assets/index-DiRSBp0V.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-IIZ_s-is.js";
import "./index-IZV5kIPU.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-BjN8zAHE.js";
import "./index-C1SjSLmA.js";
function addUniqueItem(array, item) {
array.indexOf(item) === -1 && array.push(item);
}
Expand Down
6 changes: 3 additions & 3 deletions assets/index-BJPxxmWB.js → assets/index-Dlx0r4Hc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { c as commonjsGlobal, B as Buffer$7, a as getAugmentedNamespace, p as process$1, t as tslib_es6, e as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-IZV5kIPU.js";
import { r as require$$0$2, i as inherits_browserExports, e as eventsExports, a as require$$0$3 } from "./___vite-browser-external_commonjs-proxy-xBtFqy5O.js";
import { c as commonjsGlobal, B as Buffer$7, a as getAugmentedNamespace, p as process$1, t as tslib_es6, e as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-C1SjSLmA.js";
import { r as require$$0$2, i as inherits_browserExports, e as eventsExports, a as require$$0$3 } from "./___vite-browser-external_commonjs-proxy-DCQ1jgJw.js";
import { p as preact_module, a as clsx_m, b as hooks_module } from "./hooks.module-C1UUl86a.js";
import { b as browserExports } from "./browser-C6tFLLwW.js";
import { b as browserExports } from "./browser-BsrK5m4C.js";
var dist$5 = {};
var CoinbaseWalletSDK$1 = {};
var walletLogo$1 = {};
Expand Down
8 changes: 4 additions & 4 deletions assets/index.es-CpB3hItG.js → assets/index.es-oHTfwTsx.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-IIZ_s-is.js","./index-IZV5kIPU.js","./index-g_cLYwVj.css"])))=>i.map(i=>d[i]);
import { p as process$1, a as getAugmentedNamespace, c as commonjsGlobal, d as global, B as Buffer, g as getDefaultExportFromCjs, _ as __vitePreload } from "./index-IZV5kIPU.js";
import { a as require$$0$2, r as require$$0$3, i as inherits_browserExports, e as eventsExports, J as Jg } from "./___vite-browser-external_commonjs-proxy-xBtFqy5O.js";
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BjN8zAHE.js","./index-C1SjSLmA.js","./index-g_cLYwVj.css"])))=>i.map(i=>d[i]);
import { p as process$1, a as getAugmentedNamespace, c as commonjsGlobal, d as global, B as Buffer, g as getDefaultExportFromCjs, _ as __vitePreload } from "./index-C1SjSLmA.js";
import { a as require$$0$2, r as require$$0$3, i as inherits_browserExports, e as eventsExports, J as Jg } from "./___vite-browser-external_commonjs-proxy-DCQ1jgJw.js";
var __spreadArray = function(to2, from2, pack) {
if (pack || arguments.length === 2) for (var i3 = 0, l2 = from2.length, ar2; i3 < l2; i3++) {
if (ar2 || !(i3 in from2)) {
Expand Down Expand Up @@ -27477,7 +27477,7 @@ class C2 {
if (this.rpc = this.getRpcConfig(t), this.chainId = this.rpc.chains.length ? m2(this.rpc.chains) : m2(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 s2;
try {
const { WalletConnectModal: i3 } = await __vitePreload(() => import("./index-IIZ_s-is.js").then((n4) => n4.i), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
const { WalletConnectModal: i3 } = await __vitePreload(() => import("./index-BjN8zAHE.js").then((n4) => n4.i), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
s2 = i3;
} 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, n, d as global, f as eventemitter2Exports, _ as __vitePreload } from "./index-IZV5kIPU.js";
import { t } from "./browser-C6tFLLwW.js";
import { c as commonjsGlobal, g as getDefaultExportFromCjs, n, d as global, f as eventemitter2Exports, _ as __vitePreload } from "./index-C1SjSLmA.js";
import { t } from "./browser-BsrK5m4C.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 @@ -24,7 +24,7 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Sequence Kit Demo</title>
<script type="module" crossorigin src="./assets/index-IZV5kIPU.js"></script>
<script type="module" crossorigin src="./assets/index-C1SjSLmA.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-g_cLYwVj.css">
</head>
<body>
Expand Down

0 comments on commit 7330366

Please sign in to comment.