@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.
- package/dist/assets/icon/index.d.mts +8 -2
- package/dist/assets/icon/index.d.ts +8 -2
- package/dist/assets/icon/index.js +54 -2
- package/dist/assets/icon/index.js.map +1 -1
- package/dist/assets/icon/index.mjs +5 -1
- package/dist/chunk-5JHHHLG4.mjs +136 -0
- package/dist/chunk-5JHHHLG4.mjs.map +1 -0
- package/dist/{chunk-USKUYOYJ.mjs → chunk-FB5MHLWX.mjs} +75 -42
- package/dist/chunk-FB5MHLWX.mjs.map +1 -0
- package/dist/{chunk-T72FT5NB.mjs → chunk-IKSPEZ4F.mjs} +2 -2
- package/dist/{chunk-7UTR37EJ.mjs → chunk-LHNKZISB.mjs} +54 -4
- package/dist/chunk-LHNKZISB.mjs.map +1 -0
- package/dist/{chunk-CI63DTB6.mjs → chunk-MXDPJRRH.mjs} +2020 -702
- package/dist/chunk-MXDPJRRH.mjs.map +1 -0
- package/dist/components/index.d.mts +4 -3
- package/dist/components/index.d.ts +4 -3
- package/dist/components/index.js +2265 -536
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +14 -3
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +363 -204
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +5 -4
- package/dist/hooks/index.d.mts +4 -2
- package/dist/hooks/index.d.ts +4 -2
- package/dist/hooks/index.js +1532 -320
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +8 -3
- package/dist/index-BMfaixEx.d.mts +66 -0
- package/dist/{index-Bbn2Stvu.d.ts → index-BMsj8hJv.d.ts} +4 -3
- package/dist/{index-DcxdJ0m2.d.ts → index-BcEreCxd.d.ts} +1 -1
- package/dist/{index-Bz53bbI_.d.ts → index-Bg4rqEu2.d.ts} +145 -88
- package/dist/index-Bpmrd7mh.d.ts +66 -0
- package/dist/{index-C_S7k6z2.d.mts → index-Bvc8cjpN.d.ts} +34 -4
- package/dist/{index-Dzvj-uGt.d.mts → index-C9F6f2iz.d.mts} +4 -3
- package/dist/{index-D-uNr-JV.d.ts → index-C9qYyRgt.d.mts} +34 -4
- package/dist/{index-DDV4F9ka.d.mts → index-CNzG0MX7.d.mts} +145 -88
- package/dist/{index-CB4j_ONH.d.mts → index-Cou96DpL.d.mts} +1 -1
- package/dist/{index-B7A0lN0C.d.mts → index-Cy3K-Yao.d.ts} +21 -6
- package/dist/{index-dhPbMbvL.d.ts → index-D4ju2J_e.d.mts} +21 -6
- package/dist/index.css +613 -10
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +2597 -1104
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -10
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/{types-B4BYNw8B.d.mts → types-DzVVzMYU.d.mts} +62 -35
- package/dist/{types-B4BYNw8B.d.ts → types-DzVVzMYU.d.ts} +62 -35
- package/dist/ui/index.d.mts +4 -3
- package/dist/ui/index.d.ts +4 -3
- package/dist/ui/index.js +134 -95
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +2 -2
- package/dist/utils/index.d.mts +26 -0
- package/dist/utils/index.d.ts +26 -0
- package/dist/utils/index.js +181 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +30 -0
- package/dist/utils/index.mjs.map +1 -0
- package/example/src/pages/Wallet/components/MatchWallet.tsx +44 -9
- package/example/src/pages/Wallet/index.tsx +2 -1
- package/package.json +7 -1
- package/dist/chunk-7UTR37EJ.mjs.map +0 -1
- package/dist/chunk-CI63DTB6.mjs.map +0 -1
- package/dist/chunk-USKUYOYJ.mjs.map +0 -1
- package/dist/index-CKyWWkzU.d.mts +0 -60
- package/dist/index-DV_mRu4y.d.ts +0 -60
- /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 {
|
|
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
|
-
|
|
45
|
-
|
|
45
|
+
page?: string;
|
|
46
|
+
block_number?: number;
|
|
47
|
+
index?: number;
|
|
48
|
+
items_count?: number;
|
|
46
49
|
}) => Promise<MyResponseType<{
|
|
47
50
|
transactions: UserTransactionType[];
|
|
48
|
-
|
|
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;
|