@initia/interwovenkit-react 2.2.5 → 2.3.0
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/index.cjs +1 -1
- package/dist/index.js +438 -432
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -69,7 +69,7 @@ const On = 1.4, Pd = 1.05, Dd = {
|
|
|
69
69
|
vipUrl: "https://vip-api.initia.xyz",
|
|
70
70
|
civitiaUrl: "https://api.civitia.org",
|
|
71
71
|
theme: "dark"
|
|
72
|
-
},
|
|
72
|
+
}, YC = {
|
|
73
73
|
defaultChainId: "initiation-2",
|
|
74
74
|
registryUrl: "https://registry.testnet.initia.xyz",
|
|
75
75
|
routerApiUrl: "https://router-api.initiation-2.initia.xyz",
|
|
@@ -87,7 +87,7 @@ const On = 1.4, Pd = 1.05, Dd = {
|
|
|
87
87
|
name: "Socials",
|
|
88
88
|
iconUrl: "https://assets.initia.xyz/images/wallets/Privy.webp",
|
|
89
89
|
iconBackground: "#ffffff"
|
|
90
|
-
},
|
|
90
|
+
}, ZC = nl(Bs), JC = sl(Bs), rr = Ot(null);
|
|
91
91
|
function Y() {
|
|
92
92
|
const e = bt(rr);
|
|
93
93
|
if (!e) throw new Error("Check if the InterwovenKitProvider is mounted");
|
|
@@ -2512,7 +2512,13 @@ const Ue = ke("interwovenkit:skip", {
|
|
|
2512
2512
|
});
|
|
2513
2513
|
function dt() {
|
|
2514
2514
|
const { routerApiUrl: e } = Y();
|
|
2515
|
-
return S(
|
|
2515
|
+
return S(
|
|
2516
|
+
() => j.create({
|
|
2517
|
+
prefixUrl: e,
|
|
2518
|
+
headers: { "InterwovenKit-Version": "2.3.0" }
|
|
2519
|
+
}),
|
|
2520
|
+
[e]
|
|
2521
|
+
);
|
|
2516
2522
|
}
|
|
2517
2523
|
function Jr() {
|
|
2518
2524
|
const e = de();
|
|
@@ -2663,7 +2669,7 @@ function nc() {
|
|
|
2663
2669
|
document.querySelector(Yo)?.setAttribute("data-theme", e);
|
|
2664
2670
|
}, [e]), t ?? tc();
|
|
2665
2671
|
}
|
|
2666
|
-
function
|
|
2672
|
+
function XC(e) {
|
|
2667
2673
|
const t = tc(), s = document.createElement("style");
|
|
2668
2674
|
s.textContent = e, t.appendChild(s);
|
|
2669
2675
|
}
|
|
@@ -7383,36 +7389,36 @@ const S0 = "_countdown_vfms8_1", A0 = {
|
|
|
7383
7389
|
const s = e.filter((o) => o.data && o.data.grants.length > 0).map((o) => o.data);
|
|
7384
7390
|
return s.length === 0 ? /* @__PURE__ */ n(_e, { children: "No permissions found" }) : /* @__PURE__ */ n("div", { className: U0.content, children: s.map(({ chainId: o, grants: a }) => /* @__PURE__ */ n(R0, { chainId: o, grants: a }, o)) });
|
|
7385
7391
|
})() });
|
|
7386
|
-
}, V0 = "
|
|
7387
|
-
version:
|
|
7388
|
-
},
|
|
7392
|
+
}, V0 = "_version_1sf5y_1", F0 = {
|
|
7393
|
+
version: V0
|
|
7394
|
+
}, j0 = () => /* @__PURE__ */ u("aside", { className: F0.version, children: [
|
|
7389
7395
|
"v",
|
|
7390
|
-
|
|
7391
|
-
] }),
|
|
7392
|
-
link:
|
|
7393
|
-
title:
|
|
7394
|
-
subtitle:
|
|
7395
|
-
icon:
|
|
7396
|
+
"2.3.0"
|
|
7397
|
+
] }), z0 = "_link_se23z_1", K0 = "_title_se23z_17", W0 = "_subtitle_se23z_23", H0 = "_icon_se23z_30", Ss = {
|
|
7398
|
+
link: z0,
|
|
7399
|
+
title: K0,
|
|
7400
|
+
subtitle: W0,
|
|
7401
|
+
icon: H0
|
|
7396
7402
|
}, jc = ({ title: e, subtitle: t, rightSection: s, onClick: o }) => /* @__PURE__ */ u("button", { className: Ss.link, onClick: o, children: [
|
|
7397
7403
|
/* @__PURE__ */ u("div", { children: [
|
|
7398
7404
|
/* @__PURE__ */ n("p", { className: Ss.title, children: e }),
|
|
7399
7405
|
t && /* @__PURE__ */ n("p", { className: Ss.subtitle, children: t })
|
|
7400
7406
|
] }),
|
|
7401
7407
|
/* @__PURE__ */ n("div", { className: Ss.icon, children: s ?? /* @__PURE__ */ n(fa, { size: 16 }) })
|
|
7402
|
-
] }),
|
|
7408
|
+
] }), G0 = "https://export.initia.xyz/", Q0 = () => {
|
|
7403
7409
|
const e = "width=600,height=768,scrollbars=yes,resizable=yes";
|
|
7404
7410
|
return /* @__PURE__ */ n(
|
|
7405
7411
|
jc,
|
|
7406
7412
|
{
|
|
7407
7413
|
title: "Export private key",
|
|
7408
7414
|
rightSection: /* @__PURE__ */ n(st, { size: 16 }),
|
|
7409
|
-
onClick: () => window.open(
|
|
7415
|
+
onClick: () => window.open(G0, "_blank", e)
|
|
7410
7416
|
}
|
|
7411
7417
|
);
|
|
7412
|
-
},
|
|
7413
|
-
container:
|
|
7414
|
-
separator:
|
|
7415
|
-
},
|
|
7418
|
+
}, Y0 = "_container_1vxr7_1", Z0 = "_separator_1vxr7_7", Pi = {
|
|
7419
|
+
container: Y0,
|
|
7420
|
+
separator: Z0
|
|
7421
|
+
}, J0 = () => {
|
|
7416
7422
|
const e = $e(), { connector: t } = St();
|
|
7417
7423
|
return /* @__PURE__ */ n(Nt, { title: "Settings", backButton: "/", children: /* @__PURE__ */ u("div", { className: Pi.container, children: [
|
|
7418
7424
|
/* @__PURE__ */ n(
|
|
@@ -7423,27 +7429,27 @@ const S0 = "_countdown_vfms8_1", A0 = {
|
|
|
7423
7429
|
onClick: () => e("/settings/autosign")
|
|
7424
7430
|
}
|
|
7425
7431
|
),
|
|
7426
|
-
t?.id === ir && /* @__PURE__ */ n(
|
|
7432
|
+
t?.id === ir && /* @__PURE__ */ n(Q0, {}),
|
|
7427
7433
|
/* @__PURE__ */ n(qd, { className: Pi.separator }),
|
|
7428
|
-
/* @__PURE__ */ n(
|
|
7434
|
+
/* @__PURE__ */ n(j0, {})
|
|
7429
7435
|
] }) });
|
|
7430
|
-
},
|
|
7431
|
-
trigger:
|
|
7432
|
-
icon:
|
|
7433
|
-
full:
|
|
7434
|
-
triggerContent:
|
|
7435
|
-
triggerText:
|
|
7436
|
-
popoverBackdrop:
|
|
7437
|
-
popoverPositioner:
|
|
7438
|
-
popoverPopup:
|
|
7439
|
-
search:
|
|
7440
|
-
viewport:
|
|
7441
|
-
item:
|
|
7442
|
-
highlighted:
|
|
7443
|
-
active:
|
|
7444
|
-
itemContent:
|
|
7445
|
-
extra:
|
|
7446
|
-
connectedTag:
|
|
7436
|
+
}, X0 = "_trigger_1yjkd_1", ew = "_icon_1yjkd_23", tw = "_full_1yjkd_27", nw = "_triggerContent_1yjkd_32", sw = "_triggerText_1yjkd_40", ow = "_popoverBackdrop_1yjkd_51", aw = "_popoverPositioner_1yjkd_70", iw = "_popoverPopup_1yjkd_74", rw = "_search_1yjkd_99", cw = "_viewport_1yjkd_105", lw = "_item_1yjkd_111", dw = "_highlighted_1yjkd_127", uw = "_active_1yjkd_131", mw = "_itemContent_1yjkd_136", hw = "_extra_1yjkd_142", pw = "_connectedTag_1yjkd_149", ve = {
|
|
7437
|
+
trigger: X0,
|
|
7438
|
+
icon: ew,
|
|
7439
|
+
full: tw,
|
|
7440
|
+
triggerContent: nw,
|
|
7441
|
+
triggerText: sw,
|
|
7442
|
+
popoverBackdrop: ow,
|
|
7443
|
+
popoverPositioner: aw,
|
|
7444
|
+
popoverPopup: iw,
|
|
7445
|
+
search: rw,
|
|
7446
|
+
viewport: cw,
|
|
7447
|
+
item: lw,
|
|
7448
|
+
highlighted: dw,
|
|
7449
|
+
active: uw,
|
|
7450
|
+
itemContent: mw,
|
|
7451
|
+
extra: hw,
|
|
7452
|
+
connectedTag: pw
|
|
7447
7453
|
}, wo = ({ value: e, onChange: t, chainIds: s, renderExtra: o, fullWidth: a }) => {
|
|
7448
7454
|
const { defaultChainId: i } = Y(), [r, l] = F(""), [c, d] = F(!1), [m, p] = F(0), [h, _] = F(), f = je([]), g = je(null), y = de(), w = s.map((I) => y.find((v) => v.chainId === I)).filter(Boolean), b = (I) => /* @__PURE__ */ u("svg", { xmlns: "http://www.w3.org/2000/svg", width: I, height: I, viewBox: "0 0 14 14", children: [
|
|
7449
7455
|
/* @__PURE__ */ n(
|
|
@@ -7589,18 +7595,18 @@ const S0 = "_countdown_vfms8_1", A0 = {
|
|
|
7589
7595
|
)
|
|
7590
7596
|
] })
|
|
7591
7597
|
] });
|
|
7592
|
-
},
|
|
7593
|
-
container:
|
|
7594
|
-
controls:
|
|
7595
|
-
search:
|
|
7596
|
-
},
|
|
7597
|
-
Root:
|
|
7598
|
-
Controls:
|
|
7599
|
-
SearchInput:
|
|
7600
|
-
}, zc = Oe(""), Kc = Oe(""),
|
|
7601
|
-
change:
|
|
7602
|
-
positive:
|
|
7603
|
-
negative:
|
|
7598
|
+
}, fw = "_container_1nap1_1", _w = "_controls_1nap1_7", gw = "_search_1nap1_13", Ga = {
|
|
7599
|
+
container: fw,
|
|
7600
|
+
controls: _w,
|
|
7601
|
+
search: gw
|
|
7602
|
+
}, yw = ({ children: e }) => /* @__PURE__ */ n("div", { className: Ga.container, children: e }), ww = ({ children: e }) => /* @__PURE__ */ n("div", { className: Ga.controls, children: e }), bw = (e) => /* @__PURE__ */ n(ms, { ...e, rootClassName: Ga.search }), tt = {
|
|
7603
|
+
Root: yw,
|
|
7604
|
+
Controls: ww,
|
|
7605
|
+
SearchInput: bw
|
|
7606
|
+
}, zc = Oe(""), Kc = Oe(""), vw = Oe(""), Nw = Oe(""), kw = Oe(""), Cw = "_change_1x9v4_1", Iw = "_positive_1x9v4_10", xw = "_negative_1x9v4_14", Fo = {
|
|
7607
|
+
change: Cw,
|
|
7608
|
+
positive: Iw,
|
|
7609
|
+
negative: xw
|
|
7604
7610
|
}, Wc = ({ amount: e, asset: t }) => {
|
|
7605
7611
|
const { denom: s, symbol: o, decimals: a } = t, i = new D(e).isPositive(), r = new D(e).abs().toString();
|
|
7606
7612
|
return /* @__PURE__ */ u("div", { className: L(Fo.change, i ? Fo.positive : Fo.negative), children: [
|
|
@@ -7609,36 +7615,36 @@ const S0 = "_countdown_vfms8_1", A0 = {
|
|
|
7609
7615
|
" ",
|
|
7610
7616
|
o || s
|
|
7611
7617
|
] });
|
|
7612
|
-
},
|
|
7618
|
+
}, Sw = ({ changes: e, chain: t }) => {
|
|
7613
7619
|
const s = vt(t);
|
|
7614
7620
|
return e.map(({ amount: o, denom: a }, i) => /* @__PURE__ */ n(Wc, { amount: o, asset: s(a) }, i));
|
|
7615
|
-
},
|
|
7621
|
+
}, Aw = ({
|
|
7616
7622
|
changes: e,
|
|
7617
7623
|
chain: t
|
|
7618
7624
|
}) => {
|
|
7619
7625
|
const s = vt(t);
|
|
7620
7626
|
return e.map(({ amount: o, metadata: a }, i) => /* @__PURE__ */ n(uc, { metadata: a, chain: t, children: (r) => /* @__PURE__ */ n(Wc, { amount: o, asset: s(r) }) }, i));
|
|
7621
|
-
},
|
|
7627
|
+
}, $w = ({ events: e, chain: t }) => {
|
|
7622
7628
|
const { initiaAddress: s, hexAddress: o } = Je();
|
|
7623
|
-
return t.metadata?.is_l1 || t.metadata?.minitia?.type === "minimove" ? /* @__PURE__ */ n(
|
|
7624
|
-
},
|
|
7625
|
-
message:
|
|
7626
|
-
more:
|
|
7627
|
-
},
|
|
7629
|
+
return t.metadata?.is_l1 || t.metadata?.minitia?.type === "minimove" ? /* @__PURE__ */ n(Aw, { changes: dc(e, o), chain: t }) : /* @__PURE__ */ n(Sw, { changes: lc(e, s), chain: t });
|
|
7630
|
+
}, Tw = "_message_1g2hc_1", Lw = "_more_1g2hc_8", Di = {
|
|
7631
|
+
message: Tw,
|
|
7632
|
+
more: Lw
|
|
7633
|
+
}, Ew = ({ messages: e }) => /* @__PURE__ */ u(K, { children: [
|
|
7628
7634
|
e.slice(0, 3).map((t, s) => /* @__PURE__ */ n("p", { className: Di.message, children: ga(t["@type"].split("Msg")[1]) }, s)),
|
|
7629
7635
|
e.length > 3 && /* @__PURE__ */ n("footer", { className: Di.more, children: `+${e.length - 3} more` })
|
|
7630
|
-
] }),
|
|
7631
|
-
link:
|
|
7632
|
-
inner:
|
|
7633
|
-
header:
|
|
7634
|
-
time:
|
|
7635
|
-
error:
|
|
7636
|
-
timestamp:
|
|
7637
|
-
chainInfo:
|
|
7638
|
-
content:
|
|
7639
|
-
messages:
|
|
7640
|
-
changes:
|
|
7641
|
-
},
|
|
7636
|
+
] }), qw = "_link_fuhbt_1", Pw = "_inner_fuhbt_16", Dw = "_header_fuhbt_21", Mw = "_time_fuhbt_30", Rw = "_error_fuhbt_36", Bw = "_timestamp_fuhbt_40", Uw = "_chainInfo_fuhbt_45", Ow = "_content_fuhbt_53", Vw = "_messages_fuhbt_61", Fw = "_changes_fuhbt_67", _t = {
|
|
7637
|
+
link: qw,
|
|
7638
|
+
inner: Pw,
|
|
7639
|
+
header: Dw,
|
|
7640
|
+
time: Mw,
|
|
7641
|
+
error: Rw,
|
|
7642
|
+
timestamp: Bw,
|
|
7643
|
+
chainInfo: Uw,
|
|
7644
|
+
content: Ow,
|
|
7645
|
+
messages: Vw,
|
|
7646
|
+
changes: Fw
|
|
7647
|
+
}, jw = ({ txItem: e, chain: t }) => /* @__PURE__ */ n(ho, { txHash: e.txhash, chainId: t.chainId, className: _t.link, children: /* @__PURE__ */ u("div", { className: _t.inner, children: [
|
|
7642
7648
|
/* @__PURE__ */ u("div", { className: _t.header, children: [
|
|
7643
7649
|
/* @__PURE__ */ u("div", { className: _t.time, children: [
|
|
7644
7650
|
e.code !== 0 && /* @__PURE__ */ n(Zs, { size: 14, className: _t.error }),
|
|
@@ -7650,15 +7656,15 @@ const S0 = "_countdown_vfms8_1", A0 = {
|
|
|
7650
7656
|
] })
|
|
7651
7657
|
] }),
|
|
7652
7658
|
/* @__PURE__ */ u("div", { className: _t.content, children: [
|
|
7653
|
-
/* @__PURE__ */ n("div", { className: _t.messages, children: /* @__PURE__ */ n(
|
|
7654
|
-
/* @__PURE__ */ n("div", { className: _t.changes, children: /* @__PURE__ */ n(he, { suspenseFallback: null, errorBoundaryProps: { fallback: null }, children: /* @__PURE__ */ n(
|
|
7659
|
+
/* @__PURE__ */ n("div", { className: _t.messages, children: /* @__PURE__ */ n(Ew, { messages: e.tx.body.messages }) }),
|
|
7660
|
+
/* @__PURE__ */ n("div", { className: _t.changes, children: /* @__PURE__ */ n(he, { suspenseFallback: null, errorBoundaryProps: { fallback: null }, children: /* @__PURE__ */ n($w, { ...e, chain: t }) }) })
|
|
7655
7661
|
] })
|
|
7656
|
-
] }) }),
|
|
7657
|
-
list:
|
|
7658
|
-
dateGroup:
|
|
7659
|
-
dateHeader:
|
|
7660
|
-
more:
|
|
7661
|
-
},
|
|
7662
|
+
] }) }), zw = "_list_1mv55_1", Kw = "_dateGroup_1mv55_7", Ww = "_dateHeader_1mv55_12", Hw = "_more_1mv55_18", As = {
|
|
7663
|
+
list: zw,
|
|
7664
|
+
dateGroup: Kw,
|
|
7665
|
+
dateHeader: Ww,
|
|
7666
|
+
more: Hw
|
|
7667
|
+
}, Gw = ({ list: e, chainId: t }) => {
|
|
7662
7668
|
const s = ee(), o = S(() => Ic(e, (a) => {
|
|
7663
7669
|
if (a.timestamp)
|
|
7664
7670
|
return new Date(a.timestamp);
|
|
@@ -7666,7 +7672,7 @@ const S0 = "_countdown_vfms8_1", A0 = {
|
|
|
7666
7672
|
return e.length === 0 ? /* @__PURE__ */ n(_e, { children: "No activity found" }) : /* @__PURE__ */ u(K, { children: [
|
|
7667
7673
|
/* @__PURE__ */ n("div", { className: As.list, children: Object.entries(o).map(([a, i]) => /* @__PURE__ */ u("div", { className: As.dateGroup, children: [
|
|
7668
7674
|
/* @__PURE__ */ n("div", { className: As.dateHeader, children: a }),
|
|
7669
|
-
i.map((r) => /* @__PURE__ */ n(he, { errorBoundaryProps: { fallback: null }, children: /* @__PURE__ */ n(
|
|
7675
|
+
i.map((r) => /* @__PURE__ */ n(he, { errorBoundaryProps: { fallback: null }, children: /* @__PURE__ */ n(jw, { txItem: r, chain: r.chain }) }, r.txhash))
|
|
7670
7676
|
] }, a)) }),
|
|
7671
7677
|
/* @__PURE__ */ n(
|
|
7672
7678
|
ho,
|
|
@@ -7680,8 +7686,8 @@ const S0 = "_countdown_vfms8_1", A0 = {
|
|
|
7680
7686
|
}
|
|
7681
7687
|
)
|
|
7682
7688
|
] });
|
|
7683
|
-
},
|
|
7684
|
-
const { activities: e, isLoading: t } = Ah(), [s, o] = Se(
|
|
7689
|
+
}, Qw = () => {
|
|
7690
|
+
const { activities: e, isLoading: t } = Ah(), [s, o] = Se(kw), a = oe(), i = S(() => Array.from(new Set(e.map((l) => l.chain.chainId))), [e]), r = S(() => s ? e.filter((l) => l.chain.chainId === s) : e, [e, s]);
|
|
7685
7691
|
return t && e.length === 0 ? /* @__PURE__ */ n(_e, { children: "Loading activities..." }) : !e.length && !t ? /* @__PURE__ */ n(_e, { children: "No activity yet" }) : /* @__PURE__ */ u(tt.Root, { children: [
|
|
7686
7692
|
/* @__PURE__ */ n(tt.Controls, { children: /* @__PURE__ */ n(
|
|
7687
7693
|
wo,
|
|
@@ -7692,13 +7698,13 @@ const S0 = "_countdown_vfms8_1", A0 = {
|
|
|
7692
7698
|
fullWidth: !0
|
|
7693
7699
|
}
|
|
7694
7700
|
) }),
|
|
7695
|
-
/* @__PURE__ */ n(
|
|
7701
|
+
/* @__PURE__ */ n(Gw, { list: r, chainId: s || a.chainId })
|
|
7696
7702
|
] });
|
|
7697
|
-
},
|
|
7698
|
-
thumbnail:
|
|
7699
|
-
placeholder:
|
|
7700
|
-
clickable:
|
|
7701
|
-
},
|
|
7703
|
+
}, Yw = "_thumbnail_1xyqw_1", Zw = "_placeholder_1xyqw_18", Jw = "_clickable_1xyqw_24", Rn = {
|
|
7704
|
+
thumbnail: Yw,
|
|
7705
|
+
placeholder: Zw,
|
|
7706
|
+
clickable: Jw
|
|
7707
|
+
}, Xw = ({ nftInfo: e, size: t, onClick: s }) => {
|
|
7702
7708
|
const { collection_addr: o, object_addr: a, nft: i, chain: r } = e, { glyphUrl: l } = Y(), c = new URL(
|
|
7703
7709
|
`/v1/${r.chainId}/${o}/${a || i.token_id}`,
|
|
7704
7710
|
l
|
|
@@ -7712,10 +7718,10 @@ const S0 = "_countdown_vfms8_1", A0 = {
|
|
|
7712
7718
|
children: /* @__PURE__ */ n(J, { src: c, classNames: { placeholder: Rn.placeholder } })
|
|
7713
7719
|
}
|
|
7714
7720
|
) : /* @__PURE__ */ n("div", { className: Rn.thumbnail, style: { width: t, height: t }, children: /* @__PURE__ */ n(J, { src: c, classNames: { placeholder: Rn.placeholder } }) });
|
|
7715
|
-
},
|
|
7716
|
-
collectionName:
|
|
7717
|
-
nftName:
|
|
7718
|
-
chainInfo:
|
|
7721
|
+
}, eb = "_collectionName_qs5tw_1", tb = "_nftName_qs5tw_6", nb = "_chainInfo_qs5tw_10", jo = {
|
|
7722
|
+
collectionName: eb,
|
|
7723
|
+
nftName: tb,
|
|
7724
|
+
chainInfo: nb
|
|
7719
7725
|
}, Qa = ({
|
|
7720
7726
|
normalizedNft: e,
|
|
7721
7727
|
onThumbnailClick: t,
|
|
@@ -7725,7 +7731,7 @@ const S0 = "_countdown_vfms8_1", A0 = {
|
|
|
7725
7731
|
}) => {
|
|
7726
7732
|
const { collection_name: i, name: r, chain: l } = e;
|
|
7727
7733
|
return /* @__PURE__ */ u("div", { className: a?.root, children: [
|
|
7728
|
-
/* @__PURE__ */ n(
|
|
7734
|
+
/* @__PURE__ */ n(Xw, { nftInfo: e, onClick: t, size: s }),
|
|
7729
7735
|
/* @__PURE__ */ u("div", { children: [
|
|
7730
7736
|
/* @__PURE__ */ n("div", { className: L(jo.collectionName, a?.collectionName), children: i }),
|
|
7731
7737
|
/* @__PURE__ */ n("div", { className: L(jo.nftName, a?.nftName), children: r }),
|
|
@@ -7739,14 +7745,14 @@ const S0 = "_countdown_vfms8_1", A0 = {
|
|
|
7739
7745
|
nfts: (e, t) => [e, t],
|
|
7740
7746
|
metadata: (e) => [e]
|
|
7741
7747
|
});
|
|
7742
|
-
function
|
|
7748
|
+
function sb(e, t) {
|
|
7743
7749
|
const { nft: s } = e, o = t.name ?? s.token_id;
|
|
7744
7750
|
return { ...e, ...s, ...t, name: o };
|
|
7745
7751
|
}
|
|
7746
|
-
function
|
|
7752
|
+
function ob(e, t) {
|
|
7747
7753
|
return e.flatMap((s, o) => (t[o] ?? []).map((i) => ({ ...i, chain: s })));
|
|
7748
7754
|
}
|
|
7749
|
-
const
|
|
7755
|
+
const ab = () => {
|
|
7750
7756
|
const e = ee(), t = de(), s = In({
|
|
7751
7757
|
queries: t.map((c) => ({
|
|
7752
7758
|
queryKey: Ya.nfts(c.indexerUrl, e).queryKey,
|
|
@@ -7757,13 +7763,13 @@ const ib = () => {
|
|
|
7757
7763
|
),
|
|
7758
7764
|
staleTime: V.SECOND
|
|
7759
7765
|
}))
|
|
7760
|
-
}), o = s.map(Jt("data")), a =
|
|
7766
|
+
}), o = s.map(Jt("data")), a = ob(t, o), i = a.reduce(
|
|
7761
7767
|
(c, { chain: d }) => ({ ...c, [d.chainId]: (c[d.chainId] || 0) + 1 }),
|
|
7762
7768
|
{}
|
|
7763
7769
|
), r = Object.values(i).reduce((c, d) => c + d, 0), l = s.some((c) => c.isLoading);
|
|
7764
7770
|
return { nftInfos: a, chainCounts: i, totalCount: r, isLoading: l };
|
|
7765
7771
|
};
|
|
7766
|
-
function
|
|
7772
|
+
function ib(e) {
|
|
7767
7773
|
const t = Mi(e);
|
|
7768
7774
|
return ge({
|
|
7769
7775
|
queryKey: Ya.metadata(t).queryKey,
|
|
@@ -7782,17 +7788,17 @@ function rb(e) {
|
|
|
7782
7788
|
function Mi(e) {
|
|
7783
7789
|
return e?.replace("ipfs://", "https://ipfs.io/ipfs/");
|
|
7784
7790
|
}
|
|
7785
|
-
const
|
|
7786
|
-
const { data: s = {} } =
|
|
7791
|
+
const rb = ({ nftInfo: e, children: t }) => {
|
|
7792
|
+
const { data: s = {} } = ib(e.nft.uri), o = sb(e, s);
|
|
7787
7793
|
return t(o);
|
|
7788
|
-
},
|
|
7789
|
-
grid:
|
|
7790
|
-
root:
|
|
7791
|
-
collectionName:
|
|
7792
|
-
nftName:
|
|
7793
|
-
chainInfo:
|
|
7794
|
-
},
|
|
7795
|
-
const [e, t] = Se(
|
|
7794
|
+
}, cb = "_grid_1wwdn_1", lb = "_root_1wwdn_7", db = "_collectionName_1wwdn_15", ub = "_nftName_1wwdn_23", mb = "_chainInfo_1wwdn_32", Ri = {
|
|
7795
|
+
grid: cb,
|
|
7796
|
+
root: lb,
|
|
7797
|
+
collectionName: db,
|
|
7798
|
+
nftName: ub,
|
|
7799
|
+
chainInfo: mb
|
|
7800
|
+
}, hb = () => {
|
|
7801
|
+
const [e, t] = Se(vw), [s, o] = Se(Nw), { nftInfos: a, chainCounts: i, totalCount: r, isLoading: l } = ab(), c = $e(), d = S(() => a.filter(({ collection_addr: p, collection_name: h, nft: _, object_addr: f, chain: g }) => {
|
|
7796
7802
|
if (s && g.chainId !== s)
|
|
7797
7803
|
return !1;
|
|
7798
7804
|
if (e) {
|
|
@@ -7824,7 +7830,7 @@ const cb = ({ nftInfo: e, children: t }) => {
|
|
|
7824
7830
|
] }),
|
|
7825
7831
|
d.length === 0 ? /* @__PURE__ */ n(_e, { children: "No NFTs found" }) : /* @__PURE__ */ n("div", { className: Ri.grid, children: d.map((p) => {
|
|
7826
7832
|
const { collection_addr: h, nft: _ } = p;
|
|
7827
|
-
return /* @__PURE__ */ n(
|
|
7833
|
+
return /* @__PURE__ */ n(rb, { nftInfo: p, children: (f) => /* @__PURE__ */ n(
|
|
7828
7834
|
Qa,
|
|
7829
7835
|
{
|
|
7830
7836
|
normalizedNft: f,
|
|
@@ -7838,9 +7844,9 @@ const cb = ({ nftInfo: e, children: t }) => {
|
|
|
7838
7844
|
function Gc() {
|
|
7839
7845
|
return bt(Hc);
|
|
7840
7846
|
}
|
|
7841
|
-
const
|
|
7842
|
-
popup:
|
|
7843
|
-
item:
|
|
7847
|
+
const pb = "_popup_nbecp_1", fb = "_item_nbecp_19", $s = {
|
|
7848
|
+
popup: pb,
|
|
7849
|
+
item: fb
|
|
7844
7850
|
}, Qc = ({ asset: e, children: t }) => {
|
|
7845
7851
|
const { denom: s, decimals: o, symbol: a, logoUrl: i, unlisted: r, address: l, chain: c } = e, { chainId: d } = c, [m, p] = F(!1), h = $e(), _ = Gc(), { showNotification: f } = po(), { defaultChainId: g } = Y(), { evm_chain_id: y } = on(), w = il(), { switchChainAsync: b } = rl(), { watchAssetAsync: k } = cl(), N = () => {
|
|
7846
7852
|
p(!1), h("/send", { denom: s, chain: c });
|
|
@@ -7892,15 +7898,15 @@ const fb = "_popup_nbecp_1", _b = "_item_nbecp_19", $s = {
|
|
|
7892
7898
|
)
|
|
7893
7899
|
] }) }) })
|
|
7894
7900
|
] });
|
|
7895
|
-
},
|
|
7896
|
-
item:
|
|
7897
|
-
info:
|
|
7898
|
-
images:
|
|
7899
|
-
name:
|
|
7900
|
-
value:
|
|
7901
|
-
amount:
|
|
7902
|
-
usd:
|
|
7903
|
-
},
|
|
7901
|
+
}, _b = "_item_38qhm_1", gb = "_info_38qhm_23", yb = "_images_38qhm_29", wb = "_name_38qhm_33", bb = "_value_38qhm_39", vb = "_amount_38qhm_47", Nb = "_usd_38qhm_53", Gt = {
|
|
7902
|
+
item: _b,
|
|
7903
|
+
info: gb,
|
|
7904
|
+
images: yb,
|
|
7905
|
+
name: wb,
|
|
7906
|
+
value: bb,
|
|
7907
|
+
amount: vb,
|
|
7908
|
+
usd: Nb
|
|
7909
|
+
}, kb = ({ asset: e }) => {
|
|
7904
7910
|
const { amount: t, value: s, logoUrl: o, chain: a } = e, i = pe(t, { decimals: e.decimals });
|
|
7905
7911
|
return /* @__PURE__ */ n(Qc, { asset: e, children: /* @__PURE__ */ u("button", { className: Gt.item, children: [
|
|
7906
7912
|
/* @__PURE__ */ u("div", { className: Gt.info, children: [
|
|
@@ -7922,27 +7928,27 @@ const fb = "_popup_nbecp_1", _b = "_item_nbecp_19", $s = {
|
|
|
7922
7928
|
Number(s) > 0 && /* @__PURE__ */ n("span", { className: Gt.usd, children: X(s) })
|
|
7923
7929
|
] })
|
|
7924
7930
|
] }) });
|
|
7925
|
-
},
|
|
7926
|
-
container:
|
|
7927
|
-
assetItem:
|
|
7928
|
-
expandIcon:
|
|
7929
|
-
assetInfo:
|
|
7930
|
-
logo:
|
|
7931
|
-
details:
|
|
7932
|
-
symbol:
|
|
7933
|
-
chainName:
|
|
7934
|
-
chainInfos:
|
|
7935
|
-
chainLogos:
|
|
7936
|
-
chainLogo:
|
|
7937
|
-
moreChains:
|
|
7938
|
-
expanded:
|
|
7939
|
-
valueColumn:
|
|
7940
|
-
amount:
|
|
7941
|
-
value:
|
|
7942
|
-
collapsibleContent:
|
|
7943
|
-
chainsList:
|
|
7944
|
-
},
|
|
7945
|
-
const { symbol: t, logoUrl: s, assets: o } = e, a = o.length === 1, [i, r] = Se(
|
|
7931
|
+
}, Cb = "_container_ytg3p_1", Ib = "_assetItem_ytg3p_6", xb = "_expandIcon_ytg3p_22", Sb = "_assetInfo_ytg3p_27", Ab = "_logo_ytg3p_33", $b = "_details_ytg3p_37", Tb = "_symbol_ytg3p_42", Lb = "_chainName_ytg3p_53", Eb = "_chainInfos_ytg3p_59", qb = "_chainLogos_ytg3p_65", Pb = "_chainLogo_ytg3p_65", Db = "_moreChains_ytg3p_76", Mb = "_expanded_ytg3p_93", Rb = "_valueColumn_ytg3p_98", Bb = "_amount_ytg3p_108", Ub = "_value_ytg3p_98", Ob = "_collapsibleContent_ytg3p_121", Vb = "_chainsList_ytg3p_151", ye = {
|
|
7932
|
+
container: Cb,
|
|
7933
|
+
assetItem: Ib,
|
|
7934
|
+
expandIcon: xb,
|
|
7935
|
+
assetInfo: Sb,
|
|
7936
|
+
logo: Ab,
|
|
7937
|
+
details: $b,
|
|
7938
|
+
symbol: Tb,
|
|
7939
|
+
chainName: Lb,
|
|
7940
|
+
chainInfos: Eb,
|
|
7941
|
+
chainLogos: qb,
|
|
7942
|
+
chainLogo: Pb,
|
|
7943
|
+
moreChains: Db,
|
|
7944
|
+
expanded: Mb,
|
|
7945
|
+
valueColumn: Rb,
|
|
7946
|
+
amount: Bb,
|
|
7947
|
+
value: Ub,
|
|
7948
|
+
collapsibleContent: Ob,
|
|
7949
|
+
chainsList: Vb
|
|
7950
|
+
}, Fb = Oe([]), Za = ({ assetGroup: e }) => {
|
|
7951
|
+
const { symbol: t, logoUrl: s, assets: o } = e, a = o.length === 1, [i, r] = Se(Fb), l = S(() => fu(e), [e]), c = S(() => Or(e), [e]), d = i.includes(t), m = () => {
|
|
7946
7952
|
r(
|
|
7947
7953
|
(h) => d ? h.filter((_) => _ !== t) : [.../* @__PURE__ */ new Set([...h, t])]
|
|
7948
7954
|
);
|
|
@@ -7988,16 +7994,16 @@ const fb = "_popup_nbecp_1", _b = "_item_nbecp_19", $s = {
|
|
|
7988
7994
|
}
|
|
7989
7995
|
return /* @__PURE__ */ n("div", { className: ye.container, children: /* @__PURE__ */ u(ue.Root, { open: d, onOpenChange: m, children: [
|
|
7990
7996
|
/* @__PURE__ */ n(ue.Trigger, { asChild: !0, children: p() }),
|
|
7991
|
-
/* @__PURE__ */ n(ue.Content, { className: ye.collapsibleContent, children: /* @__PURE__ */ n("div", { className: ye.chainsList, children: o.map((h) => /* @__PURE__ */ n(
|
|
7997
|
+
/* @__PURE__ */ n(ue.Content, { className: ye.collapsibleContent, children: /* @__PURE__ */ n("div", { className: ye.chainsList, children: o.map((h) => /* @__PURE__ */ n(kb, { asset: h }, h.chain.chainId)) }) })
|
|
7992
7998
|
] }) });
|
|
7993
|
-
},
|
|
7994
|
-
collapsible:
|
|
7995
|
-
trigger:
|
|
7996
|
-
divider:
|
|
7997
|
-
label:
|
|
7998
|
-
chevron:
|
|
7999
|
-
content:
|
|
8000
|
-
list:
|
|
7999
|
+
}, jb = "_collapsible_1g7rh_1", zb = "_trigger_1g7rh_5", Kb = "_divider_1g7rh_20", Wb = "_label_1g7rh_28", Hb = "_chevron_1g7rh_33", Gb = "_content_1g7rh_41", Qb = "_list_1g7rh_45", Rt = {
|
|
8000
|
+
collapsible: jb,
|
|
8001
|
+
trigger: zb,
|
|
8002
|
+
divider: Kb,
|
|
8003
|
+
label: Wb,
|
|
8004
|
+
chevron: Hb,
|
|
8005
|
+
content: Gb,
|
|
8006
|
+
list: Qb
|
|
8001
8007
|
}, Yc = ({ unlistedAssets: e }) => {
|
|
8002
8008
|
const [t, s] = F(!1), o = Gc(), a = je(null), [i, r] = F(0);
|
|
8003
8009
|
Q(() => {
|
|
@@ -8047,13 +8053,13 @@ const fb = "_popup_nbecp_1", _b = "_item_nbecp_19", $s = {
|
|
|
8047
8053
|
] }),
|
|
8048
8054
|
/* @__PURE__ */ n(ue.Content, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ n(Zn.div, { className: Rt.content, style: d, children: /* @__PURE__ */ n("div", { className: Rt.list, ref: a, children: m.map((p) => /* @__PURE__ */ n(Za, { assetGroup: p }, p.assets[0].denom)) }) }) })
|
|
8049
8055
|
] });
|
|
8050
|
-
},
|
|
8051
|
-
container:
|
|
8052
|
-
header:
|
|
8053
|
-
title:
|
|
8054
|
-
totalValue:
|
|
8055
|
-
list:
|
|
8056
|
-
},
|
|
8056
|
+
}, Yb = "_container_15xfg_1", Zb = "_header_15xfg_7", Jb = "_title_15xfg_13", Xb = "_totalValue_15xfg_19", ev = "_list_15xfg_26", wn = {
|
|
8057
|
+
container: Yb,
|
|
8058
|
+
header: Zb,
|
|
8059
|
+
title: Jb,
|
|
8060
|
+
totalValue: Xb,
|
|
8061
|
+
list: ev
|
|
8062
|
+
}, tv = () => {
|
|
8057
8063
|
const [e, t] = Se(zc), [s, o] = Se(Kc), { assetGroups: a, unlistedAssets: i, chainsByValue: r, totalValue: l, isLoading: c } = Vr(), d = r.map(({ chainId: h }) => h), m = S(() => {
|
|
8058
8064
|
const h = e ? a.filter((f) => {
|
|
8059
8065
|
const { symbol: g, assets: y } = f;
|
|
@@ -8099,12 +8105,12 @@ const fb = "_popup_nbecp_1", _b = "_item_nbecp_19", $s = {
|
|
|
8099
8105
|
/* @__PURE__ */ n(Yc, { unlistedAssets: p })
|
|
8100
8106
|
] }) })
|
|
8101
8107
|
] });
|
|
8102
|
-
},
|
|
8103
|
-
container:
|
|
8108
|
+
}, nv = "_container_11k2x_1", sv = {
|
|
8109
|
+
container: nv
|
|
8104
8110
|
}, et = ({ height: e, length: t = 1, width: s = "100%" }) => {
|
|
8105
8111
|
const o = Array.from({ length: t }, (a, i) => i);
|
|
8106
|
-
return t === 1 ? /* @__PURE__ */ n(en, { height: e, width: s }) : /* @__PURE__ */ n("div", { className:
|
|
8107
|
-
},
|
|
8112
|
+
return t === 1 ? /* @__PURE__ */ n(en, { height: e, width: s }) : /* @__PURE__ */ n("div", { className: sv.container, children: o.map((a) => /* @__PURE__ */ n(en, { height: e, width: s }, a)) });
|
|
8113
|
+
}, ov = Hi(
|
|
8108
8114
|
({
|
|
8109
8115
|
searchQuery: e,
|
|
8110
8116
|
selectedChain: t,
|
|
@@ -8134,14 +8140,14 @@ const fb = "_popup_nbecp_1", _b = "_item_nbecp_19", $s = {
|
|
|
8134
8140
|
] }) : p.length === 0 && l ? /* @__PURE__ */ n(et, { height: 56, length: 3 }) : /* @__PURE__ */ n(_e, { children: "No liquid assets" })
|
|
8135
8141
|
] });
|
|
8136
8142
|
}
|
|
8137
|
-
),
|
|
8143
|
+
), av = ke("interwovenkit:civitia", {
|
|
8138
8144
|
player: (e, t) => [e, t]
|
|
8139
8145
|
});
|
|
8140
8146
|
function Zc() {
|
|
8141
8147
|
const { civitiaUrl: e } = Y(), t = ee();
|
|
8142
8148
|
return ge({
|
|
8143
8149
|
enabled: !!t,
|
|
8144
|
-
queryKey:
|
|
8150
|
+
queryKey: av.player(e, t ?? "").queryKey,
|
|
8145
8151
|
queryFn: async () => {
|
|
8146
8152
|
if (!t)
|
|
8147
8153
|
throw new Error("address is not available");
|
|
@@ -8152,17 +8158,17 @@ function Zc() {
|
|
|
8152
8158
|
throwOnError: !1
|
|
8153
8159
|
});
|
|
8154
8160
|
}
|
|
8155
|
-
const
|
|
8156
|
-
section:
|
|
8157
|
-
row:
|
|
8158
|
-
rowLeft:
|
|
8159
|
-
rowIcon:
|
|
8160
|
-
goldIcon:
|
|
8161
|
-
silverIcon:
|
|
8162
|
-
rowTitle:
|
|
8163
|
-
rowValue:
|
|
8164
|
-
rowSubtitle:
|
|
8165
|
-
},
|
|
8161
|
+
const iv = "_section_xdyfz_2", rv = "_row_xdyfz_15", cv = "_rowLeft_xdyfz_23", lv = "_rowIcon_xdyfz_29", dv = "_goldIcon_xdyfz_38", uv = "_silverIcon_xdyfz_46", mv = "_rowTitle_xdyfz_54", hv = "_rowValue_xdyfz_60", pv = "_rowSubtitle_xdyfz_67", Le = {
|
|
8162
|
+
section: iv,
|
|
8163
|
+
row: rv,
|
|
8164
|
+
rowLeft: cv,
|
|
8165
|
+
rowIcon: lv,
|
|
8166
|
+
goldIcon: dv,
|
|
8167
|
+
silverIcon: uv,
|
|
8168
|
+
rowTitle: mv,
|
|
8169
|
+
rowValue: hv,
|
|
8170
|
+
rowSubtitle: pv
|
|
8171
|
+
}, fv = () => {
|
|
8166
8172
|
const { data: e, isLoading: t } = Zc();
|
|
8167
8173
|
if (t)
|
|
8168
8174
|
return /* @__PURE__ */ n(et, { height: 36, length: 2 });
|
|
@@ -8183,36 +8189,36 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8183
8189
|
/* @__PURE__ */ n("span", { className: L(Le.rowValue, o === 0 && Le.rowSubtitle), children: o === 0 ? "—" : nt(o, { dp: 6 }) })
|
|
8184
8190
|
] })
|
|
8185
8191
|
] });
|
|
8186
|
-
},
|
|
8187
|
-
container:
|
|
8188
|
-
section:
|
|
8189
|
-
sectionHeader:
|
|
8190
|
-
sectionTitle:
|
|
8191
|
-
sectionLabel:
|
|
8192
|
-
externalLink:
|
|
8193
|
-
sectionValue:
|
|
8194
|
-
tokenList:
|
|
8195
|
-
stakingTokenList:
|
|
8196
|
-
tokenRow:
|
|
8197
|
-
tokenMain:
|
|
8198
|
-
tokenTrigger:
|
|
8199
|
-
tokenChevron:
|
|
8200
|
-
expanded:
|
|
8201
|
-
triggerValue:
|
|
8202
|
-
tokenInfo:
|
|
8203
|
-
tokenInfoLabel:
|
|
8204
|
-
tokenLogo:
|
|
8205
|
-
tokenSymbol:
|
|
8206
|
-
tokenValues:
|
|
8207
|
-
tokenAmount:
|
|
8208
|
-
tokenValue:
|
|
8209
|
-
typeBreakdown:
|
|
8210
|
-
typeRow:
|
|
8211
|
-
typeLabel:
|
|
8212
|
-
typeValues:
|
|
8213
|
-
typeAmount:
|
|
8214
|
-
typeValue:
|
|
8215
|
-
collapsibleContent:
|
|
8192
|
+
}, _v = "_container_1n61l_1", gv = "_section_1n61l_7", yv = "_sectionHeader_1n61l_19", wv = "_sectionTitle_1n61l_25", bv = "_sectionLabel_1n61l_31", vv = "_externalLink_1n61l_37", Nv = "_sectionValue_1n61l_49", kv = "_tokenList_1n61l_56", Cv = "_stakingTokenList_1n61l_62", Iv = "_tokenRow_1n61l_72", xv = "_tokenMain_1n61l_78", Sv = "_tokenTrigger_1n61l_84", Av = "_tokenChevron_1n61l_100", $v = "_expanded_1n61l_111", Tv = "_triggerValue_1n61l_115", Lv = "_tokenInfo_1n61l_122", Ev = "_tokenInfoLabel_1n61l_128", qv = "_tokenLogo_1n61l_134", Pv = "_tokenSymbol_1n61l_138", Dv = "_tokenValues_1n61l_144", Mv = "_tokenAmount_1n61l_150", Rv = "_tokenValue_1n61l_144", Bv = "_typeBreakdown_1n61l_164", Uv = "_typeRow_1n61l_172", Ov = "_typeLabel_1n61l_180", Vv = "_typeValues_1n61l_186", Fv = "_typeAmount_1n61l_192", jv = "_typeValue_1n61l_186", zv = "_collapsibleContent_1n61l_206", G = {
|
|
8193
|
+
container: _v,
|
|
8194
|
+
section: gv,
|
|
8195
|
+
sectionHeader: yv,
|
|
8196
|
+
sectionTitle: wv,
|
|
8197
|
+
sectionLabel: bv,
|
|
8198
|
+
externalLink: vv,
|
|
8199
|
+
sectionValue: Nv,
|
|
8200
|
+
tokenList: kv,
|
|
8201
|
+
stakingTokenList: Cv,
|
|
8202
|
+
tokenRow: Iv,
|
|
8203
|
+
tokenMain: xv,
|
|
8204
|
+
tokenTrigger: Sv,
|
|
8205
|
+
tokenChevron: Av,
|
|
8206
|
+
expanded: $v,
|
|
8207
|
+
triggerValue: Tv,
|
|
8208
|
+
tokenInfo: Lv,
|
|
8209
|
+
tokenInfoLabel: Ev,
|
|
8210
|
+
tokenLogo: qv,
|
|
8211
|
+
tokenSymbol: Pv,
|
|
8212
|
+
tokenValues: Dv,
|
|
8213
|
+
tokenAmount: Mv,
|
|
8214
|
+
tokenValue: Rv,
|
|
8215
|
+
typeBreakdown: Bv,
|
|
8216
|
+
typeRow: Uv,
|
|
8217
|
+
typeLabel: Ov,
|
|
8218
|
+
typeValues: Vv,
|
|
8219
|
+
typeAmount: Fv,
|
|
8220
|
+
typeValue: jv,
|
|
8221
|
+
collapsibleContent: zv
|
|
8216
8222
|
}, Jc = ({
|
|
8217
8223
|
protocols: e,
|
|
8218
8224
|
denomLogoMap: t,
|
|
@@ -8225,7 +8231,7 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8225
8231
|
return Vu(l);
|
|
8226
8232
|
}, [e]);
|
|
8227
8233
|
return r.size === 0 ? null : /* @__PURE__ */ n("div", { className: G.container, children: Array.from(r.entries()).map(([l, c]) => /* @__PURE__ */ n(
|
|
8228
|
-
|
|
8234
|
+
Kv,
|
|
8229
8235
|
{
|
|
8230
8236
|
sectionKey: l,
|
|
8231
8237
|
sectionGroup: c,
|
|
@@ -8237,7 +8243,7 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8237
8243
|
},
|
|
8238
8244
|
l
|
|
8239
8245
|
)) });
|
|
8240
|
-
},
|
|
8246
|
+
}, Kv = ({
|
|
8241
8247
|
sectionKey: e,
|
|
8242
8248
|
sectionGroup: t,
|
|
8243
8249
|
denomLogoMap: s,
|
|
@@ -8266,7 +8272,7 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8266
8272
|
/* @__PURE__ */ n("span", { className: G.sectionValue, children: X(c) })
|
|
8267
8273
|
] }),
|
|
8268
8274
|
/* @__PURE__ */ n("div", { className: L(G.tokenList, { [G.stakingTokenList]: p }), children: m.map((h) => /* @__PURE__ */ n(
|
|
8269
|
-
|
|
8275
|
+
Wv,
|
|
8270
8276
|
{
|
|
8271
8277
|
group: h,
|
|
8272
8278
|
showTypeBreakdown: p,
|
|
@@ -8277,7 +8283,7 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8277
8283
|
h.denom
|
|
8278
8284
|
)) })
|
|
8279
8285
|
] });
|
|
8280
|
-
},
|
|
8286
|
+
}, Wv = ({
|
|
8281
8287
|
group: e,
|
|
8282
8288
|
showTypeBreakdown: t,
|
|
8283
8289
|
denomLogoMap: s,
|
|
@@ -8307,7 +8313,7 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8307
8313
|
/* @__PURE__ */ n("span", { className: G.triggerValue, children: X(c) })
|
|
8308
8314
|
] }) }),
|
|
8309
8315
|
/* @__PURE__ */ n(ue.Content, { className: G.collapsibleContent, children: /* @__PURE__ */ n(
|
|
8310
|
-
|
|
8316
|
+
Hv,
|
|
8311
8317
|
{
|
|
8312
8318
|
typeGroups: _,
|
|
8313
8319
|
symbol: r,
|
|
@@ -8326,7 +8332,7 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8326
8332
|
/* @__PURE__ */ n("span", { className: G.tokenValue, children: X(c) })
|
|
8327
8333
|
] })
|
|
8328
8334
|
] }) });
|
|
8329
|
-
},
|
|
8335
|
+
}, Hv = ({
|
|
8330
8336
|
typeGroups: e,
|
|
8331
8337
|
symbol: t,
|
|
8332
8338
|
denom: s,
|
|
@@ -8369,22 +8375,22 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8369
8375
|
] })
|
|
8370
8376
|
] })
|
|
8371
8377
|
] });
|
|
8372
|
-
},
|
|
8373
|
-
container:
|
|
8374
|
-
trigger:
|
|
8375
|
-
expandIcon:
|
|
8376
|
-
chainInfo:
|
|
8377
|
-
logo:
|
|
8378
|
-
chainNameContainer:
|
|
8379
|
-
chainName:
|
|
8380
|
-
externalLink:
|
|
8381
|
-
externalIcon:
|
|
8382
|
-
valueColumn:
|
|
8383
|
-
value:
|
|
8384
|
-
expanded:
|
|
8385
|
-
collapsibleContent:
|
|
8386
|
-
content:
|
|
8387
|
-
},
|
|
8378
|
+
}, Gv = "_container_ymkoc_1", Qv = "_trigger_ymkoc_6", Yv = "_expandIcon_ymkoc_22", Zv = "_chainInfo_ymkoc_27", Jv = "_logo_ymkoc_33", Xv = "_chainNameContainer_ymkoc_37", eN = "_chainName_ymkoc_37", tN = "_externalLink_ymkoc_49", nN = "_externalIcon_ymkoc_53", sN = "_valueColumn_ymkoc_63", oN = "_value_ymkoc_63", aN = "_expanded_ymkoc_80", iN = "_collapsibleContent_ymkoc_85", rN = "_content_ymkoc_97", De = {
|
|
8379
|
+
container: Gv,
|
|
8380
|
+
trigger: Qv,
|
|
8381
|
+
expandIcon: Yv,
|
|
8382
|
+
chainInfo: Zv,
|
|
8383
|
+
logo: Jv,
|
|
8384
|
+
chainNameContainer: Xv,
|
|
8385
|
+
chainName: eN,
|
|
8386
|
+
externalLink: tN,
|
|
8387
|
+
externalIcon: nN,
|
|
8388
|
+
valueColumn: sN,
|
|
8389
|
+
value: oN,
|
|
8390
|
+
expanded: aN,
|
|
8391
|
+
collapsibleContent: iN,
|
|
8392
|
+
content: rN
|
|
8393
|
+
}, cN = Oe([]), lN = ({ chainGroup: e }) => {
|
|
8388
8394
|
const { chainId: t, chainLogo: s, protocols: o } = e, a = de(), i = Jn(), { denomLogos: r, symbolLogos: l } = S(
|
|
8389
8395
|
() => Pa(i, a),
|
|
8390
8396
|
[i, a]
|
|
@@ -8399,8 +8405,8 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8399
8405
|
return d;
|
|
8400
8406
|
}, [o, r, l, t, s]);
|
|
8401
8407
|
return /* @__PURE__ */ n(Jc, { protocols: o, denomLogoMap: c });
|
|
8402
|
-
},
|
|
8403
|
-
const { chainName: t, chainLogo: s, protocols: o } = e, a = o[0]?.manageUrl, [i, r] = Se(
|
|
8408
|
+
}, dN = ({ chainGroup: e }) => {
|
|
8409
|
+
const { chainName: t, chainLogo: s, protocols: o } = e, a = o[0]?.manageUrl, [i, r] = Se(cN), l = S(() => o.reduce((f, g) => f + g.positions.reduce(
|
|
8404
8410
|
(y, w) => y + kn(w),
|
|
8405
8411
|
0
|
|
8406
8412
|
), 0), [o]), c = ["civitia", "yominet"], d = i.includes(t), m = t?.toLowerCase(), p = m === "civitia", h = c.includes(m), _ = () => {
|
|
@@ -8439,37 +8445,37 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8439
8445
|
] })
|
|
8440
8446
|
] }) }),
|
|
8441
8447
|
/* @__PURE__ */ n(ue.Content, { className: De.collapsibleContent, children: /* @__PURE__ */ u("div", { className: De.content, children: [
|
|
8442
|
-
/* @__PURE__ */ n(
|
|
8443
|
-
p && /* @__PURE__ */ n(
|
|
8448
|
+
/* @__PURE__ */ n(lN, { chainGroup: e }),
|
|
8449
|
+
p && /* @__PURE__ */ n(fv, {})
|
|
8444
8450
|
] }) })
|
|
8445
8451
|
] }) });
|
|
8446
|
-
},
|
|
8447
|
-
container:
|
|
8448
|
-
section:
|
|
8449
|
-
sectionHeader:
|
|
8450
|
-
sectionTitle:
|
|
8451
|
-
sectionLabel:
|
|
8452
|
-
externalLink:
|
|
8453
|
-
sectionValue:
|
|
8454
|
-
tokenList:
|
|
8455
|
-
tokenTrigger:
|
|
8456
|
-
tokenChevron:
|
|
8457
|
-
expanded:
|
|
8458
|
-
tokenInfo:
|
|
8459
|
-
tokenInfoLabel:
|
|
8460
|
-
tokenLogo:
|
|
8461
|
-
pairedLogos:
|
|
8462
|
-
coinLogo:
|
|
8463
|
-
tokenSymbol:
|
|
8464
|
-
triggerValue:
|
|
8465
|
-
breakdownContent:
|
|
8466
|
-
breakdownRow:
|
|
8467
|
-
breakdownLabel:
|
|
8468
|
-
breakdownValues:
|
|
8469
|
-
breakdownAmount:
|
|
8470
|
-
breakdownValue:
|
|
8471
|
-
collapsibleContent:
|
|
8472
|
-
},
|
|
8452
|
+
}, uN = "_container_1gqx9_1", mN = "_section_1gqx9_6", hN = "_sectionHeader_1gqx9_14", pN = "_sectionTitle_1gqx9_20", fN = "_sectionLabel_1gqx9_26", _N = "_externalLink_1gqx9_32", gN = "_sectionValue_1gqx9_44", yN = "_tokenList_1gqx9_51", wN = "_tokenTrigger_1gqx9_63", bN = "_tokenChevron_1gqx9_79", vN = "_expanded_1gqx9_90", NN = "_tokenInfo_1gqx9_94", kN = "_tokenInfoLabel_1gqx9_100", CN = "_tokenLogo_1gqx9_106", IN = "_pairedLogos_1gqx9_110", xN = "_coinLogo_1gqx9_115", SN = "_tokenSymbol_1gqx9_133", AN = "_triggerValue_1gqx9_139", $N = "_breakdownContent_1gqx9_146", TN = "_breakdownRow_1gqx9_154", LN = "_breakdownLabel_1gqx9_162", EN = "_breakdownValues_1gqx9_168", qN = "_breakdownAmount_1gqx9_174", PN = "_breakdownValue_1gqx9_168", DN = "_collapsibleContent_1gqx9_195", ne = {
|
|
8453
|
+
container: uN,
|
|
8454
|
+
section: mN,
|
|
8455
|
+
sectionHeader: hN,
|
|
8456
|
+
sectionTitle: pN,
|
|
8457
|
+
sectionLabel: fN,
|
|
8458
|
+
externalLink: _N,
|
|
8459
|
+
sectionValue: gN,
|
|
8460
|
+
tokenList: yN,
|
|
8461
|
+
tokenTrigger: wN,
|
|
8462
|
+
tokenChevron: bN,
|
|
8463
|
+
expanded: vN,
|
|
8464
|
+
tokenInfo: NN,
|
|
8465
|
+
tokenInfoLabel: kN,
|
|
8466
|
+
tokenLogo: CN,
|
|
8467
|
+
pairedLogos: IN,
|
|
8468
|
+
coinLogo: xN,
|
|
8469
|
+
tokenSymbol: SN,
|
|
8470
|
+
triggerValue: AN,
|
|
8471
|
+
breakdownContent: $N,
|
|
8472
|
+
breakdownRow: TN,
|
|
8473
|
+
breakdownLabel: LN,
|
|
8474
|
+
breakdownValues: EN,
|
|
8475
|
+
breakdownAmount: qN,
|
|
8476
|
+
breakdownValue: PN,
|
|
8477
|
+
collapsibleContent: DN
|
|
8478
|
+
}, MN = ({ data: e, denomLogoMap: t }) => {
|
|
8473
8479
|
const { totalValue: s, rows: o } = e;
|
|
8474
8480
|
return o.length === 0 ? null : /* @__PURE__ */ n("div", { className: ne.container, children: /* @__PURE__ */ u("div", { className: ne.section, children: [
|
|
8475
8481
|
/* @__PURE__ */ u("div", { className: ne.sectionHeader, children: [
|
|
@@ -8489,14 +8495,14 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8489
8495
|
] }),
|
|
8490
8496
|
/* @__PURE__ */ n("span", { className: ne.sectionValue, children: X(s) })
|
|
8491
8497
|
] }),
|
|
8492
|
-
/* @__PURE__ */ n("div", { className: ne.tokenList, children: o.map((a) => /* @__PURE__ */ n(
|
|
8498
|
+
/* @__PURE__ */ n("div", { className: ne.tokenList, children: o.map((a) => /* @__PURE__ */ n(BN, { row: a, denomLogoMap: t }, a.denom)) })
|
|
8493
8499
|
] }) });
|
|
8494
|
-
},
|
|
8500
|
+
}, RN = {
|
|
8495
8501
|
deposit: "Deposit",
|
|
8496
8502
|
staking: "Staking",
|
|
8497
8503
|
lockStaking: "Lock staking",
|
|
8498
8504
|
unstaking: "Unstaking"
|
|
8499
|
-
},
|
|
8505
|
+
}, BN = ({ row: e, denomLogoMap: t }) => {
|
|
8500
8506
|
const { denom: s, symbol: o, totalValue: a, breakdown: i, logoUrl: r, coinLogos: l, claimableInit: c } = e, [d, m] = F(!1), p = t.get(s), h = r || p?.assetLogo, _ = e.totalAmount > 0 ? e.totalValue / e.totalAmount : 0, f = S(
|
|
8501
8507
|
() => Object.entries(i).filter(
|
|
8502
8508
|
([, w]) => w > 0
|
|
@@ -8534,7 +8540,7 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8534
8540
|
f.map(([w, b]) => {
|
|
8535
8541
|
const k = b * _;
|
|
8536
8542
|
return /* @__PURE__ */ u("div", { className: ne.breakdownRow, children: [
|
|
8537
|
-
/* @__PURE__ */ n("span", { className: ne.breakdownLabel, children:
|
|
8543
|
+
/* @__PURE__ */ n("span", { className: ne.breakdownLabel, children: RN[w] }),
|
|
8538
8544
|
/* @__PURE__ */ u("div", { className: ne.breakdownValues, children: [
|
|
8539
8545
|
/* @__PURE__ */ u("span", { className: ne.breakdownAmount, children: [
|
|
8540
8546
|
nt(b, { dp: 6 }),
|
|
@@ -8557,31 +8563,31 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8557
8563
|
] })
|
|
8558
8564
|
] }) })
|
|
8559
8565
|
] });
|
|
8560
|
-
},
|
|
8561
|
-
container:
|
|
8562
|
-
section:
|
|
8563
|
-
sectionHeader:
|
|
8564
|
-
sectionTitle:
|
|
8565
|
-
sectionLabel:
|
|
8566
|
-
externalLink:
|
|
8567
|
-
sectionValue:
|
|
8568
|
-
tokenList:
|
|
8569
|
-
tokenTrigger:
|
|
8570
|
-
tokenChevron:
|
|
8571
|
-
expanded:
|
|
8572
|
-
tokenInfo:
|
|
8573
|
-
tokenInfoLabel:
|
|
8574
|
-
tokenLogo:
|
|
8575
|
-
tokenName:
|
|
8576
|
-
triggerValue:
|
|
8577
|
-
breakdownContent:
|
|
8578
|
-
breakdownRow:
|
|
8579
|
-
breakdownLabel:
|
|
8580
|
-
breakdownValues:
|
|
8581
|
-
breakdownAmount:
|
|
8582
|
-
breakdownValue:
|
|
8583
|
-
collapsibleContent:
|
|
8584
|
-
},
|
|
8566
|
+
}, UN = "_container_1nijk_1", ON = "_section_1nijk_6", VN = "_sectionHeader_1nijk_14", FN = "_sectionTitle_1nijk_20", jN = "_sectionLabel_1nijk_26", zN = "_externalLink_1nijk_32", KN = "_sectionValue_1nijk_44", WN = "_tokenList_1nijk_51", HN = "_tokenTrigger_1nijk_63", GN = "_tokenChevron_1nijk_79", QN = "_expanded_1nijk_90", YN = "_tokenInfo_1nijk_94", ZN = "_tokenInfoLabel_1nijk_100", JN = "_tokenLogo_1nijk_106", XN = "_tokenName_1nijk_110", e3 = "_triggerValue_1nijk_116", t3 = "_breakdownContent_1nijk_123", n3 = "_breakdownRow_1nijk_131", s3 = "_breakdownLabel_1nijk_139", o3 = "_breakdownValues_1nijk_145", a3 = "_breakdownAmount_1nijk_151", i3 = "_breakdownValue_1nijk_145", r3 = "_collapsibleContent_1nijk_165", ie = {
|
|
8567
|
+
container: UN,
|
|
8568
|
+
section: ON,
|
|
8569
|
+
sectionHeader: VN,
|
|
8570
|
+
sectionTitle: FN,
|
|
8571
|
+
sectionLabel: jN,
|
|
8572
|
+
externalLink: zN,
|
|
8573
|
+
sectionValue: KN,
|
|
8574
|
+
tokenList: WN,
|
|
8575
|
+
tokenTrigger: HN,
|
|
8576
|
+
tokenChevron: GN,
|
|
8577
|
+
expanded: QN,
|
|
8578
|
+
tokenInfo: YN,
|
|
8579
|
+
tokenInfoLabel: ZN,
|
|
8580
|
+
tokenLogo: JN,
|
|
8581
|
+
tokenName: XN,
|
|
8582
|
+
triggerValue: e3,
|
|
8583
|
+
breakdownContent: t3,
|
|
8584
|
+
breakdownRow: n3,
|
|
8585
|
+
breakdownLabel: s3,
|
|
8586
|
+
breakdownValues: o3,
|
|
8587
|
+
breakdownAmount: a3,
|
|
8588
|
+
breakdownValue: i3,
|
|
8589
|
+
collapsibleContent: r3
|
|
8590
|
+
}, c3 = ({ data: e }) => {
|
|
8585
8591
|
const { totalValue: t, rows: s } = e;
|
|
8586
8592
|
return s.length === 0 ? null : /* @__PURE__ */ n("div", { className: ie.container, children: /* @__PURE__ */ u("div", { className: ie.section, children: [
|
|
8587
8593
|
/* @__PURE__ */ u("div", { className: ie.sectionHeader, children: [
|
|
@@ -8601,9 +8607,9 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8601
8607
|
] }),
|
|
8602
8608
|
/* @__PURE__ */ n("span", { className: ie.sectionValue, children: X(t) })
|
|
8603
8609
|
] }),
|
|
8604
|
-
/* @__PURE__ */ n("div", { className: ie.tokenList, children: s.map((o) => /* @__PURE__ */ n(
|
|
8610
|
+
/* @__PURE__ */ n("div", { className: ie.tokenList, children: s.map((o) => /* @__PURE__ */ n(l3, { row: o }, `${o.bridgeId}-${o.version}`)) })
|
|
8605
8611
|
] }) });
|
|
8606
|
-
},
|
|
8612
|
+
}, l3 = ({ row: e }) => {
|
|
8607
8613
|
const { name: t, logoUrl: s, lockedReward: o, lockedRewardValue: a, claimableReward: i, claimableRewardValue: r } = e, [l, c] = F(!1), d = a + r;
|
|
8608
8614
|
return /* @__PURE__ */ u(ue.Root, { open: l, onOpenChange: c, children: [
|
|
8609
8615
|
/* @__PURE__ */ n(ue.Trigger, { asChild: !0, children: /* @__PURE__ */ u("button", { className: ie.tokenTrigger, children: [
|
|
@@ -8645,25 +8651,25 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8645
8651
|
] })
|
|
8646
8652
|
] }) })
|
|
8647
8653
|
] });
|
|
8648
|
-
},
|
|
8649
|
-
container:
|
|
8650
|
-
trigger:
|
|
8651
|
-
expandIcon:
|
|
8652
|
-
chainInfo:
|
|
8653
|
-
logo:
|
|
8654
|
-
chainNameContainer:
|
|
8655
|
-
chainName:
|
|
8656
|
-
externalLink:
|
|
8657
|
-
externalIcon:
|
|
8658
|
-
valueColumn:
|
|
8659
|
-
value:
|
|
8660
|
-
expanded:
|
|
8661
|
-
collapsibleContent:
|
|
8662
|
-
content:
|
|
8663
|
-
},
|
|
8654
|
+
}, d3 = "_container_ymkoc_1", u3 = "_trigger_ymkoc_6", m3 = "_expandIcon_ymkoc_22", h3 = "_chainInfo_ymkoc_27", p3 = "_logo_ymkoc_33", f3 = "_chainNameContainer_ymkoc_37", _3 = "_chainName_ymkoc_37", g3 = "_externalLink_ymkoc_49", y3 = "_externalIcon_ymkoc_53", w3 = "_valueColumn_ymkoc_63", b3 = "_value_ymkoc_63", v3 = "_expanded_ymkoc_80", N3 = "_collapsibleContent_ymkoc_85", k3 = "_content_ymkoc_97", Me = {
|
|
8655
|
+
container: d3,
|
|
8656
|
+
trigger: u3,
|
|
8657
|
+
expandIcon: m3,
|
|
8658
|
+
chainInfo: h3,
|
|
8659
|
+
logo: p3,
|
|
8660
|
+
chainNameContainer: f3,
|
|
8661
|
+
chainName: _3,
|
|
8662
|
+
externalLink: g3,
|
|
8663
|
+
externalIcon: y3,
|
|
8664
|
+
valueColumn: w3,
|
|
8665
|
+
value: b3,
|
|
8666
|
+
expanded: v3,
|
|
8667
|
+
collapsibleContent: N3,
|
|
8668
|
+
content: k3
|
|
8669
|
+
}, C3 = Oe(!1), I3 = () => {
|
|
8664
8670
|
const { totalValue: e } = La(), { totalValue: t } = qa(), { totalValue: s } = lo(), o = e + t + s;
|
|
8665
8671
|
return /* @__PURE__ */ n("span", { className: Me.value, children: X(o) });
|
|
8666
|
-
},
|
|
8672
|
+
}, x3 = ({
|
|
8667
8673
|
chainId: e,
|
|
8668
8674
|
chainLogo: t,
|
|
8669
8675
|
denomLogos: s,
|
|
@@ -8709,7 +8715,7 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8709
8715
|
initPrice: a
|
|
8710
8716
|
}
|
|
8711
8717
|
);
|
|
8712
|
-
},
|
|
8718
|
+
}, S3 = ({
|
|
8713
8719
|
chainId: e,
|
|
8714
8720
|
chainLogo: t,
|
|
8715
8721
|
denomLogos: s,
|
|
@@ -8723,12 +8729,12 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8723
8729
|
}
|
|
8724
8730
|
return r;
|
|
8725
8731
|
}, [a.rows, s, o, e, t]);
|
|
8726
|
-
return a.rows.length === 0 ? null : /* @__PURE__ */ n(
|
|
8727
|
-
},
|
|
8732
|
+
return a.rows.length === 0 ? null : /* @__PURE__ */ n(MN, { data: a, denomLogoMap: i });
|
|
8733
|
+
}, A3 = () => {
|
|
8728
8734
|
const e = lo();
|
|
8729
|
-
return e.rows.length === 0 ? null : /* @__PURE__ */ n(
|
|
8730
|
-
},
|
|
8731
|
-
const { chainId: t, chainName: s, chainLogo: o } = e, [a, i] = Se(
|
|
8735
|
+
return e.rows.length === 0 ? null : /* @__PURE__ */ n(c3, { data: e });
|
|
8736
|
+
}, $3 = ({ chainGroup: e }) => {
|
|
8737
|
+
const { chainId: t, chainName: s, chainLogo: o } = e, [a, i] = Se(C3), r = de(), l = Jn(), { denomLogos: c, symbolLogos: d } = S(
|
|
8732
8738
|
() => Pa(l, r),
|
|
8733
8739
|
[l, r]
|
|
8734
8740
|
), m = oe(), { data: p } = At(m), h = S(() => p?.find((f) => f.id === qe)?.price ?? 0, [p]);
|
|
@@ -8752,7 +8758,7 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8752
8758
|
] })
|
|
8753
8759
|
] }),
|
|
8754
8760
|
/* @__PURE__ */ u("div", { className: Me.valueColumn, children: [
|
|
8755
|
-
/* @__PURE__ */ n(he, { suspenseFallback: /* @__PURE__ */ n(et, { height: 16, width: 60, length: 1 }), children: /* @__PURE__ */ n(
|
|
8761
|
+
/* @__PURE__ */ n(he, { suspenseFallback: /* @__PURE__ */ n(et, { height: 16, width: 60, length: 1 }), children: /* @__PURE__ */ n(I3, {}) }),
|
|
8756
8762
|
/* @__PURE__ */ n(
|
|
8757
8763
|
Ae,
|
|
8758
8764
|
{
|
|
@@ -8764,7 +8770,7 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8764
8770
|
] }) }),
|
|
8765
8771
|
/* @__PURE__ */ n(ue.Content, { className: Me.collapsibleContent, children: /* @__PURE__ */ u("div", { className: Me.content, children: [
|
|
8766
8772
|
/* @__PURE__ */ n(he, { suspenseFallback: /* @__PURE__ */ n(et, { height: 36, length: 2 }), children: /* @__PURE__ */ n(
|
|
8767
|
-
|
|
8773
|
+
x3,
|
|
8768
8774
|
{
|
|
8769
8775
|
chainId: t,
|
|
8770
8776
|
chainLogo: o,
|
|
@@ -8774,7 +8780,7 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8774
8780
|
}
|
|
8775
8781
|
) }),
|
|
8776
8782
|
/* @__PURE__ */ n(he, { suspenseFallback: /* @__PURE__ */ n(et, { height: 36, length: 2 }), children: /* @__PURE__ */ n(
|
|
8777
|
-
|
|
8783
|
+
S3,
|
|
8778
8784
|
{
|
|
8779
8785
|
chainId: t,
|
|
8780
8786
|
chainLogo: o,
|
|
@@ -8782,24 +8788,24 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8782
8788
|
symbolLogos: d
|
|
8783
8789
|
}
|
|
8784
8790
|
) }),
|
|
8785
|
-
/* @__PURE__ */ n(he, { suspenseFallback: /* @__PURE__ */ n(et, { height: 36, length: 1 }), children: /* @__PURE__ */ n(
|
|
8791
|
+
/* @__PURE__ */ n(he, { suspenseFallback: /* @__PURE__ */ n(et, { height: 36, length: 1 }), children: /* @__PURE__ */ n(A3, {}) })
|
|
8786
8792
|
] }) })
|
|
8787
8793
|
] }) });
|
|
8788
|
-
},
|
|
8789
|
-
totalValue:
|
|
8790
|
-
},
|
|
8794
|
+
}, T3 = "_totalValue_1v2ca_1", L3 = {
|
|
8795
|
+
totalValue: T3
|
|
8796
|
+
}, E3 = ({ filteredChainGroups: e }) => {
|
|
8791
8797
|
const { totalValue: t } = La(), { totalValue: s } = qa(), { totalValue: o } = lo(), a = t + s + o, i = S(() => {
|
|
8792
8798
|
const r = e.some((c) => c.isInitia);
|
|
8793
8799
|
return e.reduce((c, d) => d.isInitia ? c : c + d.totalValue, 0) + (r ? a : 0);
|
|
8794
8800
|
}, [e, a]);
|
|
8795
|
-
return /* @__PURE__ */ n("span", { className:
|
|
8796
|
-
},
|
|
8797
|
-
container:
|
|
8798
|
-
header:
|
|
8799
|
-
title:
|
|
8800
|
-
list:
|
|
8801
|
-
skeletonWrapper:
|
|
8802
|
-
},
|
|
8801
|
+
return /* @__PURE__ */ n("span", { className: L3.totalValue, children: X(i) });
|
|
8802
|
+
}, q3 = "_container_1eubu_1", P3 = "_header_1eubu_7", D3 = "_title_1eubu_13", M3 = "_list_1eubu_19", R3 = "_skeletonWrapper_1eubu_24", Bn = {
|
|
8803
|
+
container: q3,
|
|
8804
|
+
header: P3,
|
|
8805
|
+
title: D3,
|
|
8806
|
+
list: M3,
|
|
8807
|
+
skeletonWrapper: R3
|
|
8808
|
+
}, B3 = Hi(({ searchQuery: e, selectedChain: t, chainInfoMap: s }) => {
|
|
8803
8809
|
const { positions: o, isLoading: a } = rs(), i = oe(), { data: r, isLoading: l } = Zc(), c = S(() => {
|
|
8804
8810
|
const m = [];
|
|
8805
8811
|
for (const h of o) {
|
|
@@ -8849,20 +8855,20 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8849
8855
|
return /* @__PURE__ */ u("div", { className: Bn.container, children: [
|
|
8850
8856
|
/* @__PURE__ */ u("div", { className: Bn.header, children: [
|
|
8851
8857
|
/* @__PURE__ */ n("span", { className: Bn.title, children: "Positions" }),
|
|
8852
|
-
d && /* @__PURE__ */ n(he, { suspenseFallback: /* @__PURE__ */ n(et, { height: 16, width: 60, length: 1 }), children: /* @__PURE__ */ n(
|
|
8858
|
+
d && /* @__PURE__ */ n(he, { suspenseFallback: /* @__PURE__ */ n(et, { height: 16, width: 60, length: 1 }), children: /* @__PURE__ */ n(E3, { filteredChainGroups: c }) })
|
|
8853
8859
|
] }),
|
|
8854
8860
|
d ? /* @__PURE__ */ n("div", { className: Bn.list, children: c.map((m) => m.isInitia ? /* @__PURE__ */ n(
|
|
8855
8861
|
he,
|
|
8856
8862
|
{
|
|
8857
8863
|
suspenseFallback: /* @__PURE__ */ n("div", { className: Bn.skeletonWrapper, children: /* @__PURE__ */ n(et, { height: 56, length: 1 }) }),
|
|
8858
|
-
children: /* @__PURE__ */ n(
|
|
8864
|
+
children: /* @__PURE__ */ n($3, { chainGroup: m })
|
|
8859
8865
|
},
|
|
8860
8866
|
m.chainName
|
|
8861
|
-
) : /* @__PURE__ */ n(
|
|
8867
|
+
) : /* @__PURE__ */ n(dN, { chainGroup: m }, m.chainName)) }) : o.length === 0 && a ? /* @__PURE__ */ n(et, { height: 56, length: 3 }) : /* @__PURE__ */ n(_e, { children: "No positions" })
|
|
8862
8868
|
] });
|
|
8863
|
-
}),
|
|
8864
|
-
content:
|
|
8865
|
-
},
|
|
8869
|
+
}), U3 = "_content_1w1ad_1", O3 = {
|
|
8870
|
+
content: U3
|
|
8871
|
+
}, V3 = ({
|
|
8866
8872
|
selectedChain: e,
|
|
8867
8873
|
setSelectedChain: t
|
|
8868
8874
|
}) => {
|
|
@@ -8889,7 +8895,7 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8889
8895
|
renderExtra: (d) => X(d ? l.get(d) ?? 0 : c)
|
|
8890
8896
|
}
|
|
8891
8897
|
);
|
|
8892
|
-
},
|
|
8898
|
+
}, F3 = () => {
|
|
8893
8899
|
const [e, t] = Se(zc), [s, o] = Se(Kc), a = de(), i = Jn(), { denomLogos: r, symbolLogos: l } = S(
|
|
8894
8900
|
() => Pa(i, a),
|
|
8895
8901
|
[i, a]
|
|
@@ -8905,11 +8911,11 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8905
8911
|
placeholder: "Search portfolio"
|
|
8906
8912
|
}
|
|
8907
8913
|
),
|
|
8908
|
-
/* @__PURE__ */ n(he, { suspenseFallback: /* @__PURE__ */ n(en, { height: 44, width: 132 }), children: /* @__PURE__ */ n(
|
|
8914
|
+
/* @__PURE__ */ n(he, { suspenseFallback: /* @__PURE__ */ n(en, { height: 44, width: 132 }), children: /* @__PURE__ */ n(V3, { selectedChain: s, setSelectedChain: o }) })
|
|
8909
8915
|
] }),
|
|
8910
|
-
/* @__PURE__ */ u("div", { className:
|
|
8916
|
+
/* @__PURE__ */ u("div", { className: O3.content, children: [
|
|
8911
8917
|
/* @__PURE__ */ n(he, { suspenseFallback: /* @__PURE__ */ n(et, { height: 48, length: 5 }), children: /* @__PURE__ */ n(
|
|
8912
|
-
|
|
8918
|
+
ov,
|
|
8913
8919
|
{
|
|
8914
8920
|
searchQuery: e,
|
|
8915
8921
|
selectedChain: s,
|
|
@@ -8920,7 +8926,7 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8920
8926
|
}
|
|
8921
8927
|
) }),
|
|
8922
8928
|
/* @__PURE__ */ n(he, { suspenseFallback: /* @__PURE__ */ n(et, { height: 56, length: 3 }), children: /* @__PURE__ */ n(
|
|
8923
|
-
|
|
8929
|
+
B3,
|
|
8924
8930
|
{
|
|
8925
8931
|
searchQuery: e,
|
|
8926
8932
|
selectedChain: s,
|
|
@@ -8929,23 +8935,23 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8929
8935
|
) })
|
|
8930
8936
|
] })
|
|
8931
8937
|
] });
|
|
8932
|
-
},
|
|
8933
|
-
totalValue:
|
|
8934
|
-
totalLabel:
|
|
8935
|
-
totalAmount:
|
|
8936
|
-
loading:
|
|
8937
|
-
skeletonWrapper:
|
|
8938
|
-
nav:
|
|
8939
|
-
item:
|
|
8940
|
-
tabs:
|
|
8941
|
-
tab:
|
|
8942
|
-
},
|
|
8938
|
+
}, j3 = "_totalValue_5pf7e_1", z3 = "_totalLabel_5pf7e_7", K3 = "_totalAmount_5pf7e_13", W3 = "_loading_5pf7e_18", H3 = "_skeletonWrapper_5pf7e_23", G3 = "_nav_5pf7e_28", Q3 = "_item_5pf7e_34", Y3 = "_tabs_5pf7e_59", Z3 = "_tab_5pf7e_59", Re = {
|
|
8939
|
+
totalValue: j3,
|
|
8940
|
+
totalLabel: z3,
|
|
8941
|
+
totalAmount: K3,
|
|
8942
|
+
loading: W3,
|
|
8943
|
+
skeletonWrapper: H3,
|
|
8944
|
+
nav: G3,
|
|
8945
|
+
item: Q3,
|
|
8946
|
+
tabs: Y3,
|
|
8947
|
+
tab: Z3
|
|
8948
|
+
}, J3 = () => {
|
|
8943
8949
|
const { totalValue: e, isLoading: t } = Vr();
|
|
8944
8950
|
return /* @__PURE__ */ n("div", { className: L(Re.totalAmount, { [Re.loading]: t }), children: X(e) });
|
|
8945
|
-
},
|
|
8951
|
+
}, X3 = () => {
|
|
8946
8952
|
const e = lm(), t = dm(), s = Qr(), o = e + s + t;
|
|
8947
8953
|
return /* @__PURE__ */ n("div", { className: Re.totalAmount, children: X(o) });
|
|
8948
|
-
},
|
|
8954
|
+
}, ek = () => {
|
|
8949
8955
|
wc(), am();
|
|
8950
8956
|
const e = Da(), t = $e(), s = no(), o = je(null);
|
|
8951
8957
|
return /* @__PURE__ */ n(Hc.Provider, { value: o, children: /* @__PURE__ */ u(ut, { ref: o, children: [
|
|
@@ -8955,7 +8961,7 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8955
8961
|
he,
|
|
8956
8962
|
{
|
|
8957
8963
|
suspenseFallback: /* @__PURE__ */ n("div", { className: Re.skeletonWrapper, children: /* @__PURE__ */ n(en, { height: 48, width: 120 }) }),
|
|
8958
|
-
children: e ? /* @__PURE__ */ n(
|
|
8964
|
+
children: e ? /* @__PURE__ */ n(J3, {}) : /* @__PURE__ */ n(X3, {})
|
|
8959
8965
|
}
|
|
8960
8966
|
)
|
|
8961
8967
|
] }),
|
|
@@ -8979,23 +8985,23 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
8979
8985
|
/* @__PURE__ */ n(Pt.Tab, { className: Re.tab, value: "/nfts", children: "NFTs" }),
|
|
8980
8986
|
/* @__PURE__ */ n(Pt.Tab, { className: Re.tab, value: "/activity", children: "Activity" })
|
|
8981
8987
|
] }),
|
|
8982
|
-
/* @__PURE__ */ n(Pt.Panel, { value: "/", children: e ? /* @__PURE__ */ n(
|
|
8983
|
-
/* @__PURE__ */ n(Pt.Panel, { value: "/nfts", children: /* @__PURE__ */ n(
|
|
8984
|
-
/* @__PURE__ */ n(Pt.Panel, { value: "/activity", children: /* @__PURE__ */ n(
|
|
8988
|
+
/* @__PURE__ */ n(Pt.Panel, { value: "/", children: e ? /* @__PURE__ */ n(tv, {}) : /* @__PURE__ */ n(F3, {}) }),
|
|
8989
|
+
/* @__PURE__ */ n(Pt.Panel, { value: "/nfts", children: /* @__PURE__ */ n(hb, {}) }),
|
|
8990
|
+
/* @__PURE__ */ n(Pt.Panel, { value: "/activity", children: /* @__PURE__ */ n(Qw, {}) })
|
|
8985
8991
|
] })
|
|
8986
8992
|
] }) });
|
|
8987
|
-
},
|
|
8988
|
-
root:
|
|
8989
|
-
collectionName:
|
|
8990
|
-
nftName:
|
|
8991
|
-
chainInfo:
|
|
8992
|
-
attributes:
|
|
8993
|
-
title:
|
|
8994
|
-
count:
|
|
8995
|
-
item:
|
|
8996
|
-
type:
|
|
8997
|
-
value:
|
|
8998
|
-
},
|
|
8993
|
+
}, tk = "_root_th990_1", nk = "_collectionName_th990_9", sk = "_nftName_th990_13", ok = "_chainInfo_th990_17", ak = "_attributes_th990_21", ik = "_title_th990_24", rk = "_count_th990_29", ck = "_item_th990_33", lk = "_type_th990_39", dk = "_value_th990_45", Qt = {
|
|
8994
|
+
root: tk,
|
|
8995
|
+
collectionName: nk,
|
|
8996
|
+
nftName: sk,
|
|
8997
|
+
chainInfo: ok,
|
|
8998
|
+
attributes: ak,
|
|
8999
|
+
title: ik,
|
|
9000
|
+
count: rk,
|
|
9001
|
+
item: ck,
|
|
9002
|
+
type: lk,
|
|
9003
|
+
value: dk
|
|
9004
|
+
}, uk = () => {
|
|
8999
9005
|
const e = $e(), t = lt(), { attributes: s } = t;
|
|
9000
9006
|
return /* @__PURE__ */ u(Nt, { title: "NFT details", children: [
|
|
9001
9007
|
/* @__PURE__ */ n(Qa, { normalizedNft: t, chainIconSize: 14, classNames: Qt }),
|
|
@@ -9016,7 +9022,7 @@ const rv = "_section_xdyfz_2", cv = "_row_xdyfz_15", lv = "_rowLeft_xdyfz_23", d
|
|
|
9016
9022
|
] })
|
|
9017
9023
|
] });
|
|
9018
9024
|
};
|
|
9019
|
-
function
|
|
9025
|
+
function mk({
|
|
9020
9026
|
balances: e,
|
|
9021
9027
|
gasPrices: t,
|
|
9022
9028
|
gas: s
|
|
@@ -9026,14 +9032,14 @@ function hk({
|
|
|
9026
9032
|
return { amount: i, denom: o, balance: r };
|
|
9027
9033
|
}).filter(({ amount: o, balance: a }) => D(a).gte(o));
|
|
9028
9034
|
}
|
|
9029
|
-
function
|
|
9035
|
+
function hk({
|
|
9030
9036
|
denom: e,
|
|
9031
9037
|
balances: t,
|
|
9032
9038
|
gasPrices: s,
|
|
9033
9039
|
lastFeeDenom: o,
|
|
9034
9040
|
gas: a
|
|
9035
9041
|
}) {
|
|
9036
|
-
const i = t.find((d) => d.denom === e)?.amount ?? "0", r =
|
|
9042
|
+
const i = t.find((d) => d.denom === e)?.amount ?? "0", r = mk({ balances: t, gasPrices: s, gas: a }), l = r.find((d) => d.denom === o);
|
|
9037
9043
|
if (r.length === 0)
|
|
9038
9044
|
return i;
|
|
9039
9045
|
if (e === o && l) {
|
|
@@ -9047,10 +9053,10 @@ function pk({
|
|
|
9047
9053
|
}
|
|
9048
9054
|
return D(i).toString();
|
|
9049
9055
|
}
|
|
9050
|
-
const
|
|
9056
|
+
const pk = ({ chain: e, onSelect: t }) => {
|
|
9051
9057
|
const s = zd(e);
|
|
9052
9058
|
return /* @__PURE__ */ n(hs, { assets: s, onSelect: t });
|
|
9053
|
-
},
|
|
9059
|
+
}, fk = ({ afterSelect: e }) => {
|
|
9054
9060
|
const { watch: t, setValue: s } = sn(), { chainId: o, denom: a } = t(), { chainId: i } = t(), [r, l] = F(i), c = ct(r), d = de(), m = (p) => {
|
|
9055
9061
|
if (o === r && a === p) {
|
|
9056
9062
|
e();
|
|
@@ -9060,16 +9066,16 @@ const fk = ({ chain: e, onSelect: t }) => {
|
|
|
9060
9066
|
};
|
|
9061
9067
|
return /* @__PURE__ */ u(K, { children: [
|
|
9062
9068
|
/* @__PURE__ */ n(Xt.Stack, { children: /* @__PURE__ */ n(Xt, { chains: d, value: r, onSelect: l }) }),
|
|
9063
|
-
/* @__PURE__ */ n(he, { suspenseFallback: /* @__PURE__ */ n(hs.Placeholder, {}), children: /* @__PURE__ */ n(
|
|
9069
|
+
/* @__PURE__ */ n(he, { suspenseFallback: /* @__PURE__ */ n(hs.Placeholder, {}), children: /* @__PURE__ */ n(pk, { chain: c, onSelect: m }) }, r)
|
|
9064
9070
|
] });
|
|
9065
|
-
},
|
|
9066
|
-
fields:
|
|
9067
|
-
divider:
|
|
9068
|
-
},
|
|
9071
|
+
}, _k = "_fields_brpej_1", gk = "_divider_brpej_11", Bi = {
|
|
9072
|
+
fields: _k,
|
|
9073
|
+
divider: gk
|
|
9074
|
+
}, yk = ke("interwovenkit:send", {
|
|
9069
9075
|
gas: (e) => [e]
|
|
9070
|
-
}),
|
|
9076
|
+
}), wk = () => {
|
|
9071
9077
|
const { address: e, initiaAddress: t, estimateGas: s, requestTxSync: o } = Je(), { register: a, watch: i, setValue: r, handleSubmit: l, formState: c } = sn(), { errors: d } = c, { chainId: m, denom: p, recipient: h, quantity: _, memo: f } = i(), g = ct(m), y = Xn(g), w = Ma(g), b = Ra(g), k = ur(p, g), { data: N } = At(g), { decimals: C } = k, x = y.find((M) => M.denom === p)?.amount ?? "0", A = N?.find(({ id: M }) => M === p)?.price, { data: T = 0, isLoading: O } = ge({
|
|
9072
|
-
queryKey:
|
|
9078
|
+
queryKey: yk.gas({ chainId: m, denom: p, recipient: h, initiaAddress: t }).queryKey,
|
|
9073
9079
|
queryFn: () => {
|
|
9074
9080
|
const M = [
|
|
9075
9081
|
{
|
|
@@ -9085,7 +9091,7 @@ const fk = ({ chain: e, onSelect: t }) => {
|
|
|
9085
9091
|
},
|
|
9086
9092
|
enabled: H.validate(h),
|
|
9087
9093
|
staleTime: V.INFINITY
|
|
9088
|
-
}), E = Math.ceil(T * On), I =
|
|
9094
|
+
}), E = Math.ceil(T * On), I = hk({ denom: p, balances: y, gasPrices: w, lastFeeDenom: b, gas: E }), v = D(x).isZero(), B = w.some(({ denom: M }) => M === p) && O, R = v || B, { mutate: U, isPending: Z } = ot({
|
|
9089
9095
|
mutationFn: ({ chainId: M, denom: q, quantity: Te, recipient: Ce, memo: mt }) => {
|
|
9090
9096
|
const Ke = Ks(Te, { decimals: C }), ln = [
|
|
9091
9097
|
{
|
|
@@ -9124,7 +9130,7 @@ const fk = ({ chain: e, onSelect: t }) => {
|
|
|
9124
9130
|
Cn,
|
|
9125
9131
|
{
|
|
9126
9132
|
title: "Select chain and asset",
|
|
9127
|
-
content: (M) => /* @__PURE__ */ n(
|
|
9133
|
+
content: (M) => /* @__PURE__ */ n(fk, { afterSelect: M }),
|
|
9128
9134
|
children: /* @__PURE__ */ n(kc, { asset: k, chain: g })
|
|
9129
9135
|
}
|
|
9130
9136
|
),
|
|
@@ -9169,7 +9175,7 @@ const fk = ({ chain: e, onSelect: t }) => {
|
|
|
9169
9175
|
}
|
|
9170
9176
|
) })
|
|
9171
9177
|
] }) });
|
|
9172
|
-
},
|
|
9178
|
+
}, bk = () => {
|
|
9173
9179
|
const e = lt(), t = on(), s = xt(t), { chain: o = t } = e, a = Hn(s);
|
|
9174
9180
|
if (!e.denom && !a)
|
|
9175
9181
|
throw new Error(
|
|
@@ -9179,13 +9185,13 @@ const fk = ({ chain: e, onSelect: t }) => {
|
|
|
9179
9185
|
mode: "onChange",
|
|
9180
9186
|
defaultValues: { chainId: o.chainId, denom: i, quantity: "", recipient: "", memo: "" }
|
|
9181
9187
|
});
|
|
9182
|
-
return /* @__PURE__ */ n(Gs, { ...r, children: /* @__PURE__ */ n(
|
|
9188
|
+
return /* @__PURE__ */ n(Gs, { ...r, children: /* @__PURE__ */ n(wk, {}) });
|
|
9183
9189
|
};
|
|
9184
9190
|
async function aa(e, t) {
|
|
9185
9191
|
const s = e.replace("ibc/", ""), { class_trace: o } = await j.create({ prefixUrl: t }).get(`ibc/apps/nft_transfer/v1/class_traces/${s}`).json();
|
|
9186
9192
|
return o;
|
|
9187
9193
|
}
|
|
9188
|
-
async function
|
|
9194
|
+
async function vk(e, t) {
|
|
9189
9195
|
const s = new Kl([
|
|
9190
9196
|
{
|
|
9191
9197
|
inputs: [],
|
|
@@ -9203,7 +9209,7 @@ async function Nk(e, t) {
|
|
|
9203
9209
|
}).json();
|
|
9204
9210
|
return s.decodeFunctionResult("name", o)[0];
|
|
9205
9211
|
}
|
|
9206
|
-
async function
|
|
9212
|
+
async function Nk(e, t, s) {
|
|
9207
9213
|
if (t.startsWith("evm/"))
|
|
9208
9214
|
return e;
|
|
9209
9215
|
const { token_infos: o } = await j.create({ prefixUrl: s }).get(`minievm/evm/v1/erc721/origin_token_infos/${t}`, {
|
|
@@ -9211,8 +9217,8 @@ async function kk(e, t, s) {
|
|
|
9211
9217
|
}).json();
|
|
9212
9218
|
return o.map(({ token_origin_id: a }) => a);
|
|
9213
9219
|
}
|
|
9214
|
-
async function
|
|
9215
|
-
const s = await
|
|
9220
|
+
async function kk({ collection_addr: e }, { restUrl: t }) {
|
|
9221
|
+
const s = await vk(e, t);
|
|
9216
9222
|
if (!s.startsWith("ibc/"))
|
|
9217
9223
|
return {
|
|
9218
9224
|
class_id: `evm/${H(e).rawHex}`,
|
|
@@ -9227,7 +9233,7 @@ async function Ck({ collection_addr: e }, { restUrl: t }) {
|
|
|
9227
9233
|
class_trace: void 0
|
|
9228
9234
|
};
|
|
9229
9235
|
}
|
|
9230
|
-
async function
|
|
9236
|
+
async function Ck(e, t) {
|
|
9231
9237
|
const { data: s } = await j.create({ prefixUrl: t }).post("initia/move/v1/view/json", {
|
|
9232
9238
|
json: {
|
|
9233
9239
|
address: "0x1",
|
|
@@ -9239,8 +9245,8 @@ async function Ik(e, t) {
|
|
|
9239
9245
|
}).json();
|
|
9240
9246
|
return JSON.parse(s);
|
|
9241
9247
|
}
|
|
9242
|
-
async function
|
|
9243
|
-
const o = await
|
|
9248
|
+
async function Ik({ object_addr: e, collection_addr: t }, { restUrl: s }) {
|
|
9249
|
+
const o = await Ck(t, s);
|
|
9244
9250
|
return o.startsWith("ibc/") ? H.equals(ji("0x1", o), t) ? {
|
|
9245
9251
|
class_id: o,
|
|
9246
9252
|
class_trace: await aa(o, s)
|
|
@@ -9252,15 +9258,15 @@ async function xk({ object_addr: e, collection_addr: t }, { restUrl: s }) {
|
|
|
9252
9258
|
class_trace: void 0
|
|
9253
9259
|
};
|
|
9254
9260
|
}
|
|
9255
|
-
async function
|
|
9261
|
+
async function xk(e, t) {
|
|
9256
9262
|
const s = it(Es(JSON.stringify({ contract_info: {} }))), { data: o } = await j.create({ prefixUrl: t }).get(`cosmwasm/wasm/v1/contract/${e}/smart/${s}`).json();
|
|
9257
9263
|
return o.name;
|
|
9258
9264
|
}
|
|
9259
|
-
async function
|
|
9265
|
+
async function Sk(e, t) {
|
|
9260
9266
|
const { collection: s } = await j.create({ prefixUrl: t }).get(`indexer/nft/v1/collections/${e}`).json();
|
|
9261
9267
|
return s.collection.creator;
|
|
9262
9268
|
}
|
|
9263
|
-
async function
|
|
9269
|
+
async function Ak(e, t) {
|
|
9264
9270
|
const s = it(ar(JSON.stringify({ outgoing_proxy: {} }))), { data: o } = await j.create({ prefixUrl: t }).get(`cosmwasm/wasm/v1/contract/${e}/smart/${s}`).json();
|
|
9265
9271
|
return o;
|
|
9266
9272
|
}
|
|
@@ -9270,12 +9276,12 @@ function Ui(e) {
|
|
|
9270
9276
|
const [, o, a] = s;
|
|
9271
9277
|
return [o, a];
|
|
9272
9278
|
}
|
|
9273
|
-
async function
|
|
9274
|
-
const o = H(e).bech32, a = await
|
|
9279
|
+
async function $k({ collection_addr: e }, t, s) {
|
|
9280
|
+
const o = H(e).bech32, a = await xk(o, t.restUrl), i = t.metadata?.ibc_channels?.find(
|
|
9275
9281
|
({ chain_id: g, version: y }) => g === s.chain_id && y.includes("ics721-1")
|
|
9276
9282
|
);
|
|
9277
9283
|
if (!i) throw new Error("Channel not found");
|
|
9278
|
-
const r = i.port_id, l = r.split(".")[1], c = it(ar(JSON.stringify({ class_id: { contract: o } }))), { data: d } = await j.create({ prefixUrl: t.restUrl }).get(`cosmwasm/wasm/v1/contract/${l}/smart/${c}`).json(), m = d ?? o, p = await
|
|
9284
|
+
const r = i.port_id, l = r.split(".")[1], c = it(ar(JSON.stringify({ class_id: { contract: o } }))), { data: d } = await j.create({ prefixUrl: t.restUrl }).get(`cosmwasm/wasm/v1/contract/${l}/smart/${c}`).json(), m = d ?? o, p = await Ak(l, t.restUrl), h = await Sk(o, t.indexerUrl);
|
|
9279
9285
|
if (m === o)
|
|
9280
9286
|
return {
|
|
9281
9287
|
class_id: m,
|
|
@@ -9297,12 +9303,12 @@ async function Tk({ collection_addr: e }, t, s) {
|
|
|
9297
9303
|
outgoing_proxy: p
|
|
9298
9304
|
};
|
|
9299
9305
|
}
|
|
9300
|
-
const
|
|
9301
|
-
minimove:
|
|
9302
|
-
minievm:
|
|
9303
|
-
miniwasm:
|
|
9306
|
+
const Tk = {
|
|
9307
|
+
minimove: Ik,
|
|
9308
|
+
minievm: kk,
|
|
9309
|
+
miniwasm: $k
|
|
9304
9310
|
};
|
|
9305
|
-
async function
|
|
9311
|
+
async function Lk({
|
|
9306
9312
|
nft: e,
|
|
9307
9313
|
srcChain: t,
|
|
9308
9314
|
intermediaryChain: s
|
|
@@ -9310,11 +9316,11 @@ async function Ek({
|
|
|
9310
9316
|
const o = t.metadata?.is_l1 ? "minimove" : t.metadata?.minitia?.type;
|
|
9311
9317
|
if (!(o === "minimove" || o === "minievm" || o === "miniwasm"))
|
|
9312
9318
|
throw new Error(`Unsupported minitia type: ${o}`);
|
|
9313
|
-
const a = await
|
|
9319
|
+
const a = await Tk[o](e, t, s);
|
|
9314
9320
|
return Object.assign(
|
|
9315
9321
|
a,
|
|
9316
9322
|
o === "minievm" && {
|
|
9317
|
-
token_ids: await
|
|
9323
|
+
token_ids: await Nk(
|
|
9318
9324
|
[e.token_id],
|
|
9319
9325
|
a.class_id,
|
|
9320
9326
|
t.restUrl
|
|
@@ -9322,18 +9328,18 @@ async function Ek({
|
|
|
9322
9328
|
}
|
|
9323
9329
|
);
|
|
9324
9330
|
}
|
|
9325
|
-
const
|
|
9326
|
-
root:
|
|
9327
|
-
collectionName:
|
|
9328
|
-
nftName:
|
|
9329
|
-
chainInfo:
|
|
9330
|
-
fields:
|
|
9331
|
-
chain:
|
|
9332
|
-
},
|
|
9331
|
+
const Ek = "_root_1tyvn_1", qk = "_collectionName_1tyvn_10", Pk = "_nftName_1tyvn_15", Dk = "_chainInfo_1tyvn_19", Mk = "_fields_1tyvn_24", Rk = "_chain_1tyvn_19", zo = {
|
|
9332
|
+
root: Ek,
|
|
9333
|
+
collectionName: qk,
|
|
9334
|
+
nftName: Pk,
|
|
9335
|
+
chainInfo: Dk,
|
|
9336
|
+
fields: Mk,
|
|
9337
|
+
chain: Rk
|
|
9338
|
+
}, Bk = ke("interwovenkit:send-nft", {
|
|
9333
9339
|
simulation: (e) => [e]
|
|
9334
|
-
}),
|
|
9340
|
+
}), Uk = () => {
|
|
9335
9341
|
const e = de(), t = lt(), { chain: s, collection_addr: o } = t, { routerApiUrl: a } = Y(), i = ns(), r = oe(), { address: l, initiaAddress: c, requestTxSync: d } = Je(), { watch: m, setValue: p, handleSubmit: h, formState: _ } = sn(), { errors: f } = _, g = m(), { recipient: y, dstChainId: w } = g, b = ct(w), k = ge({
|
|
9336
|
-
queryKey:
|
|
9342
|
+
queryKey: Bk.simulation({
|
|
9337
9343
|
collection_addr: o,
|
|
9338
9344
|
nft: t,
|
|
9339
9345
|
sender: c,
|
|
@@ -9354,7 +9360,7 @@ const qk = "_root_1tyvn_1", Pk = "_collectionName_1tyvn_10", Dk = "_nftName_1tyv
|
|
|
9354
9360
|
token_ids: [t.token_id],
|
|
9355
9361
|
object_addresses: [t.object_addr]
|
|
9356
9362
|
},
|
|
9357
|
-
s.chainId !== b.chainId && await
|
|
9363
|
+
s.chainId !== b.chainId && await Lk({ nft: t, srcChain: s, intermediaryChain: r })
|
|
9358
9364
|
), { msgs: v } = await j.create({ prefixUrl: a }).post("nft", { json: I }).json();
|
|
9359
9365
|
return v.map(($) => i.fromAmino($));
|
|
9360
9366
|
},
|
|
@@ -9412,12 +9418,12 @@ const qk = "_root_1tyvn_1", Pk = "_collectionName_1tyvn_10", Dk = "_nftName_1tyv
|
|
|
9412
9418
|
}
|
|
9413
9419
|
) })
|
|
9414
9420
|
] });
|
|
9415
|
-
},
|
|
9421
|
+
}, Ok = () => {
|
|
9416
9422
|
const { chain: e } = lt(), t = Gn({
|
|
9417
9423
|
mode: "onChange",
|
|
9418
9424
|
defaultValues: { dstChainId: e.chainId, recipient: "" }
|
|
9419
9425
|
});
|
|
9420
|
-
return /* @__PURE__ */ n(Nt, { title: "Send NFT", children: /* @__PURE__ */ n(Gs, { ...t, children: /* @__PURE__ */ n(
|
|
9426
|
+
return /* @__PURE__ */ n(Nt, { title: "Send NFT", children: /* @__PURE__ */ n(Gs, { ...t, children: /* @__PURE__ */ n(Uk, {}) }) });
|
|
9421
9427
|
}, ia = () => {
|
|
9422
9428
|
const e = $e(), t = no(), s = an(), { closeDrawer: o } = $t(), { closeModal: a } = io();
|
|
9423
9429
|
Q(() => {
|
|
@@ -9436,15 +9442,15 @@ const qk = "_root_1tyvn_1", Pk = "_collectionName_1tyvn_10", Dk = "_nftName_1tyv
|
|
|
9436
9442
|
case "/":
|
|
9437
9443
|
case "/nfts":
|
|
9438
9444
|
case "/activity":
|
|
9439
|
-
return /* @__PURE__ */ n(
|
|
9445
|
+
return /* @__PURE__ */ n(ek, {});
|
|
9440
9446
|
case "/send":
|
|
9441
|
-
return /* @__PURE__ */ n(
|
|
9447
|
+
return /* @__PURE__ */ n(bk, {}, s);
|
|
9442
9448
|
case "/receive":
|
|
9443
9449
|
return /* @__PURE__ */ n(I0, {});
|
|
9444
9450
|
case "/nft":
|
|
9445
|
-
return /* @__PURE__ */ n(
|
|
9451
|
+
return /* @__PURE__ */ n(uk, {});
|
|
9446
9452
|
case "/nft/send":
|
|
9447
|
-
return /* @__PURE__ */ n(
|
|
9453
|
+
return /* @__PURE__ */ n(Ok, {}, s);
|
|
9448
9454
|
case "/bridge":
|
|
9449
9455
|
return /* @__PURE__ */ n(Cg, {}, s);
|
|
9450
9456
|
case "/bridge/preview":
|
|
@@ -9458,7 +9464,7 @@ const qk = "_root_1tyvn_1", Pk = "_collectionName_1tyvn_10", Dk = "_nftName_1tyv
|
|
|
9458
9464
|
case "/autosign/enable":
|
|
9459
9465
|
return /* @__PURE__ */ n(uf, {});
|
|
9460
9466
|
case "/settings":
|
|
9461
|
-
return /* @__PURE__ */ n(
|
|
9467
|
+
return /* @__PURE__ */ n(J0, {});
|
|
9462
9468
|
case "/settings/autosign":
|
|
9463
9469
|
return /* @__PURE__ */ n(O0, {});
|
|
9464
9470
|
case "/deposit":
|
|
@@ -9470,36 +9476,36 @@ const qk = "_root_1tyvn_1", Pk = "_collectionName_1tyvn_10", Dk = "_nftName_1tyv
|
|
|
9470
9476
|
case "/withdraw/completed":
|
|
9471
9477
|
return /* @__PURE__ */ n(oa, { type: "withdraw" });
|
|
9472
9478
|
}
|
|
9473
|
-
},
|
|
9479
|
+
}, Vk = "https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100..700&display=swap", Fk = () => /* @__PURE__ */ u(K, { children: [
|
|
9474
9480
|
/* @__PURE__ */ n("link", { rel: "preconnect", href: "https://fonts.googleapis.com" }),
|
|
9475
9481
|
/* @__PURE__ */ n("link", { rel: "preconnect", href: "https://fonts.gstatic.com", crossOrigin: "" }),
|
|
9476
|
-
/* @__PURE__ */ n("link", { rel: "stylesheet", href:
|
|
9482
|
+
/* @__PURE__ */ n("link", { rel: "stylesheet", href: Vk }),
|
|
9477
9483
|
/* @__PURE__ */ n("link", { rel: "stylesheet", href: "https://assets.initia.xyz/fonts/PilatWide.css" })
|
|
9478
|
-
] }),
|
|
9484
|
+
] }), jk = () => (eu(), ru(), de(), im(), Qr(), Jn(), ls(), rn(), null), eI = ({ children: e, ...t }) => (Q(() => {
|
|
9479
9485
|
Bu();
|
|
9480
9486
|
}, []), dd() ? /* @__PURE__ */ u(K, { children: [
|
|
9481
|
-
/* @__PURE__ */ n(
|
|
9487
|
+
/* @__PURE__ */ n(Fk, {}),
|
|
9482
9488
|
/* @__PURE__ */ n(rr.Provider, { value: { ...Dd, ...t }, children: /* @__PURE__ */ n(wr, { children: /* @__PURE__ */ n(Bp, { children: /* @__PURE__ */ n(pn.Provider, { delayDuration: 0, skipDelayDuration: 0, children: /* @__PURE__ */ n(Rp, { children: /* @__PURE__ */ u(Ip, { children: [
|
|
9483
9489
|
e,
|
|
9484
9490
|
/* @__PURE__ */ n(um, {}),
|
|
9485
|
-
/* @__PURE__ */ n(he, { suspenseFallback: null, errorBoundaryProps: { fallback: null }, children: /* @__PURE__ */ n(
|
|
9491
|
+
/* @__PURE__ */ n(he, { suspenseFallback: null, errorBoundaryProps: { fallback: null }, children: /* @__PURE__ */ n(jk, {}) }),
|
|
9486
9492
|
/* @__PURE__ */ n(Xm, { children: /* @__PURE__ */ n(ia, {}) }),
|
|
9487
9493
|
/* @__PURE__ */ n(Qm, { children: /* @__PURE__ */ n(ia, {}) })
|
|
9488
9494
|
] }) }) }) }) }) })
|
|
9489
|
-
] }) : null),
|
|
9495
|
+
] }) : null), tI = ({ bridge: e }) => /* @__PURE__ */ n(wr, { initialEntry: { path: e ? "/bridge" : "/", state: e }, children: /* @__PURE__ */ n("div", { className: "body", children: /* @__PURE__ */ n(ic.Provider, { value: !!e, children: /* @__PURE__ */ n(he, { children: /* @__PURE__ */ n(ia, {}) }) }) }) });
|
|
9490
9496
|
export {
|
|
9491
9497
|
On as DEFAULT_GAS_ADJUSTMENT,
|
|
9492
9498
|
Pd as DEFAULT_GAS_PRICE_MULTIPLIER,
|
|
9493
|
-
|
|
9494
|
-
|
|
9499
|
+
tI as InterwovenKit,
|
|
9500
|
+
eI as InterwovenKitProvider,
|
|
9495
9501
|
Dd as MAINNET,
|
|
9496
9502
|
cu as MoveError,
|
|
9497
9503
|
ir as PRIVY_APP_ID,
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9504
|
+
YC as TESTNET,
|
|
9505
|
+
JC as initiaPrivyWallet,
|
|
9506
|
+
ZC as initiaPrivyWalletConnector,
|
|
9501
9507
|
Bs as initiaPrivyWalletOptions,
|
|
9502
|
-
|
|
9508
|
+
XC as injectStyles,
|
|
9503
9509
|
an as useAddress,
|
|
9504
9510
|
as as useHexAddress,
|
|
9505
9511
|
ee as useInitiaAddress,
|