@initia/interwovenkit-react 2.13.3 → 2.13.4
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 +2 -2
- package/dist/index.js +99 -95
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -748,7 +748,7 @@ function Sa() {
|
|
|
748
748
|
let { routerApiUrl: e } = W();
|
|
749
749
|
return R(() => I.create({
|
|
750
750
|
prefixUrl: e,
|
|
751
|
-
headers: { "InterwovenKit-Version": "2.13.
|
|
751
|
+
headers: { "InterwovenKit-Version": "2.13.4" }
|
|
752
752
|
}), [e]);
|
|
753
753
|
}
|
|
754
754
|
//#endregion
|
|
@@ -13817,88 +13817,9 @@ function Zw({ approvalError: e, approveTokens: t, exactFeeCheckError: n, isAppro
|
|
|
13817
13817
|
isApproving: !!r
|
|
13818
13818
|
} : { kind: "preview" };
|
|
13819
13819
|
}
|
|
13820
|
-
var Qw = {
|
|
13821
|
-
content: "_content_1hzj2_1",
|
|
13822
|
-
info: "_info_1hzj2_6",
|
|
13823
|
-
arrow: "_arrow_1hzj2_11",
|
|
13824
|
-
divider: "_divider_1hzj2_19",
|
|
13825
|
-
type: "_type_1hzj2_27",
|
|
13826
|
-
asset: "_asset_1hzj2_47",
|
|
13827
|
-
amount: "_amount_1hzj2_55",
|
|
13828
|
-
lower: "_lower_1hzj2_60",
|
|
13829
|
-
chain: "_chain_1hzj2_66",
|
|
13830
|
-
address: "_address_1hzj2_72"
|
|
13831
|
-
}, $w = (e) => {
|
|
13832
|
-
let { source: t, label: n, amount: r, denom: i, chainId: a, address: o, walletIcon: s } = e, { symbol: c = j(i), decimals: l = 0, logo_uri: u = wi } = e, { chain_name: d, pretty_name: f, ...p } = d_(a);
|
|
13833
|
-
return /* @__PURE__ */ H("div", { children: [!t && /* @__PURE__ */ H("div", {
|
|
13834
|
-
className: Qw.arrow,
|
|
13835
|
-
children: [
|
|
13836
|
-
/* @__PURE__ */ V("div", { className: Qw.divider }),
|
|
13837
|
-
n ? /* @__PURE__ */ V(G_, {
|
|
13838
|
-
label: n,
|
|
13839
|
-
children: /* @__PURE__ */ V("button", {
|
|
13840
|
-
className: Qw.type,
|
|
13841
|
-
"aria-label": n,
|
|
13842
|
-
children: /* @__PURE__ */ V(Bn, { size: 12 })
|
|
13843
|
-
})
|
|
13844
|
-
}) : /* @__PURE__ */ V("span", {
|
|
13845
|
-
className: Qw.type,
|
|
13846
|
-
children: /* @__PURE__ */ V(Bn, { size: 12 })
|
|
13847
|
-
}),
|
|
13848
|
-
/* @__PURE__ */ V("div", { className: Qw.divider })
|
|
13849
|
-
]
|
|
13850
|
-
}), /* @__PURE__ */ H("div", {
|
|
13851
|
-
className: Qw.content,
|
|
13852
|
-
children: [/* @__PURE__ */ V(dv, {
|
|
13853
|
-
assetLogoUrl: u,
|
|
13854
|
-
chainLogoUrl: p.logo_uri ?? void 0
|
|
13855
|
-
}), /* @__PURE__ */ H("div", {
|
|
13856
|
-
className: Qw.info,
|
|
13857
|
-
children: [/* @__PURE__ */ H("div", {
|
|
13858
|
-
className: Qw.asset,
|
|
13859
|
-
children: [/* @__PURE__ */ V("span", {
|
|
13860
|
-
className: Qw.amount,
|
|
13861
|
-
children: E(r, { decimals: l })
|
|
13862
|
-
}), /* @__PURE__ */ V("span", { children: c })]
|
|
13863
|
-
}), /* @__PURE__ */ H("div", {
|
|
13864
|
-
className: Qw.lower,
|
|
13865
|
-
children: [/* @__PURE__ */ H("div", {
|
|
13866
|
-
className: Qw.chain,
|
|
13867
|
-
children: ["on ", f || d]
|
|
13868
|
-
}), o && /* @__PURE__ */ V(Th, {
|
|
13869
|
-
value: o,
|
|
13870
|
-
children: ({ copy: e, copied: t }) => /* @__PURE__ */ H("button", {
|
|
13871
|
-
className: Qw.address,
|
|
13872
|
-
onClick: e,
|
|
13873
|
-
children: [s, t ? /* @__PURE__ */ V("span", { children: "Copied!" }) : /* @__PURE__ */ V("span", {
|
|
13874
|
-
className: "monospace",
|
|
13875
|
-
children: j(o)
|
|
13876
|
-
})]
|
|
13877
|
-
})
|
|
13878
|
-
})]
|
|
13879
|
-
})]
|
|
13880
|
-
})]
|
|
13881
|
-
})] });
|
|
13882
|
-
}, eT = (e) => {
|
|
13883
|
-
let t = C_(e.denom, e.chainId);
|
|
13884
|
-
return /* @__PURE__ */ V($w, {
|
|
13885
|
-
...e,
|
|
13886
|
-
...t
|
|
13887
|
-
});
|
|
13888
|
-
};
|
|
13889
|
-
eT.Placeholder = $w;
|
|
13890
|
-
var tT = {
|
|
13891
|
-
root: "_root_1hbar_1",
|
|
13892
|
-
flexEnd: "_flexEnd_1hbar_6",
|
|
13893
|
-
toggle: "_toggle_1hbar_11",
|
|
13894
|
-
route: "_route_1hbar_36",
|
|
13895
|
-
content: "_content_1hbar_43",
|
|
13896
|
-
slideDown: "_slideDown_1hbar_1",
|
|
13897
|
-
slideUp: "_slideUp_1hbar_1"
|
|
13898
|
-
};
|
|
13899
13820
|
//#endregion
|
|
13900
|
-
//#region src/pages/bridge/
|
|
13901
|
-
function
|
|
13821
|
+
//#region src/pages/bridge/data/operation.ts
|
|
13822
|
+
function Qw(e) {
|
|
13902
13823
|
let t = ({ name: e }) => e === "initia-dex" ? "Initia DEX" : _r(ie(e?.split("-") ?? []) ?? "");
|
|
13903
13824
|
if ("transfer" in e) return {
|
|
13904
13825
|
label: "Bridge via IBC",
|
|
@@ -13928,6 +13849,11 @@ function nT(e) {
|
|
|
13928
13849
|
...e,
|
|
13929
13850
|
...e.cctp_transfer
|
|
13930
13851
|
};
|
|
13852
|
+
if ("cctp_transfer_v2" in e) return {
|
|
13853
|
+
label: "Bridge via CCTP",
|
|
13854
|
+
...e,
|
|
13855
|
+
...e.cctp_transfer_v2
|
|
13856
|
+
};
|
|
13931
13857
|
if ("hyperlane_transfer" in e) return {
|
|
13932
13858
|
label: "Bridge via Hyperlane",
|
|
13933
13859
|
...e,
|
|
@@ -13968,7 +13894,85 @@ function nT(e) {
|
|
|
13968
13894
|
};
|
|
13969
13895
|
throw Error("Unknown operation type");
|
|
13970
13896
|
}
|
|
13971
|
-
var
|
|
13897
|
+
var $w = {
|
|
13898
|
+
content: "_content_1hzj2_1",
|
|
13899
|
+
info: "_info_1hzj2_6",
|
|
13900
|
+
arrow: "_arrow_1hzj2_11",
|
|
13901
|
+
divider: "_divider_1hzj2_19",
|
|
13902
|
+
type: "_type_1hzj2_27",
|
|
13903
|
+
asset: "_asset_1hzj2_47",
|
|
13904
|
+
amount: "_amount_1hzj2_55",
|
|
13905
|
+
lower: "_lower_1hzj2_60",
|
|
13906
|
+
chain: "_chain_1hzj2_66",
|
|
13907
|
+
address: "_address_1hzj2_72"
|
|
13908
|
+
}, eT = (e) => {
|
|
13909
|
+
let { source: t, label: n, amount: r, denom: i, chainId: a, address: o, walletIcon: s } = e, { symbol: c = j(i), decimals: l = 0, logo_uri: u = wi } = e, { chain_name: d, pretty_name: f, ...p } = d_(a);
|
|
13910
|
+
return /* @__PURE__ */ H("div", { children: [!t && /* @__PURE__ */ H("div", {
|
|
13911
|
+
className: $w.arrow,
|
|
13912
|
+
children: [
|
|
13913
|
+
/* @__PURE__ */ V("div", { className: $w.divider }),
|
|
13914
|
+
n ? /* @__PURE__ */ V(G_, {
|
|
13915
|
+
label: n,
|
|
13916
|
+
children: /* @__PURE__ */ V("button", {
|
|
13917
|
+
className: $w.type,
|
|
13918
|
+
"aria-label": n,
|
|
13919
|
+
children: /* @__PURE__ */ V(Bn, { size: 12 })
|
|
13920
|
+
})
|
|
13921
|
+
}) : /* @__PURE__ */ V("span", {
|
|
13922
|
+
className: $w.type,
|
|
13923
|
+
children: /* @__PURE__ */ V(Bn, { size: 12 })
|
|
13924
|
+
}),
|
|
13925
|
+
/* @__PURE__ */ V("div", { className: $w.divider })
|
|
13926
|
+
]
|
|
13927
|
+
}), /* @__PURE__ */ H("div", {
|
|
13928
|
+
className: $w.content,
|
|
13929
|
+
children: [/* @__PURE__ */ V(dv, {
|
|
13930
|
+
assetLogoUrl: u,
|
|
13931
|
+
chainLogoUrl: p.logo_uri ?? void 0
|
|
13932
|
+
}), /* @__PURE__ */ H("div", {
|
|
13933
|
+
className: $w.info,
|
|
13934
|
+
children: [/* @__PURE__ */ H("div", {
|
|
13935
|
+
className: $w.asset,
|
|
13936
|
+
children: [/* @__PURE__ */ V("span", {
|
|
13937
|
+
className: $w.amount,
|
|
13938
|
+
children: E(r, { decimals: l })
|
|
13939
|
+
}), /* @__PURE__ */ V("span", { children: c })]
|
|
13940
|
+
}), /* @__PURE__ */ H("div", {
|
|
13941
|
+
className: $w.lower,
|
|
13942
|
+
children: [/* @__PURE__ */ H("div", {
|
|
13943
|
+
className: $w.chain,
|
|
13944
|
+
children: ["on ", f || d]
|
|
13945
|
+
}), o && /* @__PURE__ */ V(Th, {
|
|
13946
|
+
value: o,
|
|
13947
|
+
children: ({ copy: e, copied: t }) => /* @__PURE__ */ H("button", {
|
|
13948
|
+
className: $w.address,
|
|
13949
|
+
onClick: e,
|
|
13950
|
+
children: [s, t ? /* @__PURE__ */ V("span", { children: "Copied!" }) : /* @__PURE__ */ V("span", {
|
|
13951
|
+
className: "monospace",
|
|
13952
|
+
children: j(o)
|
|
13953
|
+
})]
|
|
13954
|
+
})
|
|
13955
|
+
})]
|
|
13956
|
+
})]
|
|
13957
|
+
})]
|
|
13958
|
+
})] });
|
|
13959
|
+
}, tT = (e) => {
|
|
13960
|
+
let t = C_(e.denom, e.chainId);
|
|
13961
|
+
return /* @__PURE__ */ V(eT, {
|
|
13962
|
+
...e,
|
|
13963
|
+
...t
|
|
13964
|
+
});
|
|
13965
|
+
};
|
|
13966
|
+
tT.Placeholder = eT;
|
|
13967
|
+
var nT = {
|
|
13968
|
+
root: "_root_1hbar_1",
|
|
13969
|
+
flexEnd: "_flexEnd_1hbar_6",
|
|
13970
|
+
toggle: "_toggle_1hbar_11",
|
|
13971
|
+
route: "_route_1hbar_36",
|
|
13972
|
+
content: "_content_1hbar_43",
|
|
13973
|
+
slideDown: "_slideDown_1hbar_1",
|
|
13974
|
+
slideUp: "_slideUp_1hbar_1"
|
|
13975
|
+
}, rT = ({ addressList: e }) => {
|
|
13972
13976
|
let { values: t, route: r } = bw(), { source_asset_denom: i, source_asset_chain_id: a, amount_in: o, operations: s } = r, c = he(r.required_chain_addresses, e), { find: l } = sv(), { connector: u, address: d = "" } = n(), [f, p] = _n(!1), m = s.length > 1, h = /* @__PURE__ */ V(Y, {
|
|
13973
13977
|
src: t.cosmosWalletName ? l(t.cosmosWalletName)?.image : u?.icon,
|
|
13974
13978
|
width: 12,
|
|
@@ -13979,7 +13983,7 @@ var rT = ({ addressList: e }) => {
|
|
|
13979
13983
|
chainId: a,
|
|
13980
13984
|
address: t.sender,
|
|
13981
13985
|
walletIcon: h
|
|
13982
|
-
}, _ = (e) => b.equals(e, d) ? h : /* @__PURE__ */ V(fr, { size: 11 }), v = s.map(
|
|
13986
|
+
}, _ = (e) => b.equals(e, d) ? h : /* @__PURE__ */ V(fr, { size: 11 }), v = s.map(Qw).map((e) => {
|
|
13983
13987
|
let { label: t, amount_out: n, denom: r, denom_out: i = r, chain_id: a, from_chain_id: o, to_chain_id: s = a ?? o } = e, l = c[s];
|
|
13984
13988
|
return {
|
|
13985
13989
|
label: m && !f ? void 0 : t,
|
|
@@ -13991,31 +13995,31 @@ var rT = ({ addressList: e }) => {
|
|
|
13991
13995
|
};
|
|
13992
13996
|
}), y = v.slice(0, -1), x = v[v.length - 1];
|
|
13993
13997
|
return /* @__PURE__ */ H(An.Root, {
|
|
13994
|
-
className:
|
|
13998
|
+
className: nT.root,
|
|
13995
13999
|
open: f,
|
|
13996
14000
|
onOpenChange: p,
|
|
13997
14001
|
children: [m && /* @__PURE__ */ V("div", {
|
|
13998
|
-
className:
|
|
14002
|
+
className: nT.flexEnd,
|
|
13999
14003
|
children: /* @__PURE__ */ V(An.Trigger, {
|
|
14000
|
-
className:
|
|
14004
|
+
className: nT.toggle,
|
|
14001
14005
|
children: f ? /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(rr, { size: 12 }), /* @__PURE__ */ V("span", { children: "Hide details" })] }) : /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(nr, { size: 12 }), /* @__PURE__ */ V("span", { children: "Show details" })] })
|
|
14002
14006
|
})
|
|
14003
14007
|
}), /* @__PURE__ */ H("div", {
|
|
14004
|
-
className:
|
|
14008
|
+
className: nT.route,
|
|
14005
14009
|
children: [
|
|
14006
|
-
/* @__PURE__ */ V(
|
|
14010
|
+
/* @__PURE__ */ V(tT, {
|
|
14007
14011
|
...g,
|
|
14008
14012
|
source: !0
|
|
14009
14013
|
}),
|
|
14010
14014
|
/* @__PURE__ */ V(An.Content, {
|
|
14011
|
-
className:
|
|
14015
|
+
className: nT.content,
|
|
14012
14016
|
children: y.map((e, t) => /* @__PURE__ */ V(gf, {
|
|
14013
|
-
suspenseFallback: /* @__PURE__ */ V(
|
|
14014
|
-
errorBoundaryProps: { fallback: /* @__PURE__ */ V(
|
|
14015
|
-
children: /* @__PURE__ */ V(
|
|
14017
|
+
suspenseFallback: /* @__PURE__ */ V(tT.Placeholder, { ...e }),
|
|
14018
|
+
errorBoundaryProps: { fallback: /* @__PURE__ */ V(tT.Placeholder, { ...e }) },
|
|
14019
|
+
children: /* @__PURE__ */ V(tT, { ...e })
|
|
14016
14020
|
}, t))
|
|
14017
14021
|
}),
|
|
14018
|
-
/* @__PURE__ */ V(
|
|
14022
|
+
/* @__PURE__ */ V(tT, { ...x })
|
|
14019
14023
|
]
|
|
14020
14024
|
})]
|
|
14021
14025
|
});
|
|
@@ -19860,7 +19864,7 @@ var JA = {
|
|
|
19860
19864
|
});
|
|
19861
19865
|
}, rj = { version: "_version_1sf5y_1" }, ij = () => /* @__PURE__ */ H("aside", {
|
|
19862
19866
|
className: rj.version,
|
|
19863
|
-
children: ["v", "2.13.
|
|
19867
|
+
children: ["v", "2.13.4"]
|
|
19864
19868
|
}), aj = {
|
|
19865
19869
|
link: "_link_se23z_1",
|
|
19866
19870
|
title: "_title_se23z_17",
|