Skip to content

Commit

Permalink
Build: (6cfb2d3) linting and prettier (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Jul 25, 2024
1 parent 190eb87 commit c8ba900
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 38 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./index-BlcKxWdd.js";
import { g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./index-AKJrC2_8.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-BwdTI8P7.js → assets/ccip-B_0qp9C5.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h as BaseError, j as getUrl, s as stringify, k as decodeErrorResult, l as isAddressEqual, m as call, n as concat, o as encodeAbiParameters, H as HttpRequestError, q as isHex } from "./index-BlcKxWdd.js";
import { h as BaseError, j as getUrl, s as stringify, k as decodeErrorResult, l as isAddressEqual, m as call, n as concat, o as encodeAbiParameters, H as HttpRequestError, q as isHex } from "./index-AKJrC2_8.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 { r as require$$2$1, p as process$1, c as commonjsGlobal, i as inherits_browserExports, B as Buffer$7, a as getAugmentedNamespace } from "./index-BlcKxWdd.js";
import { e as eventsExports, r as require$$3 } from "./___vite-browser-external_commonjs-proxy-B6QDVg13.js";
import { r as require$$2$1, p as process$1, c as commonjsGlobal, i as inherits_browserExports, B as Buffer$7, a as getAugmentedNamespace } from "./index-AKJrC2_8.js";
import { e as eventsExports, r as require$$3 } from "./___vite-browser-external_commonjs-proxy-yoAa9Tua.js";
var readableBrowser = { exports: {} };
var streamBrowser = eventsExports.EventEmitter;
var buffer_list;
Expand Down
41 changes: 22 additions & 19 deletions assets/index-BlcKxWdd.js → assets/index-AKJrC2_8.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const __vite__fileDeps=["./index-DioC5A7I.js","./hooks.module-CR94OmzB.js","./___vite-browser-external_commonjs-proxy-B6QDVg13.js","./index-CRaiCr6n.js","./index.es-C5wqqseb.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
const __vite__fileDeps=["./index-CTZHiPZI.js","./hooks.module-B5_EMLad.js","./___vite-browser-external_commonjs-proxy-yoAa9Tua.js","./index-crXdCf-3.js","./index.es-DmpytjZ4.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key2, value) => key2 in obj ? __defProp(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
var __publicField = (obj, key2, value) => {
Expand Down Expand Up @@ -74003,7 +74003,7 @@ async function call(client2, args) {
return { data: response };
} catch (err) {
const data2 = getRevertErrorData(err);
const { offchainLookup, offchainLookupSignature } = await __vitePreload(() => import("./ccip-BwdTI8P7.js"), true ? [] : void 0, import.meta.url);
const { offchainLookup, offchainLookupSignature } = await __vitePreload(() => import("./ccip-B_0qp9C5.js"), true ? [] : void 0, import.meta.url);
if (client2.ccipRead !== false && (data2 == null ? void 0 : data2.slice(0, 10)) === offchainLookupSignature && to)
return { data: await offchainLookup(client2, { data: data2, to }) };
throw getCallError(err, {
Expand Down Expand Up @@ -96912,7 +96912,7 @@ function version4(parameters) {
},
async getProvider() {
if (!walletProvider) {
const { default: CoinbaseSDK_ } = await __vitePreload(() => import("./index-DioC5A7I.js").then((n2) => n2.i), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
const { default: CoinbaseSDK_ } = await __vitePreload(() => import("./index-CTZHiPZI.js").then((n2) => n2.i), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
const CoinbaseSDK = (() => {
if (typeof CoinbaseSDK_ !== "function" && typeof CoinbaseSDK_.default === "function")
return CoinbaseSDK_.default;
Expand Down Expand Up @@ -97089,7 +97089,7 @@ function version3(parameters) {
async getProvider() {
var _a2;
if (!walletProvider) {
const { default: SDK_ } = await __vitePreload(() => import("./index-CRaiCr6n.js").then((n2) => n2.i), true ? __vite__mapDeps([3,1,2]) : void 0, import.meta.url);
const { default: SDK_ } = await __vitePreload(() => import("./index-crXdCf-3.js").then((n2) => n2.i), true ? __vite__mapDeps([3,1,2]) : void 0, import.meta.url);
let SDK;
if (typeof SDK_ !== "function" && typeof SDK_.default === "function")
SDK = SDK_.default;
Expand Down Expand Up @@ -97323,7 +97323,7 @@ function walletConnect$1(parameters) {
const optionalChains = config2.chains.map((x) => x.id);
if (!optionalChains.length)
return;
const { EthereumProvider } = await __vitePreload(() => import("./index.es-C5wqqseb.js"), true ? __vite__mapDeps([4,2]) : void 0, import.meta.url);
const { EthereumProvider } = await __vitePreload(() => import("./index.es-DmpytjZ4.js"), true ? __vite__mapDeps([4,2]) : void 0, import.meta.url);
return await EthereumProvider.init({
...parameters,
disableProviderPing: true,
Expand Down Expand Up @@ -98342,7 +98342,6 @@ const CheckoutSelection = () => {
const { setNavigation } = useNavigation$1();
const { closeCheckout, settings } = useCheckoutModal();
const { address: accountAddress } = useAccount();
useProjectAccessKey();
const cryptoCheckoutSettings = settings == null ? void 0 : settings.cryptoCheckout;
const creditCardCheckoutSettings = settings == null ? void 0 : settings.creditCardCheckout;
const displayCreditCardCheckout = !!creditCardCheckoutSettings;
Expand Down Expand Up @@ -107881,7 +107880,21 @@ const abi = [
type: "function"
}
];
const orderbookAbi = [{ "inputs": [{ "internalType": "uint256", "name": "requestId", "type": "uint256" }, { "internalType": "uint256", "name": "quantity", "type": "uint256" }, { "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "uint256[]", "name": "additionalFees", "type": "uint256[]" }, { "internalType": "address[]", "name": "additionalFeeRecipients", "type": "address[]" }], "name": "acceptRequest", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
const orderbookAbi = [
{
inputs: [
{ internalType: "uint256", name: "requestId", type: "uint256" },
{ internalType: "uint256", name: "quantity", type: "uint256" },
{ internalType: "address", name: "recipient", type: "address" },
{ internalType: "uint256[]", name: "additionalFees", type: "uint256[]" },
{ internalType: "address[]", name: "additionalFeeRecipients", type: "address[]" }
],
name: "acceptRequest",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const delay = (ms) => {
return new Promise((resolve) => setTimeout(resolve, ms));
};
Expand All @@ -107908,21 +107921,11 @@ const getCheckoutSettings = (args) => {
};
return checkoutSettings;
};
const getOrderbookCalldata = ({
orderId,
quantity,
recipient
}) => {
const getOrderbookCalldata = ({ orderId, quantity, recipient }) => {
const calldata = encodeFunctionData({
abi: orderbookAbi,
functionName: "acceptRequest",
args: [
BigInt(orderId),
BigInt(quantity),
recipient,
[],
[]
]
args: [BigInt(orderId), BigInt(quantity), recipient, [], []]
});
return calldata;
};
Expand Down
4 changes: 2 additions & 2 deletions assets/index-DioC5A7I.js → assets/index-CTZHiPZI.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-BlcKxWdd.js";
import { j as js, s as sha_jsExports, r as require$$0, a as require$$1, b as require$$2 } from "./hooks.module-CR94OmzB.js";
import { B as Buffer, c as commonjsGlobal, e as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-AKJrC2_8.js";
import { j as js, s as sha_jsExports, r as require$$0, a as require$$1, b as require$$2 } from "./hooks.module-B5_EMLad.js";
function _mergeNamespaces(n, m) {
for (var i = 0; i < m.length; i++) {
const e = m[i];
Expand Down
4 changes: 2 additions & 2 deletions assets/index-BzogsZNB.js → assets/index-RRV5mew3.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-CYhkjJXl.js";
import "./index-BlcKxWdd.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-tShxMHgY.js";
import "./index-AKJrC2_8.js";
function addUniqueItem(array, item) {
array.indexOf(item) === -1 && array.push(item);
}
Expand Down
6 changes: 3 additions & 3 deletions assets/index-CRaiCr6n.js → assets/index-crXdCf-3.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { c as commonjsGlobal, b as bnExports, B as Buffer, a as getAugmentedNamespace, p as process$1, t as tslib_es6, e as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-BlcKxWdd.js";
import { s as sha_jsExports, a as require$$1$1, b as require$$2, r as require$$0$1, j as js } from "./hooks.module-CR94OmzB.js";
import { e as eventsExports } from "./___vite-browser-external_commonjs-proxy-B6QDVg13.js";
import { c as commonjsGlobal, b as bnExports, B as Buffer, a as getAugmentedNamespace, p as process$1, t as tslib_es6, e as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-AKJrC2_8.js";
import { s as sha_jsExports, a as require$$1$1, b as require$$2, r as require$$0$1, j as js } from "./hooks.module-B5_EMLad.js";
import { e as eventsExports } from "./___vite-browser-external_commonjs-proxy-yoAa9Tua.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-CYhkjJXl.js → assets/index-tShxMHgY.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const __vite__fileDeps=["./index-BzogsZNB.js","./index-BlcKxWdd.js","./index-KxIcnz1U.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import { _ as __vitePreload } from "./index-BlcKxWdd.js";
const __vite__fileDeps=["./index-RRV5mew3.js","./index-AKJrC2_8.js","./index-KxIcnz1U.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import { _ as __vitePreload } from "./index-AKJrC2_8.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-BzogsZNB.js"), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
await __vitePreload(() => import("./index-RRV5mew3.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
8 changes: 4 additions & 4 deletions assets/index.es-C5wqqseb.js → assets/index.es-DmpytjZ4.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const __vite__fileDeps=["./index-CYhkjJXl.js","./index-BlcKxWdd.js","./index-KxIcnz1U.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import { p as process$1, d as require$$0$1, f as global, B as Buffer, g as getDefaultExportFromCjs, c as commonjsGlobal, a as getAugmentedNamespace, _ as __vitePreload } from "./index-BlcKxWdd.js";
import { r as require$$3, e as eventsExports, W as Wg } from "./___vite-browser-external_commonjs-proxy-B6QDVg13.js";
const __vite__fileDeps=["./index-tShxMHgY.js","./index-AKJrC2_8.js","./index-KxIcnz1U.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import { p as process$1, d as require$$0$1, f as global, B as Buffer, g as getDefaultExportFromCjs, c as commonjsGlobal, a as getAugmentedNamespace, _ as __vitePreload } from "./index-AKJrC2_8.js";
import { r as require$$3, e as eventsExports, W as Wg } from "./___vite-browser-external_commonjs-proxy-yoAa9Tua.js";
var __spreadArray = function(to2, from2, pack) {
if (pack || arguments.length === 2)
for (var i3 = 0, l2 = from2.length, ar2; i3 < l2; i3++) {
Expand Down Expand Up @@ -19748,7 +19748,7 @@ class C {
if (this.rpc = this.getRpcConfig(t), this.chainId = this.rpc.chains.length ? m2(this.rpc.chains) : m2(this.rpc.optionalChains), this.signer = await hv.init({ projectId: this.rpc.projectId, metadata: this.rpc.metadata, disableProviderPing: t.disableProviderPing, relayUrl: t.relayUrl, storageOptions: t.storageOptions }), this.registerEventListeners(), await this.loadPersistedSession(), this.rpc.showQrModal) {
let s2;
try {
const { WalletConnectModal: i3 } = await __vitePreload(() => import("./index-CYhkjJXl.js").then((n4) => n4.i), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
const { WalletConnectModal: i3 } = await __vitePreload(() => import("./index-tShxMHgY.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
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-BlcKxWdd.js"></script>
<script type="module" crossorigin src="./assets/index-AKJrC2_8.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-KxIcnz1U.css">
</head>
<body>
Expand Down

0 comments on commit c8ba900

Please sign in to comment.