@matchain/matchid-sdk-react 0.1.56-alpha.9 → 0.1.57-alpha.1

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.
Files changed (42) hide show
  1. package/dist/api.js +44 -3
  2. package/dist/api.js.map +1 -1
  3. package/dist/api.mjs +3 -3
  4. package/dist/{chunk-LOZCAT7A.mjs → chunk-6RNCNC65.mjs} +288 -218
  5. package/dist/chunk-6RNCNC65.mjs.map +1 -0
  6. package/dist/{chunk-FQ6PYZPD.mjs → chunk-7SUDHG7S.mjs} +1 -1
  7. package/dist/chunk-7SUDHG7S.mjs.map +1 -0
  8. package/dist/{chunk-JCMQBWWW.mjs → chunk-EAZNOQRK.mjs} +2 -2
  9. package/dist/components.d.mts +1 -1
  10. package/dist/components.d.ts +1 -1
  11. package/dist/components.js +311 -263
  12. package/dist/components.js.map +1 -1
  13. package/dist/components.mjs +2 -2
  14. package/dist/hooks.d.mts +1 -1
  15. package/dist/hooks.d.ts +1 -1
  16. package/dist/hooks.js +81 -42
  17. package/dist/hooks.js.map +1 -1
  18. package/dist/hooks.mjs +2 -2
  19. package/dist/icon.js.map +1 -1
  20. package/dist/icon.mjs +1 -1
  21. package/dist/{index-DwmrgZa2.d.ts → index-B70k4Jpk.d.ts} +4 -0
  22. package/dist/{index-D2E53ZMV.d.mts → index-BJJ0Gb6v.d.mts} +4 -0
  23. package/dist/{index-qmC4zt6V.d.ts → index-C2hr7zlN.d.ts} +3 -1
  24. package/dist/{index-DVlulZhE.d.mts → index-CTHpnEoB.d.mts} +3 -1
  25. package/dist/index.d.mts +2 -2
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.js +92 -22
  28. package/dist/index.js.map +1 -1
  29. package/dist/index.mjs +3 -3
  30. package/dist/ui.js +81 -70
  31. package/dist/ui.js.map +1 -1
  32. package/dist/ui.mjs +2 -2
  33. package/example/package-lock.json +2965 -0
  34. package/example/package.json +2 -1
  35. package/example/src/App.tsx +65 -60
  36. package/example/src/config/index.ts +8 -6
  37. package/example/src/pages/Wallet/index.tsx +2 -4
  38. package/example/yarn.lock +27 -2251
  39. package/package.json +3 -6
  40. package/dist/chunk-FQ6PYZPD.mjs.map +0 -1
  41. package/dist/chunk-LOZCAT7A.mjs.map +0 -1
  42. /package/dist/{chunk-JCMQBWWW.mjs.map → chunk-EAZNOQRK.mjs.map} +0 -0
@@ -22,11 +22,11 @@ import {
22
22
  UsernameModal,
23
23
  WalletAsset,
24
24
  WalletModal
25
- } from "./chunk-LOZCAT7A.mjs";
25
+ } from "./chunk-6RNCNC65.mjs";
26
26
  import "./chunk-JX73EY6V.mjs";
27
27
  import "./chunk-UA6XHZHX.mjs";
28
28
  import "./chunk-IZOOVZAD.mjs";
29
- import "./chunk-FQ6PYZPD.mjs";
29
+ import "./chunk-7SUDHG7S.mjs";
30
30
  import "./chunk-XM6CYEXN.mjs";
31
31
  import "./chunk-J5LGTIGS.mjs";
32
32
  export {
package/dist/hooks.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { c as useCopyClipboard, n as useHash, o as useLayout, f as useMatchChain, a as useMatchEvents, g as useMatchWallet, k as useMatchWalletAssetList, j as useMatchWalletAssets, h as useMatchWalletRecords, d as useModal, l as useReceipt, e as useToast, m as useTransaction, u as useUserInfo, b as useWallet } from './index-D2E53ZMV.mjs';
1
+ export { c as useCopyClipboard, n as useHash, o as useLayout, f as useMatchChain, a as useMatchEvents, g as useMatchWallet, k as useMatchWalletAssetList, j as useMatchWalletAssets, h as useMatchWalletRecords, d as useModal, l as useReceipt, e as useToast, m as useTransaction, u as useUserInfo, b as useWallet } from './index-BJJ0Gb6v.mjs';
2
2
  import './request-B0CyrGFT.mjs';
3
3
  import './types-BrVeC0c8.mjs';
4
4
  import 'react';
package/dist/hooks.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { c as useCopyClipboard, n as useHash, o as useLayout, f as useMatchChain, a as useMatchEvents, g as useMatchWallet, k as useMatchWalletAssetList, j as useMatchWalletAssets, h as useMatchWalletRecords, d as useModal, l as useReceipt, e as useToast, m as useTransaction, u as useUserInfo, b as useWallet } from './index-DwmrgZa2.js';
1
+ export { c as useCopyClipboard, n as useHash, o as useLayout, f as useMatchChain, a as useMatchEvents, g as useMatchWallet, k as useMatchWalletAssetList, j as useMatchWalletAssets, h as useMatchWalletRecords, d as useModal, l as useReceipt, e as useToast, m as useTransaction, u as useUserInfo, b as useWallet } from './index-B70k4Jpk.js';
2
2
  import './request-B0CyrGFT.js';
3
3
  import './types-BrVeC0c8.js';
4
4
  import 'react';
package/dist/hooks.js CHANGED
@@ -720,6 +720,12 @@ var useWalletModalStore = (0, import_zustand2.create)((set) => ({
720
720
  open: (type, methods = DEFAULT_WALLET_METHODS) => set({ isOpen: true, type, methods }),
721
721
  close: () => set({ isOpen: false })
722
722
  }));
723
+ var useEmailModalStore = (0, import_zustand2.create)((set) => ({
724
+ isOpen: false,
725
+ type: "",
726
+ open: (type) => set({ isOpen: true, type }),
727
+ close: () => set({ isOpen: false })
728
+ }));
723
729
 
724
730
  // src/components/EmailModal/index.tsx
725
731
  var import_react7 = require("react");
@@ -1832,13 +1838,16 @@ var useStore = (0, import_zustand4.create)((set) => ({
1832
1838
  }));
1833
1839
  var useStore_default = useStore;
1834
1840
 
1835
- // src/context/BusinessProvider.tsx
1841
+ // src/components/BindEmailModal/index.tsx
1836
1842
  var import_jsx_runtime96 = require("react/jsx-runtime");
1837
1843
 
1844
+ // src/context/BusinessProvider.tsx
1845
+ var import_jsx_runtime97 = require("react/jsx-runtime");
1846
+
1838
1847
  // src/context/ModalContext.tsx
1839
1848
  var import_react29 = require("react");
1840
1849
  var import_react_dom = require("react-dom");
1841
- var import_jsx_runtime97 = require("react/jsx-runtime");
1850
+ var import_jsx_runtime98 = require("react/jsx-runtime");
1842
1851
  var ModalContext = (0, import_react29.createContext)(null);
1843
1852
  function useModal() {
1844
1853
  const context = (0, import_react29.useContext)(ModalContext);
@@ -1851,7 +1860,7 @@ function useModal() {
1851
1860
  // src/context/ToastContext.tsx
1852
1861
  var import_react30 = require("react");
1853
1862
  var import_react_dom2 = require("react-dom");
1854
- var import_jsx_runtime98 = require("react/jsx-runtime");
1863
+ var import_jsx_runtime99 = require("react/jsx-runtime");
1855
1864
  var ToastContext = (0, import_react30.createContext)(null);
1856
1865
  function useToast() {
1857
1866
  const context = (0, import_react30.useContext)(ToastContext);
@@ -1862,7 +1871,7 @@ function useToast() {
1862
1871
  }
1863
1872
 
1864
1873
  // src/context/index.tsx
1865
- var import_jsx_runtime99 = require("react/jsx-runtime");
1874
+ var import_jsx_runtime100 = require("react/jsx-runtime");
1866
1875
 
1867
1876
  // src/hooks/useWalletInit.ts
1868
1877
  var import_react31 = require("react");
@@ -1942,7 +1951,7 @@ var matchTest = /* @__PURE__ */ (0, import_viem6.defineChain)({
1942
1951
 
1943
1952
  // src/MatchContext.tsx
1944
1953
  var import_wagmi3 = require("wagmi");
1945
- var import_jsx_runtime100 = require("react/jsx-runtime");
1954
+ var import_jsx_runtime101 = require("react/jsx-runtime");
1946
1955
  var queryClient = new import_react_query4.QueryClient();
1947
1956
  var wagmiConfig = (0, import_rainbowkit2.getDefaultConfig)({
1948
1957
  appName: "MatchID",
@@ -1994,6 +2003,7 @@ function useUserInfo() {
1994
2003
  const { open: BTCOpen } = useBTCModalStore();
1995
2004
  const { open: CEXBindOpen } = useCEXBindModalStore();
1996
2005
  const walletModalStore = useWalletModalStore();
2006
+ const emailModalStore = useEmailModalStore();
1997
2007
  const getRedirectUri = () => {
1998
2008
  return encodeURIComponent(window.location.href);
1999
2009
  };
@@ -2086,8 +2096,8 @@ function useUserInfo() {
2086
2096
  case "discord":
2087
2097
  case "github":
2088
2098
  case "linkedin":
2089
- case "kakao":
2090
2099
  case "facebook":
2100
+ case "kakao":
2091
2101
  return await loginByMethod(method);
2092
2102
  default:
2093
2103
  throw new Error("unsupported method");
@@ -2172,6 +2182,8 @@ function useUserInfo() {
2172
2182
  return TONOpen("bind");
2173
2183
  case "btc":
2174
2184
  return BTCOpen("bind");
2185
+ case "email":
2186
+ return emailModalStore.open("bind");
2175
2187
  case "telegram":
2176
2188
  return await bindTelegram();
2177
2189
  case "twitter":
@@ -2181,6 +2193,7 @@ function useUserInfo() {
2181
2193
  case "linkedin":
2182
2194
  case "facebook":
2183
2195
  case "youtube":
2196
+ case "kakao":
2184
2197
  const link = `${endpoints.back}api/v1/auth/${method == "youtube" ? "google" : method}?appid=${appid}&provider=${method == "youtube" ? "google" : method}&redirect=${encodeURIComponent(endpoints.auth + "bind/" + method)}&authorization=${token.includes("Bearer ") ? token.split(" ")[1] : token}${method == "youtube" ? "&auth_type=youtube" : ""}`;
2185
2198
  matchlog_default.log("link", link);
2186
2199
  return window.open(
@@ -2195,6 +2208,31 @@ function useUserInfo() {
2195
2208
  const bindCex = (type) => {
2196
2209
  return CEXBindOpen(type);
2197
2210
  };
2211
+ const bindByEmail = async ({ email, code }) => {
2212
+ try {
2213
+ const obj = {
2214
+ email,
2215
+ verification_key: emailLoginKey,
2216
+ verification_code: code
2217
+ };
2218
+ const res = await verifyEmailCodeApi(obj);
2219
+ if (res && res.data && isSuccess(res)) {
2220
+ events && events.onBind && events.onBind({
2221
+ type: "email"
2222
+ });
2223
+ eventManager_default.emit("onBind", {
2224
+ type: "email"
2225
+ });
2226
+ return true;
2227
+ } else {
2228
+ throw new Error(res.message);
2229
+ }
2230
+ } catch (error) {
2231
+ console.error("bindByEmail", error);
2232
+ throw error;
2233
+ }
2234
+ return false;
2235
+ };
2198
2236
  const getAuthInfo = async (method) => {
2199
2237
  const element_id = "auth_iframe";
2200
2238
  if (document.getElementById(element_id)) {
@@ -2263,6 +2301,7 @@ function useUserInfo() {
2263
2301
  auth,
2264
2302
  login: loginMethod,
2265
2303
  bind,
2304
+ bindByEmail,
2266
2305
  getAuthInfo,
2267
2306
  invite
2268
2307
  };
@@ -2325,7 +2364,7 @@ var useTransactionStore = (0, import_zustand5.create)((0, import_middleware3.dev
2325
2364
  var useTransactionStore_default = useTransactionStore;
2326
2365
 
2327
2366
  // src/hooks/useWallet.tsx
2328
- var import_jsx_runtime101 = require("react/jsx-runtime");
2367
+ var import_jsx_runtime102 = require("react/jsx-runtime");
2329
2368
  var AppClientId2 = "react-sdk-" + getVersion();
2330
2369
  function useWallet() {
2331
2370
  const { address, wallet: walletConfig } = useLocalStore_default();
@@ -2499,12 +2538,12 @@ function useWallet() {
2499
2538
  address: evmAccount.address
2500
2539
  });
2501
2540
  modal.show((props) => {
2502
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
2541
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
2503
2542
  });
2504
2543
  return txHash;
2505
2544
  } catch (error) {
2506
2545
  modal.show((props) => {
2507
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, error: typeof error == "string" ? error : error.details || error.message, chain: _chain });
2546
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, error: typeof error == "string" ? error : error.details || error.message, chain: _chain });
2508
2547
  });
2509
2548
  throw error;
2510
2549
  }
@@ -2638,7 +2677,7 @@ function useImportTokenListQuery({
2638
2677
  var import_react38 = require("react");
2639
2678
  var import_viem10 = require("viem");
2640
2679
  var import_react_intl21 = require("react-intl");
2641
- var import_jsx_runtime102 = require("react/jsx-runtime");
2680
+ var import_jsx_runtime103 = require("react/jsx-runtime");
2642
2681
  function useMatchChain() {
2643
2682
  const chainListQuery = useChainListQuery();
2644
2683
  const modal = useModal();
@@ -2669,28 +2708,28 @@ function useMatchChain() {
2669
2708
  const { chainId: storeChainId2, setChainId: setChainId2 } = useLocalStore_default();
2670
2709
  const [selectedChainId, setSelectedChainId] = (0, import_react38.useState)(storeChainId2);
2671
2710
  const isDownMd = useDownMd();
2672
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: `matchid-change-network-box`, children: [
2673
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
2674
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
2711
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: `matchid-change-network-box`, children: [
2712
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
2713
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
2675
2714
  "div",
2676
2715
  {
2677
2716
  onClick: () => setSelectedChainId(item.id),
2678
2717
  className: `matchid-change-network-item ${selectedChainId == item.id ? "matchid-change-network-selected" : ""}`,
2679
2718
  children: [
2680
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: `matchid-change-network-item-content`, children: [
2681
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
2682
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { className: "matchid-change-network-item-name", children: item.name })
2719
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: `matchid-change-network-item-content`, children: [
2720
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
2721
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("span", { className: "matchid-change-network-item-name", children: item.name })
2683
2722
  ] }),
2684
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
2723
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
2685
2724
  ]
2686
2725
  },
2687
2726
  index
2688
2727
  );
2689
2728
  }) }),
2690
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Button, { size: "lg", highlight: true, onClick: () => {
2729
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Button, { size: "lg", highlight: true, onClick: () => {
2691
2730
  setChainId2(selectedChainId || 0);
2692
2731
  close();
2693
- }, block: true, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_react_intl21.FormattedMessage, { id: "confirm" }) })
2732
+ }, block: true, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_intl21.FormattedMessage, { id: "confirm" }) })
2694
2733
  ] });
2695
2734
  }
2696
2735
  const showChangeNetwork = () => {
@@ -2763,7 +2802,7 @@ function useIsContract({
2763
2802
  }
2764
2803
 
2765
2804
  // src/components/ImportToken/index.tsx
2766
- var import_jsx_runtime103 = require("react/jsx-runtime");
2805
+ var import_jsx_runtime104 = require("react/jsx-runtime");
2767
2806
  function ImportToken({ close }) {
2768
2807
  const [status, setStatus] = (0, import_react39.useState)("");
2769
2808
  const { token } = useUserInfo();
@@ -2874,22 +2913,22 @@ function ImportToken({ close }) {
2874
2913
  enabled: canImport
2875
2914
  });
2876
2915
  if (status == "success" || status == "fail") {
2877
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: `matchid-import-token-result matchid-flex`, children: [
2878
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: `matchid-import-token-result-box matchid-flex`, children: [
2879
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: `matchid-import-token-result-img`, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Lottie_default, { animationData: status == "success" ? success_default : fail_default, style: {
2916
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: `matchid-import-token-result matchid-flex`, children: [
2917
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: `matchid-import-token-result-box matchid-flex`, children: [
2918
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: `matchid-import-token-result-img`, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Lottie_default, { animationData: status == "success" ? success_default : fail_default, style: {
2880
2919
  width: "96px",
2881
2920
  height: "96px"
2882
2921
  } }) }),
2883
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: `matchid-import-token-result-text matchid-import-token-result-text-${status}`, children: status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_intl22.FormattedMessage, { id: "importSuccess" }) : /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_intl22.FormattedMessage, { id: "importFail" }) })
2922
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: `matchid-import-token-result-text matchid-import-token-result-text-${status}`, children: status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl22.FormattedMessage, { id: "importSuccess" }) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl22.FormattedMessage, { id: "importFail" }) })
2884
2923
  ] }),
2885
- status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Button, { size: "lg", onClick: close, block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_intl22.FormattedMessage, { id: "close" }) }) : /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Button, { size: "lg", onClick: () => setStatus(""), block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_intl22.FormattedMessage, { id: "back" }) })
2924
+ status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Button, { size: "lg", onClick: close, block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl22.FormattedMessage, { id: "close" }) }) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Button, { size: "lg", onClick: () => setStatus(""), block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl22.FormattedMessage, { id: "back" }) })
2886
2925
  ] });
2887
2926
  }
2888
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: `matchid-import-token`, children: [
2889
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "matchid-import-token-form", children: [
2890
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Field, { label: intl.formatMessage({
2927
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: `matchid-import-token`, children: [
2928
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "matchid-import-token-form", children: [
2929
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Field, { label: intl.formatMessage({
2891
2930
  id: "tokenSmartContract"
2892
- }), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
2931
+ }), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
2893
2932
  Input,
2894
2933
  {
2895
2934
  placeholder: intl.formatMessage({
@@ -2900,9 +2939,9 @@ function ImportToken({ close }) {
2900
2939
  maxLength: 42
2901
2940
  }
2902
2941
  ) }),
2903
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Field, { label: intl.formatMessage({
2942
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Field, { label: intl.formatMessage({
2904
2943
  id: "tokenSymbol"
2905
- }), error: error.symbol, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
2944
+ }), error: error.symbol, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
2906
2945
  Input,
2907
2946
  {
2908
2947
  placeholder: intl.formatMessage({
@@ -2913,9 +2952,9 @@ function ImportToken({ close }) {
2913
2952
  maxLength: 16
2914
2953
  }
2915
2954
  ) }),
2916
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Field, { label: intl.formatMessage({
2955
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Field, { label: intl.formatMessage({
2917
2956
  id: "tokenDecimals"
2918
- }), error: error.decimals, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
2957
+ }), error: error.decimals, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
2919
2958
  Input,
2920
2959
  {
2921
2960
  placeholder: intl.formatMessage({
@@ -2927,7 +2966,7 @@ function ImportToken({ close }) {
2927
2966
  }
2928
2967
  ) })
2929
2968
  ] }),
2930
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
2969
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
2931
2970
  Button,
2932
2971
  {
2933
2972
  size: "lg",
@@ -2936,14 +2975,14 @@ function ImportToken({ close }) {
2936
2975
  loading: loading || isContractQuery.isLoading,
2937
2976
  disabled: !canImport || !isContractQuery.data,
2938
2977
  highlight: true,
2939
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_intl22.FormattedMessage, { id: "import" })
2978
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl22.FormattedMessage, { id: "import" })
2940
2979
  }
2941
2980
  )
2942
2981
  ] });
2943
2982
  }
2944
2983
 
2945
2984
  // src/hooks/useMatchWallet.tsx
2946
- var import_jsx_runtime104 = require("react/jsx-runtime");
2985
+ var import_jsx_runtime105 = require("react/jsx-runtime");
2947
2986
  var ReceiveModal = () => {
2948
2987
  const chain = useMatchChain();
2949
2988
  const { address } = useWallet();
@@ -2957,10 +2996,10 @@ var ReceiveModal = () => {
2957
2996
  }));
2958
2997
  };
2959
2998
  const chainLink = chain.explorerLink("address/" + address);
2960
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: `matchid-receive-modal`, children: [
2961
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "matchid-receive-container", children: [
2962
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: `matchid-receive-text`, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl23.FormattedMessage, { id: "receiveQrcode" }) }),
2963
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: `matchid-qr-container`, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
2999
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: `matchid-receive-modal`, children: [
3000
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "matchid-receive-container", children: [
3001
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: `matchid-receive-text`, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl23.FormattedMessage, { id: "receiveQrcode" }) }),
3002
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: `matchid-qr-container`, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
2964
3003
  import_react_qrcode.QRCode,
2965
3004
  {
2966
3005
  margin: "0",
@@ -2968,7 +3007,7 @@ var ReceiveModal = () => {
2968
3007
  value: address
2969
3008
  }
2970
3009
  ) }),
2971
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3010
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
2972
3011
  "a",
2973
3012
  {
2974
3013
  href: chainLink,
@@ -2978,7 +3017,7 @@ var ReceiveModal = () => {
2978
3017
  }
2979
3018
  )
2980
3019
  ] }),
2981
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Button, { size: "lg", onClick: onCopy, block: true, highlight: true, disabled: copied, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
3020
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Button, { size: "lg", onClick: onCopy, block: true, highlight: true, disabled: copied, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
2982
3021
  import_react_intl23.FormattedMessage,
2983
3022
  {
2984
3023
  id: "copyAddress"