@blockend/widget 1.0.43 → 1.0.45
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-CJGurgjX.js → AllRoutes-CQUAeErw.js} +9 -9
- package/dist/{Box-DA6MWvnF.js → Box-w7_VRg0F.js} +12 -12
- package/dist/{EstGas-Co5ZHRq6.js → EstGas-5YHtfavy.js} +51 -51
- package/dist/{Grow-BC22ngtu.js → Grow-BDeSZYKe.js} +2 -2
- package/dist/{InputComp-CUfYK6Y3.js → InputComp-CloNaDiq.js} +3 -3
- package/dist/{LoadRoute-CDQgol9I.js → LoadRoute-QNBsHbIj.js} +4 -4
- package/dist/{QuotesProgress-Ye4PPS1z.js → QuotesProgress-CDgkKmjj.js} +1 -1
- package/dist/{SwapAsset-ChCb8j5s.js → SwapAsset-BW0_t5Bl.js} +1 -1
- package/dist/{Tooltip-CI-bkLqe.js → Tooltip-BbqiRI9d.js} +3 -3
- package/dist/{TxnButton-CzLN4kUm.js → TxnButton-B1BhQcSM.js} +12 -12
- package/dist/{add-BLeY6EJ2.js → add-CLQzsokr.js} +1 -1
- package/dist/{all-wallets-K5zwD5AM.js → all-wallets-BNH3BxPf.js} +1 -1
- package/dist/{app-store-R6Q1DaWB.js → app-store-BlxeeUQv.js} +1 -1
- package/dist/{apple-e89FEH2M.js → apple-BP5uQNjG.js} +1 -1
- package/dist/{arrow-bottom-vsgw3sxP.js → arrow-bottom-DPIhjBtu.js} +1 -1
- package/dist/{arrow-bottom-circle-xhOmN14h.js → arrow-bottom-circle-DSh08XJa.js} +1 -1
- package/dist/{arrow-left-DJ14J_QY.js → arrow-left-DoyFlji9.js} +1 -1
- package/dist/{arrow-right-Cc6stiEr.js → arrow-right-DwSreAeH.js} +1 -1
- package/dist/{arrow-top-D9rT1XGt.js → arrow-top-D3XcOy6X.js} +1 -1
- package/dist/{bank-DkNbXzBp.js → bank-BY-5NaXt.js} +1 -1
- package/dist/{basic-wqsy3gnb.js → basic-DRUu_V-_.js} +3 -3
- package/dist/{browser-DWheGytd.js → browser-9q2ZMp0u.js} +1 -1
- package/dist/{card-o4cq3SI7.js → card-BdVYZbDF.js} +1 -1
- package/dist/ccip-vaAY70cx.js +228 -0
- package/dist/{checkmark-DL11Ciz8.js → checkmark-_e87fleZ.js} +1 -1
- package/dist/{checkmark-bold-DCUAj_bH.js → checkmark-bold-DTvGVjAq.js} +1 -1
- package/dist/{chevron-bottom-BkaaSL3x.js → chevron-bottom-C7fnIhAC.js} +1 -1
- package/dist/{chevron-left-BAeYJPi6.js → chevron-left-CTzqDjKP.js} +1 -1
- package/dist/{chevron-right-C2n4XVBh.js → chevron-right-Cb2BykOQ.js} +1 -1
- package/dist/{chevron-top-DqR7ISmP.js → chevron-top-DQ4TLYPK.js} +1 -1
- package/dist/{chrome-store-BiE1SWxX.js → chrome-store-CFKFIj-U.js} +1 -1
- package/dist/{clock-ANq0sPby.js → clock-BITgXQdM.js} +1 -1
- package/dist/{close-CbLb_Ca0.js → close-DTNBpJn9.js} +1 -1
- package/dist/{coinPlaceholder-DE9hh48R.js → coinPlaceholder-Cg5vVk7E.js} +1 -1
- package/dist/{compass-B6BsqN_r.js → compass-BzeVqG3p.js} +1 -1
- package/dist/{copy-CFQenl_k.js → copy-7qby7X0p.js} +1 -1
- package/dist/{core-BNSQYV_O.js → core-Bq_FD2D-.js} +3 -3
- package/dist/{cursor-C79zZzG-.js → cursor-BV7mFRxd.js} +1 -1
- package/dist/{cursor-transparent-CkAaIX-6.js → cursor-transparent-CaMGs9_i.js} +1 -1
- package/dist/{desktop-2wHbN2MU.js → desktop-DnkF7GYj.js} +1 -1
- package/dist/{disconnect-CEod1F0O.js → disconnect-hIB6tDAm.js} +1 -1
- package/dist/{discord-BDARirn9.js → discord-DVq5RicD.js} +1 -1
- package/dist/{down-CeMfA1IA.js → down-Cxu2Gn-p.js} +2 -2
- package/dist/{etherscan-D6btqGbz.js → etherscan-iO4ifyhG.js} +1 -1
- package/dist/{exclamation-triangle-DZ3CigEq.js → exclamation-triangle-FfZuWTtm.js} +1 -1
- package/dist/{extension-D3pA6KiS.js → extension-YLsgJsyd.js} +1 -1
- package/dist/{external-link-DNCoNBqg.js → external-link-DizMVdbf.js} +1 -1
- package/dist/{facebook-DKPn5xlu.js → facebook-Cqmw4mcA.js} +1 -1
- package/dist/{farcaster-Coar4KLs.js → farcaster-DhGzw6RB.js} +1 -1
- package/dist/{filters-tewd1AcQ.js → filters-zjtvBkrR.js} +1 -1
- package/dist/{getChainIds-C6w4Bu5x.js → getChainIds-odUONfDP.js} +2 -2
- package/dist/getCosmosAddress-DoFx_h2C.js +9565 -0
- package/dist/{github-DPJsU3hM.js → github-DWED8zQq.js} +1 -1
- package/dist/{google-BYVnmLyB.js → google-DqjQhki2.js} +1 -1
- package/dist/{hamburger-KLZOXeDe.js → hamburger-BoqNkfAV.js} +5 -5
- package/dist/{help-circle-4bwWLdAq.js → help-circle-akMrNECj.js} +1 -1
- package/dist/{id-CZOIGovH.js → id-5_klyqeS.js} +1 -1
- package/dist/{image-5Fv9h2Y7.js → image-CMZo1WyL.js} +1 -1
- package/dist/{index-6ItmM_aj.js → index-6-w1oJIE.js} +7 -7
- package/dist/{index-UtdYkkpH.js → index-B2asXu16.js} +4 -4
- package/dist/{index-CKfCnt73.js → index-B6nbTBR5.js} +4 -4
- package/dist/{index-nuJPoBGm.js → index-BuOtDFI9.js} +10 -10
- package/dist/{index-CrkB9iyO.js → index-BvJRFUBO.js} +5 -5
- package/dist/{index-BzbW6hHX.js → index-BwsyCecC.js} +11 -11
- package/dist/index-CF1nqUGr.js +30414 -0
- package/dist/{index-C4FAqXXN.js → index-CM3Etilw.js} +2 -2
- package/dist/{index--I2-zrX3.js → index-DFiWOz8w.js} +78 -78
- package/dist/{index-2PldMzhJ.js → index-DanCp3fk.js} +1 -1
- package/dist/{index-Dnhi5kZz.js → index-uzgsFKVZ.js} +1 -1
- package/dist/{index.es-y4UXcbxS.js → index.es-CpGN0-p3.js} +2 -2
- package/dist/{index.es-BQdr78IG.js → index.es-uZI3LQld.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{info-CAOkQnDz.js → info-8dbz7XVR.js} +1 -1
- package/dist/{info-circle-B1p0FcXR.js → info-circle-DpvSjbC-.js} +1 -1
- package/dist/{lightbulb-DpUPEVkD.js → lightbulb-08HoioMO.js} +1 -1
- package/dist/{mail-N4_Uzyik.js → mail-9i_ajJyQ.js} +1 -1
- package/dist/{mobile-DWGaUWRU.js → mobile-T7QfWyLQ.js} +1 -1
- package/dist/{more-Cumvra0H.js → more-Li5S_Ogh.js} +1 -1
- package/dist/{network-placeholder-DeodbInD.js → network-placeholder-D1Bpt7-5.js} +1 -1
- package/dist/{nftPlaceholder-DCoHGyrl.js → nftPlaceholder-DsDnTBPq.js} +1 -1
- package/dist/{off-CygRkmac.js → off-CDWpNG9Q.js} +1 -1
- package/dist/{play-store-DrSNzrTx.js → play-store-VSg38Lmh.js} +1 -1
- package/dist/{plus-DurmuqzE.js → plus-DaHXBieC.js} +1 -1
- package/dist/{qr-code-21nqN-2b.js → qr-code-CTc2a09p.js} +1 -1
- package/dist/{recycle-horizontal-B4XnG_mk.js → recycle-horizontal-BfOQDozV.js} +1 -1
- package/dist/{refresh-KeWfM6cd.js → refresh-CEcAbJ3p.js} +1 -1
- package/dist/{reown-logo-BCCuFSwZ.js → reown-logo-BrA-vuFq.js} +1 -1
- package/dist/{search-Bws-6c2H.js → search-CSWmwy9f.js} +1 -1
- package/dist/{send-Fu1aokOW.js → send--CHigUTG.js} +1 -1
- package/dist/{swapHorizontal-B_Tl8ACO.js → swapHorizontal-BHorgRvF.js} +1 -1
- package/dist/{swapHorizontalBold-D_jGsZOC.js → swapHorizontalBold-DndEl7Kv.js} +1 -1
- package/dist/{swapHorizontalMedium-yA2CsCjD.js → swapHorizontalMedium-kzMFc_rt.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-BIjKPKal.js → swapHorizontalRoundedBold-DcpCJQh3.js} +1 -1
- package/dist/{swapVertical-DEGmJhlq.js → swapVertical-n40mXPde.js} +1 -1
- package/dist/{telegram-yvkJwwAr.js → telegram-CfrfYwWa.js} +1 -1
- package/dist/{three-dots-Cv2EJ6Q1.js → three-dots-DxKuvFZZ.js} +1 -1
- package/dist/{twitch-CauGkS12.js → twitch-BmdCrOwR.js} +1 -1
- package/dist/{twitterIcon-C-uVhdej.js → twitterIcon-CLl14xGK.js} +1 -1
- package/dist/{unsupportedProp-CquLw774.js → unsupportedProp-C9H7887T.js} +1 -1
- package/dist/{useRegisterError-W3tXBEyF.js → useRegisterError-41oqUoz7.js} +1 -1
- package/dist/{verify-C_tVaEN6.js → verify-BBaeKbvV.js} +1 -1
- package/dist/{verify-filled-C7vvdg3B.js → verify-filled-IYrxPNT8.js} +1 -1
- package/dist/{w3m-modal-BKIYf52c.js → w3m-modal-Cov9oaSQ.js} +2 -2
- package/dist/{wallet-CCOlaYgm.js → wallet-CV_dX0-o.js} +1 -1
- package/dist/{wallet-placeholder-CvwIAC0m.js → wallet-placeholder-foGAGzt1.js} +1 -1
- package/dist/{walletconnect-B9-VhTfx.js → walletconnect-9joy6gTS.js} +1 -1
- package/dist/{warning-circle-B92PFoZF.js → warning-circle-Cr6h6nAy.js} +1 -1
- package/dist/{x-DrIy8GD7.js → x-D3hL-LRX.js} +1 -1
- package/package.json +1 -1
- package/dist/getCosmosAddress-B0ctKwuq.js +0 -11859
- package/dist/index-COkzLDgT.js +0 -16939
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as D from "react";
|
2
2
|
import kt from "react";
|
3
|
-
import { p as J, P as i,
|
3
|
+
import { p as J, P as i, aD as St, m as Bt, g as Wt, b as Lt, _ as Te, d as z, h as Nt, i as Ht, s as Vt } from "./index-CF1nqUGr.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-41oqUoz7.js";
|
6
6
|
let nt = 0;
|
7
7
|
function Jt(e) {
|
8
8
|
const [t, r] = D.useState(e), n = e || t;
|
@@ -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-CF1nqUGr.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-41oqUoz7.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-6-w1oJIE.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-CF1nqUGr.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-Cxu2Gn-p.js";
|
8
8
|
import { e as se } from "./ethertousd-CC_ezooz.js";
|
9
|
-
import { O as H } from "./index-
|
10
|
-
import { z as ae, F as J, i as oe } from "./useRegisterError-
|
9
|
+
import { O as H } from "./index-uzgsFKVZ.js";
|
10
|
+
import { z as ae, F as J, i as oe } from "./useRegisterError-41oqUoz7.js";
|
11
11
|
function xe({ fill: n }) {
|
12
12
|
return /* @__PURE__ */ e(
|
13
13
|
"svg",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsxs as w, jsx as t, Fragment as d } from "react/jsx-runtime";
|
2
2
|
import { s as o } from "./WidgetForm.module-QHJ0-m5f.js";
|
3
|
-
import { u as l, l as c } from "./index-
|
3
|
+
import { u as l, l as c } from "./index-CF1nqUGr.js";
|
4
4
|
function f({ routesData: i, routes: a, quoteTimer: n }) {
|
5
5
|
var b;
|
6
6
|
const r = l((s) => s.configuration), e = l((s) => s.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-CF1nqUGr.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-BDeSZYKe.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-41oqUoz7.js";
|
6
6
|
function Lo(r) {
|
7
7
|
return To("MuiTooltip", r);
|
8
8
|
}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { jsx as N } from "react/jsx-runtime";
|
2
2
|
import { useState as q, useEffect as P } from "react";
|
3
|
-
import { useSwitchNetwork as je, useDynamicContext as Ae, useIsLoggedIn as
|
4
|
-
import { a as we, u as T,
|
3
|
+
import { useSwitchNetwork as je, useDynamicContext as Ae, useIsLoggedIn as ze } from "@dynamic-labs/sdk-react-core";
|
4
|
+
import { a as we, u as T, az as ve, aA as Me } from "./index-CF1nqUGr.js";
|
5
5
|
import { s as f } from "./WidgetForm.module-QHJ0-m5f.js";
|
6
6
|
import { useAccount as Oe, useConfig as Re, useSwitchChain as Ve, useBalance as qe } from "wagmi";
|
7
|
-
import { u as ae, d as Pe, c as _e, C as oe } from "./useRegisterError-
|
8
|
-
import "./getCosmosAddress-
|
7
|
+
import { u as ae, d as Pe, c as _e, C as oe } from "./useRegisterError-41oqUoz7.js";
|
8
|
+
import "./getCosmosAddress-DoFx_h2C.js";
|
9
9
|
import { v as He } from "./validError-CDlJpg_f.js";
|
10
|
-
import { u as Je, p as Ke } from "./index-
|
10
|
+
import { u as Je, p as Ke } from "./index-6-w1oJIE.js";
|
11
11
|
function Qe(n) {
|
12
12
|
const { wallet: h, address: g } = we(), [E, S] = q(0);
|
13
13
|
async function m() {
|
@@ -26,7 +26,7 @@ function nt({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
26
26
|
var Y, Z, W, k, D, C, ee, te, se, re, ce, ne, ie;
|
27
27
|
const o = T((s) => s.gradient), x = T((s) => s.configuration), e = T((s) => s.fromChain), i = T((s) => s.fromCoin), r = T((s) => s.toChain), w = T((s) => s.toCoin), { isConnected: F, address: _, chain: I } = Oe(), pe = Re(), ge = je(), { getBothWalletConnection: ye, getConnectWallet: xe } = ae({
|
28
28
|
chainData: e
|
29
|
-
}), { connected: H, address: J, disconnect: Ue } = we(),
|
29
|
+
}), { connected: H, address: J, disconnect: Ue } = we(), z = T((s) => s.toDisconnect), d = T((s) => s.customWallet), { getWallet: Ie } = ae({ chainData: e }), he = xe(e, r), [v, Te] = q("101"), { tronBal: M } = Qe(e), { cosmosBalance: K } = Je(), O = ((Y = e.chain) == null ? void 0 : Y.length) && ((Z = r.chain) == null ? void 0 : Z.length), R = ((W = i.address) == null ? void 0 : W.length) && ((k = w.address) == null ? void 0 : k.length), me = Pe(), Ne = ve(), { switchChain: Xe, switchChainAsync: fe, isPending: Be } = Ve({
|
30
30
|
chainId: Number((e == null ? void 0 : e.chainId) || "0"),
|
31
31
|
config: pe,
|
32
32
|
throwForSwitchChainNotSupported: !0,
|
@@ -49,7 +49,7 @@ function nt({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
49
49
|
await fe({ chainId: Number((e == null ? void 0 : e.chainId) || "0") });
|
50
50
|
} catch {
|
51
51
|
}
|
52
|
-
else if ((e == null ? void 0 : e.networkType) === "sol" &&
|
52
|
+
else if ((e == null ? void 0 : e.networkType) === "sol" && v !== ((e == null ? void 0 : e.chainId) == "eclipse-svm" ? "201" : "101"))
|
53
53
|
try {
|
54
54
|
let s = await ge({ wallet: b, network: e.chainId == "eclipse-svm" ? "201" : "101" });
|
55
55
|
U();
|
@@ -60,7 +60,7 @@ function nt({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
60
60
|
...n
|
61
61
|
}), B && (ue(!1), A());
|
62
62
|
}
|
63
|
-
const { primaryWallet: b } = Ae(), V =
|
63
|
+
const { primaryWallet: b } = Ae(), V = ze(), B = (e == null ? void 0 : e.networkType) === r.networkType ? !!((C = (D = Ie(e)) == null ? void 0 : D.address) != null && C.length) : ye(e == null ? void 0 : e.networkType, (d == null ? void 0 : d.length) > 30 ? "customWallet" : r == null ? void 0 : r.networkType), U = async () => {
|
64
64
|
if (b)
|
65
65
|
try {
|
66
66
|
const s = await b.getNetwork();
|
@@ -94,7 +94,7 @@ function nt({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
94
94
|
amountInToken: c.amountInToken,
|
95
95
|
gas: X(c.amountInToken, t == null ? void 0 : t.decimals),
|
96
96
|
token: t,
|
97
|
-
nativeBal: (d == null ? void 0 : d.length) > 30 && !
|
97
|
+
nativeBal: (d == null ? void 0 : d.length) > 30 && !z && (t == null ? void 0 : t.chainId) == (r == null ? void 0 : r.chainId) && (r == null ? void 0 : r.chainId) !== (e == null ? void 0 : e.chainId) ? 0 : (t == null ? void 0 : t.networkType) == "sol" ? L : (t == null ? void 0 : t.networkType) == "tron" ? M : (t == null ? void 0 : t.networkType) == "cosmos" ? $e(t) : Se(),
|
98
98
|
isFromChain: (e == null ? void 0 : e.chainId) === (t == null ? void 0 : t.chainId.toString()),
|
99
99
|
order: (e == null ? void 0 : e.chainId) === (t == null ? void 0 : t.chainId) ? 1 : (r == null ? void 0 : r.chainId) === (t == null ? void 0 : t.chainId) ? 2 : G.length > 2 ? 3 : 2
|
100
100
|
};
|
@@ -166,7 +166,7 @@ function nt({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
166
166
|
text: "From and To asset can not be the same!",
|
167
167
|
isGradient: !1,
|
168
168
|
color: "bw-bg-border-primary"
|
169
|
-
}) : (p = (u = (s = h == null ? void 0 : h.data) == null ? void 0 : s.data) == null ? void 0 : u.quotes) != null && p.length ? F && Number((e == null ? void 0 : e.chainId) || "0") !== (I == null ? void 0 : I.id) && (e == null ? void 0 : e.networkType) === "evm" || V && ((e == null ? void 0 : e.chainId) === "eclipse-svm" ? "201" : "101") !==
|
169
|
+
}) : (p = (u = (s = h == null ? void 0 : h.data) == null ? void 0 : s.data) == null ? void 0 : u.quotes) != null && p.length ? F && Number((e == null ? void 0 : e.chainId) || "0") !== (I == null ? void 0 : I.id) && (e == null ? void 0 : e.networkType) === "evm" || V && ((e == null ? void 0 : e.chainId) === "eclipse-svm" ? "201" : "101") !== v && (e == null ? void 0 : e.networkType) === "sol" ? a({
|
170
170
|
text: `Switch Chain to ${e.chain}`,
|
171
171
|
isGradient: !0,
|
172
172
|
color: o || f.gradientbutton
|
@@ -179,7 +179,7 @@ function nt({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
179
179
|
isGradient: !0,
|
180
180
|
color: o || f.gradientbutton
|
181
181
|
});
|
182
|
-
}, [
|
182
|
+
}, [v, b, i, w, g, e, r, (ee = y.data) == null ? void 0 : ee.formatted, n, y.isFetching, y.isLoading, F, Q, B, h.isFetching, I == null ? void 0 : I.id, E, M, L, d, K]);
|
183
183
|
let Le = [`switch chain to ${(te = e.chain) == null ? void 0 : te.toLowerCase()}`, `select ${(se = e.chain) == null ? void 0 : se.toLowerCase()} wallet`, "connect custom wallet", "enter recipient wallet address"];
|
184
184
|
function Fe() {
|
185
185
|
var s, u, p, $;
|
@@ -197,7 +197,7 @@ function nt({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
197
197
|
},
|
198
198
|
className: `bw-w-full bw-rounded-sm bw-h-[52px] ${l != null && l.isGradient ? "bw-p-[3px]" : "bw-p-[1px]"} bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-70 ${O && R && l.color} ${l.text.length > 29 ? "bw-text-xl" : "bw-text-2xl"} ${l != null && l.isGradient ? "bw-font-bold bw-text-text-primary" : "bw-font-normal bw-text-text-secondary"}`,
|
199
199
|
onClick: () => {
|
200
|
-
B || (S(!0), ((e == null ? void 0 : e.networkType) !== "evm" && F || (e == null ? void 0 : e.networkType) !== "sol" && V && b !== null || (e == null ? void 0 : e.networkType) !== "tron" && H && J) && !
|
200
|
+
B || (S(!0), ((e == null ? void 0 : e.networkType) !== "evm" && F || (e == null ? void 0 : e.networkType) !== "sol" && V && b !== null || (e == null ? void 0 : e.networkType) !== "tron" && H && J) && !z ? m("from") : F && (r == null ? void 0 : r.networkType) !== "evm" || V && (r == null ? void 0 : r.networkType) !== "sol" || (r == null ? void 0 : r.networkType) !== "tron" && H && J || z ? m("to") : m("from")), e.chainId === "eclipse-svm" && !j(b) ? (S(!0), m("from")) : r.chainId === "eclipse-svm" && e.chainId !== "eclipse-svm" && !j(b) && d.length < 30 ? (S(!0), m("to")) : Ge();
|
201
201
|
},
|
202
202
|
children: /* @__PURE__ */ N("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__ */ N("p", { className: "bw-relative bw-z-20", children: O && R ? Be ? /* @__PURE__ */ N("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ N(oe, { size: 22, thickness: 5, color: "inherit" }) }) : B ? l.text.length ? l.text : "Start Transaction" : `Connect ${he} Wallet` : /* @__PURE__ */ N("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ N(oe, { size: 22, thickness: 5, color: "inherit" }) }) }) })
|
203
203
|
}
|
@@ -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 { m as Wn } from "./index-
|
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-Bq_FD2D-.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-DFiWOz8w.js";
|
3
|
+
import { m as Wn } from "./index-CF1nqUGr.js";
|
4
4
|
const Sn = D`
|
5
5
|
:host {
|
6
6
|
position: relative;
|
@@ -0,0 +1,228 @@
|
|
1
|
+
import { ac as L, ad as b, ae as F, af as N, ag as P, ah as w, ai as S, aj as E, ak as $, al as C, am as I, an as m, ao as G, ap as R, aq as k, ar as y, as as O, at as q, au as T, av as v, aw as D, ax as A, ay as H } from "./index-CF1nqUGr.js";
|
2
|
+
const h = "/docs/contract/encodeErrorResult";
|
3
|
+
function x(t) {
|
4
|
+
const { abi: s, errorName: a, args: r } = t;
|
5
|
+
let e = s[0];
|
6
|
+
if (a) {
|
7
|
+
const u = L({ abi: s, args: r, name: a });
|
8
|
+
if (!u)
|
9
|
+
throw new b(a, { docsPath: h });
|
10
|
+
e = u;
|
11
|
+
}
|
12
|
+
if (e.type !== "error")
|
13
|
+
throw new b(void 0, { docsPath: h });
|
14
|
+
const c = F(e), n = N(c);
|
15
|
+
let o = "0x";
|
16
|
+
if (r && r.length > 0) {
|
17
|
+
if (!e.inputs)
|
18
|
+
throw new P(e.name, { docsPath: h });
|
19
|
+
o = w(e.inputs, r);
|
20
|
+
}
|
21
|
+
return S([n, o]);
|
22
|
+
}
|
23
|
+
const p = "/docs/contract/encodeFunctionResult";
|
24
|
+
function j(t) {
|
25
|
+
const { abi: s, functionName: a, result: r } = t;
|
26
|
+
let e = s[0];
|
27
|
+
if (a) {
|
28
|
+
const n = L({ abi: s, name: a });
|
29
|
+
if (!n)
|
30
|
+
throw new E(a, { docsPath: p });
|
31
|
+
e = n;
|
32
|
+
}
|
33
|
+
if (e.type !== "function")
|
34
|
+
throw new E(void 0, { docsPath: p });
|
35
|
+
if (!e.outputs)
|
36
|
+
throw new $(e.name, { docsPath: p });
|
37
|
+
const c = (() => {
|
38
|
+
if (e.outputs.length === 0)
|
39
|
+
return [];
|
40
|
+
if (e.outputs.length === 1)
|
41
|
+
return [r];
|
42
|
+
if (Array.isArray(r))
|
43
|
+
return r;
|
44
|
+
throw new C(r);
|
45
|
+
})();
|
46
|
+
return w(e.outputs, c);
|
47
|
+
}
|
48
|
+
const U = "x-batch-gateway:true";
|
49
|
+
async function B(t) {
|
50
|
+
const { data: s, ccipRequest: a } = t, { args: [r] } = I({ abi: m, data: s }), e = [], c = [];
|
51
|
+
return await Promise.all(r.map(async (n, o) => {
|
52
|
+
try {
|
53
|
+
c[o] = await a(n), e[o] = !1;
|
54
|
+
} catch (u) {
|
55
|
+
e[o] = !0, c[o] = _(u);
|
56
|
+
}
|
57
|
+
})), j({
|
58
|
+
abi: m,
|
59
|
+
functionName: "query",
|
60
|
+
result: [e, c]
|
61
|
+
});
|
62
|
+
}
|
63
|
+
function _(t) {
|
64
|
+
return t.name === "HttpRequestError" && t.status ? x({
|
65
|
+
abi: m,
|
66
|
+
errorName: "HttpError",
|
67
|
+
args: [t.status, t.shortMessage]
|
68
|
+
}) : x({
|
69
|
+
abi: [G],
|
70
|
+
errorName: "Error",
|
71
|
+
args: ["shortMessage" in t ? t.shortMessage : t.message]
|
72
|
+
});
|
73
|
+
}
|
74
|
+
function J(t, s) {
|
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
|
+
return t.toLowerCase() === s.toLowerCase();
|
80
|
+
}
|
81
|
+
class W extends y {
|
82
|
+
constructor({ callbackSelector: s, cause: a, data: r, extraData: e, sender: c, urls: n }) {
|
83
|
+
var o;
|
84
|
+
super(a.shortMessage || "An error occurred while fetching for an offchain result.", {
|
85
|
+
cause: a,
|
86
|
+
metaMessages: [
|
87
|
+
...a.metaMessages || [],
|
88
|
+
(o = a.metaMessages) != null && o.length ? "" : [],
|
89
|
+
"Offchain Gateway Call:",
|
90
|
+
n && [
|
91
|
+
" Gateway URL(s):",
|
92
|
+
...n.map((u) => ` ${O(u)}`)
|
93
|
+
],
|
94
|
+
` Sender: ${c}`,
|
95
|
+
` Data: ${r}`,
|
96
|
+
` Callback selector: ${s}`,
|
97
|
+
` Extra data: ${e}`
|
98
|
+
].flat(),
|
99
|
+
name: "OffchainLookupError"
|
100
|
+
});
|
101
|
+
}
|
102
|
+
}
|
103
|
+
class z extends y {
|
104
|
+
constructor({ result: s, url: a }) {
|
105
|
+
super("Offchain gateway response is malformed. Response data must be a hex value.", {
|
106
|
+
metaMessages: [
|
107
|
+
`Gateway URL: ${O(a)}`,
|
108
|
+
`Response: ${q(s)}`
|
109
|
+
],
|
110
|
+
name: "OffchainLookupResponseMalformedError"
|
111
|
+
});
|
112
|
+
}
|
113
|
+
}
|
114
|
+
class K extends y {
|
115
|
+
constructor({ sender: s, to: a }) {
|
116
|
+
super("Reverted sender address does not match target contract address (`to`).", {
|
117
|
+
metaMessages: [
|
118
|
+
`Contract address: ${a}`,
|
119
|
+
`OffchainLookup sender address: ${s}`
|
120
|
+
],
|
121
|
+
name: "OffchainLookupSenderMismatchError"
|
122
|
+
});
|
123
|
+
}
|
124
|
+
}
|
125
|
+
const Y = "0x556f1830", Q = {
|
126
|
+
name: "OffchainLookup",
|
127
|
+
type: "error",
|
128
|
+
inputs: [
|
129
|
+
{
|
130
|
+
name: "sender",
|
131
|
+
type: "address"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
name: "urls",
|
135
|
+
type: "string[]"
|
136
|
+
},
|
137
|
+
{
|
138
|
+
name: "callData",
|
139
|
+
type: "bytes"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
name: "callbackFunction",
|
143
|
+
type: "bytes4"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
name: "extraData",
|
147
|
+
type: "bytes"
|
148
|
+
}
|
149
|
+
]
|
150
|
+
};
|
151
|
+
async function Z(t, { blockNumber: s, blockTag: a, data: r, to: e }) {
|
152
|
+
const { args: c } = T({
|
153
|
+
data: r,
|
154
|
+
abi: [Q]
|
155
|
+
}), [n, o, u, f, d] = c, { ccipRead: i } = t, g = i && typeof (i == null ? void 0 : i.request) == "function" ? i.request : V;
|
156
|
+
try {
|
157
|
+
if (!J(e, n))
|
158
|
+
throw new K({ sender: n, to: e });
|
159
|
+
const l = o.includes(U) ? await B({
|
160
|
+
data: u,
|
161
|
+
ccipRequest: g
|
162
|
+
}) : await g({ data: u, sender: n, urls: o }), { data: M } = await v(t, {
|
163
|
+
blockNumber: s,
|
164
|
+
blockTag: a,
|
165
|
+
data: D([
|
166
|
+
f,
|
167
|
+
w([{ type: "bytes" }, { type: "bytes" }], [l, d])
|
168
|
+
]),
|
169
|
+
to: e
|
170
|
+
});
|
171
|
+
return M;
|
172
|
+
} catch (l) {
|
173
|
+
throw new W({
|
174
|
+
callbackSelector: f,
|
175
|
+
cause: l,
|
176
|
+
data: r,
|
177
|
+
extraData: d,
|
178
|
+
sender: n,
|
179
|
+
urls: o
|
180
|
+
});
|
181
|
+
}
|
182
|
+
}
|
183
|
+
async function V({ data: t, sender: s, urls: a }) {
|
184
|
+
var e;
|
185
|
+
let r = new Error("An unknown error occurred.");
|
186
|
+
for (let c = 0; c < a.length; c++) {
|
187
|
+
const n = a[c], o = n.includes("{data}") ? "GET" : "POST", u = o === "POST" ? { data: t, sender: s } : void 0, f = o === "POST" ? { "Content-Type": "application/json" } : {};
|
188
|
+
try {
|
189
|
+
const d = await fetch(n.replace("{sender}", s.toLowerCase()).replace("{data}", t), {
|
190
|
+
body: JSON.stringify(u),
|
191
|
+
headers: f,
|
192
|
+
method: o
|
193
|
+
});
|
194
|
+
let i;
|
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 A({
|
197
|
+
body: u,
|
198
|
+
details: i != null && i.error ? q(i.error) : d.statusText,
|
199
|
+
headers: d.headers,
|
200
|
+
status: d.status,
|
201
|
+
url: n
|
202
|
+
});
|
203
|
+
continue;
|
204
|
+
}
|
205
|
+
if (!H(i)) {
|
206
|
+
r = new z({
|
207
|
+
result: i,
|
208
|
+
url: n
|
209
|
+
});
|
210
|
+
continue;
|
211
|
+
}
|
212
|
+
return i;
|
213
|
+
} catch (d) {
|
214
|
+
r = new A({
|
215
|
+
body: u,
|
216
|
+
details: d.message,
|
217
|
+
url: n
|
218
|
+
});
|
219
|
+
}
|
220
|
+
}
|
221
|
+
throw r;
|
222
|
+
}
|
223
|
+
export {
|
224
|
+
V as ccipRequest,
|
225
|
+
Z as offchainLookup,
|
226
|
+
Q as offchainLookupAbiItem,
|
227
|
+
Y as offchainLookupSignature
|
228
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { B as et } from "./index-DTish3yr.js";
|
2
|
-
import { I as Wr, c as Zu, f as Tt, t as pt, a as U, g as re, b as us, C as Xu, d as Qu, e as ui, s as co, h as fl, i as er, k as Ti, A as ml, E as nt, j as eh, l as th, y as Ct, m as Ws, r as zr, O as Wo, o as kt, n as sh, p as zo, q as Ho, u as vn, N as Vo, P as ca, Q as rh, v as ih, w as nh, x as la, z as _r, B as wl, D as is, F as Vt, G as hs, H as Bt } from "./index.es-
|
3
|
-
import { p as Se } from "./index-
|
2
|
+
import { I as Wr, c as Zu, f as Tt, t as pt, a as U, g as re, b as us, C as Xu, d as Qu, e as ui, s as co, h as fl, i as er, k as Ti, A as ml, E as nt, j as eh, l as th, y as Ct, m as Ws, r as zr, O as Wo, o as kt, n as sh, p as zo, q as Ho, u as vn, N as Vo, P as ca, Q as rh, v as ih, w as nh, x as la, z as _r, B as wl, D as is, F as Vt, G as hs, H as Bt } from "./index.es-CpGN0-p3.js";
|
3
|
+
import { p as Se } from "./index-CF1nqUGr.js";
|
4
4
|
import { formatUnits as oh, recoverAddress as ah, fallback as ua, http as Wi, toHex as ha } from "viem";
|
5
5
|
const z = {
|
6
6
|
WC_NAME_SUFFIX: ".reown.id",
|
@@ -14903,7 +14903,7 @@ class Yu extends NE {
|
|
14903
14903
|
}
|
14904
14904
|
async injectModalUi() {
|
14905
14905
|
if (!pl && Z.isClient()) {
|
14906
|
-
if (await import("./basic-
|
14906
|
+
if (await import("./basic-DRUu_V-_.js"), await import("./w3m-modal-Cov9oaSQ.js"), !document.querySelector("w3m-modal")) {
|
14907
14907
|
const s = document.createElement("w3m-modal");
|
14908
14908
|
!O.state.disableAppend && !O.state.enableEmbedded && document.body.insertAdjacentElement("beforeend", s);
|
14909
14909
|
}
|