@matchain/matchid-sdk-react 0.1.53-alpha.9 → 0.1.55-alpha.0
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 +5 -0
- package/dist/assets/icon/index.d.ts +5 -0
- package/dist/{chunk-X5HGL3ZX.mjs → chunk-36M5ROJI.mjs} +7238 -241
- package/dist/chunk-36M5ROJI.mjs.map +1 -0
- package/dist/chunk-N7NX7Q7M.mjs +97 -0
- package/dist/chunk-N7NX7Q7M.mjs.map +1 -0
- package/dist/components/index.d.mts +6 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +324 -658
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +9 -15
- package/dist/config/chains/index.d.mts +2 -0
- package/dist/config/chains/index.d.ts +2 -0
- package/dist/hooks/api/index.d.mts +6 -0
- package/dist/hooks/api/index.d.ts +6 -0
- package/dist/hooks/api/index.js +443 -598
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +6 -7
- package/dist/hooks/index.d.mts +11 -0
- package/dist/hooks/index.d.ts +11 -0
- package/dist/hooks/index.js +350 -357
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +3 -5
- package/dist/index-6-oVBXRP.d.mts +66 -0
- package/dist/index-CBQXIlWu.d.mts +38 -0
- package/dist/index-CMH6Jesl.d.ts +66 -0
- package/dist/index-CNH7a3bx.d.ts +111 -0
- package/dist/index-CPPDmmz8.d.ts +3327 -0
- package/dist/index-CqKohtvj.d.mts +3327 -0
- package/dist/index-D0Psl8Ue.d.mts +203 -0
- package/dist/index-DXRGMAbv.d.mts +83 -0
- package/dist/index-DXRGMAbv.d.ts +83 -0
- package/dist/index-DbQn4z1l.d.ts +203 -0
- package/dist/index-Es7yJi7T.d.ts +79 -0
- package/dist/index-G15A08DI.d.mts +132 -0
- package/dist/index-MsSYZS38.d.mts +79 -0
- package/dist/index-Y5WRoqzn.d.ts +132 -0
- package/dist/index-a_Qt7NXk.d.mts +111 -0
- package/dist/index-agAVLGF5.d.ts +38 -0
- package/dist/index.css +44 -57
- package/dist/index.d.mts +787 -0
- package/dist/index.d.ts +787 -0
- package/dist/index.js +3881 -4043
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -10
- package/dist/request-B0CyrGFT.d.mts +15 -0
- package/dist/request-B0CyrGFT.d.ts +15 -0
- package/dist/types/index.d.mts +3 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types-CXzZS0eM.d.mts +424 -0
- package/dist/types-CXzZS0eM.d.ts +424 -0
- package/dist/ui/index.d.mts +7 -0
- package/dist/ui/index.d.ts +7 -0
- package/dist/ui/index.js +920 -160
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +6 -1
- package/dist/utils/index.d.mts +28 -0
- package/dist/utils/index.d.ts +28 -0
- package/example/package.json +1 -0
- package/example/src/App.tsx +23 -27
- package/example/src/pages/Wallet/index.tsx +1 -1
- package/package.json +1 -1
- package/dist/chunk-NCVBLRAJ.mjs +0 -7275
- package/dist/chunk-NCVBLRAJ.mjs.map +0 -1
- package/dist/chunk-X5HGL3ZX.mjs.map +0 -1
- package/example/src/pages/Contact/index.tsx +0 -90
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
api_exports
|
|
3
|
+
} from "./chunk-N7NX7Q7M.mjs";
|
|
4
4
|
import {
|
|
5
5
|
types_exports
|
|
6
6
|
} from "./chunk-HBOS3RBL.mjs";
|
|
@@ -8,20 +8,21 @@ import {
|
|
|
8
8
|
MatchProvider,
|
|
9
9
|
ModalProvider,
|
|
10
10
|
ToastProvider,
|
|
11
|
-
api_exports,
|
|
12
11
|
components_exports,
|
|
13
12
|
hooks_exports,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
ui_exports,
|
|
14
|
+
useMatch,
|
|
15
|
+
wagmiConfig
|
|
16
|
+
} from "./chunk-36M5ROJI.mjs";
|
|
17
17
|
import "./chunk-UA6XHZHX.mjs";
|
|
18
18
|
import "./chunk-IZOOVZAD.mjs";
|
|
19
|
-
import {
|
|
20
|
-
ui_exports
|
|
21
|
-
} from "./chunk-X5HGL3ZX.mjs";
|
|
22
19
|
import {
|
|
23
20
|
icon_exports
|
|
24
21
|
} from "./chunk-FKXS2XRG.mjs";
|
|
22
|
+
import {
|
|
23
|
+
chains_exports
|
|
24
|
+
} from "./chunk-3CR66BEX.mjs";
|
|
25
|
+
import "./chunk-JX73EY6V.mjs";
|
|
25
26
|
import "./chunk-J5LGTIGS.mjs";
|
|
26
27
|
export {
|
|
27
28
|
api_exports as Api,
|
|
@@ -34,6 +35,7 @@ export {
|
|
|
34
35
|
ToastProvider,
|
|
35
36
|
types_exports as Types,
|
|
36
37
|
ui_exports as UI,
|
|
37
|
-
useMatch
|
|
38
|
+
useMatch,
|
|
39
|
+
wagmiConfig
|
|
38
40
|
};
|
|
39
41
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const isSuccess: (res: {
|
|
2
|
+
code: number;
|
|
3
|
+
message: string;
|
|
4
|
+
data?: any;
|
|
5
|
+
}) => boolean;
|
|
6
|
+
interface MyResponseType<T> {
|
|
7
|
+
code: number;
|
|
8
|
+
data: T;
|
|
9
|
+
message: string;
|
|
10
|
+
success: boolean;
|
|
11
|
+
fail: boolean;
|
|
12
|
+
result: T;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { type MyResponseType as M, isSuccess as i };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const isSuccess: (res: {
|
|
2
|
+
code: number;
|
|
3
|
+
message: string;
|
|
4
|
+
data?: any;
|
|
5
|
+
}) => boolean;
|
|
6
|
+
interface MyResponseType<T> {
|
|
7
|
+
code: number;
|
|
8
|
+
data: T;
|
|
9
|
+
message: string;
|
|
10
|
+
success: boolean;
|
|
11
|
+
fail: boolean;
|
|
12
|
+
result: T;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { type MyResponseType as M, isSuccess as i };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { A as Address, l as AnyObject, p as AppConfigType, q as AuthParams, r as BindInfoType, s as BindItemType, t as BindWalletParam, B as ButtonProps, C as CEXType, k as ChainType, D as DeepPartial, v as DrawerProps, E as EmailModalProps, w as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, x as IEnvName, y as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, z as IconProps, F as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, G as MessageType, J as MetaPageType, K as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, N as PohItemType, Q as PohZkpassParams, P as PopoverPositionType, S as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as RecoveryType, V as ThemeType, X as UIProps, o as UserAssetToken, U as UserChainType, n as UserImportTokenType, Y as UserPopoverProps, Z as UserTransactionNextPageParams, _ as UserTransactionRecordType, m as UserTransactionType, g as WalletAssetMergeType, $ as WalletAssetType, a0 as WalletChainType, W as WalletConfigType, a1 as WalletNFTType, a2 as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-CXzZS0eM.mjs';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '@tanstack/react-query/src/types';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { A as Address, l as AnyObject, p as AppConfigType, q as AuthParams, r as BindInfoType, s as BindItemType, t as BindWalletParam, B as ButtonProps, C as CEXType, k as ChainType, D as DeepPartial, v as DrawerProps, E as EmailModalProps, w as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, x as IEnvName, y as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, z as IconProps, F as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, G as MessageType, J as MetaPageType, K as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, N as PohItemType, Q as PohZkpassParams, P as PopoverPositionType, S as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as RecoveryType, V as ThemeType, X as UIProps, o as UserAssetToken, U as UserChainType, n as UserImportTokenType, Y as UserPopoverProps, Z as UserTransactionNextPageParams, _ as UserTransactionRecordType, m as UserTransactionType, g as WalletAssetMergeType, $ as WalletAssetType, a0 as WalletChainType, W as WalletConfigType, a1 as WalletNFTType, a2 as WalletPanelProps, a3 as WalletReceiveMessageType, a4 as WalletStatusType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-CXzZS0eM.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '@tanstack/react-query/src/types';
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import { CSSProperties, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { UseQueryOptions } from '@tanstack/react-query/src/types';
|
|
3
|
+
|
|
4
|
+
interface AuthParams {
|
|
5
|
+
AppId: string;
|
|
6
|
+
AppClientId: string;
|
|
7
|
+
UserId: string;
|
|
8
|
+
AccessToken: string;
|
|
9
|
+
Address?: string;
|
|
10
|
+
}
|
|
11
|
+
interface EmbeddedWalletsParams {
|
|
12
|
+
Url: string;
|
|
13
|
+
}
|
|
14
|
+
declare enum ChainType {
|
|
15
|
+
Ethereum = "ethereum",
|
|
16
|
+
Solana = "solana"
|
|
17
|
+
}
|
|
18
|
+
declare enum RecoveryType {
|
|
19
|
+
Base = "base_generated_recovery_key",
|
|
20
|
+
UserPasscode = "user_passcode_recovery_key"
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type ISocialLoginMethod = 'google' | 'twitter' | 'discord' | 'github' | 'telegram' | 'linkedin' | 'facebook' | 'youtube';
|
|
24
|
+
type WalletType = 'evm' | 'sol' | 'tron' | 'btc' | 'ton';
|
|
25
|
+
type LoginMethodType = WalletType | 'email' | ISocialLoginMethod;
|
|
26
|
+
type CEXType = "Gate" | "Coinbase" | "Kucoin" | 'Bitget' | 'OKX' | 'Bybit' | 'Binance';
|
|
27
|
+
type OtherLoginMethodType = 'email' | ISocialLoginMethod;
|
|
28
|
+
type RecommendLoginMethodType = 'wallet' | 'email' | ISocialLoginMethod;
|
|
29
|
+
type IEnvName = 'main' | 'dev' | 'test';
|
|
30
|
+
type IEnvConfigType = {
|
|
31
|
+
endpoints: {
|
|
32
|
+
back: string;
|
|
33
|
+
auth: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type ILoginWalletReq = {
|
|
37
|
+
domain: string;
|
|
38
|
+
statement: string;
|
|
39
|
+
address: string;
|
|
40
|
+
chainId: number;
|
|
41
|
+
version: string;
|
|
42
|
+
uri: string;
|
|
43
|
+
nonce: string;
|
|
44
|
+
issuedAt?: string;
|
|
45
|
+
};
|
|
46
|
+
type IMatchEvents = {
|
|
47
|
+
onLogin?: (data: {
|
|
48
|
+
token: string;
|
|
49
|
+
did: string;
|
|
50
|
+
}) => void;
|
|
51
|
+
onLogout?: () => void;
|
|
52
|
+
onBind?: (data: {
|
|
53
|
+
type: string;
|
|
54
|
+
}) => void;
|
|
55
|
+
};
|
|
56
|
+
type BindWalletParam = {
|
|
57
|
+
type: string;
|
|
58
|
+
address: string;
|
|
59
|
+
signature: any;
|
|
60
|
+
message: string;
|
|
61
|
+
connector_type: string;
|
|
62
|
+
wallet_client_type: string;
|
|
63
|
+
};
|
|
64
|
+
type OverviewInfo = {
|
|
65
|
+
score: number;
|
|
66
|
+
total_assets: number;
|
|
67
|
+
wallets: number;
|
|
68
|
+
followers: number;
|
|
69
|
+
sbt: number;
|
|
70
|
+
is_kyc: boolean;
|
|
71
|
+
is_poh: boolean;
|
|
72
|
+
mid: string;
|
|
73
|
+
user_identity: string;
|
|
74
|
+
identities: {
|
|
75
|
+
[key: string]: string;
|
|
76
|
+
};
|
|
77
|
+
did: string;
|
|
78
|
+
address: string;
|
|
79
|
+
username?: string;
|
|
80
|
+
max_level: number;
|
|
81
|
+
user_level: number;
|
|
82
|
+
recover_type: `${RecoveryType}`;
|
|
83
|
+
user_fried_total: number;
|
|
84
|
+
};
|
|
85
|
+
type AnyObject = {
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
};
|
|
88
|
+
type ThemeType = {
|
|
89
|
+
modal: {
|
|
90
|
+
header: CSSProperties;
|
|
91
|
+
input: CSSProperties;
|
|
92
|
+
back: CSSProperties;
|
|
93
|
+
close: CSSProperties;
|
|
94
|
+
content: CSSProperties;
|
|
95
|
+
overlay: CSSProperties;
|
|
96
|
+
error: CSSProperties;
|
|
97
|
+
};
|
|
98
|
+
email: {
|
|
99
|
+
addressInput: CSSProperties;
|
|
100
|
+
address: CSSProperties;
|
|
101
|
+
codeBox: CSSProperties;
|
|
102
|
+
codeInput: CSSProperties;
|
|
103
|
+
codeButton: CSSProperties;
|
|
104
|
+
codeButtonDisabled: CSSProperties;
|
|
105
|
+
};
|
|
106
|
+
login: {
|
|
107
|
+
box: CSSProperties;
|
|
108
|
+
item: CSSProperties;
|
|
109
|
+
itemIcon: CSSProperties;
|
|
110
|
+
itemName: CSSProperties;
|
|
111
|
+
content: CSSProperties;
|
|
112
|
+
arrow: CSSProperties;
|
|
113
|
+
};
|
|
114
|
+
button: {
|
|
115
|
+
default: CSSProperties;
|
|
116
|
+
disabled: CSSProperties;
|
|
117
|
+
line: CSSProperties;
|
|
118
|
+
};
|
|
119
|
+
user: {
|
|
120
|
+
item: CSSProperties;
|
|
121
|
+
value: CSSProperties;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
type DeepPartial<T> = {
|
|
125
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
126
|
+
};
|
|
127
|
+
type WalletReceiveMessageType = {
|
|
128
|
+
source: 'match-wallet';
|
|
129
|
+
method: string;
|
|
130
|
+
data: any;
|
|
131
|
+
status: 'success' | 'failed';
|
|
132
|
+
messageId: string;
|
|
133
|
+
version: number;
|
|
134
|
+
};
|
|
135
|
+
type MessageType = {
|
|
136
|
+
method: string;
|
|
137
|
+
data: any;
|
|
138
|
+
};
|
|
139
|
+
type IconProps = {
|
|
140
|
+
color?: string;
|
|
141
|
+
size?: number | string;
|
|
142
|
+
width?: number | string;
|
|
143
|
+
height?: number | string;
|
|
144
|
+
style?: CSSProperties;
|
|
145
|
+
className?: string;
|
|
146
|
+
onClick?: (e?: any) => void;
|
|
147
|
+
};
|
|
148
|
+
type ModalProps = PropsWithChildren & {
|
|
149
|
+
isOpen: boolean;
|
|
150
|
+
width?: number;
|
|
151
|
+
className?: string;
|
|
152
|
+
zIndex?: number;
|
|
153
|
+
};
|
|
154
|
+
type ModalWithHeaderProps = ModalProps & {
|
|
155
|
+
onBack?: () => void;
|
|
156
|
+
onClose?: () => void;
|
|
157
|
+
title?: ReactNode;
|
|
158
|
+
showClose?: boolean;
|
|
159
|
+
showBorder?: boolean;
|
|
160
|
+
};
|
|
161
|
+
type InputProps = {
|
|
162
|
+
placeholder?: string;
|
|
163
|
+
value?: string;
|
|
164
|
+
onChange?: (e?: any) => void;
|
|
165
|
+
disabled?: boolean;
|
|
166
|
+
readonly?: boolean;
|
|
167
|
+
type?: string;
|
|
168
|
+
maxLength?: number;
|
|
169
|
+
className?: string;
|
|
170
|
+
after?: React.ReactNode;
|
|
171
|
+
};
|
|
172
|
+
type LoginBoxProps = {
|
|
173
|
+
methods?: OtherLoginMethodType[];
|
|
174
|
+
inModal?: boolean;
|
|
175
|
+
recommendMethods?: RecommendLoginMethodType[];
|
|
176
|
+
walletMethods?: WalletType[];
|
|
177
|
+
};
|
|
178
|
+
type LoginPanelProps = {
|
|
179
|
+
header?: React.ReactNode;
|
|
180
|
+
onClose?: () => void;
|
|
181
|
+
} & LoginBoxProps;
|
|
182
|
+
type LoginModalProps = LoginPanelProps & ModalProps;
|
|
183
|
+
type EmailModalProps = ModalProps & {
|
|
184
|
+
onClose?: () => void;
|
|
185
|
+
onBack?: () => void;
|
|
186
|
+
onLogin?: () => void;
|
|
187
|
+
};
|
|
188
|
+
type ButtonProps = {
|
|
189
|
+
size?: 'sm' | 'df' | 'lg';
|
|
190
|
+
type?: "button" | "submit" | "reset";
|
|
191
|
+
rounded?: boolean;
|
|
192
|
+
block?: boolean;
|
|
193
|
+
disabled?: boolean;
|
|
194
|
+
loading?: boolean;
|
|
195
|
+
children?: React.ReactNode;
|
|
196
|
+
onClick?: () => void;
|
|
197
|
+
highlight?: boolean;
|
|
198
|
+
style?: CSSProperties;
|
|
199
|
+
className?: string;
|
|
200
|
+
};
|
|
201
|
+
type BindItemType = {
|
|
202
|
+
type: string;
|
|
203
|
+
type_sort: string;
|
|
204
|
+
platform_name: string;
|
|
205
|
+
platform_id: number;
|
|
206
|
+
platform_uid: string;
|
|
207
|
+
platform_nickname: string;
|
|
208
|
+
platform_status: number;
|
|
209
|
+
};
|
|
210
|
+
type PohItemType = {
|
|
211
|
+
user_id: number;
|
|
212
|
+
poh_market_id: number;
|
|
213
|
+
image_type: string;
|
|
214
|
+
category: string;
|
|
215
|
+
name: string;
|
|
216
|
+
app_id: string;
|
|
217
|
+
schema_id: string;
|
|
218
|
+
active: boolean;
|
|
219
|
+
};
|
|
220
|
+
type BindInfoType = {
|
|
221
|
+
progress_count: number;
|
|
222
|
+
progress_current: number;
|
|
223
|
+
total_assets: number;
|
|
224
|
+
wallet_count: number;
|
|
225
|
+
wallet_current: number;
|
|
226
|
+
cex_count: number;
|
|
227
|
+
cex_current: number;
|
|
228
|
+
social_count: number;
|
|
229
|
+
social_current: number;
|
|
230
|
+
others_count: number;
|
|
231
|
+
others_current: number;
|
|
232
|
+
};
|
|
233
|
+
type PohZkpassParams = {
|
|
234
|
+
taskId: string;
|
|
235
|
+
schemaId: string;
|
|
236
|
+
publicFields: any;
|
|
237
|
+
allocatorAddress: string;
|
|
238
|
+
publicFieldsHash: string;
|
|
239
|
+
allocatorSignature: string;
|
|
240
|
+
uHash: string;
|
|
241
|
+
validatorAddress: string;
|
|
242
|
+
validatorSignature: string;
|
|
243
|
+
};
|
|
244
|
+
type PopoverPositionType = "center" | "left" | "right";
|
|
245
|
+
type PopoverTypeType = "hover" | "click";
|
|
246
|
+
type PopoverProps = PropsWithChildren & {
|
|
247
|
+
position?: PopoverPositionType;
|
|
248
|
+
type?: PopoverTypeType;
|
|
249
|
+
content: ReactNode;
|
|
250
|
+
className?: string;
|
|
251
|
+
gap?: number | string;
|
|
252
|
+
};
|
|
253
|
+
type UserPopoverProps = Omit<PopoverProps, 'content'>;
|
|
254
|
+
type LocaleType = "en" | "zh" | "tw" | "fr" | "ja" | "ko" | "vi" | "es" | "pt";
|
|
255
|
+
type WalletConfigType = {
|
|
256
|
+
type: "Base" | "UserPasscode";
|
|
257
|
+
};
|
|
258
|
+
type DrawerProps = PropsWithChildren & {
|
|
259
|
+
showClose?: boolean;
|
|
260
|
+
onClose?: () => void;
|
|
261
|
+
isOpen: boolean;
|
|
262
|
+
title?: React.ReactNode;
|
|
263
|
+
zIndex?: number;
|
|
264
|
+
onBack?: () => void;
|
|
265
|
+
};
|
|
266
|
+
type WalletPanelProps = DrawerProps & {
|
|
267
|
+
title?: React.ReactNode;
|
|
268
|
+
drawerTitleVisible?: boolean;
|
|
269
|
+
};
|
|
270
|
+
type AppConfigType = {
|
|
271
|
+
appid: string;
|
|
272
|
+
app_name: string;
|
|
273
|
+
app_icon?: string;
|
|
274
|
+
platform: LoginMethodType[];
|
|
275
|
+
};
|
|
276
|
+
type UIProps = {
|
|
277
|
+
style?: CSSProperties;
|
|
278
|
+
className?: string;
|
|
279
|
+
onClick?: (e?: any) => void;
|
|
280
|
+
};
|
|
281
|
+
type UserChainType = {
|
|
282
|
+
id: number;
|
|
283
|
+
name: string;
|
|
284
|
+
nativeCurrency: {
|
|
285
|
+
name: string;
|
|
286
|
+
symbol: string;
|
|
287
|
+
decimals: number;
|
|
288
|
+
icon: string;
|
|
289
|
+
};
|
|
290
|
+
rpcUrls: {
|
|
291
|
+
default: {
|
|
292
|
+
http: string[];
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
blockExplorers: {
|
|
296
|
+
default: {
|
|
297
|
+
name: string;
|
|
298
|
+
url: string;
|
|
299
|
+
apiUrl: string;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
iconUrl: string;
|
|
303
|
+
contracts: {
|
|
304
|
+
multicall3: {
|
|
305
|
+
address: `0x${string}`;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
interface UserTransactionNextPageParams {
|
|
310
|
+
block_number: number;
|
|
311
|
+
fee: string;
|
|
312
|
+
hash: string;
|
|
313
|
+
index: number;
|
|
314
|
+
inserted_at: string;
|
|
315
|
+
items_count: number;
|
|
316
|
+
limit: number;
|
|
317
|
+
offset: number;
|
|
318
|
+
value: string;
|
|
319
|
+
}
|
|
320
|
+
type Hash = `0x${string}`;
|
|
321
|
+
type Address = `0x${string}`;
|
|
322
|
+
type UserTransactionType = {
|
|
323
|
+
amount: string;
|
|
324
|
+
block_number: string;
|
|
325
|
+
from: Address;
|
|
326
|
+
hash: Hash;
|
|
327
|
+
input: Hash;
|
|
328
|
+
receive: string;
|
|
329
|
+
source: "auto" | "matchain";
|
|
330
|
+
timestamp: string;
|
|
331
|
+
to: Address;
|
|
332
|
+
value: string;
|
|
333
|
+
extra: {
|
|
334
|
+
asset: string;
|
|
335
|
+
decodedInput: any;
|
|
336
|
+
has_error_in_internal_transactions: boolean;
|
|
337
|
+
name: string;
|
|
338
|
+
receipt_status: number;
|
|
339
|
+
result: string;
|
|
340
|
+
status: string;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
type UserTransactionRecordType = UserTransactionType & {
|
|
344
|
+
symbol: string;
|
|
345
|
+
decimals: number;
|
|
346
|
+
};
|
|
347
|
+
type UserAssetToken = {
|
|
348
|
+
symbol: string;
|
|
349
|
+
name: string;
|
|
350
|
+
balance: number;
|
|
351
|
+
price: number;
|
|
352
|
+
chain_id: string;
|
|
353
|
+
address: string;
|
|
354
|
+
decimals: string;
|
|
355
|
+
icon: string;
|
|
356
|
+
price_change_24h: number;
|
|
357
|
+
};
|
|
358
|
+
type UserImportTokenType = {
|
|
359
|
+
chain_id: string;
|
|
360
|
+
symbol: string;
|
|
361
|
+
address: string;
|
|
362
|
+
decimals: number;
|
|
363
|
+
};
|
|
364
|
+
type WalletAssetType = {
|
|
365
|
+
chain_id: string;
|
|
366
|
+
chain_name: string;
|
|
367
|
+
symbol: string;
|
|
368
|
+
name: string;
|
|
369
|
+
balance: number;
|
|
370
|
+
price: number;
|
|
371
|
+
price_change_24h: number;
|
|
372
|
+
address: string;
|
|
373
|
+
decimals: string;
|
|
374
|
+
icon: string;
|
|
375
|
+
};
|
|
376
|
+
type MetaPageType<T> = {
|
|
377
|
+
meta: {
|
|
378
|
+
page_num: number;
|
|
379
|
+
page_size: number;
|
|
380
|
+
total: number;
|
|
381
|
+
};
|
|
382
|
+
items: T;
|
|
383
|
+
};
|
|
384
|
+
type WalletChainType = {
|
|
385
|
+
chain_id: number;
|
|
386
|
+
chain_name: string;
|
|
387
|
+
chain_icon: string;
|
|
388
|
+
chain_full_name: string;
|
|
389
|
+
chain_type: string;
|
|
390
|
+
};
|
|
391
|
+
type WalletNFTType = {
|
|
392
|
+
token_address: string;
|
|
393
|
+
token_id: string;
|
|
394
|
+
token_uri: string;
|
|
395
|
+
amount: string;
|
|
396
|
+
owner_of: string;
|
|
397
|
+
name: string;
|
|
398
|
+
symbol: string;
|
|
399
|
+
blockchain: string;
|
|
400
|
+
chain_id: string;
|
|
401
|
+
};
|
|
402
|
+
type WalletAssetMergeType = {
|
|
403
|
+
chain_id: string;
|
|
404
|
+
chain_name?: string;
|
|
405
|
+
name?: string;
|
|
406
|
+
symbol: string;
|
|
407
|
+
balance?: number;
|
|
408
|
+
price?: number;
|
|
409
|
+
address: string;
|
|
410
|
+
decimals: string;
|
|
411
|
+
icon?: string;
|
|
412
|
+
price_change_24h?: number;
|
|
413
|
+
isAuto?: boolean;
|
|
414
|
+
isCustom?: boolean;
|
|
415
|
+
value?: number;
|
|
416
|
+
balanceValue?: string;
|
|
417
|
+
};
|
|
418
|
+
type useMatchWalletAssetsProps = {
|
|
419
|
+
importTokenOptions?: Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>;
|
|
420
|
+
assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
|
|
421
|
+
};
|
|
422
|
+
type WalletStatusType = 'error' | 'success' | 'nonce' | 'signer' | 'connecting' | 'start';
|
|
423
|
+
|
|
424
|
+
export { type WalletAssetType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DeepPartial as D, type EmailModalProps as E, type InputProps as F, type MessageType as G, type Hash as H, type IMatchEvents as I, type MetaPageType as J, type ModalProps as K, type LocaleType as L, type ModalWithHeaderProps as M, type PohItemType as N, type OtherLoginMethodType as O, type PopoverPositionType as P, type PohZkpassParams as Q, type RecommendLoginMethodType as R, type PopoverProps as S, RecoveryType as T, type UserChainType as U, type ThemeType as V, type WalletConfigType as W, type UIProps as X, type UserPopoverProps as Y, type UserTransactionNextPageParams as Z, type UserTransactionRecordType as _, type IEnvConfigType as a, type WalletChainType as a0, type WalletNFTType as a1, type WalletPanelProps as a2, type WalletReceiveMessageType as a3, type WalletStatusType as a4, type LoginBoxProps as b, type WalletType as c, type PopoverTypeType as d, type LoginPanelProps as e, type LoginModalProps as f, type WalletAssetMergeType as g, type ISocialLoginMethod as h, type OverviewInfo as i, type LoginMethodType as j, ChainType as k, type AnyObject as l, type UserTransactionType as m, type UserImportTokenType as n, type UserAssetToken as o, type AppConfigType as p, type AuthParams as q, type BindInfoType as r, type BindItemType as s, type BindWalletParam as t, type useMatchWalletAssetsProps as u, type DrawerProps as v, type EmbeddedWalletsParams as w, type IEnvName as x, type ILoginWalletReq as y, type IconProps as z };
|