@matchain/matchid-sdk-react 0.1.48-alpha.23 → 0.1.48-alpha.24

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-SB54XHCJ.mjs → chunk-EOT6XIVG.mjs} +2 -2
  4. package/dist/{chunk-FYW4P7HS.mjs → chunk-TSPOB4DT.mjs} +20 -21
  5. package/dist/chunk-TSPOB4DT.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 +8 -9
  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.map +1 -1
  14. package/dist/hooks/api/index.mjs +3 -3
  15. package/dist/hooks/index.d.mts +2 -2
  16. package/dist/hooks/index.d.ts +2 -2
  17. package/dist/hooks/index.js +3 -1
  18. package/dist/hooks/index.js.map +1 -1
  19. package/dist/hooks/index.mjs +2 -2
  20. package/dist/{index-Ca30Hgn7.d.mts → index-BMfaixEx.d.mts} +1 -1
  21. package/dist/{index-CN2jy6bb.d.ts → index-BMsj8hJv.d.ts} +2 -2
  22. package/dist/{index-BOsoQSmx.d.ts → index-BcEreCxd.d.ts} +1 -1
  23. package/dist/{index-BFSCCmlU.d.ts → index-Bpmrd7mh.d.ts} +1 -1
  24. package/dist/{index-DTYp8DRd.d.ts → index-Bvc8cjpN.d.ts} +2 -2
  25. package/dist/{index-Bk_dqXKp.d.mts → index-C9F6f2iz.d.mts} +2 -2
  26. package/dist/{index-B4gKj0ro.d.mts → index-C9qYyRgt.d.mts} +2 -2
  27. package/dist/{index-CdM22eod.d.mts → index-Cou96DpL.d.mts} +1 -1
  28. package/dist/{index-BHXlpUg5.d.ts → index-Cy3K-Yao.d.ts} +1 -1
  29. package/dist/{index-D3GBq1P1.d.mts → index-D4ju2J_e.d.mts} +1 -1
  30. package/dist/{index-BObJQar4.d.mts → index-DUHkH5t-.d.mts} +11 -1
  31. package/dist/{index-CSTyna62.d.ts → index-DcQm2dkr.d.ts} +11 -1
  32. package/dist/index.d.mts +7 -7
  33. package/dist/index.d.ts +7 -7
  34. package/dist/index.js +8 -9
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.mjs +9 -9
  37. package/dist/types/index.d.mts +1 -1
  38. package/dist/types/index.d.ts +1 -1
  39. package/dist/{types-Dc15ure7.d.mts → types-DzVVzMYU.d.mts} +1 -1
  40. package/dist/{types-Dc15ure7.d.ts → types-DzVVzMYU.d.ts} +1 -1
  41. package/dist/ui/index.d.mts +3 -3
  42. package/dist/ui/index.d.ts +3 -3
  43. package/example/src/pages/Wallet/components/MatchWallet.tsx +24 -2
  44. package/package.json +1 -1
  45. package/dist/chunk-FYW4P7HS.mjs.map +0 -1
  46. /package/dist/{chunk-SB54XHCJ.mjs.map → chunk-EOT6XIVG.mjs.map} +0 -0
@@ -12,12 +12,12 @@ import {
12
12
  useTransaction,
13
13
  useUserInfo,
14
14
  useWallet
15
- } from "../chunk-FYW4P7HS.mjs";
15
+ } from "../chunk-TSPOB4DT.mjs";
16
16
  import "../chunk-UA6XHZHX.mjs";
17
- import "../chunk-5JHHHLG4.mjs";
18
17
  import {
19
18
  useLayout_exports
20
19
  } from "../chunk-FB5MHLWX.mjs";
20
+ import "../chunk-5JHHHLG4.mjs";
21
21
  import "../chunk-LHNKZISB.mjs";
22
22
  import "../chunk-J5LGTIGS.mjs";
23
23
  export {
@@ -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, d 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, b as ISocialLoginMethod, w as IconProps, x as InputProps, L as LocaleType, i as LoginBoxProps, c as LoginMethodType, n as LoginModalProps, m as LoginPanelProps, y as MessageType, z as MetaPageType, F as ModalProps, M as ModalWithHeaderProps, j as OtherLoginMethodType, O as OverviewInfo, G as PohItemType, J as PohZkpassParams, P as PopoverPositionType, K as PopoverProps, l as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, N as UIProps, g as UserAssetToken, U as UserChainType, f as UserImportTokenType, Q as UserPopoverProps, S as UserTransactionNextPageParams, V as UserTransactionRecordType, e as UserTransactionType, h as WalletAssetMergeType, X as WalletAssetType, Y as WalletChainType, W as WalletConfigType, Z as WalletNFTType, _ as WalletPanelProps, $ as WalletReceiveMessageType, k as WalletType, u as useMatchWalletAssetsProps } from './types-Dc15ure7.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';
3
3
 
4
4
  declare const index_Address: typeof Address;
5
5
  declare const index_AnyObject: typeof AnyObject;
@@ -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-BOsoQSmx.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-BcEreCxd.js';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { s as DrawerProps, _ as WalletPanelProps, N as UIProps } from './types-Dc15ure7.js';
3
+ import { s as DrawerProps, _ as WalletPanelProps, N as UIProps } from './types-DzVVzMYU.js';
4
4
  import { Hash, Chain } from 'viem';
5
5
  import { CSSProperties } from 'react';
6
6
 
@@ -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-Dc15ure7.js';
3
+ import { x as InputProps, B as ButtonProps, F as ModalProps, M as ModalWithHeaderProps, K as PopoverProps } from './types-DzVVzMYU.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, d 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, b as ISocialLoginMethod, w as IconProps, x as InputProps, L as LocaleType, i as LoginBoxProps, c as LoginMethodType, n as LoginModalProps, m as LoginPanelProps, y as MessageType, z as MetaPageType, F as ModalProps, M as ModalWithHeaderProps, j as OtherLoginMethodType, O as OverviewInfo, G as PohItemType, J as PohZkpassParams, P as PopoverPositionType, K as PopoverProps, l as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, N as UIProps, g as UserAssetToken, U as UserChainType, f as UserImportTokenType, Q as UserPopoverProps, S as UserTransactionNextPageParams, V as UserTransactionRecordType, e as UserTransactionType, h as WalletAssetMergeType, X as WalletAssetType, Y as WalletChainType, W as WalletConfigType, Z as WalletNFTType, _ as WalletPanelProps, $ as WalletReceiveMessageType, k as WalletType, u as useMatchWalletAssetsProps } from './types-Dc15ure7.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';
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
- 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-Dc15ure7.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-BOsoQSmx.js';
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';
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
- import { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-CdM22eod.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-Cou96DpL.mjs';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { s as DrawerProps, _ as WalletPanelProps, N as UIProps } from './types-Dc15ure7.mjs';
3
+ import { s as DrawerProps, _ as WalletPanelProps, N as UIProps } from './types-DzVVzMYU.mjs';
4
4
  import { Hash, Chain } from 'viem';
5
5
  import { CSSProperties } from 'react';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
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-Dc15ure7.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-CdM22eod.mjs';
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';
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
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-Dc15ure7.mjs';
3
+ import { x as InputProps, B as ButtonProps, F as ModalProps, M as ModalWithHeaderProps, K as PopoverProps } from './types-DzVVzMYU.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, e as UserTransactionType, S as UserTransactionNextPageParams, X as WalletAssetType, z as MetaPageType, q as BindItemType, p as BindInfoType, G as PohItemType, U as UserChainType, g as UserAssetToken, f as UserImportTokenType, Y as WalletChainType, Z as WalletNFTType } from './types-Dc15ure7.js';
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';
4
4
 
5
5
  declare const isSuccess: (res: {
6
6
  code: number;
@@ -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, e as UserTransactionType, S as UserTransactionNextPageParams, X as WalletAssetType, z as MetaPageType, q as BindItemType, p as BindInfoType, G as PohItemType, U as UserChainType, g as UserAssetToken, f as UserImportTokenType, Y as WalletChainType, Z as WalletNFTType } from './types-Dc15ure7.mjs';
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';
4
4
 
5
5
  declare const isSuccess: (res: {
6
6
  code: number;
@@ -1,4 +1,4 @@
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-Dc15ure7.mjs';
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';
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';
@@ -3257,6 +3257,16 @@ declare function useMatchWalletAssetList({ list }: {
3257
3257
  list: WalletAssetMergeType[];
3258
3258
  isLoading: boolean;
3259
3259
  isFetched: boolean;
3260
+ nativeBalanceQuery: _tanstack_react_query.UseQueryResult<bigint | null, Error>;
3261
+ erc20BalanceQuery: _tanstack_react_query.UseQueryResult<({
3262
+ error?: undefined;
3263
+ result: unknown;
3264
+ status: "success";
3265
+ } | {
3266
+ error: Error;
3267
+ result?: undefined;
3268
+ status: "failure";
3269
+ })[], Error>;
3260
3270
  nativeBalance: bigint | null | undefined;
3261
3271
  erc20Balances: ({
3262
3272
  error?: undefined;
@@ -1,4 +1,4 @@
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-Dc15ure7.js';
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';
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';
@@ -3257,6 +3257,16 @@ declare function useMatchWalletAssetList({ list }: {
3257
3257
  list: WalletAssetMergeType[];
3258
3258
  isLoading: boolean;
3259
3259
  isFetched: boolean;
3260
+ nativeBalanceQuery: _tanstack_react_query.UseQueryResult<bigint | null, Error>;
3261
+ erc20BalanceQuery: _tanstack_react_query.UseQueryResult<({
3262
+ error?: undefined;
3263
+ result: unknown;
3264
+ status: "success";
3265
+ } | {
3266
+ error: Error;
3267
+ result?: undefined;
3268
+ status: "failure";
3269
+ })[], Error>;
3260
3270
  nativeBalance: bigint | null | undefined;
3261
3271
  erc20Balances: ({
3262
3272
  error?: undefined;
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-Dc15ure7.mjs';
3
- export { i as Components } from './index-B4gKj0ro.mjs';
4
- export { i as UI } from './index-Bk_dqXKp.mjs';
5
- export { i as Hooks } from './index-BObJQar4.mjs';
6
- export { i as Api } from './index-D3GBq1P1.mjs';
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';
7
7
  export { i as Chains } from './index-DXRGMAbv.mjs';
8
- export { i as Types } from './index-Ca30Hgn7.mjs';
8
+ export { i as Types } from './index-BMfaixEx.mjs';
9
9
  import '@tanstack/react-query/src/types';
10
10
  import 'react/jsx-runtime';
11
- import './index-CdM22eod.mjs';
11
+ import './index-Cou96DpL.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-Dc15ure7.js';
3
- export { i as Components } from './index-DTYp8DRd.js';
4
- export { i as UI } from './index-CN2jy6bb.js';
5
- export { i as Hooks } from './index-CSTyna62.js';
6
- export { i as Api } from './index-BHXlpUg5.js';
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';
7
7
  export { i as Chains } from './index-DXRGMAbv.js';
8
- export { i as Types } from './index-BFSCCmlU.js';
8
+ export { i as Types } from './index-Bpmrd7mh.js';
9
9
  import '@tanstack/react-query/src/types';
10
10
  import 'react/jsx-runtime';
11
- import './index-BOsoQSmx.js';
11
+ import './index-BcEreCxd.js';
12
12
  import 'viem';
13
13
  import './mpc-CTbBWHld.js';
14
14
  import 'viem/types/misc';
package/dist/index.js CHANGED
@@ -5709,7 +5709,7 @@ var import_react_intl17 = require("react-intl");
5709
5709
  var import_jsx_runtime88 = require("react/jsx-runtime");
5710
5710
  var Item = ({ data }) => {
5711
5711
  const { address } = useWallet();
5712
- const isOut = data.from == address;
5712
+ const isOut = data.from.toLowerCase() == address.toLowerCase();
5713
5713
  const { chain, chainId, explorerLink, formatUnits: chainFormatUnits } = useMatchChain();
5714
5714
  const { getContract } = useContractStore_default();
5715
5715
  const [shouldRefetch, setShouldRefetch] = (0, import_react32.useState)(true);
@@ -5744,11 +5744,6 @@ var Item = ({ data }) => {
5744
5744
  }
5745
5745
  return chainFormatUnits(BigInt(data.value));
5746
5746
  }, [data.input, transferType, data.value, getContract, chainId, data.to]);
5747
- (0, import_react32.useEffect)(() => {
5748
- if (data.hash) {
5749
- setShouldRefetch(true);
5750
- }
5751
- }, [data.hash]);
5752
5747
  const hashQuery = useHash({
5753
5748
  hash: data.hash,
5754
5749
  //@ts-ignore
@@ -5784,8 +5779,10 @@ var Item = ({ data }) => {
5784
5779
  return "loading";
5785
5780
  }, [data.extra?.status, data.source, hashQuery.data]);
5786
5781
  (0, import_react32.useEffect)(() => {
5787
- setShouldRefetch(status == "loading");
5788
- }, [status]);
5782
+ if (data.hash) {
5783
+ setShouldRefetch(status == "loading");
5784
+ }
5785
+ }, [status, data.hash]);
5789
5786
  const symbol = (0, import_react32.useMemo)(() => {
5790
5787
  if (transferType == "erc20_transfer") {
5791
5788
  return getContract(chainId || 0, data.to)?.symbol || getContract(chainId || 0, data.to)?.name || "unknown";
@@ -6340,7 +6337,7 @@ function useMatchWalletAssetList({
6340
6337
  }
6341
6338
  return balances;
6342
6339
  },
6343
- enabled: erc20Tokens.length > 0 && !!publicClient,
6340
+ enabled: !!publicClient,
6344
6341
  refetchInterval: 15e3,
6345
6342
  // Refresh every 15 seconds
6346
6343
  retry: 3
@@ -6383,6 +6380,8 @@ function useMatchWalletAssetList({
6383
6380
  list: assets,
6384
6381
  isLoading: nativeBalanceQuery.isLoading || erc20BalanceQuery.isLoading,
6385
6382
  isFetched: nativeBalanceQuery.isFetched && erc20BalanceQuery.isFetched,
6383
+ nativeBalanceQuery,
6384
+ erc20BalanceQuery,
6386
6385
  nativeBalance: nativeBalanceQuery.data,
6387
6386
  erc20Balances: erc20BalanceQuery.data
6388
6387
  };