@matchain/matchid-sdk-react 0.1.48-alpha.9 → 0.1.49

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 (71) hide show
  1. package/dist/assets/icon/index.d.mts +8 -2
  2. package/dist/assets/icon/index.d.ts +8 -2
  3. package/dist/assets/icon/index.js +54 -2
  4. package/dist/assets/icon/index.js.map +1 -1
  5. package/dist/assets/icon/index.mjs +5 -1
  6. package/dist/chunk-5JHHHLG4.mjs +136 -0
  7. package/dist/chunk-5JHHHLG4.mjs.map +1 -0
  8. package/dist/{chunk-USKUYOYJ.mjs → chunk-FB5MHLWX.mjs} +75 -42
  9. package/dist/chunk-FB5MHLWX.mjs.map +1 -0
  10. package/dist/{chunk-T72FT5NB.mjs → chunk-IKSPEZ4F.mjs} +2 -2
  11. package/dist/{chunk-7UTR37EJ.mjs → chunk-LHNKZISB.mjs} +54 -4
  12. package/dist/chunk-LHNKZISB.mjs.map +1 -0
  13. package/dist/{chunk-CI63DTB6.mjs → chunk-MXDPJRRH.mjs} +2020 -702
  14. package/dist/chunk-MXDPJRRH.mjs.map +1 -0
  15. package/dist/components/index.d.mts +4 -3
  16. package/dist/components/index.d.ts +4 -3
  17. package/dist/components/index.js +2265 -536
  18. package/dist/components/index.js.map +1 -1
  19. package/dist/components/index.mjs +14 -3
  20. package/dist/hooks/api/index.d.mts +2 -2
  21. package/dist/hooks/api/index.d.ts +2 -2
  22. package/dist/hooks/api/index.js +363 -204
  23. package/dist/hooks/api/index.js.map +1 -1
  24. package/dist/hooks/api/index.mjs +5 -4
  25. package/dist/hooks/index.d.mts +4 -2
  26. package/dist/hooks/index.d.ts +4 -2
  27. package/dist/hooks/index.js +1532 -320
  28. package/dist/hooks/index.js.map +1 -1
  29. package/dist/hooks/index.mjs +8 -3
  30. package/dist/index-BMfaixEx.d.mts +66 -0
  31. package/dist/{index-Bbn2Stvu.d.ts → index-BMsj8hJv.d.ts} +4 -3
  32. package/dist/{index-DcxdJ0m2.d.ts → index-BcEreCxd.d.ts} +1 -1
  33. package/dist/{index-Bz53bbI_.d.ts → index-Bg4rqEu2.d.ts} +145 -88
  34. package/dist/index-Bpmrd7mh.d.ts +66 -0
  35. package/dist/{index-C_S7k6z2.d.mts → index-Bvc8cjpN.d.ts} +34 -4
  36. package/dist/{index-Dzvj-uGt.d.mts → index-C9F6f2iz.d.mts} +4 -3
  37. package/dist/{index-D-uNr-JV.d.ts → index-C9qYyRgt.d.mts} +34 -4
  38. package/dist/{index-DDV4F9ka.d.mts → index-CNzG0MX7.d.mts} +145 -88
  39. package/dist/{index-CB4j_ONH.d.mts → index-Cou96DpL.d.mts} +1 -1
  40. package/dist/{index-B7A0lN0C.d.mts → index-Cy3K-Yao.d.ts} +21 -6
  41. package/dist/{index-dhPbMbvL.d.ts → index-D4ju2J_e.d.mts} +21 -6
  42. package/dist/index.css +613 -10
  43. package/dist/index.d.mts +9 -9
  44. package/dist/index.d.ts +9 -9
  45. package/dist/index.js +2597 -1104
  46. package/dist/index.js.map +1 -1
  47. package/dist/index.mjs +15 -10
  48. package/dist/types/index.d.mts +2 -1
  49. package/dist/types/index.d.ts +2 -1
  50. package/dist/{types-B4BYNw8B.d.mts → types-DzVVzMYU.d.mts} +62 -35
  51. package/dist/{types-B4BYNw8B.d.ts → types-DzVVzMYU.d.ts} +62 -35
  52. package/dist/ui/index.d.mts +4 -3
  53. package/dist/ui/index.d.ts +4 -3
  54. package/dist/ui/index.js +134 -95
  55. package/dist/ui/index.js.map +1 -1
  56. package/dist/ui/index.mjs +2 -2
  57. package/dist/utils/index.d.mts +26 -0
  58. package/dist/utils/index.d.ts +26 -0
  59. package/dist/utils/index.js +181 -0
  60. package/dist/utils/index.js.map +1 -0
  61. package/dist/utils/index.mjs +30 -0
  62. package/dist/utils/index.mjs.map +1 -0
  63. package/example/src/pages/Wallet/components/MatchWallet.tsx +44 -9
  64. package/example/src/pages/Wallet/index.tsx +2 -1
  65. package/package.json +7 -1
  66. package/dist/chunk-7UTR37EJ.mjs.map +0 -1
  67. package/dist/chunk-CI63DTB6.mjs.map +0 -1
  68. package/dist/chunk-USKUYOYJ.mjs.map +0 -1
  69. package/dist/index-CKyWWkzU.d.mts +0 -60
  70. package/dist/index-DV_mRu4y.d.ts +0 -60
  71. /package/dist/{chunk-T72FT5NB.mjs.map → chunk-IKSPEZ4F.mjs.map} +0 -0
@@ -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 { x as PohZkpassParams, j as UserTransactionType, J as WalletAssetType, u as MetaPageType, m as BindItemType, l as BindInfoType, w as PohItemType, U as UserChainType, F as UserAssetToken, G as UserImportTokenType, K as WalletChainType, N as WalletNFTType } from './types-B4BYNw8B.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.mjs';
4
4
 
5
5
  declare const isSuccess: (res: {
6
6
  code: number;
@@ -40,13 +40,15 @@ declare const userImportTokenApi: (data: {
40
40
  decimals: string;
41
41
  }) => Promise<MyResponseType<any>>;
42
42
  declare const getUserWalletTransactionsApi: (data: {
43
+ address?: string;
43
44
  chain_id: string;
44
- limit: number;
45
- offset: number;
45
+ page?: string;
46
+ block_number?: number;
47
+ index?: number;
48
+ items_count?: number;
46
49
  }) => Promise<MyResponseType<{
47
50
  transactions: UserTransactionType[];
48
- limit: number;
49
- offset: number;
51
+ next_page_params: UserTransactionNextPageParams;
50
52
  }>>;
51
53
  declare const getWalletAssetListApi: (data: {
52
54
  chain_id: string;
@@ -96,6 +98,7 @@ declare function useChainListQuery(options?: Partial<Omit<UseQueryOptions<UserCh
96
98
  declare function useAssetListQuery({ chainId, ...options }: {
97
99
  chainId: number;
98
100
  } & Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<UserAssetToken[], Error>;
101
+ declare const USER_IMPORT_TOKEN_LIST_KEY = "match-user-import-token-list";
99
102
  declare function useImportTokenListQuery({ chainId, ...options }: {
100
103
  chainId: number;
101
104
  } & Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<UserImportTokenType[], Error>;
@@ -104,18 +107,30 @@ declare function useWalletNftListQuery({ chainId, address, ...options }: {
104
107
  chainId: string;
105
108
  address: string;
106
109
  } & Partial<Omit<UseQueryOptions<WalletNFTType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<WalletNFTType[], Error>;
110
+ declare function useWalletAssetListQuery({ chainId, address, ...options }: {
111
+ chainId: string;
112
+ address: string;
113
+ } & Partial<Omit<UseQueryOptions<{
114
+ asset_list: WalletAssetType[];
115
+ asset_total_balance: string;
116
+ } | null>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<{
117
+ asset_list: WalletAssetType[];
118
+ asset_total_balance: string;
119
+ } | null, Error>;
107
120
 
121
+ declare const wallet_USER_IMPORT_TOKEN_LIST_KEY: typeof USER_IMPORT_TOKEN_LIST_KEY;
108
122
  declare const wallet_getUserWalletTransactionsApi: typeof getUserWalletTransactionsApi;
109
123
  declare const wallet_getWalletAssetListApi: typeof getWalletAssetListApi;
110
124
  declare const wallet_getWalletListApi: typeof getWalletListApi;
111
125
  declare const wallet_useAssetListQuery: typeof useAssetListQuery;
112
126
  declare const wallet_useChainListQuery: typeof useChainListQuery;
113
127
  declare const wallet_useImportTokenListQuery: typeof useImportTokenListQuery;
128
+ declare const wallet_useWalletAssetListQuery: typeof useWalletAssetListQuery;
114
129
  declare const wallet_useWalletChainListQuery: typeof useWalletChainListQuery;
115
130
  declare const wallet_useWalletNftListQuery: typeof useWalletNftListQuery;
116
131
  declare const wallet_userImportTokenApi: typeof userImportTokenApi;
117
132
  declare namespace wallet {
118
- export { wallet_getUserWalletTransactionsApi as getUserWalletTransactionsApi, wallet_getWalletAssetListApi as getWalletAssetListApi, wallet_getWalletListApi as getWalletListApi, wallet_useAssetListQuery as useAssetListQuery, wallet_useChainListQuery as useChainListQuery, wallet_useImportTokenListQuery as useImportTokenListQuery, wallet_useWalletChainListQuery as useWalletChainListQuery, wallet_useWalletNftListQuery as useWalletNftListQuery, wallet_userImportTokenApi as userImportTokenApi };
133
+ export { wallet_USER_IMPORT_TOKEN_LIST_KEY as USER_IMPORT_TOKEN_LIST_KEY, wallet_getUserWalletTransactionsApi as getUserWalletTransactionsApi, wallet_getWalletAssetListApi as getWalletAssetListApi, wallet_getWalletListApi as getWalletListApi, wallet_useAssetListQuery as useAssetListQuery, wallet_useChainListQuery as useChainListQuery, wallet_useImportTokenListQuery as useImportTokenListQuery, wallet_useWalletAssetListQuery as useWalletAssetListQuery, wallet_useWalletChainListQuery as useWalletChainListQuery, wallet_useWalletNftListQuery as useWalletNftListQuery, wallet_userImportTokenApi as userImportTokenApi };
119
134
  }
120
135
 
121
136
  declare const index_bind: typeof bind;