Skip to content

Commit

Permalink
Build: (1087291) payment select modal (#129)
Browse files Browse the repository at this point in the history
* logic for triggering new payment select modal

* payment seleciton(wip)

* added buy with currency flow

* send transactions utility function

* swap and buy

* utility function

* sardine checkout (wip)

* credit card payment

* card height adjustment

* disable other buttons when a TX is in progress

* adde sales contract-specific hook

* renamed tokenId, collectionAddress and price fields

* replaced chainId field with more generic chain field

* clean up helpers

* transfer to wallet

* transfer funds modal context

* export transfer funds modal

* transfer funds modal

* fixed add funds modal, trigger modal

* new pnpm lock file

* return txhash from onsuccess callback

* fix peer deps

* onClose callbacks

* rename erc1155 sales contract setting modal

* callback fns

* disable mock connector

* moved sardine

* refactor selectpaymentmodal settings

* regenerate lockfile

* added variant to Text tags
  • Loading branch information
SamueleA committed Sep 20, 2024
1 parent 49fc4f0 commit 80fb283
Show file tree
Hide file tree
Showing 10 changed files with 2,722 additions and 1,941 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./index-BzPqRlsG.js";
import { g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./index-CsHzCx6e.js";
var events = { exports: {} };
var R = typeof Reflect === "object" ? Reflect : null;
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
Expand Down
2 changes: 1 addition & 1 deletion assets/ccip-DWFRyvlP.js → assets/ccip-CI9Y3o6i.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { f as BaseError, h as getUrl, s as stringify, i as decodeErrorResult, j as isAddressEqual, k as call, l as concat, m as encodeAbiParameters, H as HttpRequestError, n as isHex } from "./index-BzPqRlsG.js";
import { f as BaseError, h as getUrl, s as stringify, i as decodeErrorResult, j as isAddressEqual, k as call, l as concat, m as encodeAbiParameters, H as HttpRequestError, n as isHex } from "./index-CsHzCx6e.js";
class OffchainLookupError extends BaseError {
constructor({ callbackSelector, cause, data, extraData, sender, urls }) {
var _a;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { a as getAugmentedNamespace, d as dist, p as process$1, c as commonjsGlobal, B as Buffer$7 } from "./index-BzPqRlsG.js";
import { e as eventsExports, r as require$$3 } from "./___vite-browser-external_commonjs-proxy-BBNlhQUO.js";
import { a as getAugmentedNamespace, d as dist, p as process$1, c as commonjsGlobal, B as Buffer$7 } from "./index-CsHzCx6e.js";
import { e as eventsExports, r as require$$3 } from "./___vite-browser-external_commonjs-proxy-BKpD9f8m.js";
var readableBrowser = { exports: {} };
var streamBrowser = eventsExports.EventEmitter;
const require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(dist);
Expand Down
4 changes: 2 additions & 2 deletions assets/index-DhrVQl1N.js → assets/index-03y2NvI2.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { B as Buffer, c as commonjsGlobal, e as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-BzPqRlsG.js";
import { j as js, s as sha_jsExports, r as require$$0, a as require$$1, b as require$$2 } from "./hooks.module-B0yPPEfe.js";
import { B as Buffer, c as commonjsGlobal, e as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-CsHzCx6e.js";
import { j as js, s as sha_jsExports, r as require$$0, a as require$$1, b as require$$2 } from "./hooks.module-DH-Wk4N-.js";
function _mergeNamespaces(n, m) {
for (var i = 0; i < m.length; i++) {
const e = m[i];
Expand Down
6 changes: 3 additions & 3 deletions assets/index-CIeoByUV.js → assets/index-B1JZcE-u.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const __vite__fileDeps=["./index-BIe9O6t-.js","./index-BzPqRlsG.js","./index-B7cGsFOk.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import { _ as __vitePreload } from "./index-BzPqRlsG.js";
const __vite__fileDeps=["./index-Br1ln1tf.js","./index-CsHzCx6e.js","./index-B7cGsFOk.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import { _ as __vitePreload } from "./index-CsHzCx6e.js";
const t = Symbol();
const s = Object.getPrototypeOf, c$1 = /* @__PURE__ */ new WeakMap(), l = (e) => e && (c$1.has(e) ? c$1.get(e) : s(e) === Object.prototype || s(e) === Array.prototype), y$1 = (e) => l(e) && e[t] || null, h = (e, t2 = true) => {
c$1.set(e, t2);
Expand Down Expand Up @@ -487,7 +487,7 @@ class d {
}
async initUi() {
if (typeof window < "u") {
await __vitePreload(() => import("./index-BIe9O6t-.js"), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
await __vitePreload(() => import("./index-Br1ln1tf.js"), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
const e = document.createElement("wcm-modal");
document.body.insertAdjacentElement("beforeend", e), p.setIsUiLoaded(true);
}
Expand Down
4 changes: 2 additions & 2 deletions assets/index-BIe9O6t-.js → assets/index-Br1ln1tf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { n as ne$1, s as se$1, T as T$2, t as te$1, a as a$2, o as oe$1, R as R$1, p as p$1, y as y$1 } from "./index-CIeoByUV.js";
import "./index-BzPqRlsG.js";
import { n as ne$1, s as se$1, T as T$2, t as te$1, a as a$2, o as oe$1, R as R$1, p as p$1, y as y$1 } from "./index-B1JZcE-u.js";
import "./index-CsHzCx6e.js";
function addUniqueItem(array, item) {
array.indexOf(item) === -1 && array.push(item);
}
Expand Down
Loading

0 comments on commit 80fb283

Please sign in to comment.