@blockend/widget 1.0.56 → 1.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AllRoutes-CyD25qOP.js → AllRoutes-B1a7Sisc.js} +9 -9
- package/dist/{Box-BqKR6yh2.js → Box-CtkUvyKi.js} +13 -13
- package/dist/{EstGas-BIwMpIdu.js → EstGas-BgRchsSw.js} +93 -92
- package/dist/{Grow-BVXa982_.js → Grow-DCuNJP12.js} +28 -28
- package/dist/{InputComp-mfg9qUQM.js → InputComp-CLCGCArk.js} +3 -3
- package/dist/{LoadRoute-psJpcC1g.js → LoadRoute-CmWoHwz8.js} +4 -4
- package/dist/{QuotesProgress-DdH9coV4.js → QuotesProgress-BYEYjV1N.js} +1 -1
- package/dist/{SwapAsset-DZm2uxy-.js → SwapAsset-CWcUv8cg.js} +1 -1
- package/dist/{Tooltip-BasOLFMf.js → Tooltip-qnRjkaHu.js} +3 -3
- package/dist/{TxnButton-7H0ziW6y.js → TxnButton-BL3lSkDN.js} +19 -19
- package/dist/{add-hMkDpQJx.js → add-C0WjduJo.js} +1 -1
- package/dist/{all-wallets-TzzPsASL.js → all-wallets-BG090vGz.js} +1 -1
- package/dist/{app-store-Bvi3lO0E.js → app-store-8QUBxl1J.js} +1 -1
- package/dist/{apple-DovGBZVC.js → apple-CAKcoFwo.js} +1 -1
- package/dist/{arrow-bottom-Bt0z0B0d.js → arrow-bottom-BrQB33BF.js} +1 -1
- package/dist/{arrow-bottom-circle-B6pKx0dw.js → arrow-bottom-circle-D2882GmP.js} +1 -1
- package/dist/{arrow-left-I0NpmB6b.js → arrow-left-B4guw_Rh.js} +1 -1
- package/dist/{arrow-right-CmtwLDja.js → arrow-right-C3YXteZd.js} +1 -1
- package/dist/{arrow-top-DokEs3HC.js → arrow-top-B9jQ17Ob.js} +1 -1
- package/dist/{bank-yu5LTCzK.js → bank-BDNulypK.js} +1 -1
- package/dist/{basic-Cuqqlzwv.js → basic-BYr8jdy2.js} +3 -3
- package/dist/{browser-D-klzbTJ.js → browser-XDOSatp1.js} +1 -1
- package/dist/{card-C7_UmEhR.js → card-DBu0KINk.js} +1 -1
- package/dist/{ccip-BqcIWBNQ.js → ccip-EUNQLhnu.js} +16 -16
- package/dist/{checkmark-DGmFkx4x.js → checkmark-P4kqC4N0.js} +1 -1
- package/dist/{checkmark-bold-K5aQHF2s.js → checkmark-bold-URBkS9AJ.js} +1 -1
- package/dist/{chevron-bottom-D1sa5ntV.js → chevron-bottom-CSA9bwls.js} +1 -1
- package/dist/{chevron-left-CrTavssV.js → chevron-left-BqverHO5.js} +1 -1
- package/dist/{chevron-right-4tHjmIzI.js → chevron-right-Be8e0sop.js} +1 -1
- package/dist/{chevron-top-BGhhItI1.js → chevron-top-sj4fgGQ3.js} +1 -1
- package/dist/{chrome-store-BSS7R8tR.js → chrome-store-B125w25l.js} +1 -1
- package/dist/{clock-C0LASIAZ.js → clock-CJ3o9i1f.js} +1 -1
- package/dist/{close-u-Xm2I00.js → close-DMPxO1PW.js} +1 -1
- package/dist/{coinPlaceholder-C-f0Hi8-.js → coinPlaceholder-SycpnpvI.js} +1 -1
- package/dist/{compass-BePsWGiq.js → compass-DO1LxaD6.js} +1 -1
- package/dist/{copy-CcmBGGYL.js → copy-DjdZX9o5.js} +1 -1
- package/dist/{core-DTXll9hG.js → core-DP5Vu59e.js} +17 -16
- package/dist/{cursor-CtyBKKIZ.js → cursor-Bx2-TZNd.js} +1 -1
- package/dist/{cursor-transparent-DV-nTgKw.js → cursor-transparent-CGBhDi3F.js} +1 -1
- package/dist/{desktop-BQk6XvDk.js → desktop-CQGrDIR2.js} +1 -1
- package/dist/{disconnect-Bnip6tM-.js → disconnect-DIUOO6qT.js} +1 -1
- package/dist/{discord-CixZYk_L.js → discord-C97ToQrE.js} +1 -1
- package/dist/{down-DveeNmNl.js → down-BcGY1seq.js} +2 -2
- package/dist/{etherscan-Ca4qbKIV.js → etherscan-ChTnGoGp.js} +1 -1
- package/dist/{exclamation-triangle-DEJeWCAG.js → exclamation-triangle-B7hqeBkR.js} +1 -1
- package/dist/{extension-Dwkk2Z0q.js → extension-Cc7MKu6e.js} +1 -1
- package/dist/{external-link-BVJzQ3gM.js → external-link-CsSN3iCU.js} +1 -1
- package/dist/{facebook-H39HpD1e.js → facebook-M9t70ipE.js} +1 -1
- package/dist/{farcaster-B0C8pA-P.js → farcaster-D5D419n8.js} +1 -1
- package/dist/{filters-BfgKjq1s.js → filters-CRFk2qR7.js} +1 -1
- package/dist/{getChainIds-DJyYvC8w.js → getChainIds-Ca6RgFpt.js} +69 -69
- package/dist/getCosmosAddress-CL0ZiapY.js +9517 -0
- package/dist/{github-CZxxY0sj.js → github-BoIt-AwH.js} +1 -1
- package/dist/{google-DbGRWYI0.js → google-sIev9mO_.js} +1 -1
- package/dist/{hamburger-C-fmenLo.js → hamburger-DqQwQj13.js} +5 -5
- package/dist/{help-circle-BZqpCbkX.js → help-circle-FjU_KTrS.js} +1 -1
- package/dist/{id-BohjVAp4.js → id-CmSp3QIh.js} +1 -1
- package/dist/{image-DYGqq78I.js → image-zci9ybYh.js} +1 -1
- package/dist/{index-C2K4V7-H.js → index--FNeS5Rj.js} +1 -1
- package/dist/{index-CJJQ2LCX.js → index-BsS9maa9.js} +8 -7
- package/dist/{index-CgCWrCyY.js → index-ClJq4MBB.js} +19 -18
- package/dist/{index-BuTM3T5V.js → index-CoOpvDo4.js} +1 -1
- package/dist/{index-OBUgs_7T.js → index-D7xWUWmM.js} +4 -4
- package/dist/{index-Cb6Z5QF3.js → index-DCyDt3O-.js} +7 -7
- package/dist/{index-hXKqfCGv.js → index-DJwNEB-H.js} +78 -78
- package/dist/index-DTish3yr.js +1014 -0
- package/dist/{index-BE1KHDcY.js → index-DnRJWSaV.js} +2 -2
- package/dist/{index-Cb-vA8WO.js → index-TsTH7Hxq.js} +11 -11
- package/dist/index-WJQti9-t.js +29495 -0
- package/dist/{index-9oZmbNJz.js → index-pcz2RZOT.js} +4 -4
- package/dist/{index.es-BNrhKlYX.js → index.es-BLFPEWKC.js} +26 -24
- package/dist/{index.es-Dodf_4Pq.js → index.es-zHtXZ4dp.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{info-DpJutiAx.js → info-D6yjeLE7.js} +1 -1
- package/dist/{info-circle-BwhhpI3z.js → info-circle-4TaoqFTQ.js} +1 -1
- package/dist/{lightbulb-DWYKdsBz.js → lightbulb-BekPKfrQ.js} +1 -1
- package/dist/{mail-CEBxLp-q.js → mail-j6TBy5nM.js} +1 -1
- package/dist/{mobile-jGiJK-tS.js → mobile-SuvaDkyJ.js} +1 -1
- package/dist/{more-Ceddtafo.js → more-RFtulbqF.js} +1 -1
- package/dist/{network-placeholder-BiDTGsDC.js → network-placeholder-CiudHFHV.js} +1 -1
- package/dist/{nftPlaceholder-Bdt3xlsh.js → nftPlaceholder-BzhE1j93.js} +1 -1
- package/dist/{off-CjQUQbIf.js → off-BQW7jzrf.js} +1 -1
- package/dist/{play-store-CHlzBg61.js → play-store-ndEusUCo.js} +1 -1
- package/dist/{plus-BpDW56X5.js → plus-B_-4L7uN.js} +1 -1
- package/dist/{qr-code-Cn4ixB1y.js → qr-code-fGA-L64g.js} +1 -1
- package/dist/{recycle-horizontal-DBU-2t6D.js → recycle-horizontal-bqeONrxc.js} +1 -1
- package/dist/{refresh-DF6FHw_b.js → refresh-CsiabOhS.js} +1 -1
- package/dist/{reown-logo-DZuLV_8T.js → reown-logo-DAoeMWgC.js} +1 -1
- package/dist/{search-CtvrGHTU.js → search-syBa5OfX.js} +1 -1
- package/dist/{send-q0rRlrWy.js → send-BbHKOCEY.js} +1 -1
- package/dist/{swapHorizontal-y4XZEygv.js → swapHorizontal-CxK0nuYA.js} +1 -1
- package/dist/{swapHorizontalBold-DbOTapbL.js → swapHorizontalBold-CtEonTbb.js} +1 -1
- package/dist/{swapHorizontalMedium-DjJ6sIy9.js → swapHorizontalMedium-DZKQimBT.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-DseOC2QK.js → swapHorizontalRoundedBold-BXxYHgU3.js} +1 -1
- package/dist/{swapVertical-CtSwX7c_.js → swapVertical-BePgHxv9.js} +1 -1
- package/dist/{telegram-mDVVPT-5.js → telegram-BFBKVpZI.js} +1 -1
- package/dist/{three-dots-BC4W7vAE.js → three-dots-BXLWvhTX.js} +1 -1
- package/dist/{twitch-BtdlLgtD.js → twitch-vPQp_UrR.js} +1 -1
- package/dist/{twitterIcon-FYpWmhWb.js → twitterIcon-BTdtSUcd.js} +1 -1
- package/dist/{unsupportedProp-Bk4k1APH.js → unsupportedProp-B0xHFsbt.js} +1 -1
- package/dist/{useRegisterError-Dvrv5eoV.js → useRegisterError-GWfXAUhh.js} +1 -1
- package/dist/{verify-Dherv62_.js → verify-BqBaMG0N.js} +1 -1
- package/dist/{verify-filled-D86UrptW.js → verify-filled--sUq3p0p.js} +1 -1
- package/dist/{w3m-modal-DGiYzg-1.js → w3m-modal-Cqjqluk4.js} +2 -2
- package/dist/{wallet-BlgfCBaN.js → wallet-DA02Bm-G.js} +1 -1
- package/dist/{wallet-placeholder-BjrNOIyN.js → wallet-placeholder-CVMoX43_.js} +1 -1
- package/dist/{walletconnect-__d1VRdN.js → walletconnect-DhxzAfJ6.js} +1 -1
- package/dist/{warning-circle-CR3NTneR.js → warning-circle-Du5EYoE3.js} +1 -1
- package/dist/{x-BVa5oeDy.js → x-B-Wz86Hz.js} +1 -1
- package/package.json +4 -5
- package/dist/getCosmosAddress-wvdpMO7J.js +0 -6075
- package/dist/index-qJms-6-V.js +0 -48905
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as D from "react";
|
|
2
2
|
import kt from "react";
|
|
3
|
-
import { p as
|
|
3
|
+
import { p as K, P as i, aK as St, n as Bt, g as Wt, b as Lt, _ as Te, d as z, h as Nt, i as Ht, s as Vt } from "./index-WJQti9-t.js";
|
|
4
4
|
import { jsx as de } from "react/jsx-runtime";
|
|
5
|
-
import { o as et, P as It, b as Se, a as tt, m as Ut, r as mt, h as qt, H as Ee, T as Ft, q as _t, j as Xt, n as zt, t as rt, v as Yt, w as Gt } from "./useRegisterError-
|
|
5
|
+
import { o as et, P as It, b as Se, a as tt, m as Ut, r as mt, h as qt, H as Ee, T as Ft, q as _t, j as Xt, n as zt, t as rt, v as Yt, w as Gt } from "./useRegisterError-GWfXAUhh.js";
|
|
6
6
|
let nt = 0;
|
|
7
|
-
function
|
|
7
|
+
function Kt(e) {
|
|
8
8
|
const [t, r] = D.useState(e), n = e || t;
|
|
9
9
|
return D.useEffect(() => {
|
|
10
10
|
t == null && (nt += 1, r(`mui-${nt}`));
|
|
@@ -16,7 +16,7 @@ function Rn(e) {
|
|
|
16
16
|
const t = ot();
|
|
17
17
|
return e ?? t;
|
|
18
18
|
}
|
|
19
|
-
return
|
|
19
|
+
return Kt(e);
|
|
20
20
|
}
|
|
21
21
|
function Tn({
|
|
22
22
|
controlled: e,
|
|
@@ -27,7 +27,7 @@ function Tn({
|
|
|
27
27
|
const {
|
|
28
28
|
current: o
|
|
29
29
|
} = D.useRef(e !== void 0), [f, p] = D.useState(t), s = o ? e : f;
|
|
30
|
-
if (
|
|
30
|
+
if (K.env.NODE_ENV !== "production") {
|
|
31
31
|
D.useEffect(() => {
|
|
32
32
|
}, [n, r, e]);
|
|
33
33
|
const {
|
|
@@ -42,10 +42,10 @@ function Tn({
|
|
|
42
42
|
}, []);
|
|
43
43
|
return [s, a];
|
|
44
44
|
}
|
|
45
|
-
const
|
|
46
|
-
|
|
45
|
+
const Jt = /* @__PURE__ */ D.createContext();
|
|
46
|
+
K.env.NODE_ENV !== "production" && (i.node, i.bool);
|
|
47
47
|
const jn = () => {
|
|
48
|
-
const e = D.useContext(
|
|
48
|
+
const e = D.useContext(Jt);
|
|
49
49
|
return e ?? !1;
|
|
50
50
|
};
|
|
51
51
|
var pe = {}, it;
|
|
@@ -216,7 +216,7 @@ function Y(e) {
|
|
|
216
216
|
function hr(e) {
|
|
217
217
|
return ["table", "td", "th"].indexOf(X(e)) >= 0;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function J(e) {
|
|
220
220
|
return ((te(e) ? e.ownerDocument : (
|
|
221
221
|
// $FlowFixMe[prop-missing]
|
|
222
222
|
e.document
|
|
@@ -231,7 +231,7 @@ function je(e) {
|
|
|
231
231
|
e.parentNode || // DOM Element detected
|
|
232
232
|
(He(e) ? e.host : null) || // ShadowRoot detected
|
|
233
233
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
234
|
-
|
|
234
|
+
J(e)
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function st(e) {
|
|
@@ -338,7 +338,7 @@ function ft(e) {
|
|
|
338
338
|
var E = p.hasOwnProperty("x"), T = p.hasOwnProperty("y"), w = N, u = L, h = window;
|
|
339
339
|
if (c) {
|
|
340
340
|
var b = ge(r), x = "clientHeight", C = "clientWidth";
|
|
341
|
-
if (b === H(r) && (b =
|
|
341
|
+
if (b === H(r) && (b = J(r), Y(b).position !== "static" && s === "absolute" && (x = "scrollHeight", C = "scrollWidth")), b = b, o === L || (o === N || o === U) && f === ve) {
|
|
342
342
|
u = I;
|
|
343
343
|
var P = d && b === h && h.visualViewport ? h.visualViewport.height : (
|
|
344
344
|
// $FlowFixMe[prop-missing]
|
|
@@ -450,10 +450,10 @@ function Ue(e) {
|
|
|
450
450
|
};
|
|
451
451
|
}
|
|
452
452
|
function qe(e) {
|
|
453
|
-
return ie(
|
|
453
|
+
return ie(J(e)).left + Ue(e).scrollLeft;
|
|
454
454
|
}
|
|
455
455
|
function $r(e, t) {
|
|
456
|
-
var r = H(e), n =
|
|
456
|
+
var r = H(e), n = J(e), o = r.visualViewport, f = n.clientWidth, p = n.clientHeight, s = 0, a = 0;
|
|
457
457
|
if (o) {
|
|
458
458
|
f = o.width, p = o.height;
|
|
459
459
|
var c = yt();
|
|
@@ -467,7 +467,7 @@ function $r(e, t) {
|
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
469
|
function Mr(e) {
|
|
470
|
-
var t, r =
|
|
470
|
+
var t, r = J(e), n = Ue(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, f = ee(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), p = ee(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), s = -n.scrollLeft + qe(e), a = -n.scrollTop;
|
|
471
471
|
return Y(o || r).direction === "rtl" && (s += ee(r.clientWidth, o ? o.clientWidth : 0) - f), {
|
|
472
472
|
width: f,
|
|
473
473
|
height: p,
|
|
@@ -504,7 +504,7 @@ function kr(e, t) {
|
|
|
504
504
|
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
|
|
505
505
|
}
|
|
506
506
|
function lt(e, t, r) {
|
|
507
|
-
return t === ht ? We($r(e, r)) : te(t) ? kr(t, r) : We(Mr(
|
|
507
|
+
return t === ht ? We($r(e, r)) : te(t) ? kr(t, r) : We(Mr(J(e)));
|
|
508
508
|
}
|
|
509
509
|
function Sr(e) {
|
|
510
510
|
var t = ue(je(e)), r = ["absolute", "fixed"].indexOf(Y(e).position) >= 0, n = r && V(e) ? ge(e) : e;
|
|
@@ -568,7 +568,7 @@ function Pt(e) {
|
|
|
568
568
|
}
|
|
569
569
|
function me(e, t) {
|
|
570
570
|
t === void 0 && (t = {});
|
|
571
|
-
var r = t, n = r.placement, o = n === void 0 ? e.placement : n, f = r.strategy, p = f === void 0 ? e.strategy : f, s = r.boundary, a = s === void 0 ? tr : s, c = r.rootBoundary, l = c === void 0 ? ht : c, d = r.elementContext, g = d === void 0 ? le : d, m = r.altBoundary, O = m === void 0 ? !1 : m, v = r.padding, y = v === void 0 ? 0 : v, E = xt(typeof y != "number" ? y : Ot(y, he)), T = g === le ? rr : le, w = e.rects.popper, u = e.elements[O ? T : g], h = Br(te(u) ? u : u.contextElement ||
|
|
571
|
+
var r = t, n = r.placement, o = n === void 0 ? e.placement : n, f = r.strategy, p = f === void 0 ? e.strategy : f, s = r.boundary, a = s === void 0 ? tr : s, c = r.rootBoundary, l = c === void 0 ? ht : c, d = r.elementContext, g = d === void 0 ? le : d, m = r.altBoundary, O = m === void 0 ? !1 : m, v = r.padding, y = v === void 0 ? 0 : v, E = xt(typeof y != "number" ? y : Ot(y, he)), T = g === le ? rr : le, w = e.rects.popper, u = e.elements[O ? T : g], h = Br(te(u) ? u : u.contextElement || J(e.elements.popper), a, l, p), b = ie(e.elements.reference), x = Pt({
|
|
572
572
|
reference: b,
|
|
573
573
|
element: w,
|
|
574
574
|
placement: o
|
|
@@ -780,7 +780,7 @@ function Yr(e) {
|
|
|
780
780
|
b[u] = Xe, W[u] = Xe - $;
|
|
781
781
|
}
|
|
782
782
|
if (s) {
|
|
783
|
-
var ze, $t = u === "x" ? L : N, Mt = u === "x" ? I : U, Z = b[h], we = h === "y" ? "height" : "width", Ye = Z + y[$t], Ge = Z - y[Mt], Me = [L, N].indexOf(E) !== -1,
|
|
783
|
+
var ze, $t = u === "x" ? L : N, Mt = u === "x" ? I : U, Z = b[h], we = h === "y" ? "height" : "width", Ye = Z + y[$t], Ge = Z - y[Mt], Me = [L, N].indexOf(E) !== -1, Ke = (ze = M == null ? void 0 : M[h]) != null ? ze : 0, Je = Me ? Ye : Z - x[we] - C[we] - Ke + A.altAxis, Qe = Me ? Z + x[we] + C[we] - Ke - A.altAxis : Ge, Ze = m && Me ? yr(Je, Z, Qe) : ce(m ? Je : Ye, Z, m ? Qe : Ge);
|
|
784
784
|
b[h] = Ze, W[h] = Ze - Z;
|
|
785
785
|
}
|
|
786
786
|
t.modifiersData[n] = W;
|
|
@@ -793,14 +793,14 @@ const Gr = {
|
|
|
793
793
|
fn: Yr,
|
|
794
794
|
requiresIfExists: ["offset"]
|
|
795
795
|
};
|
|
796
|
-
function
|
|
796
|
+
function Kr(e) {
|
|
797
797
|
return {
|
|
798
798
|
scrollLeft: e.scrollLeft,
|
|
799
799
|
scrollTop: e.scrollTop
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
|
-
function
|
|
803
|
-
return e === H(e) || !V(e) ? Ue(e) :
|
|
802
|
+
function Jr(e) {
|
|
803
|
+
return e === H(e) || !V(e) ? Ue(e) : Kr(e);
|
|
804
804
|
}
|
|
805
805
|
function Qr(e) {
|
|
806
806
|
var t = e.getBoundingClientRect(), r = oe(t.width) / e.offsetWidth || 1, n = oe(t.height) / e.offsetHeight || 1;
|
|
@@ -808,7 +808,7 @@ function Qr(e) {
|
|
|
808
808
|
}
|
|
809
809
|
function Zr(e, t, r) {
|
|
810
810
|
r === void 0 && (r = !1);
|
|
811
|
-
var n = V(t), o = V(t) && Qr(t), f =
|
|
811
|
+
var n = V(t), o = V(t) && Qr(t), f = J(t), p = ie(e, o, r), s = {
|
|
812
812
|
scrollLeft: 0,
|
|
813
813
|
scrollTop: 0
|
|
814
814
|
}, a = {
|
|
@@ -816,7 +816,7 @@ function Zr(e, t, r) {
|
|
|
816
816
|
y: 0
|
|
817
817
|
};
|
|
818
818
|
return (n || !n && !r) && ((X(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
819
|
-
Fe(f)) && (s =
|
|
819
|
+
Fe(f)) && (s = Jr(t)), V(t) ? (a = ie(t, !0), a.x += t.clientLeft, a.y += t.clientTop) : f && (a.x = qe(f))), {
|
|
820
820
|
x: p.left + s.scrollLeft - a.x,
|
|
821
821
|
y: p.top + s.scrollTop - a.y,
|
|
822
822
|
width: p.width,
|
|
@@ -1055,9 +1055,9 @@ const dn = (e) => {
|
|
|
1055
1055
|
const R = (S) => {
|
|
1056
1056
|
C(S.placement);
|
|
1057
1057
|
};
|
|
1058
|
-
if (
|
|
1058
|
+
if (K.env.NODE_ENV !== "production" && P && Ae(P) && P.nodeType === 1) {
|
|
1059
1059
|
const S = P.getBoundingClientRect();
|
|
1060
|
-
|
|
1060
|
+
K.env.NODE_ENV !== "test" && S.top === 0 && S.left === 0 && S.right === 0 && S.bottom;
|
|
1061
1061
|
}
|
|
1062
1062
|
let j = [{
|
|
1063
1063
|
name: "preventOverflow",
|
|
@@ -1172,7 +1172,7 @@ const dn = (e) => {
|
|
|
1172
1172
|
}))
|
|
1173
1173
|
});
|
|
1174
1174
|
});
|
|
1175
|
-
|
|
1175
|
+
K.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
|
1176
1176
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1177
1177
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1178
1178
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -1188,7 +1188,7 @@ J.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
|
|
1188
1188
|
const t = Re(e.anchorEl);
|
|
1189
1189
|
if (t && Ae(t) && t.nodeType === 1) {
|
|
1190
1190
|
const r = t.getBoundingClientRect();
|
|
1191
|
-
if (
|
|
1191
|
+
if (K.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
|
|
1192
1192
|
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
1193
1193
|
`));
|
|
1194
1194
|
} else if (!t || typeof t.getBoundingClientRect != "function" || un(t) && t.contextElement != null && t.contextElement.nodeType !== 1)
|
|
@@ -1341,7 +1341,7 @@ const hn = ["anchorEl", "component", "components", "componentsProps", "container
|
|
|
1341
1341
|
ref: r
|
|
1342
1342
|
}));
|
|
1343
1343
|
});
|
|
1344
|
-
|
|
1344
|
+
K.env.NODE_ENV !== "production" && (yn.propTypes = {
|
|
1345
1345
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1346
1346
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1347
1347
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -1572,7 +1572,7 @@ const wn = {
|
|
|
1572
1572
|
}, j))
|
|
1573
1573
|
}));
|
|
1574
1574
|
});
|
|
1575
|
-
|
|
1575
|
+
K.env.NODE_ENV !== "production" && (Tt.propTypes = {
|
|
1576
1576
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1577
1577
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1578
1578
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as b, jsx as t, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { u as n, S as W } from "./index-
|
|
2
|
+
import { u as n, S as W } from "./index-WJQti9-t.js";
|
|
3
3
|
import { useState as S, useRef as x } from "react";
|
|
4
|
-
import { u as j, i as I, W as D, F, f as p, c as u, z as R } from "./useRegisterError-
|
|
4
|
+
import { u as j, i as I, W as D, F, f as p, c as u, z as R } from "./useRegisterError-GWfXAUhh.js";
|
|
5
5
|
import { useAccount as T, useBalance as A } from "wagmi";
|
|
6
6
|
import "@dynamic-labs/sdk-react-core";
|
|
7
|
-
import { c as B, r as G } from "./index-
|
|
7
|
+
import { c as B, r as G } from "./index-DCyDt3O-.js";
|
|
8
8
|
function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBalanceLoading: f }) {
|
|
9
9
|
var d, o;
|
|
10
10
|
const s = n((a) => a.configuration), e = n((a) => a.fromCoin), r = n((a) => a.fromChain), { isAnyWalletConnected: g } = j({ chainData: r }), [$, z] = S(40), { address: N } = T(), v = x(), { defaultCoin: y } = I;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t, Fragment as m } from "react/jsx-runtime";
|
|
2
2
|
import { t as te } from "./truncate-D9t92mVX.js";
|
|
3
|
-
import { u as r, S as o, l as we } from "./index-
|
|
3
|
+
import { u as r, S as o, l as we } from "./index-WJQti9-t.js";
|
|
4
4
|
import { useState as ie, useEffect as le } from "react";
|
|
5
5
|
import { s as a } from "./WidgetForm.module-QHJ0-m5f.js";
|
|
6
6
|
import { G as ce, C as de, S as me } from "./clockIcon-C2W5xvyt.js";
|
|
7
|
-
import { S as re } from "./down-
|
|
7
|
+
import { S as re } from "./down-BcGY1seq.js";
|
|
8
8
|
import { e as se } from "./ethertousd-CC_ezooz.js";
|
|
9
|
-
import { O as H } from "./index
|
|
10
|
-
import { F as J, i as ae } from "./useRegisterError-
|
|
9
|
+
import { O as H } from "./index--FNeS5Rj.js";
|
|
10
|
+
import { F as J, i as ae } from "./useRegisterError-GWfXAUhh.js";
|
|
11
11
|
function oe({ fill: n }) {
|
|
12
12
|
return /* @__PURE__ */ e(
|
|
13
13
|
"svg",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as o, jsx as a, Fragment as m } from "react/jsx-runtime";
|
|
2
2
|
import { s as l } from "./WidgetForm.module-QHJ0-m5f.js";
|
|
3
|
-
import { u as g } from "./index-
|
|
3
|
+
import { u as g } from "./index-WJQti9-t.js";
|
|
4
4
|
function y({ routesData: x, routes: e, quoteTimer: n, amount: c }) {
|
|
5
5
|
var s, b, d, w;
|
|
6
6
|
const r = g((i) => i.configuration), t = g((i) => i.gradient);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as go, g as To, i as yo, _ as vo, p as B, d as n, e as D, s as Q, f as Ve, h as Po, j as ze, P as e } from "./index-
|
|
1
|
+
import { b as go, g as To, i as yo, _ as vo, p as B, d as n, e as D, s as Q, f as Ve, h as Po, j as ze, P as e } from "./index-WJQti9-t.js";
|
|
2
2
|
import * as p from "react";
|
|
3
|
-
import { G as Be, b as wo, u as Ro, a as Co, P as He } from "./Grow-
|
|
3
|
+
import { G as Be, b as wo, u as Ro, a as Co, P as He } from "./Grow-DCuNJP12.js";
|
|
4
4
|
import { jsx as j, jsxs as Se } from "react/jsx-runtime";
|
|
5
|
-
import { j as xo, q as I, l as Ue, s as Oo, b as Eo, n as Mo, D as A, E as _o, w as No } from "./useRegisterError-
|
|
5
|
+
import { j as xo, q as I, l as Ue, s as Oo, b as Eo, n as Mo, D as A, E as _o, w as No } from "./useRegisterError-GWfXAUhh.js";
|
|
6
6
|
function Lo(r) {
|
|
7
7
|
return To("MuiTooltip", r);
|
|
8
8
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as B } from "react/jsx-runtime";
|
|
2
2
|
import { useState as A, useEffect as v } from "react";
|
|
3
3
|
import { useDynamicContext as xe, useSwitchNetwork as ve, useIsLoggedIn as ze } from "@dynamic-labs/sdk-react-core";
|
|
4
|
-
import { a as _, u as h,
|
|
4
|
+
import { a as _, u as h, aA as Me, aB as ue } from "./index-WJQti9-t.js";
|
|
5
5
|
import { s as G } from "./WidgetForm.module-QHJ0-m5f.js";
|
|
6
6
|
import { useAccount as Oe, useConfig as Re, useSwitchChain as Ve, useBalance as Pe } from "wagmi";
|
|
7
|
-
import { u as ge, d as _e, c as qe, C as ye } from "./useRegisterError-
|
|
8
|
-
import { v as
|
|
9
|
-
import { u as
|
|
7
|
+
import { u as ge, d as _e, c as qe, C as ye } from "./useRegisterError-GWfXAUhh.js";
|
|
8
|
+
import { v as Qe } from "./validError-CDlJpg_f.js";
|
|
9
|
+
import { u as He, g as Je, p as Ke } from "./index-DCyDt3O-.js";
|
|
10
10
|
function Ue(n) {
|
|
11
11
|
const { wallet: u, address: l } = _(), [N, f] = A(0);
|
|
12
12
|
async function g() {
|
|
@@ -33,17 +33,17 @@ function Xe() {
|
|
|
33
33
|
}
|
|
34
34
|
function ds({ routesData: n, routes: u, amount: l, isAmountTyped: N, handleShowWallet: f, setConnectWalletField: g, handleConfirmClose: E, balanceSol: F, getCoinBalance: Te, handleSuccess: q }) {
|
|
35
35
|
var k, C, ee, se, te, re, ce, ne, ie, de, ae, le, oe;
|
|
36
|
-
const o = h((t) => t.gradient),
|
|
36
|
+
const o = h((t) => t.gradient), m = h((t) => t.configuration), e = h((t) => t.fromChain), i = h((t) => t.fromCoin), r = h((t) => t.toChain), w = h((t) => t.toCoin), { isConnected: L, address: Q, chain: I } = Oe(), { address: H, isConnected: Ye } = _(), me = Re(), Ie = ve(), { getBothWalletConnection: he, getConnectWallet: Ne } = ge({
|
|
37
37
|
chainData: e
|
|
38
|
-
}), { connected:
|
|
38
|
+
}), { connected: J, address: K, disconnect: Ze } = _(), z = h((t) => t.toDisconnect), d = h((t) => t.customWallet), { getWallet: fe } = ge({ chainData: e }), Be = Ne(e, r), [M, Ge] = A("101"), { tronBal: O } = Ue(e), { cosmosBalance: U } = He(), X = Xe(), R = ((k = e.chain) == null ? void 0 : k.length) && ((C = r.chain) == null ? void 0 : C.length), V = ((ee = i.address) == null ? void 0 : ee.length) && ((se = w.address) == null ? void 0 : se.length), Se = _e(), Y = Me(), { switchChain: We, switchChainAsync: $e, isPending: Ee } = Ve({
|
|
39
39
|
chainId: Number((e == null ? void 0 : e.chainId) || "0"),
|
|
40
|
-
config:
|
|
40
|
+
config: me,
|
|
41
41
|
throwForSwitchChainNotSupported: !0,
|
|
42
42
|
onError(t) {
|
|
43
|
-
|
|
43
|
+
Qe(t.message) && Se({ module: "wallet-error-switch", error: t.message });
|
|
44
44
|
}
|
|
45
45
|
}), y = Pe({
|
|
46
|
-
address:
|
|
46
|
+
address: Q,
|
|
47
47
|
token: "",
|
|
48
48
|
chainId: Number((e == null ? void 0 : e.chainId) || 0),
|
|
49
49
|
enabled: (e == null ? void 0 : e.networkType) == "evm"
|
|
@@ -53,14 +53,14 @@ function ds({ routesData: n, routes: u, amount: l, isAmountTyped: N, handleShowW
|
|
|
53
53
|
color: "bw-bg-border-primary"
|
|
54
54
|
});
|
|
55
55
|
async function Fe() {
|
|
56
|
-
if ((e == null ? void 0 : e.networkType) === "evm" && Number((e == null ? void 0 : e.chainId) || "0") !== (
|
|
56
|
+
if ((e == null ? void 0 : e.networkType) === "evm" && Number((e == null ? void 0 : e.chainId) || "0") !== (I == null ? void 0 : I.id))
|
|
57
57
|
try {
|
|
58
58
|
await $e({ chainId: Number((e == null ? void 0 : e.chainId) || "0") });
|
|
59
59
|
} catch {
|
|
60
60
|
}
|
|
61
61
|
else if ((e == null ? void 0 : e.networkType) === "sol" && M !== ((e == null ? void 0 : e.chainId) == "eclipse-svm" ? "201" : "101"))
|
|
62
62
|
try {
|
|
63
|
-
let t = await
|
|
63
|
+
let t = await Ie({ wallet: p, network: e.chainId == "eclipse-svm" ? "201" : "101" });
|
|
64
64
|
W();
|
|
65
65
|
} catch {
|
|
66
66
|
}
|
|
@@ -104,7 +104,7 @@ function ds({ routesData: n, routes: u, amount: l, isAmountTyped: N, handleShowW
|
|
|
104
104
|
amountInToken: c.amountInToken,
|
|
105
105
|
gas: D(c.amountInToken, s == null ? void 0 : s.decimals),
|
|
106
106
|
token: s,
|
|
107
|
-
nativeBal: (d == null ? void 0 : d.length) > 30 && !z && (s == null ? void 0 : s.chainId) == (r == null ? void 0 : r.chainId) && (r == null ? void 0 : r.chainId) !== (e == null ? void 0 : e.chainId) ? 0 : (s == null ? void 0 : s.networkType) == "sol" ? F : (s == null ? void 0 : s.networkType) == "tron" ? O : (s == null ? void 0 : s.networkType) == "btc" || (s == null ? void 0 : s.networkType) == "sui" ? X : (s == null ? void 0 : s.networkType) == "cosmos" ? je(s) : (s == null ? void 0 : s.networkType) == "tron" ?
|
|
107
|
+
nativeBal: (d == null ? void 0 : d.length) > 30 && !z && (s == null ? void 0 : s.chainId) == (r == null ? void 0 : r.chainId) && (r == null ? void 0 : r.chainId) !== (e == null ? void 0 : e.chainId) ? 0 : (s == null ? void 0 : s.networkType) == "sol" ? F : (s == null ? void 0 : s.networkType) == "tron" ? O : (s == null ? void 0 : s.networkType) == "btc" || (s == null ? void 0 : s.networkType) == "sui" ? X : (s == null ? void 0 : s.networkType) == "cosmos" ? je(s) : (s == null ? void 0 : s.networkType) == "tron" ? Je(H) : Le(),
|
|
108
108
|
isFromChain: (e == null ? void 0 : e.chainId) === (s == null ? void 0 : s.chainId.toString()),
|
|
109
109
|
order: (e == null ? void 0 : e.chainId) === (s == null ? void 0 : s.chainId) ? 1 : (r == null ? void 0 : r.chainId) === (s == null ? void 0 : s.chainId) ? 2 : $.length > 2 ? 3 : 2
|
|
110
110
|
};
|
|
@@ -172,7 +172,7 @@ function ds({ routesData: n, routes: u, amount: l, isAmountTyped: N, handleShowW
|
|
|
172
172
|
text: "Enter recipient wallet address",
|
|
173
173
|
isGradient: !0,
|
|
174
174
|
color: o || G.gradientbutton
|
|
175
|
-
}) : (i == null ? void 0 : i.address) == (w == null ? void 0 : w.address) && (e == null ? void 0 : e.chainId) == (r == null ? void 0 : r.chainId) && !(d != null && d.length) || (e == null ? void 0 : e.networkType) == "evm" &&
|
|
175
|
+
}) : (i == null ? void 0 : i.address) == (w == null ? void 0 : w.address) && (e == null ? void 0 : e.chainId) == (r == null ? void 0 : r.chainId) && !(d != null && d.length) || (e == null ? void 0 : e.networkType) == "evm" && Q === d && (i == null ? void 0 : i.address) == (w == null ? void 0 : w.address) || (e == null ? void 0 : e.networkType) == "sol" && (p == null ? void 0 : p.address) === d && (i == null ? void 0 : i.address) == (w == null ? void 0 : w.address) ? a({
|
|
176
176
|
text: "From and To asset can not be the same!",
|
|
177
177
|
isGradient: !1,
|
|
178
178
|
color: "bw-bg-border-primary"
|
|
@@ -180,7 +180,7 @@ function ds({ routesData: n, routes: u, amount: l, isAmountTyped: N, handleShowW
|
|
|
180
180
|
text: "Failed to fetch Quotes",
|
|
181
181
|
isGradient: !1,
|
|
182
182
|
color: "bw-bg-border-primary"
|
|
183
|
-
}) : L && Number((e == null ? void 0 : e.chainId) || "0") !== (
|
|
183
|
+
}) : L && Number((e == null ? void 0 : e.chainId) || "0") !== (I == null ? void 0 : I.id) && (e == null ? void 0 : e.networkType) === "evm" || P && ((e == null ? void 0 : e.chainId) === "eclipse-svm" ? "201" : "101") !== M && (e == null ? void 0 : e.networkType) === "sol" ? a({
|
|
184
184
|
text: `Switch Chain to ${e.chain}`,
|
|
185
185
|
isGradient: !0,
|
|
186
186
|
color: o || G.gradientbutton
|
|
@@ -193,18 +193,18 @@ function ds({ routesData: n, routes: u, amount: l, isAmountTyped: N, handleShowW
|
|
|
193
193
|
isGradient: !0,
|
|
194
194
|
color: o || G.gradientbutton
|
|
195
195
|
});
|
|
196
|
-
}, [M, p, i, w, l, e, r, (ce = y.data) == null ? void 0 : ce.formatted, n, y.isFetching, y.isLoading, L, Z, S, u.isFetching,
|
|
196
|
+
}, [M, p, i, w, l, e, r, (ce = y.data) == null ? void 0 : ce.formatted, n, y.isFetching, y.isLoading, L, Z, S, u.isFetching, I == null ? void 0 : I.id, N, O, F, d, X, U, H]), `${(ne = e.chain) == null ? void 0 : ne.toLowerCase()}`, `${(ie = e.chain) == null ? void 0 : ie.toLowerCase()}`, /* @__PURE__ */ B(
|
|
197
197
|
"button",
|
|
198
198
|
{
|
|
199
199
|
style: b != null && b.isGradient && R && V ? {
|
|
200
|
-
...
|
|
201
|
-
boxShadow:
|
|
200
|
+
...m == null ? void 0 : m.gradientStyle,
|
|
201
|
+
boxShadow: m && m.customTheme && ((ae = (de = m.customTheme) == null ? void 0 : de.shadow) == null ? void 0 : ae.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
|
202
202
|
} : {
|
|
203
|
-
boxShadow:
|
|
203
|
+
boxShadow: m && m.customTheme && ((oe = (le = m.customTheme) == null ? void 0 : le.shadow) == null ? void 0 : oe.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
|
204
204
|
},
|
|
205
205
|
className: `bw-w-full bw-rounded-sm bw-h-[52px] ${b != null && b.isGradient ? "bw-p-[3px]" : "bw-p-[1px]"} bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-70 ${R && V && b.color} ${b.text.length > 29 ? "bw-text-xl" : "bw-text-2xl"} ${b != null && b.isGradient ? "bw-font-bold bw-text-text-primary" : "bw-font-normal bw-text-text-secondary"}`,
|
|
206
206
|
onClick: () => {
|
|
207
|
-
S || (f(!0), ((e == null ? void 0 : e.networkType) !== "evm" && L || (e == null ? void 0 : e.networkType) !== "sol" && P && p !== null || (e == null ? void 0 : e.networkType) !== "tron" &&
|
|
207
|
+
S || (f(!0), ((e == null ? void 0 : e.networkType) !== "evm" && L || (e == null ? void 0 : e.networkType) !== "sol" && P && p !== null || (e == null ? void 0 : e.networkType) !== "tron" && J && K) && !z ? g("from") : L && (r == null ? void 0 : r.networkType) !== "evm" || P && (r == null ? void 0 : r.networkType) !== "sol" || (r == null ? void 0 : r.networkType) !== "tron" && J && K || z ? g("to") : g("from")), e.chainId === "eclipse-svm" && !j(p) ? (f(!0), g("from")) : r.chainId === "eclipse-svm" && e.chainId !== "eclipse-svm" && !j(p) && d.length < 30 ? (f(!0), g("to")) : Fe();
|
|
208
208
|
},
|
|
209
209
|
children: /* @__PURE__ */ B("div", { className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full", children: /* @__PURE__ */ B("p", { className: "bw-relative bw-z-20", children: R && V ? Ee ? /* @__PURE__ */ B("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ B(ye, { size: 22, thickness: 5, color: "inherit" }) }) : S ? b.text.length ? b.text : "Start Transaction" : `Connect ${Be} Wallet` : /* @__PURE__ */ B("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ B(ye, { size: 22, thickness: 5, color: "inherit" }) }) }) })
|
|
210
210
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as D, e as G, r as q, a as A, x as c, C as U, A as M, O as tt, b as z, E as et, R as O, c as Ut, d as K, f as N, S as pe, g as Cn, W as fe, h as Ze, j as vi, T as ti, k as Xt, M as on, l as rn, m as Dt, n as yi, o as $n } from "./core-
|
|
2
|
-
import { n as u, c as B, o as W, r as E, U as ht, e as Rn, f as En, a as In } from "./index-
|
|
3
|
-
import {
|
|
1
|
+
import { i as D, e as G, r as q, a as A, x as c, C as U, A as M, O as tt, b as z, E as et, R as O, c as Ut, d as K, f as N, S as pe, g as Cn, W as fe, h as Ze, j as vi, T as ti, k as Xt, M as on, l as rn, m as Dt, n as yi, o as $n } from "./core-DP5Vu59e.js";
|
|
2
|
+
import { n as u, c as B, o as W, r as E, U as ht, e as Rn, f as En, a as In } from "./index-DJwNEB-H.js";
|
|
3
|
+
import { n as Wn } from "./index-WJQti9-t.js";
|
|
4
4
|
const Sn = D`
|
|
5
5
|
:host {
|
|
6
6
|
position: relative;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ad as L, ae as b, af as F, ag as N, ah as P, ai as w, aj as S, ak as E, al as $, am as C, an as I, ao as m, ap as G, aq as R, ar as k, as as y, at as O, au as q, av as T, aw as v, ax as D, ay as A, az as H } from "./index-WJQti9-t.js";
|
|
2
2
|
const h = "/docs/contract/encodeErrorResult";
|
|
3
3
|
function x(t) {
|
|
4
4
|
const { abi: s, errorName: a, args: r } = t;
|
|
@@ -21,7 +21,7 @@ function x(t) {
|
|
|
21
21
|
return S([n, o]);
|
|
22
22
|
}
|
|
23
23
|
const p = "/docs/contract/encodeFunctionResult";
|
|
24
|
-
function
|
|
24
|
+
function j(t) {
|
|
25
25
|
const { abi: s, functionName: a, result: r } = t;
|
|
26
26
|
let e = s[0];
|
|
27
27
|
if (a) {
|
|
@@ -46,15 +46,15 @@ function B(t) {
|
|
|
46
46
|
return w(e.outputs, c);
|
|
47
47
|
}
|
|
48
48
|
const U = "x-batch-gateway:true";
|
|
49
|
-
async function
|
|
50
|
-
const { data: s, ccipRequest: a } = t, { args: [r] } =
|
|
49
|
+
async function B(t) {
|
|
50
|
+
const { data: s, ccipRequest: a } = t, { args: [r] } = I({ abi: m, data: s }), e = [], c = [];
|
|
51
51
|
return await Promise.all(r.map(async (n, o) => {
|
|
52
52
|
try {
|
|
53
53
|
c[o] = await a(n), e[o] = !1;
|
|
54
54
|
} catch (u) {
|
|
55
55
|
e[o] = !0, c[o] = _(u);
|
|
56
56
|
}
|
|
57
|
-
})),
|
|
57
|
+
})), j({
|
|
58
58
|
abi: m,
|
|
59
59
|
functionName: "query",
|
|
60
60
|
result: [e, c]
|
|
@@ -66,16 +66,16 @@ function _(t) {
|
|
|
66
66
|
errorName: "HttpError",
|
|
67
67
|
args: [t.status, t.shortMessage]
|
|
68
68
|
}) : x({
|
|
69
|
-
abi: [
|
|
69
|
+
abi: [G],
|
|
70
70
|
errorName: "Error",
|
|
71
71
|
args: ["shortMessage" in t ? t.shortMessage : t.message]
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
function z(t, s) {
|
|
75
|
-
if (!
|
|
76
|
-
throw new
|
|
77
|
-
if (!
|
|
78
|
-
throw new
|
|
75
|
+
if (!R(t, { strict: !1 }))
|
|
76
|
+
throw new k({ address: t });
|
|
77
|
+
if (!R(s, { strict: !1 }))
|
|
78
|
+
throw new k({ address: s });
|
|
79
79
|
return t.toLowerCase() === s.toLowerCase();
|
|
80
80
|
}
|
|
81
81
|
class J extends y {
|
|
@@ -149,20 +149,20 @@ const Y = "0x556f1830", Q = {
|
|
|
149
149
|
]
|
|
150
150
|
};
|
|
151
151
|
async function Z(t, { blockNumber: s, blockTag: a, data: r, to: e }) {
|
|
152
|
-
const { args: c } =
|
|
152
|
+
const { args: c } = T({
|
|
153
153
|
data: r,
|
|
154
154
|
abi: [Q]
|
|
155
155
|
}), [n, o, u, f, d] = c, { ccipRead: i } = t, g = i && typeof (i == null ? void 0 : i.request) == "function" ? i.request : V;
|
|
156
156
|
try {
|
|
157
157
|
if (!z(e, n))
|
|
158
158
|
throw new K({ sender: n, to: e });
|
|
159
|
-
const l = o.includes(U) ? await
|
|
159
|
+
const l = o.includes(U) ? await B({
|
|
160
160
|
data: u,
|
|
161
161
|
ccipRequest: g
|
|
162
|
-
}) : await g({ data: u, sender: n, urls: o }), { data: M } = await
|
|
162
|
+
}) : await g({ data: u, sender: n, urls: o }), { data: M } = await v(t, {
|
|
163
163
|
blockNumber: s,
|
|
164
164
|
blockTag: a,
|
|
165
|
-
data:
|
|
165
|
+
data: D([
|
|
166
166
|
f,
|
|
167
167
|
w([{ type: "bytes" }, { type: "bytes" }], [l, d])
|
|
168
168
|
]),
|
|
@@ -193,7 +193,7 @@ async function V({ data: t, sender: s, urls: a }) {
|
|
|
193
193
|
});
|
|
194
194
|
let i;
|
|
195
195
|
if ((e = d.headers.get("Content-Type")) != null && e.startsWith("application/json") ? i = (await d.json()).data : i = await d.text(), !d.ok) {
|
|
196
|
-
r = new
|
|
196
|
+
r = new A({
|
|
197
197
|
body: u,
|
|
198
198
|
details: i != null && i.error ? q(i.error) : d.statusText,
|
|
199
199
|
headers: d.headers,
|
|
@@ -211,7 +211,7 @@ async function V({ data: t, sender: s, urls: a }) {
|
|
|
211
211
|
}
|
|
212
212
|
return i;
|
|
213
213
|
} catch (d) {
|
|
214
|
-
r = new
|
|
214
|
+
r = new A({
|
|
215
215
|
body: u,
|
|
216
216
|
details: d.message,
|
|
217
217
|
url: n
|