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

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-WPXA4QPX.mjs → chunk-FYW4P7HS.mjs} +6 -27
  4. package/dist/chunk-FYW4P7HS.mjs.map +1 -0
  5. package/dist/{chunk-MUEDDGKX.mjs → chunk-SB54XHCJ.mjs} +2 -2
  6. package/dist/components/index.d.mts +3 -3
  7. package/dist/components/index.d.ts +3 -3
  8. package/dist/components/index.js +5 -26
  9. package/dist/components/index.js.map +1 -1
  10. package/dist/components/index.mjs +1 -1
  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 +0 -1
  14. package/dist/hooks/api/index.js.map +1 -1
  15. package/dist/hooks/api/index.mjs +2 -2
  16. package/dist/hooks/index.d.mts +2 -2
  17. package/dist/hooks/index.d.ts +2 -2
  18. package/dist/hooks/index.js +5 -26
  19. package/dist/hooks/index.js.map +1 -1
  20. package/dist/hooks/index.mjs +1 -1
  21. package/dist/{index-C9qYyRgt.d.mts → index-B4gKj0ro.d.mts} +2 -2
  22. package/dist/{index-Bpmrd7mh.d.ts → index-BFSCCmlU.d.ts} +1 -1
  23. package/dist/{index-Cy3K-Yao.d.ts → index-BHXlpUg5.d.ts} +1 -1
  24. package/dist/{index-Dhtyz0pT.d.mts → index-BObJQar4.d.mts} +2 -1
  25. package/dist/{index-BcEreCxd.d.ts → index-BOsoQSmx.d.ts} +1 -1
  26. package/dist/{index-C9F6f2iz.d.mts → index-Bk_dqXKp.d.mts} +2 -2
  27. package/dist/{index-BMsj8hJv.d.ts → index-CN2jy6bb.d.ts} +2 -2
  28. package/dist/{index-CFKZWJVt.d.ts → index-CSTyna62.d.ts} +2 -1
  29. package/dist/{index-BMfaixEx.d.mts → index-Ca30Hgn7.d.mts} +1 -1
  30. package/dist/{index-Cou96DpL.d.mts → index-CdM22eod.d.mts} +1 -1
  31. package/dist/{index-D4ju2J_e.d.mts → index-D3GBq1P1.d.mts} +1 -1
  32. package/dist/{index-Bvc8cjpN.d.ts → index-DTYp8DRd.d.ts} +2 -2
  33. package/dist/index.d.mts +7 -7
  34. package/dist/index.d.ts +7 -7
  35. package/dist/index.js +5 -26
  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-Dc15ure7.d.mts} +1 -1
  41. package/dist/{types-DzVVzMYU.d.ts → types-Dc15ure7.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-WPXA4QPX.mjs.map +0 -1
  46. /package/dist/{chunk-MUEDDGKX.mjs.map → chunk-SB54XHCJ.mjs.map} +0 -0
@@ -12,7 +12,7 @@ import {
12
12
  useTransaction,
13
13
  useUserInfo,
14
14
  useWallet
15
- } from "../chunk-WPXA4QPX.mjs";
15
+ } from "../chunk-FYW4P7HS.mjs";
16
16
  import "../chunk-UA6XHZHX.mjs";
17
17
  import "../chunk-5JHHHLG4.mjs";
18
18
  import {
@@ -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-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';
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,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, 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';
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 _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 { 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';
4
4
 
5
5
  declare const isSuccess: (res: {
6
6
  code: number;
@@ -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-Dc15ure7.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';
@@ -3256,6 +3256,7 @@ declare function useMatchWalletAssetList({ list }: {
3256
3256
  }): {
3257
3257
  list: WalletAssetMergeType[];
3258
3258
  isLoading: boolean;
3259
+ isFetched: boolean;
3259
3260
  nativeBalance: bigint | null | undefined;
3260
3261
  erc20Balances: ({
3261
3262
  error?: undefined;
@@ -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 { x as InputProps, B as ButtonProps, F as ModalProps, M as ModalWithHeaderProps, K as PopoverProps } from './types-Dc15ure7.js';
4
4
 
5
5
  declare function Field({ label, children, error, required, className }: {
6
6
  label: ReactNode;
@@ -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-CdM22eod.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 { s as DrawerProps, _ as WalletPanelProps, N as UIProps } from './types-Dc15ure7.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-BOsoQSmx.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 { s as DrawerProps, _ as WalletPanelProps, N as UIProps } from './types-Dc15ure7.js';
4
4
  import { Hash, Chain } from 'viem';
5
5
  import { CSSProperties } from 'react';
6
6
 
@@ -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-Dc15ure7.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';
@@ -3256,6 +3256,7 @@ declare function useMatchWalletAssetList({ list }: {
3256
3256
  }): {
3257
3257
  list: WalletAssetMergeType[];
3258
3258
  isLoading: boolean;
3259
+ isFetched: boolean;
3259
3260
  nativeBalance: bigint | null | undefined;
3260
3261
  erc20Balances: ({
3261
3262
  error?: undefined;
@@ -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, 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';
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 { x as InputProps, B as ButtonProps, F as ModalProps, M as ModalWithHeaderProps, K as PopoverProps } from './types-Dc15ure7.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.mjs';
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';
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-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';
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-Dhtyz0pT.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-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';
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-Ca30Hgn7.mjs';
9
9
  import '@tanstack/react-query/src/types';
10
10
  import 'react/jsx-runtime';
11
- import './index-Cou96DpL.mjs';
11
+ import './index-CdM22eod.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-CFKZWJVt.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-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';
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-BFSCCmlU.js';
9
9
  import '@tanstack/react-query/src/types';
10
10
  import 'react/jsx-runtime';
11
- import './index-BcEreCxd.js';
11
+ import './index-BOsoQSmx.js';
12
12
  import 'viem';
13
13
  import './mpc-CTbBWHld.js';
14
14
  import 'viem/types/misc';
package/dist/index.js CHANGED
@@ -2754,7 +2754,6 @@ var import_middleware2 = require("zustand/middleware");
2754
2754
  var persistedState2 = (0, import_middleware2.persist)(
2755
2755
  (set, get) => ({
2756
2756
  transactions: {},
2757
- getTransactions: (chainId, address) => get().transactions[`${chainId}-${address}`] || [],
2758
2757
  addTransaction: (data) => {
2759
2758
  set((state) => {
2760
2759
  const updatedTransactions = {
@@ -6191,9 +6190,9 @@ function useMatchWalletRecords() {
6191
6190
  onInit();
6192
6191
  }
6193
6192
  }, [chainId, address]);
6194
- const { getTransactions, removeTransaction } = useTransactionStore_default();
6193
+ const { transactions, removeTransaction } = useTransactionStore_default();
6195
6194
  const list = (0, import_react34.useMemo)(() => {
6196
- const localTransactions = getTransactions(chainId || 0, address) || [];
6195
+ const localTransactions = transactions[`${chainId}-${address}`] || [];
6197
6196
  const removeList = localTransactions.filter((n) => items.findIndex((m) => m.hash == n.hash) >= 0);
6198
6197
  removeList.forEach((item) => {
6199
6198
  removeTransaction({
@@ -6211,7 +6210,7 @@ function useMatchWalletRecords() {
6211
6210
  const atimestamp = typeof a.timestamp === "string" ? parseInt(a.timestamp) : a.timestamp;
6212
6211
  return btimestamp - atimestamp;
6213
6212
  });
6214
- }, [getTransactions, chainId, items, address]);
6213
+ }, [transactions, chainId, items, address]);
6215
6214
  return {
6216
6215
  items: list,
6217
6216
  fetchMoreData,
@@ -6319,34 +6318,13 @@ function useMatchWalletAssetList({
6319
6318
  // Retry up to 3 times if failed
6320
6319
  });
6321
6320
  const erc20Tokens = (0, import_react34.useMemo)(() => list.filter((asset) => asset.address !== NATIVE_TOKEN_ADDRESS), [list]);
6322
- const erc20Abi4 = [
6323
- {
6324
- "constant": true,
6325
- "inputs": [
6326
- {
6327
- "name": "_owner",
6328
- "type": "address"
6329
- }
6330
- ],
6331
- "name": "balanceOf",
6332
- "outputs": [
6333
- {
6334
- "name": "balance",
6335
- "type": "uint256"
6336
- }
6337
- ],
6338
- "payable": false,
6339
- "stateMutability": "view",
6340
- "type": "function"
6341
- }
6342
- ];
6343
6321
  const erc20BalanceQuery = (0, import_react_query5.useQuery)({
6344
6322
  queryKey: ["erc20Balances", erc20Tokens.map((token) => token.address)],
6345
6323
  queryFn: async () => {
6346
6324
  if (!erc20Tokens.length || !publicClient) return [];
6347
6325
  const calls = erc20Tokens.map((token) => ({
6348
6326
  address: token.address,
6349
- abi: erc20Abi4,
6327
+ abi: import_viem10.erc20Abi,
6350
6328
  functionName: "balanceOf",
6351
6329
  args: [address]
6352
6330
  }));
@@ -6404,6 +6382,7 @@ function useMatchWalletAssetList({
6404
6382
  return {
6405
6383
  list: assets,
6406
6384
  isLoading: nativeBalanceQuery.isLoading || erc20BalanceQuery.isLoading,
6385
+ isFetched: nativeBalanceQuery.isFetched && erc20BalanceQuery.isFetched,
6407
6386
  nativeBalance: nativeBalanceQuery.data,
6408
6387
  erc20Balances: erc20BalanceQuery.data
6409
6388
  };