@matchain/matchid-sdk-react 0.1.53-alpha.8 → 0.1.53-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/{chunk-QTUR37B2.mjs → chunk-NCVBLRAJ.mjs} +1 -1
- package/dist/{chunk-QTUR37B2.mjs.map → chunk-NCVBLRAJ.mjs.map} +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/assets/icon/index.d.mts +0 -5
- package/dist/assets/icon/index.d.ts +0 -5
- package/dist/components/index.d.mts +0 -6
- package/dist/components/index.d.ts +0 -6
- package/dist/config/chains/index.d.mts +0 -2
- package/dist/config/chains/index.d.ts +0 -2
- package/dist/hooks/api/index.d.mts +0 -6
- package/dist/hooks/api/index.d.ts +0 -6
- package/dist/hooks/index.d.mts +0 -11
- package/dist/hooks/index.d.ts +0 -11
- package/dist/index-BDffLLM_.d.mts +0 -157
- package/dist/index-BVfCh4l-.d.mts +0 -203
- package/dist/index-BaFmUVw-.d.mts +0 -26
- package/dist/index-BsX-ovIl.d.ts +0 -157
- package/dist/index-C0UKUm0h.d.ts +0 -78
- package/dist/index-CQmN0dN4.d.ts +0 -26
- package/dist/index-D3Kp05kW.d.ts +0 -203
- package/dist/index-D5WIVIkc.d.ts +0 -67
- package/dist/index-D7S5DMUy.d.mts +0 -124
- package/dist/index-DC4F1u-w.d.mts +0 -78
- package/dist/index-DQFQ39D9.d.ts +0 -124
- package/dist/index-DXRGMAbv.d.mts +0 -83
- package/dist/index-DXRGMAbv.d.ts +0 -83
- package/dist/index-DjbH13zc.d.mts +0 -3326
- package/dist/index-SOVt-ADK.d.mts +0 -67
- package/dist/index-zc2GEzJ9.d.ts +0 -3326
- package/dist/index.d.mts +0 -40
- package/dist/index.d.ts +0 -40
- package/dist/request-B0CyrGFT.d.mts +0 -15
- package/dist/request-B0CyrGFT.d.ts +0 -15
- package/dist/types/index.d.mts +0 -3
- package/dist/types/index.d.ts +0 -3
- package/dist/types-VrV1kYga.d.mts +0 -431
- package/dist/types-VrV1kYga.d.ts +0 -431
- package/dist/ui/index.d.mts +0 -7
- package/dist/ui/index.d.ts +0 -7
- package/dist/utils/index.d.mts +0 -28
- package/dist/utils/index.d.ts +0 -28
package/dist/index.d.mts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-VrV1kYga.mjs';
|
|
3
|
-
export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-DjbH13zc.mjs';
|
|
4
|
-
export { i as Components } from './index-D7S5DMUy.mjs';
|
|
5
|
-
export { i as UI } from './index-DC4F1u-w.mjs';
|
|
6
|
-
export { i as Api } from './index-BDffLLM_.mjs';
|
|
7
|
-
export { i as Chains } from './index-DXRGMAbv.mjs';
|
|
8
|
-
export { i as Types } from './index-SOVt-ADK.mjs';
|
|
9
|
-
export { i as Icon } from './index-BVfCh4l-.mjs';
|
|
10
|
-
import '@tanstack/react-query/src/types';
|
|
11
|
-
import './request-B0CyrGFT.mjs';
|
|
12
|
-
import 'viem';
|
|
13
|
-
import 'viem/types/misc';
|
|
14
|
-
import 'abitype';
|
|
15
|
-
import 'react/jsx-runtime';
|
|
16
|
-
import 'viem/_types/actions/siwe/verifySiweMessage';
|
|
17
|
-
import '@tanstack/react-query';
|
|
18
|
-
import './index-BaFmUVw-.mjs';
|
|
19
|
-
|
|
20
|
-
type MatchContextType = {
|
|
21
|
-
appid: string;
|
|
22
|
-
events?: IMatchEvents;
|
|
23
|
-
login: (data: {
|
|
24
|
-
token: string;
|
|
25
|
-
}) => Promise<void>;
|
|
26
|
-
theme: "light" | "dark";
|
|
27
|
-
locale?: LocaleType;
|
|
28
|
-
} & Partial<IEnvConfigType>;
|
|
29
|
-
declare const MatchProvider: React.FC<{
|
|
30
|
-
children: ReactNode;
|
|
31
|
-
appid: string;
|
|
32
|
-
events?: IMatchEvents;
|
|
33
|
-
theme?: "light" | "dark";
|
|
34
|
-
endpoints?: IEnvConfigType['endpoints'];
|
|
35
|
-
locale?: LocaleType;
|
|
36
|
-
wallet: WalletConfigType;
|
|
37
|
-
}>;
|
|
38
|
-
declare const useMatch: () => MatchContextType;
|
|
39
|
-
|
|
40
|
-
export { MatchProvider, useMatch };
|
package/dist/index.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-VrV1kYga.js';
|
|
3
|
-
export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-zc2GEzJ9.js';
|
|
4
|
-
export { i as Components } from './index-DQFQ39D9.js';
|
|
5
|
-
export { i as UI } from './index-C0UKUm0h.js';
|
|
6
|
-
export { i as Api } from './index-BsX-ovIl.js';
|
|
7
|
-
export { i as Chains } from './index-DXRGMAbv.js';
|
|
8
|
-
export { i as Types } from './index-D5WIVIkc.js';
|
|
9
|
-
export { i as Icon } from './index-D3Kp05kW.js';
|
|
10
|
-
import '@tanstack/react-query/src/types';
|
|
11
|
-
import './request-B0CyrGFT.js';
|
|
12
|
-
import 'viem';
|
|
13
|
-
import 'viem/types/misc';
|
|
14
|
-
import 'abitype';
|
|
15
|
-
import 'react/jsx-runtime';
|
|
16
|
-
import 'viem/_types/actions/siwe/verifySiweMessage';
|
|
17
|
-
import '@tanstack/react-query';
|
|
18
|
-
import './index-CQmN0dN4.js';
|
|
19
|
-
|
|
20
|
-
type MatchContextType = {
|
|
21
|
-
appid: string;
|
|
22
|
-
events?: IMatchEvents;
|
|
23
|
-
login: (data: {
|
|
24
|
-
token: string;
|
|
25
|
-
}) => Promise<void>;
|
|
26
|
-
theme: "light" | "dark";
|
|
27
|
-
locale?: LocaleType;
|
|
28
|
-
} & Partial<IEnvConfigType>;
|
|
29
|
-
declare const MatchProvider: React.FC<{
|
|
30
|
-
children: ReactNode;
|
|
31
|
-
appid: string;
|
|
32
|
-
events?: IMatchEvents;
|
|
33
|
-
theme?: "light" | "dark";
|
|
34
|
-
endpoints?: IEnvConfigType['endpoints'];
|
|
35
|
-
locale?: LocaleType;
|
|
36
|
-
wallet: WalletConfigType;
|
|
37
|
-
}>;
|
|
38
|
-
declare const useMatch: () => MatchContextType;
|
|
39
|
-
|
|
40
|
-
export { MatchProvider, useMatch };
|
|
@@ -1,15 +0,0 @@
|
|
|
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 };
|
|
@@ -1,15 +0,0 @@
|
|
|
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 };
|
package/dist/types/index.d.mts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { A as Address, e as AnyObject, q as AppConfigType, r as AuthParams, s as BindInfoType, t as BindItemType, v as BindWalletParam, B as ButtonProps, C as CEXType, d as ChainType, p as ContactType, D as DeepPartial, w as DrawerProps, E as EmailModalProps, x as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, y as IEnvName, z as ILoginWalletReq, I as IMatchEvents, b as ISocialLoginMethod, F as IconProps, G as InputProps, L as LocaleType, j as LoginBoxProps, c as LoginMethodType, o as LoginModalProps, n as LoginPanelProps, J as MessageType, K as MetaPageType, N as ModalProps, M as ModalWithHeaderProps, k as OtherLoginMethodType, O as OverviewInfo, Q as PohItemType, S as PohZkpassParams, P as PopoverPositionType, T as PopoverProps, m as PopoverTypeType, R as RecommendLoginMethodType, V as RecoveryType, X as ThemeType, Y as UIProps, h as UserAssetToken, U as UserChainType, g as UserImportTokenType, Z as UserPopoverProps, _ as UserTransactionNextPageParams, $ as UserTransactionRecordType, f as UserTransactionType, i as WalletAssetMergeType, a0 as WalletAssetType, a1 as WalletChainType, W as WalletConfigType, a2 as WalletNFTType, a3 as WalletPanelProps, a4 as WalletReceiveMessageType, a5 as WalletStatusType, l as WalletType, u as useMatchWalletAssetsProps } from '../types-VrV1kYga.mjs';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '@tanstack/react-query/src/types';
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { A as Address, e as AnyObject, q as AppConfigType, r as AuthParams, s as BindInfoType, t as BindItemType, v as BindWalletParam, B as ButtonProps, C as CEXType, d as ChainType, p as ContactType, D as DeepPartial, w as DrawerProps, E as EmailModalProps, x as EmbeddedWalletsParams, H as Hash, a as IEnvConfigType, y as IEnvName, z as ILoginWalletReq, I as IMatchEvents, b as ISocialLoginMethod, F as IconProps, G as InputProps, L as LocaleType, j as LoginBoxProps, c as LoginMethodType, o as LoginModalProps, n as LoginPanelProps, J as MessageType, K as MetaPageType, N as ModalProps, M as ModalWithHeaderProps, k as OtherLoginMethodType, O as OverviewInfo, Q as PohItemType, S as PohZkpassParams, P as PopoverPositionType, T as PopoverProps, m as PopoverTypeType, R as RecommendLoginMethodType, V as RecoveryType, X as ThemeType, Y as UIProps, h as UserAssetToken, U as UserChainType, g as UserImportTokenType, Z as UserPopoverProps, _ as UserTransactionNextPageParams, $ as UserTransactionRecordType, f as UserTransactionType, i as WalletAssetMergeType, a0 as WalletAssetType, a1 as WalletChainType, W as WalletConfigType, a2 as WalletNFTType, a3 as WalletPanelProps, a4 as WalletReceiveMessageType, a5 as WalletStatusType, l as WalletType, u as useMatchWalletAssetsProps } from '../types-VrV1kYga.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '@tanstack/react-query/src/types';
|
|
@@ -1,431 +0,0 @@
|
|
|
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
|
-
type ContactType = {
|
|
424
|
-
address: string;
|
|
425
|
-
avatar?: string;
|
|
426
|
-
name?: string;
|
|
427
|
-
did: string;
|
|
428
|
-
limit_id?: number;
|
|
429
|
-
};
|
|
430
|
-
|
|
431
|
-
export { type UserTransactionRecordType as $, type Address as A, type ButtonProps as B, type CEXType as C, type DeepPartial as D, type EmailModalProps as E, type IconProps as F, type InputProps as G, type Hash as H, type IMatchEvents as I, type MessageType as J, type MetaPageType as K, type LocaleType as L, type ModalWithHeaderProps as M, type ModalProps as N, type OverviewInfo as O, type PopoverPositionType as P, type PohItemType as Q, type RecommendLoginMethodType as R, type PohZkpassParams as S, type PopoverProps as T, type UserChainType as U, RecoveryType as V, type WalletConfigType as W, type ThemeType as X, type UIProps as Y, type UserPopoverProps as Z, type UserTransactionNextPageParams as _, type IEnvConfigType as a, type WalletAssetType as a0, type WalletChainType as a1, type WalletNFTType as a2, type WalletPanelProps as a3, type WalletReceiveMessageType as a4, type WalletStatusType as a5, type ISocialLoginMethod as b, type LoginMethodType as c, ChainType as d, type AnyObject as e, type UserTransactionType as f, type UserImportTokenType as g, type UserAssetToken as h, type WalletAssetMergeType as i, type LoginBoxProps as j, type OtherLoginMethodType as k, type WalletType as l, type PopoverTypeType as m, type LoginPanelProps as n, type LoginModalProps as o, type ContactType as p, type AppConfigType as q, type AuthParams as r, type BindInfoType as s, type BindItemType as t, type useMatchWalletAssetsProps as u, type BindWalletParam as v, type DrawerProps as w, type EmbeddedWalletsParams as x, type IEnvName as y, type ILoginWalletReq as z };
|