@matchain/matchid-sdk-react 0.1.48-alpha.31 → 0.1.48-alpha.33

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 (46) hide show
  1. package/dist/assets/icon/index.d.mts +1 -1
  2. package/dist/assets/icon/index.d.ts +1 -1
  3. package/dist/{chunk-YJV23RET.mjs → chunk-4I5WVXIN.mjs} +2 -2
  4. package/dist/{chunk-KIVNILBF.mjs → chunk-YSASIFLY.mjs} +62 -58
  5. package/dist/chunk-YSASIFLY.mjs.map +1 -0
  6. package/dist/components/index.d.mts +3 -3
  7. package/dist/components/index.d.ts +3 -3
  8. package/dist/components/index.js +61 -57
  9. package/dist/components/index.js.map +1 -1
  10. package/dist/components/index.mjs +2 -2
  11. package/dist/hooks/api/index.d.mts +2 -2
  12. package/dist/hooks/api/index.d.ts +2 -2
  13. package/dist/hooks/api/index.js +6 -6
  14. package/dist/hooks/api/index.js.map +1 -1
  15. package/dist/hooks/api/index.mjs +3 -3
  16. package/dist/hooks/index.d.mts +2 -2
  17. package/dist/hooks/index.d.ts +2 -2
  18. package/dist/hooks/index.js +61 -57
  19. package/dist/hooks/index.js.map +1 -1
  20. package/dist/hooks/index.mjs +2 -2
  21. package/dist/{index-BcEreCxd.d.ts → index-3I6HO7pu.d.ts} +1 -1
  22. package/dist/{index-Bpmrd7mh.d.ts → index-BGhcUCaf.d.ts} +1 -1
  23. package/dist/{index-Cou96DpL.d.mts → index-BXUU8PRO.d.mts} +1 -1
  24. package/dist/{index-Cy3K-Yao.d.ts → index-C1SOElvD.d.ts} +1 -1
  25. package/dist/{index-C9F6f2iz.d.mts → index-CfNpZBzs.d.mts} +2 -2
  26. package/dist/{index-BMsj8hJv.d.ts → index-Cg9cddpr.d.ts} +2 -2
  27. package/dist/{index-BMfaixEx.d.mts → index-CiVpdQxz.d.mts} +1 -1
  28. package/dist/{index-DUHkH5t-.d.mts → index-CjCngqWS.d.mts} +1 -1
  29. package/dist/{index-DcQm2dkr.d.ts → index-GXwzr_ck.d.ts} +1 -1
  30. package/dist/{index-D4ju2J_e.d.mts → index-UiH7pXQW.d.mts} +1 -1
  31. package/dist/{index-Bvc8cjpN.d.ts → index-lY7YfVRh.d.ts} +2 -2
  32. package/dist/{index-C9qYyRgt.d.mts → index-u1AE9im5.d.mts} +2 -2
  33. package/dist/index.d.mts +7 -7
  34. package/dist/index.d.ts +7 -7
  35. package/dist/index.js +61 -57
  36. package/dist/index.js.map +1 -1
  37. package/dist/index.mjs +8 -8
  38. package/dist/types/index.d.mts +1 -1
  39. package/dist/types/index.d.ts +1 -1
  40. package/dist/{types-DzVVzMYU.d.mts → types-pQHTwHLr.d.mts} +1 -1
  41. package/dist/{types-DzVVzMYU.d.ts → types-pQHTwHLr.d.ts} +1 -1
  42. package/dist/ui/index.d.mts +3 -3
  43. package/dist/ui/index.d.ts +3 -3
  44. package/package.json +1 -1
  45. package/dist/chunk-KIVNILBF.mjs.map +0 -1
  46. /package/dist/{chunk-YJV23RET.mjs.map → chunk-4I5WVXIN.mjs.map} +0 -0
@@ -12,13 +12,13 @@ import {
12
12
  useTransaction,
13
13
  useUserInfo,
14
14
  useWallet
15
- } from "../chunk-KIVNILBF.mjs";
16
- import "../chunk-UA6XHZHX.mjs";
15
+ } from "../chunk-YSASIFLY.mjs";
17
16
  import {
18
17
  useLayout_exports
19
18
  } from "../chunk-FB5MHLWX.mjs";
20
19
  import "../chunk-5JHHHLG4.mjs";
21
20
  import "../chunk-LHNKZISB.mjs";
21
+ import "../chunk-UA6XHZHX.mjs";
22
22
  import "../chunk-J5LGTIGS.mjs";
23
23
  export {
24
24
  useCopyClipboard,
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode, PropsWithChildren } from 'react';
3
- import { x as InputProps, B as ButtonProps, F as ModalProps, M as ModalWithHeaderProps, K as PopoverProps } from './types-DzVVzMYU.js';
3
+ import { q as InputProps, B as ButtonProps, r as ModalProps, M as ModalWithHeaderProps, s as PopoverProps } from './types-pQHTwHLr.js';
4
4
 
5
5
  declare function Field({ label, children, error, required, className }: {
6
6
  label: ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from './mpc-CTbBWHld.js';
2
- import { A as Address, k as AnyObject, o as AppConfigType, p as BindInfoType, q as BindItemType, r as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, s as DrawerProps, E as EmailModalProps, H as Hash, a as IEnvConfigType, t as IEnvName, v as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, w as IconProps, x as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, y as MessageType, z as MetaPageType, F as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, G as PohItemType, J as PohZkpassParams, P as PopoverPositionType, K as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, N as UIProps, n as UserAssetToken, U as UserChainType, m as UserImportTokenType, Q as UserPopoverProps, S as UserTransactionNextPageParams, V as UserTransactionRecordType, l as UserTransactionType, g as WalletAssetMergeType, X as WalletAssetType, Y as WalletChainType, W as WalletConfigType, Z as WalletNFTType, _ as WalletPanelProps, $ as WalletReceiveMessageType, c as WalletType, u as useMatchWalletAssetsProps } from './types-DzVVzMYU.js';
2
+ import { A as Address, d as AnyObject, N as AppConfigType, F as BindInfoType, z as BindItemType, Q as BindWalletParam, B as ButtonProps, C as CEXType, S as DeepPartial, D as DrawerProps, E as EmailModalProps, H as Hash, a as IEnvConfigType, T as IEnvName, V as ILoginWalletReq, I as IMatchEvents, b as ISocialLoginMethod, t as IconProps, q as InputProps, L as LocaleType, i as LoginBoxProps, c as LoginMethodType, n as LoginModalProps, m as LoginPanelProps, X as MessageType, y as MetaPageType, r as ModalProps, M as ModalWithHeaderProps, j as OtherLoginMethodType, O as OverviewInfo, G as PohItemType, v as PohZkpassParams, P as PopoverPositionType, s as PopoverProps, l as PopoverTypeType, R as RecommendLoginMethodType, Y as ThemeType, p as UIProps, g as UserAssetToken, U as UserChainType, f as UserImportTokenType, Z as UserPopoverProps, w as UserTransactionNextPageParams, _ as UserTransactionRecordType, e as UserTransactionType, h as WalletAssetMergeType, x as WalletAssetType, J as WalletChainType, W as WalletConfigType, K as WalletNFTType, o as WalletPanelProps, $ as WalletReceiveMessageType, k as WalletType, u as useMatchWalletAssetsProps } from './types-pQHTwHLr.js';
3
3
 
4
4
  declare const index_Address: typeof Address;
5
5
  declare const index_AnyObject: typeof AnyObject;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode, PropsWithChildren } from 'react';
3
- import { x as InputProps, B as ButtonProps, F as ModalProps, M as ModalWithHeaderProps, K as PopoverProps } from './types-DzVVzMYU.mjs';
3
+ import { q as InputProps, B as ButtonProps, r as ModalProps, M as ModalWithHeaderProps, s as PopoverProps } from './types-pQHTwHLr.mjs';
4
4
 
5
5
  declare function Field({ label, children, error, required, className }: {
6
6
  label: ReactNode;
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { UseQueryOptions } from '@tanstack/react-query/src/types';
3
- import { J as PohZkpassParams, l as UserTransactionType, S as UserTransactionNextPageParams, X as WalletAssetType, z as MetaPageType, q as BindItemType, p as BindInfoType, G as PohItemType, U as UserChainType, n as UserAssetToken, m as UserImportTokenType, Y as WalletChainType, Z as WalletNFTType } from './types-DzVVzMYU.js';
3
+ import { v as PohZkpassParams, e as UserTransactionType, w as UserTransactionNextPageParams, x as WalletAssetType, y as MetaPageType, z as BindItemType, F as BindInfoType, G as PohItemType, U as UserChainType, g as UserAssetToken, f as UserImportTokenType, J as WalletChainType, K as WalletNFTType } from './types-pQHTwHLr.js';
4
4
 
5
5
  declare const isSuccess: (res: {
6
6
  code: number;
@@ -1,6 +1,6 @@
1
- import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-Cou96DpL.mjs';
1
+ import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-BXUU8PRO.mjs';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { s as DrawerProps, _ as WalletPanelProps, N as UIProps } from './types-DzVVzMYU.mjs';
3
+ import { D as DrawerProps, o as WalletPanelProps, p as UIProps } from './types-pQHTwHLr.mjs';
4
4
  import { Hash, Chain } from 'viem';
5
5
  import { CSSProperties } from 'react';
6
6
 
@@ -1,6 +1,6 @@
1
- import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-BcEreCxd.js';
1
+ import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-3I6HO7pu.js';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { s as DrawerProps, _ as WalletPanelProps, N as UIProps } from './types-DzVVzMYU.js';
3
+ import { D as DrawerProps, o as WalletPanelProps, p as UIProps } from './types-pQHTwHLr.js';
4
4
  import { Hash, Chain } from 'viem';
5
5
  import { CSSProperties } from 'react';
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from './mpc-CTbBWHld.mjs';
2
- import { A as Address, k as AnyObject, o as AppConfigType, p as BindInfoType, q as BindItemType, r as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, s as DrawerProps, E as EmailModalProps, H as Hash, a as IEnvConfigType, t as IEnvName, v as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, w as IconProps, x as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, y as MessageType, z as MetaPageType, F as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, G as PohItemType, J as PohZkpassParams, P as PopoverPositionType, K as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, N as UIProps, n as UserAssetToken, U as UserChainType, m as UserImportTokenType, Q as UserPopoverProps, S as UserTransactionNextPageParams, V as UserTransactionRecordType, l as UserTransactionType, g as WalletAssetMergeType, X as WalletAssetType, Y as WalletChainType, W as WalletConfigType, Z as WalletNFTType, _ as WalletPanelProps, $ as WalletReceiveMessageType, c as WalletType, u as useMatchWalletAssetsProps } from './types-DzVVzMYU.mjs';
2
+ import { A as Address, d as AnyObject, N as AppConfigType, F as BindInfoType, z as BindItemType, Q as BindWalletParam, B as ButtonProps, C as CEXType, S as DeepPartial, D as DrawerProps, E as EmailModalProps, H as Hash, a as IEnvConfigType, T as IEnvName, V as ILoginWalletReq, I as IMatchEvents, b as ISocialLoginMethod, t as IconProps, q as InputProps, L as LocaleType, i as LoginBoxProps, c as LoginMethodType, n as LoginModalProps, m as LoginPanelProps, X as MessageType, y as MetaPageType, r as ModalProps, M as ModalWithHeaderProps, j as OtherLoginMethodType, O as OverviewInfo, G as PohItemType, v as PohZkpassParams, P as PopoverPositionType, s as PopoverProps, l as PopoverTypeType, R as RecommendLoginMethodType, Y as ThemeType, p as UIProps, g as UserAssetToken, U as UserChainType, f as UserImportTokenType, Z as UserPopoverProps, w as UserTransactionNextPageParams, _ as UserTransactionRecordType, e as UserTransactionType, h as WalletAssetMergeType, x as WalletAssetType, J as WalletChainType, W as WalletConfigType, K as WalletNFTType, o as WalletPanelProps, $ as WalletReceiveMessageType, k as WalletType, u as useMatchWalletAssetsProps } from './types-pQHTwHLr.mjs';
3
3
 
4
4
  declare const index_Address: typeof Address;
5
5
  declare const index_AnyObject: typeof AnyObject;
@@ -1,4 +1,4 @@
1
- import { h as ISocialLoginMethod, i as OverviewInfo, C as CEXType, j as LoginMethodType, I as IMatchEvents, U as UserChainType, A as Address, H as Hash$1, k as AnyObject, l as UserTransactionType, u as useMatchWalletAssetsProps, m as UserImportTokenType, n as UserAssetToken, g as WalletAssetMergeType } from './types-DzVVzMYU.mjs';
1
+ import { b as ISocialLoginMethod, O as OverviewInfo, C as CEXType, c as LoginMethodType, I as IMatchEvents, U as UserChainType, A as Address, H as Hash$1, d as AnyObject, e as UserTransactionType, u as useMatchWalletAssetsProps, f as UserImportTokenType, g as UserAssetToken, h as WalletAssetMergeType } from './types-pQHTwHLr.mjs';
2
2
  import * as viem from 'viem';
3
3
  import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
4
4
  import { C as ChainType } from './mpc-CTbBWHld.mjs';
@@ -1,4 +1,4 @@
1
- import { h as ISocialLoginMethod, i as OverviewInfo, C as CEXType, j as LoginMethodType, I as IMatchEvents, U as UserChainType, A as Address, H as Hash$1, k as AnyObject, l as UserTransactionType, u as useMatchWalletAssetsProps, m as UserImportTokenType, n as UserAssetToken, g as WalletAssetMergeType } from './types-DzVVzMYU.js';
1
+ import { b as ISocialLoginMethod, O as OverviewInfo, C as CEXType, c as LoginMethodType, I as IMatchEvents, U as UserChainType, A as Address, H as Hash$1, d as AnyObject, e as UserTransactionType, u as useMatchWalletAssetsProps, f as UserImportTokenType, g as UserAssetToken, h as WalletAssetMergeType } from './types-pQHTwHLr.js';
2
2
  import * as viem from 'viem';
3
3
  import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
4
4
  import { C as ChainType } from './mpc-CTbBWHld.js';
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { UseQueryOptions } from '@tanstack/react-query/src/types';
3
- import { J as PohZkpassParams, l as UserTransactionType, S as UserTransactionNextPageParams, X as WalletAssetType, z as MetaPageType, q as BindItemType, p as BindInfoType, G as PohItemType, U as UserChainType, n as UserAssetToken, m as UserImportTokenType, Y as WalletChainType, Z as WalletNFTType } from './types-DzVVzMYU.mjs';
3
+ import { v as PohZkpassParams, e as UserTransactionType, w as UserTransactionNextPageParams, x as WalletAssetType, y as MetaPageType, z as BindItemType, F as BindInfoType, G as PohItemType, U as UserChainType, g as UserAssetToken, f as UserImportTokenType, J as WalletChainType, K as WalletNFTType } from './types-pQHTwHLr.mjs';
4
4
 
5
5
  declare const isSuccess: (res: {
6
6
  code: number;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { E as EmailModalProps, b as LoginBoxProps, B as ButtonProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, c as WalletType, P as PopoverPositionType, d as PopoverTypeType, e as LoginPanelProps, f as LoginModalProps, M as ModalWithHeaderProps, g as WalletAssetMergeType, u as useMatchWalletAssetsProps } from './types-DzVVzMYU.js';
3
- import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-BcEreCxd.js';
2
+ import { E as EmailModalProps, i as LoginBoxProps, B as ButtonProps, j as OtherLoginMethodType, R as RecommendLoginMethodType, k as WalletType, P as PopoverPositionType, l as PopoverTypeType, m as LoginPanelProps, n as LoginModalProps, M as ModalWithHeaderProps, h as WalletAssetMergeType, u as useMatchWalletAssetsProps } from './types-pQHTwHLr.js';
3
+ import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-3I6HO7pu.js';
4
4
  import { ReactNode } from 'react';
5
5
 
6
6
  declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { E as EmailModalProps, b as LoginBoxProps, B as ButtonProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, c as WalletType, P as PopoverPositionType, d as PopoverTypeType, e as LoginPanelProps, f as LoginModalProps, M as ModalWithHeaderProps, g as WalletAssetMergeType, u as useMatchWalletAssetsProps } from './types-DzVVzMYU.mjs';
3
- import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-Cou96DpL.mjs';
2
+ import { E as EmailModalProps, i as LoginBoxProps, B as ButtonProps, j as OtherLoginMethodType, R as RecommendLoginMethodType, k as WalletType, P as PopoverPositionType, l as PopoverTypeType, m as LoginPanelProps, n as LoginModalProps, M as ModalWithHeaderProps, h as WalletAssetMergeType, u as useMatchWalletAssetsProps } from './types-pQHTwHLr.mjs';
3
+ import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-BXUU8PRO.mjs';
4
4
  import { ReactNode } from 'react';
5
5
 
6
6
  declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
package/dist/index.d.mts CHANGED
@@ -1,14 +1,14 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-DzVVzMYU.mjs';
3
- export { i as Components } from './index-C9qYyRgt.mjs';
4
- export { i as UI } from './index-C9F6f2iz.mjs';
5
- export { i as Hooks } from './index-DUHkH5t-.mjs';
6
- export { i as Api } from './index-D4ju2J_e.mjs';
2
+ import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-pQHTwHLr.mjs';
3
+ export { i as Components } from './index-u1AE9im5.mjs';
4
+ export { i as UI } from './index-CfNpZBzs.mjs';
5
+ export { i as Hooks } from './index-CjCngqWS.mjs';
6
+ export { i as Api } from './index-UiH7pXQW.mjs';
7
7
  export { i as Chains } from './index-DXRGMAbv.mjs';
8
- export { i as Types } from './index-BMfaixEx.mjs';
8
+ export { i as Types } from './index-CiVpdQxz.mjs';
9
9
  import '@tanstack/react-query/src/types';
10
10
  import 'react/jsx-runtime';
11
- import './index-Cou96DpL.mjs';
11
+ import './index-BXUU8PRO.mjs';
12
12
  import 'viem';
13
13
  import './mpc-CTbBWHld.mjs';
14
14
  import 'viem/types/misc';
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-DzVVzMYU.js';
3
- export { i as Components } from './index-Bvc8cjpN.js';
4
- export { i as UI } from './index-BMsj8hJv.js';
5
- export { i as Hooks } from './index-DcQm2dkr.js';
6
- export { i as Api } from './index-Cy3K-Yao.js';
2
+ import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-pQHTwHLr.js';
3
+ export { i as Components } from './index-lY7YfVRh.js';
4
+ export { i as UI } from './index-Cg9cddpr.js';
5
+ export { i as Hooks } from './index-GXwzr_ck.js';
6
+ export { i as Api } from './index-C1SOElvD.js';
7
7
  export { i as Chains } from './index-DXRGMAbv.js';
8
- export { i as Types } from './index-Bpmrd7mh.js';
8
+ export { i as Types } from './index-BGhcUCaf.js';
9
9
  import '@tanstack/react-query/src/types';
10
10
  import 'react/jsx-runtime';
11
- import './index-BcEreCxd.js';
11
+ import './index-3I6HO7pu.js';
12
12
  import 'viem';
13
13
  import './mpc-CTbBWHld.js';
14
14
  import 'viem/types/misc';
package/dist/index.js CHANGED
@@ -1957,11 +1957,11 @@ function useUserInfo() {
1957
1957
  return loginByMethod("google");
1958
1958
  };
1959
1959
  const loginByWallet = async () => {
1960
- return window.open(`${endpoints.auth}login/wallet?appid=${appid}`);
1960
+ return window.open(`${endpoints.auth}login/wallet?appid=${appid}&locale=${locale}`);
1961
1961
  };
1962
1962
  const loginByTelegram = async () => {
1963
1963
  return window.open(
1964
- `${endpoints.auth}login/telegram?appid=${appid}`,
1964
+ `${endpoints.auth}login/telegram?appid=${appid}&locale=${locale}`,
1965
1965
  // Replace with the actual authorization URL
1966
1966
  "authWindow",
1967
1967
  "width=800,height=600"
@@ -1972,7 +1972,7 @@ function useUserInfo() {
1972
1972
  case "wallet":
1973
1973
  return walletModalStore.open("login", extra?.methods);
1974
1974
  case "evm":
1975
- return window.open(`${endpoints.auth}login/wallet?appid=${appid}`);
1975
+ return window.open(`${endpoints.auth}login/wallet?appid=${appid}&locale=${locale}`);
1976
1976
  case "sol":
1977
1977
  return SOLOpen("login");
1978
1978
  case "tron":
@@ -2033,14 +2033,14 @@ function useUserInfo() {
2033
2033
  if (!token) {
2034
2034
  throw new Error("You must login first");
2035
2035
  }
2036
- return window.open(`${endpoints.auth}bind/wallet?appid=${appid}&st=` + encodeURIComponent(encodeBase64(token)));
2036
+ return window.open(`${endpoints.auth}bind/wallet?appid=${appid}&locale=${locale}&st=` + encodeURIComponent(encodeBase64(token)));
2037
2037
  };
2038
2038
  const bindTelegram = async () => {
2039
2039
  if (!token) {
2040
2040
  throw new Error("You must login first");
2041
2041
  }
2042
2042
  const authWindow = window.open(
2043
- `${endpoints.auth}bind/telegram?appid=${appid}&st=` + encodeURIComponent(encodeBase64(token)),
2043
+ `${endpoints.auth}bind/telegram?appid=${appid}&locale=${locale}&st=` + encodeURIComponent(encodeBase64(token)),
2044
2044
  // Replace with the actual authorization URL
2045
2045
  "authWindow",
2046
2046
  "width=800,height=600"
@@ -2061,7 +2061,7 @@ function useUserInfo() {
2061
2061
  case "wallet":
2062
2062
  return walletModalStore.open("bind", extra?.methods);
2063
2063
  case "evm":
2064
- return window.open(`${endpoints.auth}bind/wallet?appid=${appid}&st=` + encodeURIComponent(encodeBase64(token)));
2064
+ return window.open(`${endpoints.auth}bind/wallet?appid=${appid}&locale=${locale}&st=` + encodeURIComponent(encodeBase64(token)));
2065
2065
  case "sol":
2066
2066
  return SOLOpen("bind");
2067
2067
  case "tron":
@@ -6118,7 +6118,7 @@ function useMatchWalletRecords() {
6118
6118
  const { address } = useWallet();
6119
6119
  const hasMoreRef = (0, import_react34.useRef)(hasMore);
6120
6120
  const nextPageParamsRef = (0, import_react34.useRef)(void 0);
6121
- const { getContract, setContracts } = useContractStore_default();
6121
+ const { contracts, setContracts } = useContractStore_default();
6122
6122
  const fetchMoreData = async () => {
6123
6123
  const chainIdStr = chainId ? chainId.toString() : "";
6124
6124
  if (!hasMoreRef.current || !chainIdStr) {
@@ -6130,55 +6130,6 @@ function useMatchWalletRecords() {
6130
6130
  });
6131
6131
  if (isSuccess(res)) {
6132
6132
  if (res.data && res.data.transactions && res.data.transactions.length > 0) {
6133
- const contractList = res.data.transactions.filter((item) => item.input.toLowerCase().substring(0, 10) == "0xa9059cbb").map((item) => item.to);
6134
- const contractUnique = Array.from(new Set(contractList)).filter((item) => {
6135
- const contract = getContract(chainId || 0, item);
6136
- if (!contract) {
6137
- return true;
6138
- }
6139
- if (!contract.symbol && !contract.name) {
6140
- return true;
6141
- }
6142
- if (!contract.decimals) {
6143
- return true;
6144
- }
6145
- return false;
6146
- });
6147
- const calls = [];
6148
- for (const contract of contractUnique) {
6149
- calls.push({
6150
- address: contract,
6151
- abi: import_viem11.erc20Abi,
6152
- functionName: "symbol",
6153
- args: []
6154
- });
6155
- calls.push({
6156
- address: contract,
6157
- abi: import_viem11.erc20Abi,
6158
- functionName: "decimals",
6159
- args: []
6160
- });
6161
- }
6162
- const results = await publicClient?.multicall({ contracts: calls });
6163
- if (results) {
6164
- console.log("contract results", calls, results);
6165
- const contractMap = [];
6166
- for (let i = 0; i < contractUnique.length; i++) {
6167
- const info = {};
6168
- if (results[i * 2].status == "success") {
6169
- info.symbol = results[i * 2].result;
6170
- }
6171
- if (results[i * 2 + 1].status == "success") {
6172
- info.decimals = results[i * 2 + 1].result;
6173
- }
6174
- contractMap.push({
6175
- chainId: chainId || 0,
6176
- contractAddress: contractUnique[i],
6177
- info
6178
- });
6179
- }
6180
- setContracts(contractMap);
6181
- }
6182
6133
  setItems(items.concat(res.data.transactions || []));
6183
6134
  }
6184
6135
  hasMoreRef.current = res.data && res.data.transactions && res.data.transactions.length >= 50;
@@ -6199,6 +6150,56 @@ function useMatchWalletRecords() {
6199
6150
  }
6200
6151
  }, [chainId, address]);
6201
6152
  const { transactions, removeTransaction } = useTransactionStore_default();
6153
+ const getContractInfoList = async (contractList) => {
6154
+ const contractUnique = Array.from(new Set(contractList)).filter((item) => {
6155
+ const contract = contracts[`${chainId}-${item.toLowerCase()}`];
6156
+ if (!contract) {
6157
+ return true;
6158
+ }
6159
+ if (!contract.symbol && !contract.name) {
6160
+ return true;
6161
+ }
6162
+ if (!contract.decimals) {
6163
+ return true;
6164
+ }
6165
+ return false;
6166
+ });
6167
+ const calls = [];
6168
+ for (const contract of contractUnique) {
6169
+ calls.push({
6170
+ address: contract,
6171
+ abi: import_viem11.erc20Abi,
6172
+ functionName: "symbol",
6173
+ args: []
6174
+ });
6175
+ calls.push({
6176
+ address: contract,
6177
+ abi: import_viem11.erc20Abi,
6178
+ functionName: "decimals",
6179
+ args: []
6180
+ });
6181
+ }
6182
+ const results = await publicClient?.multicall({ contracts: calls });
6183
+ if (results) {
6184
+ console.log("contract results", calls, results);
6185
+ const contractMap = [];
6186
+ for (let i = 0; i < contractUnique.length; i++) {
6187
+ const info = {};
6188
+ if (results[i * 2].status == "success") {
6189
+ info.symbol = results[i * 2].result;
6190
+ }
6191
+ if (results[i * 2 + 1].status == "success") {
6192
+ info.decimals = results[i * 2 + 1].result;
6193
+ }
6194
+ contractMap.push({
6195
+ chainId: chainId || 0,
6196
+ contractAddress: contractUnique[i],
6197
+ info
6198
+ });
6199
+ }
6200
+ setContracts(contractMap);
6201
+ }
6202
+ };
6202
6203
  const list = (0, import_react34.useMemo)(() => {
6203
6204
  const localTransactions = transactions[`${chainId}-${address}`] || [];
6204
6205
  const removeList = localTransactions.filter((n) => items.findIndex((m) => m.hash == n.hash) >= 0);
@@ -6210,7 +6211,7 @@ function useMatchWalletRecords() {
6210
6211
  });
6211
6212
  });
6212
6213
  const saveList = localTransactions.filter((n) => items.findIndex((m) => m.hash == n.hash) < 0);
6213
- return [
6214
+ const list2 = [
6214
6215
  ...saveList,
6215
6216
  ...items
6216
6217
  ].sort((a, b) => {
@@ -6218,6 +6219,9 @@ function useMatchWalletRecords() {
6218
6219
  const atimestamp = typeof a.timestamp === "string" ? parseInt(a.timestamp) : a.timestamp;
6219
6220
  return btimestamp - atimestamp;
6220
6221
  });
6222
+ const contractList = list2.filter((item) => item.input.toLowerCase().substring(0, 10) == "0xa9059cbb").map((item) => item.to);
6223
+ getContractInfoList(contractList);
6224
+ return list2;
6221
6225
  }, [transactions, chainId, items, address]);
6222
6226
  return {
6223
6227
  items: list,