@matchain/matchid-sdk-react 0.1.48-alpha.2 → 0.1.48-alpha.20
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 +12 -2
- package/dist/assets/icon/index.d.ts +12 -2
- package/dist/assets/icon/index.js +93 -2
- package/dist/assets/icon/index.js.map +1 -1
- package/dist/assets/icon/index.mjs +9 -1
- package/dist/{chunk-6HRRPZPM.mjs → chunk-3UVHHJP6.mjs} +2 -2
- package/dist/chunk-5JHHHLG4.mjs +136 -0
- package/dist/chunk-5JHHHLG4.mjs.map +1 -0
- package/dist/{chunk-A5D3NKTK.mjs → chunk-LHNKZISB.mjs} +91 -4
- package/dist/chunk-LHNKZISB.mjs.map +1 -0
- package/dist/{chunk-D6IUBR7S.mjs → chunk-WHZ3HI4R.mjs} +2197 -553
- package/dist/chunk-WHZ3HI4R.mjs.map +1 -0
- package/dist/{chunk-LNSJ3ZXG.mjs → chunk-WXPVHKGJ.mjs} +73 -42
- package/dist/chunk-WXPVHKGJ.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 +2283 -525
- 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 +375 -193
- 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 +1904 -227
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +12 -3
- package/dist/index-BMfaixEx.d.mts +66 -0
- package/dist/{index-DamklTOJ.d.mts → index-BMsj8hJv.d.ts} +4 -3
- package/dist/{index-CKiK4KHj.d.ts → index-BcEreCxd.d.ts} +1 -1
- package/dist/index-Bpmrd7mh.d.ts +66 -0
- package/dist/{index-CGs_yTFg.d.ts → index-Bvc8cjpN.d.ts} +34 -4
- package/dist/{index-C2-M-aBb.d.ts → index-C9F6f2iz.d.mts} +4 -3
- package/dist/{index-M7ZB3yR5.d.mts → index-C9qYyRgt.d.mts} +34 -4
- package/dist/index-CFKZWJVt.d.ts +3306 -0
- package/dist/{index-Bb7IkjUW.d.mts → index-Cou96DpL.d.mts} +1 -1
- package/dist/{index-BIgM4fy0.d.mts → index-Cy3K-Yao.d.ts} +31 -8
- package/dist/{index-BwD1ij0H.d.ts → index-D4ju2J_e.d.mts} +31 -8
- package/dist/index-Dhtyz0pT.d.mts +3306 -0
- package/dist/index.css +587 -6
- package/dist/index.d.mts +9 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.js +2855 -1015
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -10
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/{types-DQq17lf4.d.mts → types-DzVVzMYU.d.mts} +74 -36
- package/dist/{types-DQq17lf4.d.ts → types-DzVVzMYU.d.ts} +74 -36
- package/dist/ui/index.d.mts +4 -3
- package/dist/ui/index.d.ts +4 -3
- package/dist/ui/index.js +140 -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 +24 -10
- package/example/src/pages/Wallet/index.tsx +2 -1
- package/package.json +7 -1
- package/dist/chunk-A5D3NKTK.mjs.map +0 -1
- package/dist/chunk-D6IUBR7S.mjs.map +0 -1
- package/dist/chunk-LNSJ3ZXG.mjs.map +0 -1
- package/dist/index-BHVMQGZj.d.mts +0 -173
- package/dist/index-BVatQlwF.d.mts +0 -59
- package/dist/index-DgAnNnit.d.ts +0 -173
- package/dist/index-RfA22r-Z.d.ts +0 -59
- /package/dist/{chunk-6HRRPZPM.mjs.map → chunk-3UVHHJP6.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode, PropsWithChildren } from 'react';
|
|
3
|
-
import {
|
|
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 {
|
|
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;
|
|
@@ -37,21 +37,26 @@ 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
|
+
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;
|
|
53
55
|
address: string;
|
|
54
|
-
}) => Promise<MyResponseType<
|
|
56
|
+
}) => Promise<MyResponseType<{
|
|
57
|
+
asset_list: WalletAssetType[];
|
|
58
|
+
asset_total_balance: string;
|
|
59
|
+
}>>;
|
|
55
60
|
declare const getWalletListApi: (data: {
|
|
56
61
|
page: number;
|
|
57
62
|
page_size: number;
|
|
@@ -93,21 +98,39 @@ declare function useChainListQuery(options?: Partial<Omit<UseQueryOptions<UserCh
|
|
|
93
98
|
declare function useAssetListQuery({ chainId, ...options }: {
|
|
94
99
|
chainId: number;
|
|
95
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";
|
|
96
102
|
declare function useImportTokenListQuery({ chainId, ...options }: {
|
|
97
103
|
chainId: number;
|
|
98
104
|
} & Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<UserImportTokenType[], Error>;
|
|
99
105
|
declare function useWalletChainListQuery(options?: Partial<Omit<UseQueryOptions<WalletChainType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<WalletChainType[], Error>;
|
|
106
|
+
declare function useWalletNftListQuery({ chainId, address, ...options }: {
|
|
107
|
+
chainId: string;
|
|
108
|
+
address: string;
|
|
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>;
|
|
100
120
|
|
|
121
|
+
declare const wallet_USER_IMPORT_TOKEN_LIST_KEY: typeof USER_IMPORT_TOKEN_LIST_KEY;
|
|
101
122
|
declare const wallet_getUserWalletTransactionsApi: typeof getUserWalletTransactionsApi;
|
|
102
123
|
declare const wallet_getWalletAssetListApi: typeof getWalletAssetListApi;
|
|
103
124
|
declare const wallet_getWalletListApi: typeof getWalletListApi;
|
|
104
125
|
declare const wallet_useAssetListQuery: typeof useAssetListQuery;
|
|
105
126
|
declare const wallet_useChainListQuery: typeof useChainListQuery;
|
|
106
127
|
declare const wallet_useImportTokenListQuery: typeof useImportTokenListQuery;
|
|
128
|
+
declare const wallet_useWalletAssetListQuery: typeof useWalletAssetListQuery;
|
|
107
129
|
declare const wallet_useWalletChainListQuery: typeof useWalletChainListQuery;
|
|
130
|
+
declare const wallet_useWalletNftListQuery: typeof useWalletNftListQuery;
|
|
108
131
|
declare const wallet_userImportTokenApi: typeof userImportTokenApi;
|
|
109
132
|
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 };
|
|
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 };
|
|
111
134
|
}
|
|
112
135
|
|
|
113
136
|
declare const index_bind: typeof bind;
|
|
@@ -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;
|
|
@@ -37,21 +37,26 @@ 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
|
+
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;
|
|
53
55
|
address: string;
|
|
54
|
-
}) => Promise<MyResponseType<
|
|
56
|
+
}) => Promise<MyResponseType<{
|
|
57
|
+
asset_list: WalletAssetType[];
|
|
58
|
+
asset_total_balance: string;
|
|
59
|
+
}>>;
|
|
55
60
|
declare const getWalletListApi: (data: {
|
|
56
61
|
page: number;
|
|
57
62
|
page_size: number;
|
|
@@ -93,21 +98,39 @@ declare function useChainListQuery(options?: Partial<Omit<UseQueryOptions<UserCh
|
|
|
93
98
|
declare function useAssetListQuery({ chainId, ...options }: {
|
|
94
99
|
chainId: number;
|
|
95
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";
|
|
96
102
|
declare function useImportTokenListQuery({ chainId, ...options }: {
|
|
97
103
|
chainId: number;
|
|
98
104
|
} & Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<UserImportTokenType[], Error>;
|
|
99
105
|
declare function useWalletChainListQuery(options?: Partial<Omit<UseQueryOptions<WalletChainType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<WalletChainType[], Error>;
|
|
106
|
+
declare function useWalletNftListQuery({ chainId, address, ...options }: {
|
|
107
|
+
chainId: string;
|
|
108
|
+
address: string;
|
|
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>;
|
|
100
120
|
|
|
121
|
+
declare const wallet_USER_IMPORT_TOKEN_LIST_KEY: typeof USER_IMPORT_TOKEN_LIST_KEY;
|
|
101
122
|
declare const wallet_getUserWalletTransactionsApi: typeof getUserWalletTransactionsApi;
|
|
102
123
|
declare const wallet_getWalletAssetListApi: typeof getWalletAssetListApi;
|
|
103
124
|
declare const wallet_getWalletListApi: typeof getWalletListApi;
|
|
104
125
|
declare const wallet_useAssetListQuery: typeof useAssetListQuery;
|
|
105
126
|
declare const wallet_useChainListQuery: typeof useChainListQuery;
|
|
106
127
|
declare const wallet_useImportTokenListQuery: typeof useImportTokenListQuery;
|
|
128
|
+
declare const wallet_useWalletAssetListQuery: typeof useWalletAssetListQuery;
|
|
107
129
|
declare const wallet_useWalletChainListQuery: typeof useWalletChainListQuery;
|
|
130
|
+
declare const wallet_useWalletNftListQuery: typeof useWalletNftListQuery;
|
|
108
131
|
declare const wallet_userImportTokenApi: typeof userImportTokenApi;
|
|
109
132
|
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 };
|
|
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 };
|
|
111
134
|
}
|
|
112
135
|
|
|
113
136
|
declare const index_bind: typeof bind;
|