@blockend/widget 1.0.49-beta.3 → 1.0.50
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-CMV2Aikv.js → AllRoutes-CULIQsat.js} +9 -9
- package/dist/{Box-BLU3JkBD.js → Box-NqP6AVwQ.js} +6 -6
- package/dist/EstGas-Dh9afjPx.js +12661 -0
- package/dist/{Grow-BNGsloYF.js → Grow-DimeDg31.js} +2 -2
- package/dist/{InputComp-My-aSA0q.js → InputComp-yY8lKNsS.js} +3 -3
- package/dist/{LoadRoute-DEc0qJGB.js → LoadRoute-C9PROsCB.js} +4 -4
- package/dist/{QuotesProgress-DyCbRkmW.js → QuotesProgress-BqAtKdL0.js} +1 -1
- package/dist/{SwapAsset-VBFtcbjw.js → SwapAsset-CZhHktg2.js} +1 -1
- package/dist/{Tooltip-DkFdda4P.js → Tooltip-BiZCYxM1.js} +3 -3
- package/dist/{TxnButton-DtS9Dw0R.js → TxnButton-BZKqys7R.js} +23 -22
- package/dist/{add-CIcwZ7BM.js → add-h0-mWiyZ.js} +1 -1
- package/dist/{all-wallets-Bh1_cRVE.js → all-wallets-B1G-BF4O.js} +1 -1
- package/dist/{app-store-1QxQqMCa.js → app-store-C6terlTd.js} +1 -1
- package/dist/{apple-CtdqvHaM.js → apple-BAMP6vUT.js} +1 -1
- package/dist/{arrow-bottom-D-GL64pV.js → arrow-bottom-5NtikK9r.js} +1 -1
- package/dist/{arrow-bottom-circle-BZZ6oS3I.js → arrow-bottom-circle-GWblbKB-.js} +1 -1
- package/dist/{arrow-left-CtM73IFh.js → arrow-left-CuwEORVr.js} +1 -1
- package/dist/{arrow-right-C_3it8wU.js → arrow-right-B7p52n9L.js} +1 -1
- package/dist/{arrow-top-B_akssLE.js → arrow-top-X0Z_PT4J.js} +1 -1
- package/dist/{bank-BAZaWTHP.js → bank-I9RgXHkl.js} +1 -1
- package/dist/{basic-BQ6VlY2V.js → basic-DlZzE8fW.js} +3 -3
- package/dist/{browser-D-m8U4qp.js → browser-y883UdyY.js} +1 -1
- package/dist/{card-CZMLg_hs.js → card-DFwMQe6t.js} +1 -1
- package/dist/{ccip-Cr2zG-xI.js → ccip-BdqG54tP.js} +16 -16
- package/dist/{checkmark-Db5ONmjX.js → checkmark-DwHPcz7y.js} +1 -1
- package/dist/{checkmark-bold-CNdIOniu.js → checkmark-bold-CwUU9faI.js} +1 -1
- package/dist/{chevron-bottom-B4LZ07P4.js → chevron-bottom-CM8xoehI.js} +1 -1
- package/dist/{chevron-left-BOiLmc3e.js → chevron-left-Bv_KYFge.js} +1 -1
- package/dist/{chevron-right-C8aUeQEC.js → chevron-right-CuU7ZCUE.js} +1 -1
- package/dist/{chevron-top-DQnpWjJP.js → chevron-top-FBXj-YJj.js} +1 -1
- package/dist/{chrome-store-B2Ctt_Iw.js → chrome-store-BIA_g9fd.js} +1 -1
- package/dist/{clock-4Nkh4x1b.js → clock-CgcPvmV3.js} +1 -1
- package/dist/{close-CiK1EUke.js → close-Dro7okSF.js} +1 -1
- package/dist/{coinPlaceholder-CcnyeBg0.js → coinPlaceholder-Df9r_k0L.js} +1 -1
- package/dist/{compass-C8XMPb-_.js → compass-zmLyV0WT.js} +1 -1
- package/dist/{copy-D-ZlELIO.js → copy-CIamcXhE.js} +1 -1
- package/dist/{core-CE7ZvgmO.js → core-2WkYhq16.js} +17 -16
- package/dist/{cursor-RiCqhq_2.js → cursor-C2EB1DLY.js} +1 -1
- package/dist/{cursor-transparent-Cpuw-bx1.js → cursor-transparent-BRACM7k5.js} +1 -1
- package/dist/{desktop-BcnqlO6_.js → desktop-Nj8wnhrx.js} +1 -1
- package/dist/{disconnect-BXI_7OV3.js → disconnect-BA3_H2TE.js} +1 -1
- package/dist/{discord-DZgQjBjt.js → discord-BnYi_b4O.js} +1 -1
- package/dist/{down-C8I1GmTa.js → down-BiWYZhrl.js} +2 -2
- package/dist/{etherscan-DHArh1Kg.js → etherscan-Oni_KoX7.js} +1 -1
- package/dist/{exclamation-triangle-Dp1k7Xyg.js → exclamation-triangle-DensxwAC.js} +1 -1
- package/dist/{extension-Dav7fjmZ.js → extension-CJ-ksDa9.js} +1 -1
- package/dist/{external-link-DWQsWqey.js → external-link-D2xEf8Lc.js} +1 -1
- package/dist/{facebook-xI7TIm3V.js → facebook-Dc9l2BHT.js} +1 -1
- package/dist/{farcaster-ByqbNlsO.js → farcaster-PnjVCWz_.js} +1 -1
- package/dist/{filters-CPWYBjRc.js → filters-BHTpF3UH.js} +1 -1
- package/dist/{getChainIds-DY_neilc.js → getChainIds-CfrzTUBX.js} +2 -2
- package/dist/getCosmosAddress-CQBPedP-.js +9565 -0
- package/dist/{github-prZ8t34_.js → github-SsGUhatp.js} +1 -1
- package/dist/{google-CcUsHax7.js → google-ClSrT1Rw.js} +1 -1
- package/dist/{hamburger-BJOW28p-.js → hamburger-CnBL_kWz.js} +5 -5
- package/dist/{help-circle-XwyOApi8.js → help-circle-6WH3b0xJ.js} +1 -1
- package/dist/{id-Ftjt1pHJ.js → id-BpdNL8xg.js} +1 -1
- package/dist/{image-D3UyCNRs.js → image-D98hwlBe.js} +1 -1
- package/dist/index-270jcL0T.js +159 -0
- package/dist/{index-DmHzoK8Z.js → index-BD7sxHzc.js} +2 -2
- package/dist/{index-V7wGfBWj.js → index-BYEfYYbR.js} +2192 -2170
- package/dist/{index-ME6WmREi.js → index-CbunQDKM.js} +1 -1
- package/dist/{index-vg6UIFZD.js → index-CdSs-KXV.js} +11 -11
- package/dist/index-DTish3yr.js +1014 -0
- package/dist/{index-B518UW03.js → index-DbBaCDf8.js} +78 -78
- package/dist/index-Hx1OgUt3.js +206 -0
- package/dist/{index-Cea3JIZ5.js → index-Kcq8t_TI.js} +1 -1
- package/dist/index-VwOzTBuI.js +30707 -0
- package/dist/{index-BykNQI23.js → index-uMBmZTqD.js} +5 -5
- package/dist/{index-BHDpDBXv.js → index-yf9XBWfH.js} +259 -257
- package/dist/{index.es-TqUYQAoH.js → index.es-DNIrxJpP.js} +1 -1
- package/dist/{index.es-ng6OTpYR.js → index.es-extFs-He.js} +1712 -1625
- package/dist/index.es.js +1 -1
- package/dist/{info-DBsGMB_O.js → info-CX4R9q8L.js} +1 -1
- package/dist/{info-circle-Bx2PIRGJ.js → info-circle-ByA7titS.js} +1 -1
- package/dist/{lightbulb-KoBLmJby.js → lightbulb-DpdMU1eo.js} +1 -1
- package/dist/{mail-CZKrqpFU.js → mail-D7BloLRj.js} +1 -1
- package/dist/{mobile-CN4pmWVU.js → mobile-BfhAPCLe.js} +1 -1
- package/dist/{more-1brm4Q7X.js → more-2Fi4UnXg.js} +1 -1
- package/dist/{network-placeholder-CAlA46Kt.js → network-placeholder-CQk-R-eu.js} +1 -1
- package/dist/{nftPlaceholder-DHzDfy6E.js → nftPlaceholder-D67aKpf-.js} +1 -1
- package/dist/{off-1usMfWM7.js → off-CER3l2ZF.js} +1 -1
- package/dist/{play-store-C_t-IwRL.js → play-store-D3OG1Nf5.js} +1 -1
- package/dist/{plus-B5w-_zg6.js → plus-XfyglU6D.js} +1 -1
- package/dist/{qr-code-DQh--5Nd.js → qr-code-C2QzWWzi.js} +1 -1
- package/dist/{recycle-horizontal-CBNgoZdm.js → recycle-horizontal-BNoCX8eV.js} +1 -1
- package/dist/{refresh-gjkJ3fAS.js → refresh-BtgNPYm1.js} +1 -1
- package/dist/{reown-logo-BmVLHjjQ.js → reown-logo-BfwHREPj.js} +1 -1
- package/dist/{search-CuK6y19Q.js → search-xILtKxp2.js} +1 -1
- package/dist/{send-CIaAYk7c.js → send-Cbq82Ise.js} +1 -1
- package/dist/{swapHorizontal-Dl8NLG_i.js → swapHorizontal-ieu8keoA.js} +1 -1
- package/dist/{swapHorizontalBold-BnPyIFiA.js → swapHorizontalBold-DB9kV8I4.js} +1 -1
- package/dist/{swapHorizontalMedium-CEivQ8L0.js → swapHorizontalMedium-CFcq-Eii.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-C9ACKZnM.js → swapHorizontalRoundedBold-J-bBHkKw.js} +1 -1
- package/dist/{swapVertical-ZEEyof9e.js → swapVertical-CdsB-iHQ.js} +1 -1
- package/dist/{telegram-B3c-a3zh.js → telegram-BcA4SOe-.js} +1 -1
- package/dist/{three-dots-DUit7LCw.js → three-dots-tnSr7FoX.js} +1 -1
- package/dist/{twitch-3MyiQW6J.js → twitch-C0EXCOL_.js} +1 -1
- package/dist/{twitterIcon-DrkQHEH8.js → twitterIcon-D8gUfoR9.js} +1 -1
- package/dist/{unsupportedProp-BXXskXK0.js → unsupportedProp-ClTIJsqE.js} +1 -1
- package/dist/{useRegisterError-D172QfL7.js → useRegisterError-BrX0SzkP.js} +1 -1
- package/dist/{verify-Ez0YdpbL.js → verify-1fQ9qDGq.js} +1 -1
- package/dist/{verify-filled-Cof7FJLP.js → verify-filled-B-Bua_F7.js} +1 -1
- package/dist/{w3m-modal-D9qNteo9.js → w3m-modal-B4ljhCgE.js} +2 -2
- package/dist/{wallet-D8n_ZZlC.js → wallet-CHuFygGk.js} +1 -1
- package/dist/{wallet-placeholder-C7X2GW9S.js → wallet-placeholder-BY3FPHTK.js} +1 -1
- package/dist/{walletconnect-CKYpGIEb.js → walletconnect-1yfFjEWg.js} +1 -1
- package/dist/{warning-circle-BcBltCn2.js → warning-circle-CtfJ6Xr4.js} +1 -1
- package/dist/widget.css +1 -1
- package/dist/{x-BppUkwM-.js → x-j-7tNFTH.js} +1 -1
- package/package.json +2 -4
- package/dist/EstGas-ywgk-29s.js +0 -1486
- package/dist/getCosmosAddress-_BeZxDkv.js +0 -6075
- package/dist/index-BaPgYkZ_.js +0 -42277
- package/dist/index-BtI5pdx-.js +0 -6711
- package/dist/index-klVp-SBb.js +0 -206
@@ -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, aE 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-VwOzTBuI.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-BrX0SzkP.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-VwOzTBuI.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-BrX0SzkP.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-yf9XBWfH.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-VwOzTBuI.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-BiWYZhrl.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-Kcq8t_TI.js";
|
10
|
+
import { F as J, i as ae } from "./useRegisterError-BrX0SzkP.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-VwOzTBuI.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-VwOzTBuI.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-DimeDg31.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-BrX0SzkP.js";
|
6
6
|
function Lo(r) {
|
7
7
|
return To("MuiTooltip", r);
|
8
8
|
}
|
@@ -1,36 +1,37 @@
|
|
1
1
|
import { jsx as N } from "react/jsx-runtime";
|
2
2
|
import { useState as q, useEffect as P } from "react";
|
3
3
|
import { useSwitchNetwork as je, useDynamicContext as Ae, useIsLoggedIn as ve } from "@dynamic-labs/sdk-react-core";
|
4
|
-
import { a as we, u as
|
4
|
+
import { a as we, u as m, aA as ze, aB as Me } from "./index-VwOzTBuI.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
|
9
|
-
import {
|
7
|
+
import { u as ae, d as Pe, c as _e, C as oe } from "./useRegisterError-BrX0SzkP.js";
|
8
|
+
import "./getCosmosAddress-CQBPedP-.js";
|
9
|
+
import { v as Qe } from "./validError-CDlJpg_f.js";
|
10
|
+
import { u as He, p as Je } from "./index-yf9XBWfH.js";
|
10
11
|
function Ke(n) {
|
11
12
|
const { wallet: g, address: y } = we(), [E, S] = q(0);
|
12
|
-
async function
|
13
|
+
async function T() {
|
13
14
|
const A = await window.tronWeb.trx.getBalance(y);
|
14
15
|
S(A / Math.pow(10, 6));
|
15
16
|
}
|
16
17
|
return P(() => {
|
17
|
-
y && (n == null ? void 0 : n.networkType) === "tron" &&
|
18
|
+
y && (n == null ? void 0 : n.networkType) === "tron" && T();
|
18
19
|
}, [y, n == null ? void 0 : n.networkType]), { tronBal: E };
|
19
20
|
}
|
20
21
|
function j(n) {
|
21
22
|
if (n.key.toLowerCase() === "backpacksol")
|
22
23
|
return !0;
|
23
24
|
}
|
24
|
-
function
|
25
|
+
function nt({ routesData: n, routes: g, amount: y, isAmountTyped: E, handleShowWallet: S, setConnectWalletField: T, handleConfirmClose: A, balanceSol: F, getCoinBalance: be, handleSuccess: ue }) {
|
25
26
|
var Y, Z, W, k, D, C, ee, te, se, re, ce, ne, ie;
|
26
|
-
const o =
|
27
|
+
const o = m((s) => s.gradient), h = m((s) => s.configuration), e = m((s) => s.fromChain), i = m((s) => s.fromCoin), r = m((s) => s.toChain), w = m((s) => s.toCoin), { isConnected: L, address: _, chain: I } = Oe(), pe = Re(), ge = je(), { getBothWalletConnection: ye, getConnectWallet: xe } = ae({
|
27
28
|
chainData: e
|
28
|
-
}), { connected:
|
29
|
+
}), { connected: Q, address: H, disconnect: Ue } = we(), v = m((s) => s.toDisconnect), d = m((s) => s.customWallet), { getWallet: he } = ae({ chainData: e }), Ie = xe(e, r), [z, me] = q("101"), { tronBal: M } = Ke(e), { cosmosBalance: J } = He(), 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), Te = Pe(), Ne = ze(), { switchChain: Xe, switchChainAsync: fe, isPending: Be } = Ve({
|
29
30
|
chainId: Number((e == null ? void 0 : e.chainId) || "0"),
|
30
31
|
config: pe,
|
31
32
|
throwForSwitchChainNotSupported: !0,
|
32
33
|
onError(s) {
|
33
|
-
|
34
|
+
Qe(s.message) && Te({ module: "wallet-error-switch", error: s.message });
|
34
35
|
}
|
35
36
|
}), x = qe({
|
36
37
|
address: _,
|
@@ -43,7 +44,7 @@ function ct({ routesData: n, routes: g, amount: y, isAmountTyped: E, handleShowW
|
|
43
44
|
color: "bw-bg-border-primary"
|
44
45
|
});
|
45
46
|
async function Ge() {
|
46
|
-
if ((e == null ? void 0 : e.networkType) === "evm" && Number((e == null ? void 0 : e.chainId) || "0") !== (
|
47
|
+
if ((e == null ? void 0 : e.networkType) === "evm" && Number((e == null ? void 0 : e.chainId) || "0") !== (I == null ? void 0 : I.id))
|
47
48
|
try {
|
48
49
|
await fe({ chainId: Number((e == null ? void 0 : e.chainId) || "0") });
|
49
50
|
} catch {
|
@@ -59,11 +60,11 @@ function ct({ routesData: n, routes: g, amount: y, isAmountTyped: E, handleShowW
|
|
59
60
|
...n
|
60
61
|
}), B && (ue(!1), A());
|
61
62
|
}
|
62
|
-
const { primaryWallet: b } = Ae(), V = ve(), B = (e == null ? void 0 : e.networkType) === r.networkType ? !!((C = (D =
|
63
|
+
const { primaryWallet: b } = Ae(), V = ve(), B = (e == null ? void 0 : e.networkType) === r.networkType ? !!((C = (D = he(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 () => {
|
63
64
|
if (b)
|
64
65
|
try {
|
65
66
|
const s = await b.getNetwork();
|
66
|
-
|
67
|
+
me(s);
|
67
68
|
} catch {
|
68
69
|
}
|
69
70
|
else
|
@@ -82,7 +83,7 @@ function ct({ routesData: n, routes: g, amount: y, isAmountTyped: E, handleShowW
|
|
82
83
|
}
|
83
84
|
function $e(s) {
|
84
85
|
var u;
|
85
|
-
return Number(((u =
|
86
|
+
return Number(((u = J[Je(s.address)]) == null ? void 0 : u.amount) || 0) / Math.pow(10, s.decimals);
|
86
87
|
}
|
87
88
|
function Ee() {
|
88
89
|
var $;
|
@@ -169,7 +170,7 @@ function ct({ routesData: n, routes: g, amount: y, isAmountTyped: E, handleShowW
|
|
169
170
|
text: "Failed to fetch Quotes",
|
170
171
|
isGradient: !1,
|
171
172
|
color: "bw-bg-border-primary"
|
172
|
-
}) : L && Number((e == null ? void 0 : e.chainId) || "0") !== (
|
173
|
+
}) : L && 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") !== z && (e == null ? void 0 : e.networkType) === "sol" ? l({
|
173
174
|
text: `Switch Chain to ${e.chain}`,
|
174
175
|
isGradient: !0,
|
175
176
|
color: o || f.gradientbutton
|
@@ -182,7 +183,7 @@ function ct({ routesData: n, routes: g, amount: y, isAmountTyped: E, handleShowW
|
|
182
183
|
isGradient: !0,
|
183
184
|
color: o || f.gradientbutton
|
184
185
|
});
|
185
|
-
}, [z, b, i, w, y, e, r, (ee = x.data) == null ? void 0 : ee.formatted, n, x.isFetching, x.isLoading, L, K, B, g.isFetching,
|
186
|
+
}, [z, b, i, w, y, e, r, (ee = x.data) == null ? void 0 : ee.formatted, n, x.isFetching, x.isLoading, L, K, B, g.isFetching, I == null ? void 0 : I.id, E, M, F, d, J]);
|
186
187
|
let Fe = [`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"];
|
187
188
|
function Le() {
|
188
189
|
var s, u, p, $;
|
@@ -193,19 +194,19 @@ function ct({ routesData: n, routes: g, amount: y, isAmountTyped: E, handleShowW
|
|
193
194
|
{
|
194
195
|
disabled: Le(),
|
195
196
|
style: a != null && a.isGradient && O && R ? {
|
196
|
-
...
|
197
|
-
boxShadow:
|
197
|
+
...h == null ? void 0 : h.gradientStyle,
|
198
|
+
boxShadow: h && h.customTheme && ((ce = (re = h.customTheme) == null ? void 0 : re.shadow) == null ? void 0 : ce.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
198
199
|
} : {
|
199
|
-
boxShadow:
|
200
|
+
boxShadow: h && h.customTheme && ((ie = (ne = h.customTheme) == null ? void 0 : ne.shadow) == null ? void 0 : ie.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
200
201
|
},
|
201
202
|
className: `bw-w-full bw-rounded-sm bw-h-[52px] ${a != null && a.isGradient ? "bw-p-[3px]" : "bw-p-[1px]"} bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-70 ${O && R && a.color} ${a.text.length > 29 ? "bw-text-xl" : "bw-text-2xl"} ${a != null && a.isGradient ? "bw-font-bold bw-text-text-primary" : "bw-font-normal bw-text-text-secondary"}`,
|
202
203
|
onClick: () => {
|
203
|
-
B || (S(!0), ((e == null ? void 0 : e.networkType) !== "evm" && L || (e == null ? void 0 : e.networkType) !== "sol" && V && b !== null || (e == null ? void 0 : e.networkType) !== "tron" &&
|
204
|
+
B || (S(!0), ((e == null ? void 0 : e.networkType) !== "evm" && L || (e == null ? void 0 : e.networkType) !== "sol" && V && b !== null || (e == null ? void 0 : e.networkType) !== "tron" && Q && H) && !v ? T("from") : L && (r == null ? void 0 : r.networkType) !== "evm" || V && (r == null ? void 0 : r.networkType) !== "sol" || (r == null ? void 0 : r.networkType) !== "tron" && Q && H || v ? T("to") : T("from")), e.chainId === "eclipse-svm" && !j(b) ? (S(!0), T("from")) : r.chainId === "eclipse-svm" && e.chainId !== "eclipse-svm" && !j(b) && d.length < 30 ? (S(!0), T("to")) : Ge();
|
204
205
|
},
|
205
|
-
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 ? a.text.length ? a.text : "Start Transaction" : `Connect ${
|
206
|
+
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 ? a.text.length ? a.text : "Start Transaction" : `Connect ${Ie} 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" }) }) }) })
|
206
207
|
}
|
207
208
|
);
|
208
209
|
}
|
209
210
|
export {
|
210
|
-
|
211
|
+
nt as default
|
211
212
|
};
|
@@ -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 { n 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-2WkYhq16.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-DbBaCDf8.js";
|
3
|
+
import { n as Wn } from "./index-VwOzTBuI.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-VwOzTBuI.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
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import { I as Wr, c as Zu, f as Tt, t as pt, a as U, b as us, C as Xu, d as Qu, e as ui, s as co,
|
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-extFs-He.js";
|
3
|
+
import { p as Se } from "./index-VwOzTBuI.js";
|
3
4
|
import { formatUnits as oh, recoverAddress as ah, fallback as ua, http as Wi, toHex as ha } from "viem";
|
4
5
|
const z = {
|
5
6
|
WC_NAME_SUFFIX: ".reown.id",
|
@@ -12088,7 +12089,7 @@ let Nr = class extends HTMLElement {
|
|
12088
12089
|
Nr.elementStyles = [], Nr.shadowRootOptions = { mode: "open" }, Nr[yi("elementProperties")] = /* @__PURE__ */ new Map(), Nr[yi("finalized")] = /* @__PURE__ */ new Map(), io == null || io({ ReactiveElement: Nr }), (Ps.reactiveElementVersions ?? (Ps.reactiveElementVersions = [])).push("2.1.0");
|
12089
12090
|
const vi = globalThis, yn = vi.trustedTypes, nl = yn ? yn.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Wu = "$lit$", Es = `lit$${Math.random().toFixed(9).slice(2)}$`, zu = "?" + Es, lE = `<${zu}>`, Qs = document, Si = () => Qs.createComment(""), Pi = (t) => t === null || typeof t != "object" && typeof t != "function", aa = Array.isArray, uE = (t) => aa(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", no = `[
|
12090
12091
|
\f\r]`, ri = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ol = /-->/g, al = />/g, Ds = RegExp(`>|${no}(?:([^\\s"'>=/]+)(${no}*=${no}*(?:[^
|
12091
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), cl = /'/g, ll = /"/g, Hu = /^(?:script|style|textarea|title)$/i, Vu = (t) => (e, ...s) => ({ _$litType$: t, strings: e, values: s }),
|
12092
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), cl = /'/g, ll = /"/g, Hu = /^(?:script|style|textarea|title)$/i, Vu = (t) => (e, ...s) => ({ _$litType$: t, strings: e, values: s }), ZE = Vu(1), XE = Vu(2), qr = Symbol.for("lit-noChange"), ze = Symbol.for("lit-nothing"), ul = /* @__PURE__ */ new WeakMap(), Hs = Qs.createTreeWalker(Qs, 129);
|
12092
12093
|
function Ku(t, e) {
|
12093
12094
|
if (!aa(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
12094
12095
|
return nl !== void 0 ? nl.createHTML(e) : e;
|
@@ -12349,7 +12350,7 @@ const ao = Ks.litElementPolyfillSupport;
|
|
12349
12350
|
ao == null || ao({ LitElement: ln });
|
12350
12351
|
(Ks.litElementVersions ?? (Ks.litElementVersions = [])).push("4.2.0");
|
12351
12352
|
let bi, Os, Ts;
|
12352
|
-
function
|
12353
|
+
function QE(t, e) {
|
12353
12354
|
bi = document.createElement("style"), Os = document.createElement("style"), Ts = document.createElement("style"), bi.textContent = $r(t).core.cssText, Os.textContent = $r(t).dark.cssText, Ts.textContent = $r(t).light.cssText, document.head.appendChild(bi), document.head.appendChild(Os), document.head.appendChild(Ts), Gu(e);
|
12354
12355
|
}
|
12355
12356
|
function Gu(t) {
|
@@ -13058,7 +13059,7 @@ function $r(t) {
|
|
13058
13059
|
`
|
13059
13060
|
};
|
13060
13061
|
}
|
13061
|
-
const
|
13062
|
+
const e1 = kr`
|
13062
13063
|
*,
|
13063
13064
|
*::after,
|
13064
13065
|
*::before,
|
@@ -13074,7 +13075,7 @@ const QE = kr`
|
|
13074
13075
|
font-family: var(--wui-font-family);
|
13075
13076
|
backface-visibility: hidden;
|
13076
13077
|
}
|
13077
|
-
`,
|
13078
|
+
`, t1 = kr`
|
13078
13079
|
button,
|
13079
13080
|
a {
|
13080
13081
|
cursor: pointer;
|
@@ -13129,7 +13130,7 @@ const QE = kr`
|
|
13129
13130
|
outline: none;
|
13130
13131
|
appearance: none;
|
13131
13132
|
}
|
13132
|
-
`,
|
13133
|
+
`, s1 = kr`
|
13133
13134
|
.wui-color-inherit {
|
13134
13135
|
color: var(--wui-color-inherit);
|
13135
13136
|
}
|
@@ -14902,7 +14903,7 @@ class Yu extends NE {
|
|
14902
14903
|
}
|
14903
14904
|
async injectModalUi() {
|
14904
14905
|
if (!pl && Z.isClient()) {
|
14905
|
-
if (await import("./basic-
|
14906
|
+
if (await import("./basic-DlZzE8fW.js"), await import("./w3m-modal-B4ljhCgE.js"), !document.querySelector("w3m-modal")) {
|
14906
14907
|
const s = document.createElement("w3m-modal");
|
14907
14908
|
!O.state.disableAppend && !O.state.enableEmbedded && document.body.insertAdjacentElement("beforeend", s);
|
14908
14909
|
}
|
@@ -14918,7 +14919,7 @@ function SE(t) {
|
|
14918
14919
|
sdkVersion: `html-core-${_E}`
|
14919
14920
|
});
|
14920
14921
|
}
|
14921
|
-
const
|
14922
|
+
const r1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
14922
14923
|
__proto__: null,
|
14923
14924
|
AppKit: Yu,
|
14924
14925
|
createAppKit: SE
|
@@ -14930,7 +14931,7 @@ export {
|
|
14930
14931
|
jo as D,
|
14931
14932
|
Te as E,
|
14932
14933
|
qr as F,
|
14933
|
-
|
14934
|
+
r1 as G,
|
14934
14935
|
He as M,
|
14935
14936
|
O,
|
14936
14937
|
ie as R,
|
@@ -14941,7 +14942,7 @@ export {
|
|
14941
14942
|
Z as b,
|
14942
14943
|
an as c,
|
14943
14944
|
Cl as d,
|
14944
|
-
|
14945
|
+
t1 as e,
|
14945
14946
|
Y as f,
|
14946
14947
|
z as g,
|
14947
14948
|
p as h,
|
@@ -14949,18 +14950,18 @@ export {
|
|
14949
14950
|
Lt as j,
|
14950
14951
|
Mt as k,
|
14951
14952
|
Ce as l,
|
14952
|
-
|
14953
|
+
XE as m,
|
14953
14954
|
ze as n,
|
14954
|
-
|
14955
|
+
s1 as o,
|
14955
14956
|
Pe as p,
|
14956
14957
|
tt as q,
|
14957
|
-
|
14958
|
+
e1 as r,
|
14958
14959
|
st as s,
|
14959
14960
|
gi as t,
|
14960
14961
|
Fs as u,
|
14961
14962
|
eE as v,
|
14962
14963
|
It as w,
|
14963
|
-
|
14964
|
+
ZE as x,
|
14964
14965
|
W as y,
|
14965
|
-
|
14966
|
+
QE as z
|
14966
14967
|
};
|