@matchain/matchid-sdk-react 0.1.48-alpha.10 → 0.1.48-alpha.2
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 +2 -11
- package/dist/assets/icon/index.d.ts +2 -11
- package/dist/assets/icon/index.js +2 -93
- package/dist/assets/icon/index.js.map +1 -1
- package/dist/assets/icon/index.mjs +1 -9
- package/dist/{chunk-YGFOHQU6.mjs → chunk-6HRRPZPM.mjs} +2 -2
- package/dist/{chunk-LHNKZISB.mjs → chunk-A5D3NKTK.mjs} +4 -91
- package/dist/chunk-A5D3NKTK.mjs.map +1 -0
- package/dist/{chunk-2LRK5L4Z.mjs → chunk-D6IUBR7S.mjs} +446 -1442
- package/dist/chunk-D6IUBR7S.mjs.map +1 -0
- package/dist/{chunk-MXBUBTKR.mjs → chunk-LNSJ3ZXG.mjs} +5 -11
- package/dist/chunk-LNSJ3ZXG.mjs.map +1 -0
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +448 -1689
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +3 -12
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +185 -265
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +4 -5
- package/dist/hooks/index.d.mts +2 -3
- package/dist/hooks/index.d.ts +2 -3
- package/dist/hooks/index.js +171 -1563
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +3 -12
- package/dist/index-BHVMQGZj.d.mts +173 -0
- package/dist/{index-BxPB2IQ2.d.ts → index-BIgM4fy0.d.mts} +8 -29
- package/dist/{index-NzZ-mfGZ.d.mts → index-BVatQlwF.d.mts} +2 -5
- package/dist/{index-DZ-eQkIA.d.mts → index-Bb7IkjUW.d.mts} +1 -1
- package/dist/{index-CE20hVl1.d.mts → index-BwD1ij0H.d.ts} +8 -29
- package/dist/{index-BQPieWF9.d.ts → index-C2-M-aBb.d.ts} +3 -4
- package/dist/{index-DAEvA2P4.d.ts → index-CGs_yTFg.d.ts} +4 -28
- package/dist/{index-C9s2Ea9O.d.ts → index-CKiK4KHj.d.ts} +1 -1
- package/dist/{index-BsmYcQQU.d.mts → index-DamklTOJ.d.mts} +3 -4
- package/dist/index-DgAnNnit.d.ts +173 -0
- package/dist/{index-BEwCPHZr.d.mts → index-M7ZB3yR5.d.mts} +4 -28
- package/dist/{index-88JSE0j2.d.ts → index-RfA22r-Z.d.ts} +2 -5
- package/dist/index.css +4 -468
- package/dist/index.d.mts +7 -8
- package/dist/index.d.ts +7 -8
- package/dist/index.js +1004 -2142
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -11
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-BZoVuUty.d.mts → types-DQq17lf4.d.mts} +33 -48
- package/dist/{types-BZoVuUty.d.ts → types-DQq17lf4.d.ts} +33 -48
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.d.ts +3 -3
- package/dist/ui/index.js +62 -80
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +2 -2
- package/example/src/pages/Wallet/components/MatchWallet.tsx +10 -24
- package/package.json +1 -7
- package/dist/chunk-2LRK5L4Z.mjs.map +0 -1
- package/dist/chunk-5JHHHLG4.mjs +0 -136
- package/dist/chunk-5JHHHLG4.mjs.map +0 -1
- package/dist/chunk-LHNKZISB.mjs.map +0 -1
- package/dist/chunk-MXBUBTKR.mjs.map +0 -1
- package/dist/index-DIxrMLXq.d.ts +0 -3295
- package/dist/index-P71uc8y5.d.mts +0 -3295
- package/dist/utils/index.d.mts +0 -26
- package/dist/utils/index.d.ts +0 -26
- package/dist/utils/index.js +0 -181
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs +0 -30
- package/dist/utils/index.mjs.map +0 -1
- /package/dist/{chunk-YGFOHQU6.mjs.map → chunk-6HRRPZPM.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -3,22 +3,17 @@ import {
|
|
|
3
3
|
useMatchChain,
|
|
4
4
|
useMatchEvents,
|
|
5
5
|
useMatchWallet,
|
|
6
|
-
useMatchWalletAssetList,
|
|
7
|
-
useMatchWalletAssets,
|
|
8
|
-
useMatchWalletRecords,
|
|
9
6
|
useModal,
|
|
10
7
|
useReceipt,
|
|
11
8
|
useToast,
|
|
12
|
-
useTransaction,
|
|
13
9
|
useUserInfo,
|
|
14
10
|
useWallet
|
|
15
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-D6IUBR7S.mjs";
|
|
16
12
|
import "../chunk-UA6XHZHX.mjs";
|
|
17
13
|
import {
|
|
18
14
|
useLayout_exports
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-LHNKZISB.mjs";
|
|
15
|
+
} from "../chunk-LNSJ3ZXG.mjs";
|
|
16
|
+
import "../chunk-A5D3NKTK.mjs";
|
|
22
17
|
import "../chunk-J5LGTIGS.mjs";
|
|
23
18
|
export {
|
|
24
19
|
useCopyClipboard,
|
|
@@ -26,13 +21,9 @@ export {
|
|
|
26
21
|
useMatchChain,
|
|
27
22
|
useMatchEvents,
|
|
28
23
|
useMatchWallet,
|
|
29
|
-
useMatchWalletAssetList,
|
|
30
|
-
useMatchWalletAssets,
|
|
31
|
-
useMatchWalletRecords,
|
|
32
24
|
useModal,
|
|
33
25
|
useReceipt,
|
|
34
26
|
useToast,
|
|
35
|
-
useTransaction,
|
|
36
27
|
useUserInfo,
|
|
37
28
|
useWallet
|
|
38
29
|
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { g as ISocialLoginMethod, h as OverviewInfo, C as CEXType, i as LoginMethodType, I as IMatchEvents, U as UserChainType } from './types-DQq17lf4.mjs';
|
|
2
|
+
import * as viem from 'viem';
|
|
3
|
+
import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
|
|
4
|
+
import { C as ChainType } from './mpc-CTbBWHld.mjs';
|
|
5
|
+
import { Hash } from 'viem/types/misc';
|
|
6
|
+
import { Abi } from 'abitype';
|
|
7
|
+
import React, { ReactNode } from 'react';
|
|
8
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
9
|
+
|
|
10
|
+
declare const LOGIN_METHOD_MAP: {
|
|
11
|
+
email: string;
|
|
12
|
+
evm: string;
|
|
13
|
+
sol: string;
|
|
14
|
+
btc: string;
|
|
15
|
+
ton: string;
|
|
16
|
+
tron: string;
|
|
17
|
+
google: string;
|
|
18
|
+
facebook: string;
|
|
19
|
+
x: string;
|
|
20
|
+
telegram: string;
|
|
21
|
+
github: string;
|
|
22
|
+
discord: string;
|
|
23
|
+
linkedin: string;
|
|
24
|
+
youtube: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
declare function useUserInfo(): {
|
|
28
|
+
loginByMethod: (method: ISocialLoginMethod) => Promise<Window | null>;
|
|
29
|
+
loginByTelegram: () => Promise<Window | null>;
|
|
30
|
+
loginByTwitter: () => Promise<Window | null>;
|
|
31
|
+
loginByGoogle: () => Promise<Window | null>;
|
|
32
|
+
loginByWallet: () => Promise<Window | null>;
|
|
33
|
+
loginByEmail: ({ email, code }: {
|
|
34
|
+
email: string;
|
|
35
|
+
code: string;
|
|
36
|
+
}) => Promise<boolean>;
|
|
37
|
+
bindWallet: () => Promise<Window | null>;
|
|
38
|
+
bindTelegram: () => Promise<void>;
|
|
39
|
+
token: string;
|
|
40
|
+
mid: string;
|
|
41
|
+
did: string;
|
|
42
|
+
address: string;
|
|
43
|
+
isLogin: boolean;
|
|
44
|
+
logout: () => Promise<void>;
|
|
45
|
+
getLoginEmailCode: (email: string) => Promise<string>;
|
|
46
|
+
refreshOverview: () => Promise<void>;
|
|
47
|
+
overview: OverviewInfo | null;
|
|
48
|
+
bindCex: (type: CEXType) => void;
|
|
49
|
+
username: string;
|
|
50
|
+
auth: () => Promise<any>;
|
|
51
|
+
login: (method: LoginMethodType | "wallet", extra?: {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}) => Promise<void | Window | null>;
|
|
54
|
+
bind: (method: LoginMethodType | "wallet", extra?: {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}) => Promise<void | Window | null>;
|
|
57
|
+
getAuthInfo: (method: keyof typeof LOGIN_METHOD_MAP) => Promise<unknown>;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
declare function useMatchEvents(handlers: IMatchEvents): void;
|
|
61
|
+
|
|
62
|
+
type isRecoveredType = () => Promise<boolean>;
|
|
63
|
+
type signMessageType = (params: {
|
|
64
|
+
message: SignableMessage;
|
|
65
|
+
chainType?: ChainType;
|
|
66
|
+
}) => Promise<Hex>;
|
|
67
|
+
type signTransactionType = (params: {
|
|
68
|
+
transaction: TransactionSerializable;
|
|
69
|
+
chainType?: ChainType;
|
|
70
|
+
chain: {
|
|
71
|
+
id: number;
|
|
72
|
+
name: string;
|
|
73
|
+
nativeCurrency: {
|
|
74
|
+
name: string;
|
|
75
|
+
symbol: string;
|
|
76
|
+
decimals: number;
|
|
77
|
+
};
|
|
78
|
+
rpcUrls: {
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}) => Promise<`0x02${string}` | `0x01${string}` | `0x03${string}` | `0x04${string}` | viem.TransactionSerializedLegacy>;
|
|
83
|
+
type SendTransactionReturnType = Hash;
|
|
84
|
+
type SendTransactionParametersType = Omit<SendTransactionParameters, 'account'>;
|
|
85
|
+
type SendTransactionType = (transaction: SendTransactionParametersType) => Promise<SendTransactionReturnType>;
|
|
86
|
+
type DeployContractReturnType = SendTransactionReturnType;
|
|
87
|
+
type DeployContractType = <const abi extends Abi | readonly unknown[]>(parameters: DeployContractParameters<abi>) => Promise<DeployContractReturnType>;
|
|
88
|
+
type WriteContractParametersType = Omit<WriteContractParameters, 'account' | 'chain'> & {
|
|
89
|
+
chain?: Chain;
|
|
90
|
+
};
|
|
91
|
+
type WriteContractReturnType = SendTransactionReturnType;
|
|
92
|
+
type WriteContractType = (params: WriteContractParametersType) => Promise<WriteContractReturnType>;
|
|
93
|
+
interface UseWalletReturnType {
|
|
94
|
+
walletReady: boolean;
|
|
95
|
+
isRecovered: isRecoveredType;
|
|
96
|
+
signMessage: signMessageType;
|
|
97
|
+
signTransaction: signTransactionType;
|
|
98
|
+
address: string;
|
|
99
|
+
evmAccount: Account | undefined;
|
|
100
|
+
createWalletClient: (parameters: Omit<WalletClientConfig, 'account'>) => Omit<ReturnType<typeof createWalletClient>, 'sendTransaction' | 'deployContract' | 'writeContract'> & {
|
|
101
|
+
sendTransaction: SendTransactionType;
|
|
102
|
+
deployContract: DeployContractType;
|
|
103
|
+
writeContract: WriteContractType;
|
|
104
|
+
} | undefined;
|
|
105
|
+
}
|
|
106
|
+
declare function useWallet(): UseWalletReturnType;
|
|
107
|
+
|
|
108
|
+
declare function useCopyClipboard(timeout?: number): [boolean, (toCopy: string) => void];
|
|
109
|
+
|
|
110
|
+
interface ModalContextType {
|
|
111
|
+
show: (content: (props: {
|
|
112
|
+
close: () => void;
|
|
113
|
+
}) => ReactNode) => void;
|
|
114
|
+
open: (props: {
|
|
115
|
+
title: ReactNode;
|
|
116
|
+
content: React.ComponentType<{
|
|
117
|
+
close: () => void;
|
|
118
|
+
}>;
|
|
119
|
+
}) => void;
|
|
120
|
+
}
|
|
121
|
+
declare function useModal(): ModalContextType;
|
|
122
|
+
|
|
123
|
+
interface ToastContextType {
|
|
124
|
+
show: (options: {
|
|
125
|
+
icon?: ReactNode;
|
|
126
|
+
timeout?: number;
|
|
127
|
+
text: ReactNode;
|
|
128
|
+
}) => void;
|
|
129
|
+
success: (text: ReactNode, timeout?: number) => void;
|
|
130
|
+
error: (text: ReactNode, timeout?: number) => void;
|
|
131
|
+
}
|
|
132
|
+
declare function useToast(): ToastContextType;
|
|
133
|
+
|
|
134
|
+
declare function useMatchChain(): {
|
|
135
|
+
list: UserChainType[] | undefined;
|
|
136
|
+
chainId: number | null;
|
|
137
|
+
setChainId: (chainId: number) => void;
|
|
138
|
+
chain: UserChainType | null | undefined;
|
|
139
|
+
explorerLink: (url: string) => string;
|
|
140
|
+
showChangeNetwork: () => void;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
declare function useMatchWallet(): {
|
|
144
|
+
showReceiveModal: () => void;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
declare function useReceipt({ chainId, hash }: {
|
|
148
|
+
chainId: number;
|
|
149
|
+
hash: string;
|
|
150
|
+
}): _tanstack_react_query.UseQueryResult<any, Error>;
|
|
151
|
+
|
|
152
|
+
declare function useDownMd(): boolean;
|
|
153
|
+
|
|
154
|
+
declare const useLayout_useDownMd: typeof useDownMd;
|
|
155
|
+
declare namespace useLayout {
|
|
156
|
+
export { useLayout_useDownMd as useDownMd };
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
declare const index_useCopyClipboard: typeof useCopyClipboard;
|
|
160
|
+
declare const index_useLayout: typeof useLayout;
|
|
161
|
+
declare const index_useMatchChain: typeof useMatchChain;
|
|
162
|
+
declare const index_useMatchEvents: typeof useMatchEvents;
|
|
163
|
+
declare const index_useMatchWallet: typeof useMatchWallet;
|
|
164
|
+
declare const index_useModal: typeof useModal;
|
|
165
|
+
declare const index_useReceipt: typeof useReceipt;
|
|
166
|
+
declare const index_useToast: typeof useToast;
|
|
167
|
+
declare const index_useUserInfo: typeof useUserInfo;
|
|
168
|
+
declare const index_useWallet: typeof useWallet;
|
|
169
|
+
declare namespace index {
|
|
170
|
+
export { index_useCopyClipboard as useCopyClipboard, index_useLayout as useLayout, index_useMatchChain as useMatchChain, index_useMatchEvents as useMatchEvents, index_useMatchWallet as useMatchWallet, index_useModal as useModal, index_useReceipt as useReceipt, index_useToast as useToast, index_useUserInfo as useUserInfo, index_useWallet as useWallet };
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export { useMatchEvents as a, useWallet as b, useCopyClipboard as c, useModal as d, useToast as e, useMatchChain as f, useMatchWallet as g, useReceipt as h, index as i, useLayout as j, useUserInfo as u };
|
|
@@ -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 { w as PohZkpassParams, H as UserTransactionType, J as WalletAssetType, t as MetaPageType, l as BindItemType, k as BindInfoType, v as PohItemType, U as UserChainType, z as UserAssetToken, F as UserImportTokenType, K as WalletChainType } from './types-DQq17lf4.mjs';
|
|
4
4
|
|
|
5
5
|
declare const isSuccess: (res: {
|
|
6
6
|
code: number;
|
|
@@ -37,26 +37,21 @@ declare const userImportTokenApi: (data: {
|
|
|
37
37
|
chain_id: string;
|
|
38
38
|
symbol: string;
|
|
39
39
|
address: string;
|
|
40
|
-
decimals:
|
|
40
|
+
decimals: number;
|
|
41
41
|
}) => Promise<MyResponseType<any>>;
|
|
42
42
|
declare const getUserWalletTransactionsApi: (data: {
|
|
43
43
|
chain_id: string;
|
|
44
|
-
|
|
44
|
+
limit: number;
|
|
45
45
|
offset: number;
|
|
46
|
-
block_number: number;
|
|
47
|
-
index: number;
|
|
48
|
-
items_count: number;
|
|
49
46
|
}) => Promise<MyResponseType<{
|
|
50
|
-
transactions:
|
|
51
|
-
|
|
47
|
+
transactions: UserTransactionType[];
|
|
48
|
+
limit: number;
|
|
49
|
+
offset: number;
|
|
52
50
|
}>>;
|
|
53
51
|
declare const getWalletAssetListApi: (data: {
|
|
54
52
|
chain_id: string;
|
|
55
53
|
address: string;
|
|
56
|
-
}) => Promise<MyResponseType<
|
|
57
|
-
asset_list: WalletAssetType[];
|
|
58
|
-
asset_total_balance: string;
|
|
59
|
-
}>>;
|
|
54
|
+
}) => Promise<MyResponseType<WalletAssetType[]>>;
|
|
60
55
|
declare const getWalletListApi: (data: {
|
|
61
56
|
page: number;
|
|
62
57
|
page_size: number;
|
|
@@ -102,20 +97,6 @@ declare function useImportTokenListQuery({ chainId, ...options }: {
|
|
|
102
97
|
chainId: number;
|
|
103
98
|
} & Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<UserImportTokenType[], Error>;
|
|
104
99
|
declare function useWalletChainListQuery(options?: Partial<Omit<UseQueryOptions<WalletChainType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<WalletChainType[], Error>;
|
|
105
|
-
declare function useWalletNftListQuery({ chainId, address, ...options }: {
|
|
106
|
-
chainId: string;
|
|
107
|
-
address: string;
|
|
108
|
-
} & Partial<Omit<UseQueryOptions<WalletNFTType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<WalletNFTType[], Error>;
|
|
109
|
-
declare function useWalletAssetListQuery({ chainId, address, ...options }: {
|
|
110
|
-
chainId: string;
|
|
111
|
-
address: string;
|
|
112
|
-
} & Partial<Omit<UseQueryOptions<{
|
|
113
|
-
asset_list: WalletAssetType[];
|
|
114
|
-
asset_total_balance: string;
|
|
115
|
-
} | null>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<{
|
|
116
|
-
asset_list: WalletAssetType[];
|
|
117
|
-
asset_total_balance: string;
|
|
118
|
-
} | null, Error>;
|
|
119
100
|
|
|
120
101
|
declare const wallet_getUserWalletTransactionsApi: typeof getUserWalletTransactionsApi;
|
|
121
102
|
declare const wallet_getWalletAssetListApi: typeof getWalletAssetListApi;
|
|
@@ -123,12 +104,10 @@ declare const wallet_getWalletListApi: typeof getWalletListApi;
|
|
|
123
104
|
declare const wallet_useAssetListQuery: typeof useAssetListQuery;
|
|
124
105
|
declare const wallet_useChainListQuery: typeof useChainListQuery;
|
|
125
106
|
declare const wallet_useImportTokenListQuery: typeof useImportTokenListQuery;
|
|
126
|
-
declare const wallet_useWalletAssetListQuery: typeof useWalletAssetListQuery;
|
|
127
107
|
declare const wallet_useWalletChainListQuery: typeof useWalletChainListQuery;
|
|
128
|
-
declare const wallet_useWalletNftListQuery: typeof useWalletNftListQuery;
|
|
129
108
|
declare const wallet_userImportTokenApi: typeof userImportTokenApi;
|
|
130
109
|
declare namespace wallet {
|
|
131
|
-
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,
|
|
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 };
|
|
132
111
|
}
|
|
133
112
|
|
|
134
113
|
declare const index_bind: typeof bind;
|
|
@@ -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 AnyObject,
|
|
2
|
+
import { A as AnyObject, j as AppConfigType, k as BindInfoType, l as BindItemType, m as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, n as DrawerProps, E as EmailModalProps, a as IEnvConfigType, o as IEnvName, p as ILoginWalletReq, I as IMatchEvents, g as ISocialLoginMethod, q as IconProps, r as InputProps, L as LocaleType, b as LoginBoxProps, i as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, s as MessageType, t as MetaPageType, u as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, h as OverviewInfo, v as PohItemType, w as PohZkpassParams, P as PopoverPositionType, x as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, y as UIProps, z as UserAssetToken, U as UserChainType, F as UserImportTokenType, G as UserPopoverProps, H as UserTransactionType, J as WalletAssetType, K as WalletChainType, W as WalletConfigType, N as WalletPanelProps, Q as WalletReceiveMessageType, c as WalletType } from './types-DQq17lf4.mjs';
|
|
3
3
|
|
|
4
4
|
declare const index_AnyObject: typeof AnyObject;
|
|
5
5
|
declare const index_AppConfigType: typeof AppConfigType;
|
|
@@ -45,18 +45,15 @@ declare const index_UserAssetToken: typeof UserAssetToken;
|
|
|
45
45
|
declare const index_UserChainType: typeof UserChainType;
|
|
46
46
|
declare const index_UserImportTokenType: typeof UserImportTokenType;
|
|
47
47
|
declare const index_UserPopoverProps: typeof UserPopoverProps;
|
|
48
|
-
declare const index_UserTransactionNextPageParams: typeof UserTransactionNextPageParams;
|
|
49
48
|
declare const index_UserTransactionType: typeof UserTransactionType;
|
|
50
|
-
declare const index_WalletAssetMergeType: typeof WalletAssetMergeType;
|
|
51
49
|
declare const index_WalletAssetType: typeof WalletAssetType;
|
|
52
50
|
declare const index_WalletChainType: typeof WalletChainType;
|
|
53
51
|
declare const index_WalletConfigType: typeof WalletConfigType;
|
|
54
|
-
declare const index_WalletNFTType: typeof WalletNFTType;
|
|
55
52
|
declare const index_WalletPanelProps: typeof WalletPanelProps;
|
|
56
53
|
declare const index_WalletReceiveMessageType: typeof WalletReceiveMessageType;
|
|
57
54
|
declare const index_WalletType: typeof WalletType;
|
|
58
55
|
declare namespace index {
|
|
59
|
-
export { index_AnyObject as AnyObject, index_AppConfigType as AppConfigType, index_AuthParams as AuthParams, index_BindInfoType as BindInfoType, index_BindItemType as BindItemType, index_BindWalletParam as BindWalletParam, index_ButtonProps as ButtonProps, index_CEXType as CEXType, index_ChainType as ChainType, index_DeepPartial as DeepPartial, index_DrawerProps as DrawerProps, index_EmailModalProps as EmailModalProps, index_EmbeddedWalletsParams as EmbeddedWalletsParams, index_IEnvConfigType as IEnvConfigType, index_IEnvName as IEnvName, index_ILoginWalletReq as ILoginWalletReq, index_IMatchEvents as IMatchEvents, index_ISocialLoginMethod as ISocialLoginMethod, index_IconProps as IconProps, index_InputProps as InputProps, index_LocaleType as LocaleType, index_LoginBoxProps as LoginBoxProps, index_LoginMethodType as LoginMethodType, index_LoginModalProps as LoginModalProps, index_LoginPanelProps as LoginPanelProps, index_MessageType as MessageType, index_MetaPageType as MetaPageType, index_ModalProps as ModalProps, index_ModalWithHeaderProps as ModalWithHeaderProps, index_OtherLoginMethodType as OtherLoginMethodType, index_OverviewInfo as OverviewInfo, index_PohItemType as PohItemType, index_PohZkpassParams as PohZkpassParams, index_PopoverPositionType as PopoverPositionType, index_PopoverProps as PopoverProps, index_PopoverTypeType as PopoverTypeType, index_RecommendLoginMethodType as RecommendLoginMethodType, index_RecoveryType as RecoveryType, index_ThemeType as ThemeType, index_UIProps as UIProps, index_UserAssetToken as UserAssetToken, index_UserChainType as UserChainType, index_UserImportTokenType as UserImportTokenType, index_UserPopoverProps as UserPopoverProps,
|
|
56
|
+
export { index_AnyObject as AnyObject, index_AppConfigType as AppConfigType, index_AuthParams as AuthParams, index_BindInfoType as BindInfoType, index_BindItemType as BindItemType, index_BindWalletParam as BindWalletParam, index_ButtonProps as ButtonProps, index_CEXType as CEXType, index_ChainType as ChainType, index_DeepPartial as DeepPartial, index_DrawerProps as DrawerProps, index_EmailModalProps as EmailModalProps, index_EmbeddedWalletsParams as EmbeddedWalletsParams, index_IEnvConfigType as IEnvConfigType, index_IEnvName as IEnvName, index_ILoginWalletReq as ILoginWalletReq, index_IMatchEvents as IMatchEvents, index_ISocialLoginMethod as ISocialLoginMethod, index_IconProps as IconProps, index_InputProps as InputProps, index_LocaleType as LocaleType, index_LoginBoxProps as LoginBoxProps, index_LoginMethodType as LoginMethodType, index_LoginModalProps as LoginModalProps, index_LoginPanelProps as LoginPanelProps, index_MessageType as MessageType, index_MetaPageType as MetaPageType, index_ModalProps as ModalProps, index_ModalWithHeaderProps as ModalWithHeaderProps, index_OtherLoginMethodType as OtherLoginMethodType, index_OverviewInfo as OverviewInfo, index_PohItemType as PohItemType, index_PohZkpassParams as PohZkpassParams, index_PopoverPositionType as PopoverPositionType, index_PopoverProps as PopoverProps, index_PopoverTypeType as PopoverTypeType, index_RecommendLoginMethodType as RecommendLoginMethodType, index_RecoveryType as RecoveryType, index_ThemeType as ThemeType, index_UIProps as UIProps, index_UserAssetToken as UserAssetToken, index_UserChainType as UserChainType, index_UserImportTokenType as UserImportTokenType, index_UserPopoverProps as UserPopoverProps, index_UserTransactionType as UserTransactionType, index_WalletAssetType as WalletAssetType, index_WalletChainType as WalletChainType, index_WalletConfigType as WalletConfigType, index_WalletPanelProps as WalletPanelProps, index_WalletReceiveMessageType as WalletReceiveMessageType, index_WalletType as WalletType };
|
|
60
57
|
}
|
|
61
58
|
|
|
62
59
|
export { index as i };
|
|
@@ -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 { r as InputProps, B as ButtonProps, u as ModalProps, M as ModalWithHeaderProps, x as PopoverProps } from './types-DQq17lf4.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 { w as PohZkpassParams, H as UserTransactionType, J as WalletAssetType, t as MetaPageType, l as BindItemType, k as BindInfoType, v as PohItemType, U as UserChainType, z as UserAssetToken, F as UserImportTokenType, K as WalletChainType } from './types-DQq17lf4.js';
|
|
4
4
|
|
|
5
5
|
declare const isSuccess: (res: {
|
|
6
6
|
code: number;
|
|
@@ -37,26 +37,21 @@ declare const userImportTokenApi: (data: {
|
|
|
37
37
|
chain_id: string;
|
|
38
38
|
symbol: string;
|
|
39
39
|
address: string;
|
|
40
|
-
decimals:
|
|
40
|
+
decimals: number;
|
|
41
41
|
}) => Promise<MyResponseType<any>>;
|
|
42
42
|
declare const getUserWalletTransactionsApi: (data: {
|
|
43
43
|
chain_id: string;
|
|
44
|
-
|
|
44
|
+
limit: number;
|
|
45
45
|
offset: number;
|
|
46
|
-
block_number: number;
|
|
47
|
-
index: number;
|
|
48
|
-
items_count: number;
|
|
49
46
|
}) => Promise<MyResponseType<{
|
|
50
|
-
transactions:
|
|
51
|
-
|
|
47
|
+
transactions: UserTransactionType[];
|
|
48
|
+
limit: number;
|
|
49
|
+
offset: number;
|
|
52
50
|
}>>;
|
|
53
51
|
declare const getWalletAssetListApi: (data: {
|
|
54
52
|
chain_id: string;
|
|
55
53
|
address: string;
|
|
56
|
-
}) => Promise<MyResponseType<
|
|
57
|
-
asset_list: WalletAssetType[];
|
|
58
|
-
asset_total_balance: string;
|
|
59
|
-
}>>;
|
|
54
|
+
}) => Promise<MyResponseType<WalletAssetType[]>>;
|
|
60
55
|
declare const getWalletListApi: (data: {
|
|
61
56
|
page: number;
|
|
62
57
|
page_size: number;
|
|
@@ -102,20 +97,6 @@ declare function useImportTokenListQuery({ chainId, ...options }: {
|
|
|
102
97
|
chainId: number;
|
|
103
98
|
} & Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<UserImportTokenType[], Error>;
|
|
104
99
|
declare function useWalletChainListQuery(options?: Partial<Omit<UseQueryOptions<WalletChainType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<WalletChainType[], Error>;
|
|
105
|
-
declare function useWalletNftListQuery({ chainId, address, ...options }: {
|
|
106
|
-
chainId: string;
|
|
107
|
-
address: string;
|
|
108
|
-
} & Partial<Omit<UseQueryOptions<WalletNFTType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<WalletNFTType[], Error>;
|
|
109
|
-
declare function useWalletAssetListQuery({ chainId, address, ...options }: {
|
|
110
|
-
chainId: string;
|
|
111
|
-
address: string;
|
|
112
|
-
} & Partial<Omit<UseQueryOptions<{
|
|
113
|
-
asset_list: WalletAssetType[];
|
|
114
|
-
asset_total_balance: string;
|
|
115
|
-
} | null>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<{
|
|
116
|
-
asset_list: WalletAssetType[];
|
|
117
|
-
asset_total_balance: string;
|
|
118
|
-
} | null, Error>;
|
|
119
100
|
|
|
120
101
|
declare const wallet_getUserWalletTransactionsApi: typeof getUserWalletTransactionsApi;
|
|
121
102
|
declare const wallet_getWalletAssetListApi: typeof getWalletAssetListApi;
|
|
@@ -123,12 +104,10 @@ declare const wallet_getWalletListApi: typeof getWalletListApi;
|
|
|
123
104
|
declare const wallet_useAssetListQuery: typeof useAssetListQuery;
|
|
124
105
|
declare const wallet_useChainListQuery: typeof useChainListQuery;
|
|
125
106
|
declare const wallet_useImportTokenListQuery: typeof useImportTokenListQuery;
|
|
126
|
-
declare const wallet_useWalletAssetListQuery: typeof useWalletAssetListQuery;
|
|
127
107
|
declare const wallet_useWalletChainListQuery: typeof useWalletChainListQuery;
|
|
128
|
-
declare const wallet_useWalletNftListQuery: typeof useWalletNftListQuery;
|
|
129
108
|
declare const wallet_userImportTokenApi: typeof userImportTokenApi;
|
|
130
109
|
declare namespace wallet {
|
|
131
|
-
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,
|
|
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 };
|
|
132
111
|
}
|
|
133
112
|
|
|
134
113
|
declare const index_bind: typeof bind;
|
|
@@ -1,17 +1,16 @@
|
|
|
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-CKiK4KHj.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import {
|
|
3
|
+
import { n as DrawerProps, N as WalletPanelProps, y as UIProps } from './types-DQq17lf4.js';
|
|
4
4
|
import { Hash, Chain } from 'viem';
|
|
5
5
|
import { CSSProperties } from 'react';
|
|
6
6
|
|
|
7
|
-
declare function Drawer({ children, showClose, onClose, isOpen, title, zIndex
|
|
7
|
+
declare function Drawer({ children, showClose, onClose, isOpen, title, zIndex }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
8
8
|
|
|
9
9
|
type HashPanelProps = {
|
|
10
10
|
hash?: Hash | null;
|
|
11
11
|
chain?: Chain | null;
|
|
12
12
|
isOpen: boolean;
|
|
13
13
|
onClose: () => void;
|
|
14
|
-
zIndex?: number;
|
|
15
14
|
};
|
|
16
15
|
declare function export_default(props: HashPanelProps): false | react_jsx_runtime.JSX.Element;
|
|
17
16
|
|
|
@@ -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
|
|
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-
|
|
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 } from './types-DQq17lf4.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-CKiK4KHj.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;
|
|
@@ -56,26 +56,6 @@ type WalletModalProps = ModalWithHeaderProps & {
|
|
|
56
56
|
};
|
|
57
57
|
declare function WalletModal(props: WalletModalProps): false | react_jsx_runtime.JSX.Element;
|
|
58
58
|
|
|
59
|
-
declare function WalletAsset({ onAssetClick }: {
|
|
60
|
-
onAssetClick?: (asset: WalletAssetMergeType) => () => void;
|
|
61
|
-
}): react_jsx_runtime.JSX.Element;
|
|
62
|
-
|
|
63
|
-
declare function TokenDetail({ onClose, token }: {
|
|
64
|
-
onClose: () => void;
|
|
65
|
-
token: WalletAssetMergeType;
|
|
66
|
-
}): react_jsx_runtime.JSX.Element;
|
|
67
|
-
|
|
68
|
-
declare function TokenSend({ onClose, zIndex, token, onBack }: {
|
|
69
|
-
onBack: () => void;
|
|
70
|
-
onClose: () => void;
|
|
71
|
-
zIndex: number;
|
|
72
|
-
token: WalletAssetMergeType;
|
|
73
|
-
}): react_jsx_runtime.JSX.Element;
|
|
74
|
-
|
|
75
|
-
declare function TokenSendList({ close }: {
|
|
76
|
-
close: () => void;
|
|
77
|
-
}): react_jsx_runtime.JSX.Element;
|
|
78
|
-
|
|
79
59
|
declare const index_BTCModal: typeof BTCModal;
|
|
80
60
|
declare const index_Button: typeof Button;
|
|
81
61
|
declare const index_EmailModal: typeof EmailModal;
|
|
@@ -92,14 +72,10 @@ declare const index_Popover: typeof Popover;
|
|
|
92
72
|
declare const index_SOLModal: typeof SOLModal;
|
|
93
73
|
declare const index_TONModal: typeof TONModal;
|
|
94
74
|
declare const index_TRONModal: typeof TRONModal;
|
|
95
|
-
declare const index_TokenDetail: typeof TokenDetail;
|
|
96
|
-
declare const index_TokenSend: typeof TokenSend;
|
|
97
|
-
declare const index_TokenSendList: typeof TokenSendList;
|
|
98
75
|
declare const index_UsernameModal: typeof UsernameModal;
|
|
99
|
-
declare const index_WalletAsset: typeof WalletAsset;
|
|
100
76
|
declare const index_WalletModal: typeof WalletModal;
|
|
101
77
|
declare namespace index {
|
|
102
|
-
export { index_BTCModal as BTCModal, index_Button as Button, index_EmailModal as EmailModal, index_Field as Field, index_Input as Input, index_LoginBox as LoginBox, index_LoginButton as LoginButton, index_LoginModal as LoginModal, index_LoginPanel as LoginPanel, index_Modal as Modal, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_Popover as Popover, index_SOLModal as SOLModal, index_TONModal as TONModal, index_TRONModal as TRONModal,
|
|
78
|
+
export { index_BTCModal as BTCModal, index_Button as Button, index_EmailModal as EmailModal, index_Field as Field, index_Input as Input, index_LoginBox as LoginBox, index_LoginButton as LoginButton, index_LoginModal as LoginModal, index_LoginPanel as LoginPanel, index_Modal as Modal, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_Popover as Popover, index_SOLModal as SOLModal, index_TONModal as TONModal, index_TRONModal as TRONModal, index_UsernameModal as UsernameModal, index_WalletModal as WalletModal };
|
|
103
79
|
}
|
|
104
80
|
|
|
105
|
-
export { BTCModal as B, EmailModal as E, LoginBox as L, SOLModal as S, TRONModal as T, UsernameModal as U, WalletModal as W, LoginButton as a, LoginPanel as b, LoginModal as c, TONModal as d,
|
|
81
|
+
export { BTCModal as B, EmailModal as E, LoginBox as L, SOLModal as S, TRONModal as T, UsernameModal as U, WalletModal as W, LoginButton as a, LoginPanel as b, LoginModal as c, TONModal as d, index as i };
|
|
@@ -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 { r as InputProps, B as ButtonProps, u as ModalProps, M as ModalWithHeaderProps, x as PopoverProps } from './types-DQq17lf4.js';
|
|
4
4
|
|
|
5
5
|
declare function Field({ label, children, error, required, className }: {
|
|
6
6
|
label: ReactNode;
|
|
@@ -1,17 +1,16 @@
|
|
|
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-Bb7IkjUW.mjs';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import {
|
|
3
|
+
import { n as DrawerProps, N as WalletPanelProps, y as UIProps } from './types-DQq17lf4.mjs';
|
|
4
4
|
import { Hash, Chain } from 'viem';
|
|
5
5
|
import { CSSProperties } from 'react';
|
|
6
6
|
|
|
7
|
-
declare function Drawer({ children, showClose, onClose, isOpen, title, zIndex
|
|
7
|
+
declare function Drawer({ children, showClose, onClose, isOpen, title, zIndex }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
8
8
|
|
|
9
9
|
type HashPanelProps = {
|
|
10
10
|
hash?: Hash | null;
|
|
11
11
|
chain?: Chain | null;
|
|
12
12
|
isOpen: boolean;
|
|
13
13
|
onClose: () => void;
|
|
14
|
-
zIndex?: number;
|
|
15
14
|
};
|
|
16
15
|
declare function export_default(props: HashPanelProps): false | react_jsx_runtime.JSX.Element;
|
|
17
16
|
|