@matchain/matchid-sdk-react 0.1.48-alpha.7 → 0.1.48-alpha.9
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.
- package/dist/assets/icon/index.d.mts +1 -1
- package/dist/assets/icon/index.d.ts +1 -1
- package/dist/{chunk-2CK7JQWH.mjs → chunk-CI63DTB6.mjs} +240 -41
- package/dist/chunk-CI63DTB6.mjs.map +1 -0
- package/dist/{chunk-YXPWZXPT.mjs → chunk-T72FT5NB.mjs} +2 -2
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +3 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +33 -2
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +2 -2
- package/dist/hooks/index.d.mts +3 -2
- package/dist/hooks/index.d.ts +3 -2
- package/dist/hooks/index.js +299 -41
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/{index-B8DYrhSW.d.mts → index-B7A0lN0C.d.mts} +12 -4
- package/dist/{index-DCeOyAw8.d.ts → index-Bbn2Stvu.d.ts} +2 -2
- package/dist/index-Bz53bbI_.d.ts +3268 -0
- package/dist/{index-DbG5IjhP.d.mts → index-CB4j_ONH.d.mts} +1 -1
- package/dist/{index-B-s1k4Da.d.mts → index-CKyWWkzU.d.mts} +3 -2
- package/dist/{index-BZrddrq-.d.mts → index-C_S7k6z2.d.mts} +2 -2
- package/dist/{index-BHvCA7F9.d.ts → index-D-uNr-JV.d.ts} +2 -2
- package/dist/index-DDV4F9ka.d.mts +3268 -0
- package/dist/{index-DG_gyw1q.d.ts → index-DV_mRu4y.d.ts} +3 -2
- package/dist/{index-Bzcc-y8m.d.ts → index-DcxdJ0m2.d.ts} +1 -1
- package/dist/{index-BvLpvebq.d.mts → index-Dzvj-uGt.d.mts} +2 -2
- package/dist/{index-Cwx2p8th.d.ts → index-dhPbMbvL.d.ts} +12 -4
- package/dist/index.css +11 -0
- package/dist/index.d.mts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +244 -45
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-CHkU0WHZ.d.mts → types-B4BYNw8B.d.mts} +13 -2
- package/dist/{types-CHkU0WHZ.d.ts → types-B4BYNw8B.d.ts} +13 -2
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.d.ts +3 -3
- package/example/src/pages/Wallet/components/MatchWallet.tsx +2 -1
- package/package.json +1 -1
- package/dist/chunk-2CK7JQWH.mjs.map +0 -1
- package/dist/index-DaEFoDv_.d.ts +0 -187
- package/dist/index-DktvxNJc.d.mts +0 -187
- /package/dist/{chunk-YXPWZXPT.mjs.map → chunk-T72FT5NB.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -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 } from './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.mjs';
|
|
4
4
|
|
|
5
5
|
declare const isSuccess: (res: {
|
|
6
6
|
code: number;
|
|
@@ -37,7 +37,7 @@ declare const userImportTokenApi: (data: {
|
|
|
37
37
|
chain_id: string;
|
|
38
38
|
symbol: string;
|
|
39
39
|
address: string;
|
|
40
|
-
decimals:
|
|
40
|
+
decimals: string;
|
|
41
41
|
}) => Promise<MyResponseType<any>>;
|
|
42
42
|
declare const getUserWalletTransactionsApi: (data: {
|
|
43
43
|
chain_id: string;
|
|
@@ -51,7 +51,10 @@ declare const getUserWalletTransactionsApi: (data: {
|
|
|
51
51
|
declare const getWalletAssetListApi: (data: {
|
|
52
52
|
chain_id: string;
|
|
53
53
|
address: string;
|
|
54
|
-
}) => Promise<MyResponseType<
|
|
54
|
+
}) => Promise<MyResponseType<{
|
|
55
|
+
asset_list: WalletAssetType[];
|
|
56
|
+
asset_total_balance: string;
|
|
57
|
+
}>>;
|
|
55
58
|
declare const getWalletListApi: (data: {
|
|
56
59
|
page: number;
|
|
57
60
|
page_size: number;
|
|
@@ -97,6 +100,10 @@ declare function useImportTokenListQuery({ chainId, ...options }: {
|
|
|
97
100
|
chainId: number;
|
|
98
101
|
} & Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<UserImportTokenType[], Error>;
|
|
99
102
|
declare function useWalletChainListQuery(options?: Partial<Omit<UseQueryOptions<WalletChainType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<WalletChainType[], Error>;
|
|
103
|
+
declare function useWalletNftListQuery({ chainId, address, ...options }: {
|
|
104
|
+
chainId: string;
|
|
105
|
+
address: string;
|
|
106
|
+
} & Partial<Omit<UseQueryOptions<WalletNFTType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<WalletNFTType[], Error>;
|
|
100
107
|
|
|
101
108
|
declare const wallet_getUserWalletTransactionsApi: typeof getUserWalletTransactionsApi;
|
|
102
109
|
declare const wallet_getWalletAssetListApi: typeof getWalletAssetListApi;
|
|
@@ -105,9 +112,10 @@ declare const wallet_useAssetListQuery: typeof useAssetListQuery;
|
|
|
105
112
|
declare const wallet_useChainListQuery: typeof useChainListQuery;
|
|
106
113
|
declare const wallet_useImportTokenListQuery: typeof useImportTokenListQuery;
|
|
107
114
|
declare const wallet_useWalletChainListQuery: typeof useWalletChainListQuery;
|
|
115
|
+
declare const wallet_useWalletNftListQuery: typeof useWalletNftListQuery;
|
|
108
116
|
declare const wallet_userImportTokenApi: typeof userImportTokenApi;
|
|
109
117
|
declare namespace wallet {
|
|
110
|
-
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_userImportTokenApi as userImportTokenApi };
|
|
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 };
|
|
111
119
|
}
|
|
112
120
|
|
|
113
121
|
declare const index_bind: typeof bind;
|
|
@@ -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-
|
|
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-DcxdJ0m2.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { o as DrawerProps,
|
|
3
|
+
import { o as DrawerProps, Q as WalletPanelProps, z as UIProps } from './types-B4BYNw8B.js';
|
|
4
4
|
import { Hash, Chain } from 'viem';
|
|
5
5
|
import { CSSProperties } from 'react';
|
|
6
6
|
|