Skip to content

Commit

Permalink
Build: (893cbff) Update wagmi, viem, and @tanstack/react-query (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Apr 24, 2024
1 parent cfc983b commit c1a812a
Show file tree
Hide file tree
Showing 8 changed files with 5,707 additions and 5,032 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { a as getDefaultExportFromCjs, g as getAugmentedNamespace } from "./index-LgUQswY4.js";
import { a as getDefaultExportFromCjs, g as getAugmentedNamespace } from "./index-3XXYlv3q.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
14 changes: 8 additions & 6 deletions assets/ccip-OUrBUoqU.js → assets/ccip-BQN8WFdy.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, j as isAddress, I as InvalidAddressError, k as decodeErrorResult, l as call, m as concat, n as encodeAbiParameters, H as HttpRequestError, o as isHex } from "./index-LgUQswY4.js";
import { f as BaseError, h as getUrl, s as stringify, j as isAddress, I as InvalidAddressError, k as decodeErrorResult, l as call, m as concat, n as encodeAbiParameters, H as HttpRequestError, o as isHex } from "./index-3XXYlv3q.js";
class OffchainLookupError extends BaseError {
constructor({ callbackSelector, cause, data, extraData, sender, urls }) {
var _a;
Expand Down Expand Up @@ -59,9 +59,9 @@ class OffchainLookupSenderMismatchError extends BaseError {
}
}
function isAddressEqual(a, b) {
if (!isAddress(a))
if (!isAddress(a, { strict: false }))
throw new InvalidAddressError({ address: a });
if (!isAddress(b))
if (!isAddress(b, { strict: false }))
throw new InvalidAddressError({ address: b });
return a.toLowerCase() === b.toLowerCase();
}
Expand Down Expand Up @@ -98,10 +98,12 @@ async function offchainLookup(client, { blockNumber, blockTag, data, to }) {
abi: [offchainLookupAbiItem]
});
const [sender, urls, callData, callbackSelector, extraData] = args;
const { ccipRead } = client;
const ccipRequest_ = ccipRead && typeof (ccipRead == null ? void 0 : ccipRead.request) === "function" ? ccipRead.request : ccipRequest;
try {
if (!isAddressEqual(to, sender))
throw new OffchainLookupSenderMismatchError({ sender, to });
const result = await ccipFetch({ data: callData, sender, urls });
const result = await ccipRequest_({ data: callData, sender, urls });
const { data: data_ } = await call(client, {
blockNumber,
blockTag,
Expand All @@ -123,7 +125,7 @@ async function offchainLookup(client, { blockNumber, blockTag, data, to }) {
});
}
}
async function ccipFetch({ data, sender, urls }) {
async function ccipRequest({ data, sender, urls }) {
var _a;
let error = new Error("An unknown error occurred.");
for (let i = 0; i < urls.length; i++) {
Expand Down Expand Up @@ -170,7 +172,7 @@ async function ccipFetch({ data, sender, urls }) {
throw error;
}
export {
ccipFetch,
ccipRequest,
offchainLookup,
offchainLookupAbiItem,
offchainLookupSignature
Expand Down
6,719 changes: 3,737 additions & 2,982 deletions assets/index-LgUQswY4.js → assets/index-3XXYlv3q.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions assets/index-CF40Vywn.js → assets/index-DWvlJMx4.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const __vite__fileDeps=["./index-NxLBhIcM.js","./index-LgUQswY4.js","./index-Dur59DTw.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import { _ as __vitePreload } from "./index-LgUQswY4.js";
const __vite__fileDeps=["./index-Dr3sGTqL.js","./index-3XXYlv3q.js","./index-Dur59DTw.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import { _ as __vitePreload } from "./index-3XXYlv3q.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 @@ -491,7 +491,7 @@ class d {
}
async initUi() {
if (typeof window < "u") {
await __vitePreload(() => import("./index-NxLBhIcM.js"), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
await __vitePreload(() => import("./index-Dr3sGTqL.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-NxLBhIcM.js → assets/index-Dr3sGTqL.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-CF40Vywn.js";
import "./index-LgUQswY4.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-DWvlJMx4.js";
import "./index-3XXYlv3q.js";
function addUniqueItem(array, item) {
array.indexOf(item) === -1 && array.push(item);
}
Expand Down
286 changes: 144 additions & 142 deletions assets/index--9QcjOJb.js → assets/index-Dufvb07S.js

Large diffs are not rendered by default.

Loading

0 comments on commit c1a812a

Please sign in to comment.