@blockend/widget 1.0.41 → 1.0.42
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-QrZ7pQLj.js → AllRoutes-DZD7D5-7.js} +9 -9
- package/dist/{Box-DSFgexHP.js → Box-Dzh_WtCl.js} +12 -12
- package/dist/{EstGas-Cfyys8c-.js → EstGas-BsHGw6jd.js} +7 -7
- package/dist/{Grow-5d7ST43Z.js → Grow-iau12ci1.js} +2 -2
- package/dist/{InputComp-CnUyfHBk.js → InputComp-BgwhfRJo.js} +11 -11
- package/dist/{LoadRoute-BcCbw9It.js → LoadRoute-FRPd_uiC.js} +4 -4
- package/dist/{QuotesProgress-DzZhqliF.js → QuotesProgress-DShC8Cqo.js} +1 -1
- package/dist/{SwapAsset-D5NIoW3H.js → SwapAsset-Dgs7iZyA.js} +1 -1
- package/dist/{Tooltip-DX--M-2s.js → Tooltip-DCX9lYmC.js} +3 -3
- package/dist/{TxnButton-oruKvtpk.js → TxnButton-DRdcLQmQ.js} +40 -39
- package/dist/{add-BBfsffzS.js → add-DDtmtPvo.js} +1 -1
- package/dist/{all-wallets-GSM-S2EY.js → all-wallets-bxuatxbR.js} +1 -1
- package/dist/{app-store-DeN1wZ28.js → app-store-BqgLQQ93.js} +1 -1
- package/dist/{apple-f0rhDBWf.js → apple-CJsdxjoW.js} +1 -1
- package/dist/{arrow-bottom-ClXTWJiE.js → arrow-bottom-CCyYBkBK.js} +1 -1
- package/dist/{arrow-bottom-circle-B2bkO_jM.js → arrow-bottom-circle-TODM2wkv.js} +1 -1
- package/dist/{arrow-left-D5fs189Z.js → arrow-left-CKLaqeSe.js} +1 -1
- package/dist/{arrow-right-CZH_01OV.js → arrow-right-CIOAHh8U.js} +1 -1
- package/dist/{arrow-top-DOKGpBV5.js → arrow-top-C4UsdxAE.js} +1 -1
- package/dist/{bank-Ci1bIrxU.js → bank-BYJPgsE0.js} +1 -1
- package/dist/{basic-CBd897q3.js → basic-lq14gOxp.js} +3 -3
- package/dist/{browser-DPEFcFPn.js → browser-IKcrlTkv.js} +1 -1
- package/dist/{card-BrTdcKSB.js → card-BD5lr4mZ.js} +1 -1
- package/dist/{checkmark-bold-UKTXTe3X.js → checkmark-bold-DPFamGxu.js} +1 -1
- package/dist/{checkmark-B_2wOwp3.js → checkmark-easEA7tu.js} +1 -1
- package/dist/{chevron-bottom-C4i9UknS.js → chevron-bottom-D1DtVTxR.js} +1 -1
- package/dist/{chevron-left-CEQSGR4I.js → chevron-left-BECE6BGO.js} +1 -1
- package/dist/{chevron-right-DPaIl5bS.js → chevron-right-BqQfDgc0.js} +1 -1
- package/dist/{chevron-top-EO3i_g8u.js → chevron-top-C9W1eUML.js} +1 -1
- package/dist/{chrome-store-WaI848dE.js → chrome-store-BkDKfGoT.js} +1 -1
- package/dist/{clock-D6S6VuYv.js → clock-DNIdQSFa.js} +1 -1
- package/dist/{close-Dyuh-pfe.js → close-pzcuYLWf.js} +1 -1
- package/dist/{coinPlaceholder-DPiN3u1C.js → coinPlaceholder-DQ0W26Oo.js} +1 -1
- package/dist/{compass-Caeab2lN.js → compass-DJY4sLHr.js} +1 -1
- package/dist/{copy-CXjVowLP.js → copy-m5YiPsf9.js} +1 -1
- package/dist/{core-D4HnN6eG.js → core-BI7GlSQQ.js} +3 -3
- package/dist/{cursor-BiavFYeB.js → cursor-Ddz0gQ35.js} +1 -1
- package/dist/{cursor-transparent-C-o5nPnW.js → cursor-transparent-B5zAQBSe.js} +1 -1
- package/dist/{desktop-cftg6BMC.js → desktop-CmQdXq76.js} +1 -1
- package/dist/{disconnect-CBVHZmy5.js → disconnect-ZM9xlXig.js} +1 -1
- package/dist/{discord-DL5vSQIe.js → discord-HNXUhlnS.js} +1 -1
- package/dist/{down-CSXSe02P.js → down-CjLDSeju.js} +2 -2
- package/dist/{etherscan-B0ZqMrl5.js → etherscan-Ce3s4U_7.js} +1 -1
- package/dist/{exclamation-triangle-DMJwxev5.js → exclamation-triangle-n_cohfRW.js} +1 -1
- package/dist/{extension-Cw3kEP0F.js → extension-D-WWZ6e4.js} +1 -1
- package/dist/{external-link-D2k06cXi.js → external-link-aJgbTjkL.js} +1 -1
- package/dist/{facebook-BFQhh4JT.js → facebook-0rRa1zVC.js} +1 -1
- package/dist/{farcaster-CTkrWMPV.js → farcaster-DRRFmE1F.js} +1 -1
- package/dist/{filters-BNRidIfb.js → filters-BDLqhPOh.js} +1 -1
- package/dist/{getChainIds-dbxa6OPC.js → getChainIds-C2FxTGbk.js} +2 -2
- package/dist/getCosmosAddress-ACoKmza-.js +11859 -0
- package/dist/{github-BSvlr7uB.js → github-Obng17RA.js} +1 -1
- package/dist/{google-b7Ou74GO.js → google-BIXlIx3J.js} +1 -1
- package/dist/{hamburger-adHT75Tv.js → hamburger-CUt6_9MP.js} +5 -5
- package/dist/{help-circle-DVVgUa0A.js → help-circle-CB9MlFPx.js} +1 -1
- package/dist/{id-C1VTodFX.js → id-CSF1vlyc.js} +1 -1
- package/dist/{image-oiGiQrkv.js → image-Cq7nyoSF.js} +1 -1
- package/dist/{index-CxnNzJCI.js → index-BFuPcLQl.js} +7 -7
- package/dist/{index-Qvs-AUhn.js → index-Bl9Ckfvc.js} +4 -4
- package/dist/{index-DZx5rYk6.js → index-ByxiUEcM.js} +1 -1
- package/dist/{index-D35_epCA.js → index-CA-JZieb.js} +1 -1
- package/dist/index-CBTT9uoz.js +16939 -0
- package/dist/{index-Dtl4ODqT.js → index-DBYtMVsX.js} +4 -4
- package/dist/{index-BDSA6Vmh.js → index-DHRd9r4E.js} +78 -78
- package/dist/{index-vsTy-v7A.js → index-DitHVC8k.js} +11 -11
- package/dist/{index-uv8Q24to.js → index-LcA9mS3g.js} +10 -10
- package/dist/{index-Cce3Jr06.js → index-aNL4las-.js} +5 -5
- package/dist/{index-DFOB2nyL.js → index-zQJSlLTK.js} +2 -2
- package/dist/{index.es-ufjHqxj5.js → index.es-4EAPyRWu.js} +1 -1
- package/dist/{index.es-oVEjdXD9.js → index.es-BbqQAF75.js} +2 -2
- package/dist/index.es.js +1 -1
- package/dist/{info-CVKjuEYq.js → info-DTwm7mjV.js} +1 -1
- package/dist/{info-circle-D_MX3SA4.js → info-circle-BgP1cn6l.js} +1 -1
- package/dist/{lightbulb-xAPRcMv4.js → lightbulb-cdKRqxNY.js} +1 -1
- package/dist/{mail-D4ovKCpV.js → mail-BYrqL901.js} +1 -1
- package/dist/{mobile-BW9ciV-w.js → mobile-C38shLyr.js} +1 -1
- package/dist/{more-DVJG6d4w.js → more-gvTAE7al.js} +1 -1
- package/dist/{network-placeholder-BRna6-nm.js → network-placeholder-B0yFXA2M.js} +1 -1
- package/dist/{nftPlaceholder-uwZhnmIc.js → nftPlaceholder-kmLC1995.js} +1 -1
- package/dist/{off-DFC1yPv3.js → off-D0x4UmXZ.js} +1 -1
- package/dist/{play-store-Byn_mMq_.js → play-store-RbbrnDa4.js} +1 -1
- package/dist/{plus-zUlg00_a.js → plus-Dxwb-0cG.js} +1 -1
- package/dist/{qr-code-DDbZcl7e.js → qr-code-GqZ3Mb5_.js} +1 -1
- package/dist/{recycle-horizontal-ML8sklv5.js → recycle-horizontal-BYh8pAZF.js} +1 -1
- package/dist/{refresh-iUqYawLt.js → refresh-C4zqMfSb.js} +1 -1
- package/dist/{reown-logo-BMLlwYGo.js → reown-logo-91rFej6P.js} +1 -1
- package/dist/{search-htBtAh5x.js → search-Du4hJfnF.js} +1 -1
- package/dist/{send-5NnEyeqk.js → send-D8srhqkz.js} +1 -1
- package/dist/{swapHorizontal-C0RjVePv.js → swapHorizontal-BLYPf5tb.js} +1 -1
- package/dist/{swapHorizontalBold-oabGP6AT.js → swapHorizontalBold-C67TzlMe.js} +1 -1
- package/dist/{swapHorizontalMedium-BPycpUZj.js → swapHorizontalMedium-CzpKc1YY.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-BrWMh09O.js → swapHorizontalRoundedBold-DLunu-y4.js} +1 -1
- package/dist/{swapVertical-Dab90B-o.js → swapVertical-DLqVANj3.js} +1 -1
- package/dist/{telegram-BTgVizd-.js → telegram-C99wI1J_.js} +1 -1
- package/dist/{three-dots-BWl-R2fX.js → three-dots-DpwwokeP.js} +1 -1
- package/dist/{twitch-BBSyKIRq.js → twitch-K-Z_CxH8.js} +1 -1
- package/dist/{twitterIcon-DJa7a5mH.js → twitterIcon-PaM7mQWK.js} +1 -1
- package/dist/{unsupportedProp-DFyakPn7.js → unsupportedProp-X0IfYgnd.js} +1 -1
- package/dist/{useRegisterError-BIERR-27.js → useRegisterError-Czs99ziS.js} +1 -1
- package/dist/{verify-CzlzFBIk.js → verify-S_ANES9T.js} +1 -1
- package/dist/{verify-filled-DhPXgKCQ.js → verify-filled-CH-zFriN.js} +1 -1
- package/dist/{w3m-modal-Chxai-K2.js → w3m-modal-PmO-JR-7.js} +2 -2
- package/dist/{wallet-DSL4tZXp.js → wallet-DMWvMKpU.js} +1 -1
- package/dist/{wallet-placeholder-gRdwNEYW.js → wallet-placeholder-WaUzlVmk.js} +1 -1
- package/dist/{walletconnect-DorsPqE9.js → walletconnect-DNh4G8zR.js} +1 -1
- package/dist/{warning-circle-Cm3eg6Rl.js → warning-circle-BHUoOEkq.js} +1 -1
- package/dist/{x-D9vS5YT4.js → x-y9xMGpeI.js} +1 -1
- package/package.json +1 -1
- package/dist/ccip-DvQaBUxu.js +0 -228
- package/dist/getCosmosAddress-VGyJ48hD.js +0 -9565
- package/dist/index-B9Yj3lNG.js +0 -30399
@@ -3,16 +3,16 @@ import * as v from "react";
|
|
3
3
|
import De, { useState as J, useEffect as Fe } from "react";
|
4
4
|
import { S as Pe, a as _e } from "./sortDown-CjBaDQTU.js";
|
5
5
|
import { t as B } from "./truncate-D9t92mVX.js";
|
6
|
-
import { a as kt, m as Ne, j as Ut, l as Ue, o as Rt, r as Dt, i as Ce, c as ue, f as ve } from "./useRegisterError-
|
7
|
-
import { b as Te, g as Ie, i as Ae, _ as pe, d as k, e as oe, s as ce, f as at, h as Ee, p as Z, P as r, v as Ft, u as se } from "./index-
|
6
|
+
import { a as kt, m as Ne, j as Ut, l as Ue, o as Rt, r as Dt, i as Ce, c as ue, f as ve } from "./useRegisterError-Czs99ziS.js";
|
7
|
+
import { b as Te, g as Ie, i as Ae, _ as pe, d as k, e as oe, s as ce, f as at, h as Ee, p as Z, P as r, v as Ft, u as se } from "./index-CBTT9uoz.js";
|
8
8
|
import { S as We, C as je, G as Ve } from "./clockIcon-C2W5xvyt.js";
|
9
|
-
import { T as Pt } from "./Tooltip-
|
10
|
-
import { O as we } from "./index-
|
11
|
-
import { B as _t } from "./Box-
|
12
|
-
import { c as ct, d as it, r as At } from "./index-
|
13
|
-
import { b as dt } from "./Grow-
|
14
|
-
import { B as bt, o as ut } from "./getChainIds-
|
15
|
-
import { u as Wt } from "./unsupportedProp-
|
9
|
+
import { T as Pt } from "./Tooltip-DCX9lYmC.js";
|
10
|
+
import { O as we } from "./index-ByxiUEcM.js";
|
11
|
+
import { B as _t } from "./Box-Dzh_WtCl.js";
|
12
|
+
import { c as ct, d as it, r as At } from "./index-CA-JZieb.js";
|
13
|
+
import { b as dt } from "./Grow-iau12ci1.js";
|
14
|
+
import { B as bt, o as ut } from "./getChainIds-C2FxTGbk.js";
|
15
|
+
import { u as Wt } from "./unsupportedProp-X0IfYgnd.js";
|
16
16
|
let be;
|
17
17
|
function wt() {
|
18
18
|
if (be)
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
import * as
|
3
|
-
import { jsx as
|
1
|
+
import { a7 as i, a8 as h, y as T, a4 as y, _ as N, d as B, e as C, b as _, a9 as b, T as P, aa as g, p as j, P as e } from "./index-CBTT9uoz.js";
|
2
|
+
import * as v from "react";
|
3
|
+
import { jsx as E } from "react/jsx-runtime";
|
4
4
|
const O = ["className", "component"];
|
5
|
-
function
|
5
|
+
function I(c = {}) {
|
6
6
|
const {
|
7
7
|
themeId: t,
|
8
8
|
defaultTheme: m,
|
@@ -11,12 +11,12 @@ function F(c = {}) {
|
|
11
11
|
} = c, l = i("div", {
|
12
12
|
shouldForwardProp: (o) => o !== "theme" && o !== "sx" && o !== "as"
|
13
13
|
})(h);
|
14
|
-
return /* @__PURE__ */
|
14
|
+
return /* @__PURE__ */ v.forwardRef(function(d, x) {
|
15
15
|
const s = T(m), r = y(d), {
|
16
16
|
className: p,
|
17
17
|
component: u = "div"
|
18
|
-
} = r, f =
|
19
|
-
return /* @__PURE__ */
|
18
|
+
} = r, f = N(r, O);
|
19
|
+
return /* @__PURE__ */ E(l, B({
|
20
20
|
as: u,
|
21
21
|
ref: x,
|
22
22
|
className: C(p, n ? n(a) : a),
|
@@ -24,13 +24,13 @@ function F(c = {}) {
|
|
24
24
|
}, f));
|
25
25
|
});
|
26
26
|
}
|
27
|
-
const
|
27
|
+
const M = _("MuiBox", ["root"]), R = g(), S = I({
|
28
28
|
themeId: P,
|
29
|
-
defaultTheme:
|
30
|
-
defaultClassName:
|
29
|
+
defaultTheme: R,
|
30
|
+
defaultClassName: M.root,
|
31
31
|
generateClassName: b.generate
|
32
32
|
});
|
33
|
-
|
33
|
+
j.env.NODE_ENV !== "production" && (S.propTypes = {
|
34
34
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
35
35
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
36
36
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
@@ -50,5 +50,5 @@ g.env.NODE_ENV !== "production" && (R.propTypes = {
|
|
50
50
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
51
51
|
});
|
52
52
|
export {
|
53
|
-
|
53
|
+
S as B
|
54
54
|
};
|
@@ -1,22 +1,22 @@
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
2
|
-
import { m as getDefaultExportFromCjs, u as useStore, p as process$1,
|
3
|
-
import { O as OutputValueComp } from "./index-
|
2
|
+
import { m as getDefaultExportFromCjs, u as useStore, p as process$1, a as useWallet, k as commonjsGlobal, l as lodashExports, S as Skeleton, a2 as useBlockendEvents, a3 as blockendEvents, c as controllers } from "./index-CBTT9uoz.js";
|
3
|
+
import { O as OutputValueComp } from "./index-ByxiUEcM.js";
|
4
4
|
import React__default, { useState, createContext, createElement, useContext, useRef, useEffect, useMemo } from "react";
|
5
|
-
import { W as WalletIcon, C as CircularProgress, B as BackButton, L as Lottie$1, i as images, u as useWalletDetails, f as formatNumber, c as fixString, d as useRegisterError, F as FormatCryptoValue } from "./useRegisterError-
|
5
|
+
import { W as WalletIcon, C as CircularProgress, B as BackButton, L as Lottie$1, i as images, u as useWalletDetails, f as formatNumber, c as fixString, d as useRegisterError, F as FormatCryptoValue } from "./useRegisterError-Czs99ziS.js";
|
6
6
|
import { useMutation, useQuery } from "@tanstack/react-query";
|
7
7
|
import { useAccount, useWalletClient, useSendTransaction, useSignTypedData, useSwitchChain } from "wagmi";
|
8
8
|
import "viem";
|
9
9
|
import { S as ShareIcon } from "./shareicon-CG3v7iKI.js";
|
10
|
-
import { T as Tooltip } from "./Tooltip-
|
11
|
-
import { L as Lottie } from "./index.es-
|
10
|
+
import { T as Tooltip } from "./Tooltip-DCX9lYmC.js";
|
11
|
+
import { L as Lottie } from "./index.es-4EAPyRWu.js";
|
12
12
|
import { useDynamicContext, useSwitchNetwork } from "@dynamic-labs/sdk-react-core";
|
13
|
-
import { V as VersionedTransaction, P as PublicKey,
|
13
|
+
import { b as bufferExports, V as VersionedTransaction, P as PublicKey, a as buildExports, u as useRoutes, g as getCosmosAddress } from "./getCosmosAddress-ACoKmza-.js";
|
14
14
|
import { B as Buffer } from "./index-DTish3yr.js";
|
15
15
|
import { useCosmWasmSigningClient, useStargateSigningClient, useAccount as useAccount$1 } from "graz";
|
16
16
|
import "@cosmjs/proto-signing";
|
17
17
|
import { calculateFee, GasPrice } from "@cosmjs/stargate";
|
18
18
|
import "@cosmjs/cosmwasm-stargate";
|
19
|
-
import { l as libExports, S as Spinner, D as Down } from "./down-
|
19
|
+
import { l as libExports, S as Spinner, D as Down } from "./down-CjLDSeju.js";
|
20
20
|
import { v as validError } from "./validError-CDlJpg_f.js";
|
21
21
|
import { e as ethertousd } from "./ethertousd-CC_ezooz.js";
|
22
22
|
var eventemitter3 = { exports: {} }, hasRequiredEventemitter3;
|
@@ -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, a6 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-CBTT9uoz.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-Czs99ziS.js";
|
6
6
|
let nt = 0;
|
7
7
|
function Jt(e) {
|
8
8
|
const [t, r] = D.useState(e), n = e || t;
|
@@ -1,20 +1,20 @@
|
|
1
1
|
import { jsxs as b, jsx as t, Fragment as k } from "react/jsx-runtime";
|
2
|
-
import { u as
|
2
|
+
import { u as n, S as W } from "./index-CBTT9uoz.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-Czs99ziS.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-BFuPcLQl.js";
|
8
8
|
function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBalanceLoading: f }) {
|
9
9
|
var d, o;
|
10
|
-
const
|
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;
|
11
11
|
A({
|
12
12
|
address: N,
|
13
13
|
token: B((e == null ? void 0 : e.address) || ""),
|
14
14
|
chainId: Number((r == null ? void 0 : r.chainId) || 0),
|
15
15
|
enabled: (r == null ? void 0 : r.networkType) == "evm"
|
16
16
|
});
|
17
|
-
const
|
17
|
+
const c = x(), i = h;
|
18
18
|
return /* @__PURE__ */ b("div", { className: " bw-mb-5 bw-mt-4", children: [
|
19
19
|
/* @__PURE__ */ b("p", { className: "bw-text-sm bw-text-left bw-font-medium bw-mb-1 bw-text-text-secondary", children: [
|
20
20
|
"Give ",
|
@@ -24,7 +24,7 @@ function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBala
|
|
24
24
|
"div",
|
25
25
|
{
|
26
26
|
style: {
|
27
|
-
boxShadow:
|
27
|
+
boxShadow: s && s.customTheme && ((o = (d = s.customTheme) == null ? void 0 : d.shadow) == null ? void 0 : o.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
28
28
|
},
|
29
29
|
className: "bw-w-full bw-h-[80px] bw-flex bw-gap-x-1 bw-items-center bw-px-2 bw-bg-background-container bw-rounded-md bw-border bw-border-border-primary",
|
30
30
|
children: [
|
@@ -35,10 +35,10 @@ function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBala
|
|
35
35
|
"div",
|
36
36
|
{
|
37
37
|
onClick: () => {
|
38
|
-
|
38
|
+
c.current.focus();
|
39
39
|
},
|
40
40
|
className: " ",
|
41
|
-
children: /* @__PURE__ */ b("div", { children: [
|
41
|
+
children: /* @__PURE__ */ b("div", { className: "bw-text-left", children: [
|
42
42
|
/* @__PURE__ */ b("span", { className: "bw-invisible bw-absolute", ref: v, children: [
|
43
43
|
w,
|
44
44
|
"0"
|
@@ -46,7 +46,7 @@ function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBala
|
|
46
46
|
/* @__PURE__ */ t(
|
47
47
|
"input",
|
48
48
|
{
|
49
|
-
ref:
|
49
|
+
ref: c,
|
50
50
|
pattern: "[0-9]*",
|
51
51
|
inputMode: "decimal",
|
52
52
|
autoFocus: !0,
|
@@ -72,7 +72,7 @@ function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBala
|
|
72
72
|
/* @__PURE__ */ t("p", { className: "bw-text-xs bw-font-medium bw-text-text-secondary", children: /* @__PURE__ */ t(
|
73
73
|
F,
|
74
74
|
{
|
75
|
-
value: p(
|
75
|
+
value: p(i),
|
76
76
|
options: {
|
77
77
|
maxDecimals: 10
|
78
78
|
}
|
@@ -83,7 +83,7 @@ function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBala
|
|
83
83
|
{
|
84
84
|
className: "bw-text-xs bw-font-normal bw-min-w-[37px] bw-h-[18px] bw-rounded-[4px] bw-px-1 bw-border bw-border-border-primary bw-text-text-secondary",
|
85
85
|
onClick: () => {
|
86
|
-
l(u(p(
|
86
|
+
l(u(p(i), 10));
|
87
87
|
},
|
88
88
|
children: "MAX"
|
89
89
|
}
|
@@ -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-CBTT9uoz.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-CjLDSeju.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-ByxiUEcM.js";
|
10
|
+
import { z as ae, F as J, i as oe } from "./useRegisterError-Czs99ziS.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-CBTT9uoz.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-CBTT9uoz.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-iau12ci1.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-Czs99ziS.js";
|
6
6
|
function Lo(r) {
|
7
7
|
return To("MuiTooltip", r);
|
8
8
|
}
|
@@ -1,18 +1,18 @@
|
|
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
|
4
|
-
import { a as we, u as T,
|
3
|
+
import { useSwitchNetwork as je, useDynamicContext as Ae, useIsLoggedIn as ve } from "@dynamic-labs/sdk-react-core";
|
4
|
+
import { a as we, u as T, a2 as ze, a3 as Me } from "./index-CBTT9uoz.js";
|
5
5
|
import { s as f } from "./WidgetForm.module-QHJ0-m5f.js";
|
6
|
-
import { useAccount as
|
7
|
-
import { u as ae, d as
|
8
|
-
import "./getCosmosAddress-
|
9
|
-
import { v as
|
10
|
-
import { u as
|
11
|
-
function
|
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-Czs99ziS.js";
|
8
|
+
import "./getCosmosAddress-ACoKmza-.js";
|
9
|
+
import { v as He } from "./validError-CDlJpg_f.js";
|
10
|
+
import { u as Je, p as Ke } from "./index-BFuPcLQl.js";
|
11
|
+
function Qe(n) {
|
12
12
|
const { wallet: h, address: g } = we(), [E, S] = q(0);
|
13
13
|
async function m() {
|
14
|
-
const
|
15
|
-
S(
|
14
|
+
const A = await window.tronWeb.trx.getBalance(g);
|
15
|
+
S(A / Math.pow(10, 6));
|
16
16
|
}
|
17
17
|
return P(() => {
|
18
18
|
g && (n == null ? void 0 : n.networkType) === "tron" && m();
|
@@ -22,48 +22,49 @@ function j(n) {
|
|
22
22
|
if (n.key.toLowerCase() === "backpacksol")
|
23
23
|
return !0;
|
24
24
|
}
|
25
|
-
function
|
25
|
+
function nt({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowWallet: S, setConnectWalletField: m, handleConfirmClose: A, balanceSol: L, getCoinBalance: be, handleSuccess: ue }) {
|
26
26
|
var Y, Z, W, k, D, C, ee, te, se, re, ce, ne, ie;
|
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 } =
|
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:
|
29
|
+
}), { connected: H, address: J, disconnect: Ue } = we(), v = T((s) => s.toDisconnect), d = T((s) => s.customWallet), { getWallet: Ie } = ae({ chainData: e }), he = xe(e, r), [z, 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 = ze(), { switchChain: Xe, switchChainAsync: fe, isPending: Be } = Ve({
|
30
30
|
chainId: Number((e == null ? void 0 : e.chainId) || "0"),
|
31
|
+
config: pe,
|
31
32
|
throwForSwitchChainNotSupported: !0,
|
32
33
|
onError(s) {
|
33
|
-
|
34
|
+
He(s.message) && me({ module: "wallet-error-switch", error: s.message });
|
34
35
|
}
|
35
|
-
}), y =
|
36
|
+
}), y = qe({
|
36
37
|
address: _,
|
37
38
|
token: "",
|
38
39
|
chainId: Number((e == null ? void 0 : e.chainId) || 0),
|
39
40
|
enabled: (e == null ? void 0 : e.networkType) == "evm"
|
40
|
-
}), Q =
|
41
|
+
}), Q = _e(be || 0, 11), [l, a] = q({
|
41
42
|
text: "",
|
42
43
|
isGradient: !1,
|
43
44
|
color: "bw-bg-border-primary"
|
44
45
|
});
|
45
|
-
async function
|
46
|
+
async function Ge() {
|
46
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 {
|
50
51
|
}
|
51
|
-
else if ((e == null ? void 0 : e.networkType) === "sol" &&
|
52
|
+
else if ((e == null ? void 0 : e.networkType) === "sol" && z !== ((e == null ? void 0 : e.chainId) == "eclipse-svm" ? "201" : "101"))
|
52
53
|
try {
|
53
|
-
let s = await
|
54
|
+
let s = await ge({ wallet: b, network: e.chainId == "eclipse-svm" ? "201" : "101" });
|
54
55
|
U();
|
55
56
|
} catch {
|
56
57
|
}
|
57
58
|
else
|
58
|
-
|
59
|
+
Ne.emit(Me.TransactionStarted, {
|
59
60
|
...n
|
60
|
-
}), B && (ue(!1),
|
61
|
+
}), B && (ue(!1), A());
|
61
62
|
}
|
62
|
-
const { primaryWallet: b } =
|
63
|
+
const { primaryWallet: b } = Ae(), V = ve(), 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 () => {
|
63
64
|
if (b)
|
64
65
|
try {
|
65
66
|
const s = await b.getNetwork();
|
66
|
-
|
67
|
+
Te(s);
|
67
68
|
} catch {
|
68
69
|
}
|
69
70
|
else
|
@@ -76,15 +77,15 @@ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
76
77
|
let p = s / Math.pow(10, u);
|
77
78
|
return p < 1e-6 ? p.toFixed(20) : p;
|
78
79
|
}
|
79
|
-
function
|
80
|
+
function Se() {
|
80
81
|
var s;
|
81
82
|
return Number(((s = y == null ? void 0 : y.data) == null ? void 0 : s.formatted) || 0);
|
82
83
|
}
|
83
|
-
function
|
84
|
+
function $e(s) {
|
84
85
|
var u;
|
85
|
-
return Number(((u = K[
|
86
|
+
return Number(((u = K[Ke(s.address)]) == null ? void 0 : u.amount) || 0) / Math.pow(10, s.decimals);
|
86
87
|
}
|
87
|
-
function
|
88
|
+
function Ee() {
|
88
89
|
var $;
|
89
90
|
let s = {};
|
90
91
|
function u(t, c) {
|
@@ -93,7 +94,7 @@ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
93
94
|
amountInToken: c.amountInToken,
|
94
95
|
gas: X(c.amountInToken, t == null ? void 0 : t.decimals),
|
95
96
|
token: t,
|
96
|
-
nativeBal: (d == null ? void 0 : d.length) > 30 && !
|
97
|
+
nativeBal: (d == null ? void 0 : d.length) > 30 && !v && (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(),
|
97
98
|
isFromChain: (e == null ? void 0 : e.chainId) === (t == null ? void 0 : t.chainId.toString()),
|
98
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
|
99
100
|
};
|
@@ -165,11 +166,11 @@ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
165
166
|
text: "From and To asset can not be the same!",
|
166
167
|
isGradient: !1,
|
167
168
|
color: "bw-bg-border-primary"
|
168
|
-
}) : (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") !== z && (e == null ? void 0 : e.networkType) === "sol" ? a({
|
169
170
|
text: `Switch Chain to ${e.chain}`,
|
170
171
|
isGradient: !0,
|
171
172
|
color: o || f.gradientbutton
|
172
|
-
}) :
|
173
|
+
}) : Ee() : a({
|
173
174
|
text: "No Routes Found",
|
174
175
|
isGradient: !1,
|
175
176
|
color: "bw-bg-border-primary"
|
@@ -178,16 +179,16 @@ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
178
179
|
isGradient: !0,
|
179
180
|
color: o || f.gradientbutton
|
180
181
|
});
|
181
|
-
}, [
|
182
|
-
let
|
183
|
-
function
|
182
|
+
}, [z, 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
|
+
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
|
+
function Fe() {
|
184
185
|
var s, u, p, $;
|
185
|
-
return B ? h.isFetching ? !0 : l.text.length ? !
|
186
|
+
return B ? h.isFetching ? !0 : l.text.length ? !Le.includes((s = l.text) == null ? void 0 : s.toLowerCase()) : !(($ = (p = (u = h.data) == null ? void 0 : u.data) == null ? void 0 : p.quotes) != null && $.length) : !1;
|
186
187
|
}
|
187
188
|
return /* @__PURE__ */ N(
|
188
189
|
"button",
|
189
190
|
{
|
190
|
-
disabled:
|
191
|
+
disabled: Fe(),
|
191
192
|
style: l != null && l.isGradient && O && R ? {
|
192
193
|
...x == null ? void 0 : x.gradientStyle,
|
193
194
|
boxShadow: x && x.customTheme && ((ce = (re = x.customTheme) == null ? void 0 : re.shadow) == null ? void 0 : ce.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
@@ -196,12 +197,12 @@ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
196
197
|
},
|
197
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"}`,
|
198
199
|
onClick: () => {
|
199
|
-
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) && !v ? 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 || v ? 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();
|
200
201
|
},
|
201
|
-
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 ?
|
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" }) }) }) })
|
202
203
|
}
|
203
204
|
);
|
204
205
|
}
|
205
206
|
export {
|
206
|
-
|
207
|
+
nt as default
|
207
208
|
};
|
@@ -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-BI7GlSQQ.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-DHRd9r4E.js";
|
3
|
+
import { m as Wn } from "./index-CBTT9uoz.js";
|
4
4
|
const Sn = D`
|
5
5
|
:host {
|
6
6
|
position: relative;
|