@matchain/matchid-sdk-react 0.1.53-alpha.0 → 0.1.53-alpha.10
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 +4 -144
- package/dist/assets/icon/index.d.ts +4 -144
- package/dist/assets/icon/index.js +54 -0
- package/dist/assets/icon/index.js.map +1 -1
- package/dist/assets/icon/index.mjs +5 -1
- package/dist/chunk-3CR66BEX.mjs +19 -0
- package/dist/chunk-3CR66BEX.mjs.map +1 -0
- package/dist/{chunk-LHNKZISB.mjs → chunk-FKXS2XRG.mjs} +114 -2
- package/dist/chunk-FKXS2XRG.mjs.map +1 -0
- package/dist/{chunk-HLUFAIFV.mjs → chunk-IZOOVZAD.mjs} +11 -6
- package/dist/chunk-IZOOVZAD.mjs.map +1 -0
- package/dist/{chunk-HYQ3T6WW.mjs → chunk-JX73EY6V.mjs} +2 -14
- package/dist/chunk-JX73EY6V.mjs.map +1 -0
- package/dist/{chunk-LRJDS2OK.mjs → chunk-NCVBLRAJ.mjs} +5750 -4942
- package/dist/chunk-NCVBLRAJ.mjs.map +1 -0
- package/dist/{chunk-FB5MHLWX.mjs → chunk-X5HGL3ZX.mjs} +45 -3
- package/dist/chunk-X5HGL3ZX.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 +1468 -591
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +11 -6
- package/dist/config/chains/index.mjs +2 -1
- package/dist/hooks/api/index.d.mts +3 -2
- package/dist/hooks/api/index.d.ts +3 -2
- package/dist/hooks/api/index.js +402 -148
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +9 -8
- package/dist/hooks/index.d.mts +3 -2
- package/dist/hooks/index.d.ts +3 -2
- package/dist/hooks/index.js +638 -545
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +5 -4
- package/dist/index-BVfCh4l-.d.mts +203 -0
- package/dist/{index-CGx_yc95.d.mts → index-BaFmUVw-.d.mts} +1 -1
- package/dist/{index-BoIDCH41.d.ts → index-BgdY5xdW.d.ts} +41 -17
- package/dist/{index-CteYYAoN.d.mts → index-BrzFSkOe.d.mts} +41 -17
- package/dist/{index-CO1j3Cxc.d.ts → index-C0UKUm0h.d.ts} +25 -5
- package/dist/{index-BlYHNOxm.d.ts → index-CQmN0dN4.d.ts} +1 -1
- package/dist/index-D3Kp05kW.d.ts +203 -0
- package/dist/{index-BNNgBoTN.d.ts → index-D5WIVIkc.d.ts} +4 -2
- package/dist/{index-Ce5JlNJv.d.ts → index-D7S5DMUy.d.mts} +21 -8
- package/dist/{index-CqO8nMTh.d.mts → index-DC4F1u-w.d.mts} +25 -5
- package/dist/{index-0EM3dXJ4.d.mts → index-DQFQ39D9.d.ts} +21 -8
- package/dist/{index-C7InzeOC.d.ts → index-DjbH13zc.d.mts} +16 -14
- package/dist/{index-C29kl7io.d.mts → index-SOVt-ADK.d.mts} +4 -2
- package/dist/{index-Bsfb3Ysq.d.mts → index-zc2GEzJ9.d.ts} +16 -14
- package/dist/index.css +139 -16
- package/dist/index.d.mts +9 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.js +1861 -920
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -8
- package/dist/request-B0CyrGFT.d.mts +15 -0
- package/dist/request-B0CyrGFT.d.ts +15 -0
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-Cv5UhCIP.d.mts → types-VrV1kYga.d.mts} +10 -2
- package/dist/{types-Cv5UhCIP.d.ts → types-VrV1kYga.d.ts} +10 -2
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.d.ts +3 -3
- package/dist/ui/index.js +109 -61
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +8 -4
- package/dist/utils/index.d.mts +3 -2
- package/dist/utils/index.d.ts +3 -2
- package/dist/utils/index.js +10 -4
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +3 -1
- package/example/package.json +5 -2
- package/example/src/App.tsx +42 -6
- package/example/src/pages/Contact/index.tsx +90 -0
- package/example/src/pages/UI/components/Tabs.tsx +18 -0
- package/example/src/pages/UI/index.tsx +2 -0
- package/example/src/pages/User/index.tsx +7 -1
- package/example/src/store/useLocalStore.ts +9 -0
- package/package.json +5 -5
- package/dist/chunk-FB5MHLWX.mjs.map +0 -1
- package/dist/chunk-HLUFAIFV.mjs.map +0 -1
- package/dist/chunk-HYQ3T6WW.mjs.map +0 -1
- package/dist/chunk-LHNKZISB.mjs.map +0 -1
- package/dist/chunk-LRJDS2OK.mjs.map +0 -1
- package/dist/chunk-YQHI5BIZ.mjs +0 -97
- package/dist/chunk-YQHI5BIZ.mjs.map +0 -1
- package/example/dist/assets/TransportWebHID-BwG9Tbw2.js +0 -1
- package/example/dist/assets/bignumber-FiRdtNkj.js +0 -10
- package/example/dist/assets/ccip-CJyR03AW.js +0 -1
- package/example/dist/assets/draggabilly-1Sl0icBA.js +0 -14
- package/example/dist/assets/index-BAfSBdWW.js +0 -1
- package/example/dist/assets/index-CYk2C9XJ.js +0 -1
- package/example/dist/assets/index-CcgesoWE.js +0 -179
- package/example/dist/assets/index-D5RU9xxK.js +0 -3
- package/example/dist/assets/index-D8N4Z5B5.js +0 -1677
- package/example/dist/assets/index-DATAk5xI.js +0 -569
- package/example/dist/assets/index-DN1wW-Mo.js +0 -3
- package/example/dist/assets/index-DxxLiL3_.js +0 -303
- package/example/dist/assets/index-Gy3FXGhr.css +0 -1
- package/example/dist/assets/index-RIWy1Hg7.js +0 -1
- package/example/dist/assets/inherits_browser-BlmhoU4v.js +0 -1
- package/example/dist/assets/solanaEmbed.esm-CNS-QKE2.js +0 -38
- package/example/dist/index.html +0 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Address, e as AnyObject,
|
|
1
|
+
import { 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
2
|
|
|
3
3
|
declare const index_Address: typeof Address;
|
|
4
4
|
declare const index_AnyObject: typeof AnyObject;
|
|
@@ -10,6 +10,7 @@ declare const index_BindWalletParam: typeof BindWalletParam;
|
|
|
10
10
|
declare const index_ButtonProps: typeof ButtonProps;
|
|
11
11
|
declare const index_CEXType: typeof CEXType;
|
|
12
12
|
declare const index_ChainType: typeof ChainType;
|
|
13
|
+
declare const index_ContactType: typeof ContactType;
|
|
13
14
|
declare const index_DeepPartial: typeof DeepPartial;
|
|
14
15
|
declare const index_DrawerProps: typeof DrawerProps;
|
|
15
16
|
declare const index_EmailModalProps: typeof EmailModalProps;
|
|
@@ -56,10 +57,11 @@ declare const index_WalletConfigType: typeof WalletConfigType;
|
|
|
56
57
|
declare const index_WalletNFTType: typeof WalletNFTType;
|
|
57
58
|
declare const index_WalletPanelProps: typeof WalletPanelProps;
|
|
58
59
|
declare const index_WalletReceiveMessageType: typeof WalletReceiveMessageType;
|
|
60
|
+
declare const index_WalletStatusType: typeof WalletStatusType;
|
|
59
61
|
declare const index_WalletType: typeof WalletType;
|
|
60
62
|
declare const index_useMatchWalletAssetsProps: typeof useMatchWalletAssetsProps;
|
|
61
63
|
declare namespace index {
|
|
62
|
-
export { index_Address as Address, 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_Hash as Hash, 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_UserTransactionNextPageParams as UserTransactionNextPageParams, index_UserTransactionRecordType as UserTransactionRecordType, index_UserTransactionType as UserTransactionType, index_WalletAssetMergeType as WalletAssetMergeType, index_WalletAssetType as WalletAssetType, index_WalletChainType as WalletChainType, index_WalletConfigType as WalletConfigType, index_WalletNFTType as WalletNFTType, index_WalletPanelProps as WalletPanelProps, index_WalletReceiveMessageType as WalletReceiveMessageType, index_WalletType as WalletType, index_useMatchWalletAssetsProps as useMatchWalletAssetsProps };
|
|
64
|
+
export { index_Address as Address, 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_ContactType as ContactType, index_DeepPartial as DeepPartial, index_DrawerProps as DrawerProps, index_EmailModalProps as EmailModalProps, index_EmbeddedWalletsParams as EmbeddedWalletsParams, index_Hash as Hash, 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_UserTransactionNextPageParams as UserTransactionNextPageParams, index_UserTransactionRecordType as UserTransactionRecordType, index_UserTransactionType as UserTransactionType, index_WalletAssetMergeType as WalletAssetMergeType, index_WalletAssetType as WalletAssetType, index_WalletChainType as WalletChainType, index_WalletConfigType as WalletConfigType, index_WalletNFTType as WalletNFTType, index_WalletPanelProps as WalletPanelProps, index_WalletReceiveMessageType as WalletReceiveMessageType, index_WalletStatusType as WalletStatusType, index_WalletType as WalletType, index_useMatchWalletAssetsProps as useMatchWalletAssetsProps };
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
export { index as i };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { E as EmailModalProps, j as LoginBoxProps, B as ButtonProps, k as OtherLoginMethodType, R as RecommendLoginMethodType, l as WalletType, P as PopoverPositionType, m as PopoverTypeType, n as LoginPanelProps, o as LoginModalProps, M as ModalWithHeaderProps, i as WalletAssetMergeType, u as useMatchWalletAssetsProps } from './types-
|
|
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-
|
|
4
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { E as EmailModalProps, j as LoginBoxProps, B as ButtonProps, k as OtherLoginMethodType, R as RecommendLoginMethodType, l as WalletType, P as PopoverPositionType, m as PopoverTypeType, n as LoginPanelProps, o as LoginModalProps, M as ModalWithHeaderProps, i as WalletAssetMergeType, u as useMatchWalletAssetsProps, p as ContactType } from './types-VrV1kYga.mjs';
|
|
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-BaFmUVw-.mjs';
|
|
4
|
+
import React, { ReactNode } from 'react';
|
|
5
5
|
|
|
6
6
|
declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
|
|
7
7
|
|
|
@@ -26,11 +26,11 @@ declare function UsernameModal({ title, isOpen, onSuccess, ...props }: ModalWith
|
|
|
26
26
|
onSuccess?: () => void;
|
|
27
27
|
}): react_jsx_runtime.JSX.Element;
|
|
28
28
|
|
|
29
|
-
type
|
|
29
|
+
type EVMModalProps = ModalWithHeaderProps & {
|
|
30
30
|
type?: 'login' | 'bind' | '';
|
|
31
31
|
onSuccess?: () => void;
|
|
32
32
|
};
|
|
33
|
-
declare function
|
|
33
|
+
declare function EVMModal(props: EVMModalProps): false | react_jsx_runtime.JSX.Element;
|
|
34
34
|
|
|
35
35
|
type TRONConnectModalProps = ModalWithHeaderProps & {
|
|
36
36
|
type?: 'login' | 'bind' | '';
|
|
@@ -81,8 +81,22 @@ declare function TransactionList({ scrollableTarget }: {
|
|
|
81
81
|
scrollableTarget?: ReactNode;
|
|
82
82
|
}): react_jsx_runtime.JSX.Element;
|
|
83
83
|
|
|
84
|
+
declare function ContactCard({ loading, data, action }: {
|
|
85
|
+
loading?: boolean;
|
|
86
|
+
data?: ContactType;
|
|
87
|
+
action?: () => React.ReactNode;
|
|
88
|
+
}): react_jsx_runtime.JSX.Element;
|
|
89
|
+
declare function ContactList({ limit, height, type }: {
|
|
90
|
+
limit?: number;
|
|
91
|
+
height?: number;
|
|
92
|
+
type?: "Friend" | "Requests";
|
|
93
|
+
}): react_jsx_runtime.JSX.Element;
|
|
94
|
+
|
|
84
95
|
declare const index_BTCModal: typeof BTCModal;
|
|
85
96
|
declare const index_Button: typeof Button;
|
|
97
|
+
declare const index_ContactCard: typeof ContactCard;
|
|
98
|
+
declare const index_ContactList: typeof ContactList;
|
|
99
|
+
declare const index_EVMModal: typeof EVMModal;
|
|
86
100
|
declare const index_EmailModal: typeof EmailModal;
|
|
87
101
|
declare const index_Field: typeof Field;
|
|
88
102
|
declare const index_Input: typeof Input;
|
|
@@ -94,7 +108,6 @@ declare const index_Modal: typeof Modal;
|
|
|
94
108
|
declare const index_ModalWithHeader: typeof ModalWithHeader;
|
|
95
109
|
declare const index_Overlay: typeof Overlay;
|
|
96
110
|
declare const index_Popover: typeof Popover;
|
|
97
|
-
declare const index_SOLModal: typeof SOLModal;
|
|
98
111
|
declare const index_TONModal: typeof TONModal;
|
|
99
112
|
declare const index_TRONModal: typeof TRONModal;
|
|
100
113
|
declare const index_TokenDetail: typeof TokenDetail;
|
|
@@ -105,7 +118,7 @@ declare const index_UsernameModal: typeof UsernameModal;
|
|
|
105
118
|
declare const index_WalletAsset: typeof WalletAsset;
|
|
106
119
|
declare const index_WalletModal: typeof WalletModal;
|
|
107
120
|
declare namespace index {
|
|
108
|
-
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,
|
|
121
|
+
export { index_BTCModal as BTCModal, index_Button as Button, index_ContactCard as ContactCard, index_ContactList as ContactList, index_EVMModal as EVMModal, 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_TONModal as TONModal, index_TRONModal as TRONModal, index_TokenDetail as TokenDetail, index_TokenSend as TokenSend, index_TokenSendList as TokenSendList, index_TransactionList as TransactionList, index_UsernameModal as UsernameModal, index_WalletAsset as WalletAsset, index_WalletModal as WalletModal };
|
|
109
122
|
}
|
|
110
123
|
|
|
111
|
-
export { BTCModal as B,
|
|
124
|
+
export { BTCModal as B, ContactList as C, EmailModal as E, LoginBox as L, TRONModal as T, UsernameModal as U, WalletModal as W, LoginButton as a, LoginPanel as b, LoginModal as c, EVMModal as d, TONModal as e, WalletAsset as f, TokenDetail as g, TokenSend as h, index as i, TokenSendList as j, TransactionList as k, ContactCard as l };
|
|
@@ -1,8 +1,8 @@
|
|
|
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-BaFmUVw-.mjs';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import {
|
|
3
|
+
import { w as DrawerProps, a3 as WalletPanelProps, Y as UIProps } from './types-VrV1kYga.mjs';
|
|
4
4
|
import { Hash, Chain } from 'viem';
|
|
5
|
-
import { CSSProperties } from 'react';
|
|
5
|
+
import React, { CSSProperties } from 'react';
|
|
6
6
|
|
|
7
7
|
declare function Drawer({ children, showClose, onClose, isOpen, title, zIndex, onBack }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
8
8
|
|
|
@@ -39,6 +39,24 @@ declare function Radio({ checked, onChange, size, color, className, style }: {
|
|
|
39
39
|
style?: CSSProperties;
|
|
40
40
|
}): react_jsx_runtime.JSX.Element;
|
|
41
41
|
|
|
42
|
+
interface SkeletonProps {
|
|
43
|
+
style?: React.CSSProperties;
|
|
44
|
+
className?: string;
|
|
45
|
+
width?: string | number;
|
|
46
|
+
height?: string | number;
|
|
47
|
+
radius?: string | number;
|
|
48
|
+
loading?: boolean;
|
|
49
|
+
children?: React.ReactNode;
|
|
50
|
+
}
|
|
51
|
+
declare const Skeleton: React.FC<SkeletonProps>;
|
|
52
|
+
|
|
53
|
+
type TabsProps = {
|
|
54
|
+
tabs: string[];
|
|
55
|
+
activeTab: number;
|
|
56
|
+
setActiveTab: (tab: number) => void;
|
|
57
|
+
};
|
|
58
|
+
declare function Tabs(props: TabsProps): react_jsx_runtime.JSX.Element;
|
|
59
|
+
|
|
42
60
|
declare const index_AlphaAvatar: typeof AlphaAvatar;
|
|
43
61
|
declare const index_Button: typeof Button;
|
|
44
62
|
declare const index_Drawer: typeof Drawer;
|
|
@@ -50,9 +68,11 @@ declare const index_ModalWithHeader: typeof ModalWithHeader;
|
|
|
50
68
|
declare const index_Overlay: typeof Overlay;
|
|
51
69
|
declare const index_Popover: typeof Popover;
|
|
52
70
|
declare const index_Radio: typeof Radio;
|
|
71
|
+
declare const index_Skeleton: typeof Skeleton;
|
|
53
72
|
declare const index_Switch: typeof Switch;
|
|
73
|
+
declare const index_Tabs: typeof Tabs;
|
|
54
74
|
declare namespace index {
|
|
55
|
-
export { index_AlphaAvatar as AlphaAvatar, index_Button as Button, index_Drawer as Drawer, index_Field as Field, export_default as HashPanel, index_Input as Input, index_Modal as Modal, index_ModalDrawer as ModalDrawer, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_Popover as Popover, index_Radio as Radio, index_Switch as Switch };
|
|
75
|
+
export { index_AlphaAvatar as AlphaAvatar, index_Button as Button, index_Drawer as Drawer, index_Field as Field, export_default as HashPanel, index_Input as Input, index_Modal as Modal, index_ModalDrawer as ModalDrawer, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_Popover as Popover, index_Radio as Radio, index_Skeleton as Skeleton, index_Switch as Switch, index_Tabs as Tabs };
|
|
56
76
|
}
|
|
57
77
|
|
|
58
|
-
export { AlphaAvatar as A, Drawer as D, ModalDrawer as M, Radio as R, Switch as S, export_default as e, index as i };
|
|
78
|
+
export { AlphaAvatar as A, Drawer as D, ModalDrawer as M, Radio as R, Switch as S, Tabs as T, Skeleton as a, export_default as e, index as i };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { E as EmailModalProps, j as LoginBoxProps, B as ButtonProps, k as OtherLoginMethodType, R as RecommendLoginMethodType, l as WalletType, P as PopoverPositionType, m as PopoverTypeType, n as LoginPanelProps, o as LoginModalProps, M as ModalWithHeaderProps, i as WalletAssetMergeType, u as useMatchWalletAssetsProps } from './types-
|
|
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-
|
|
4
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { E as EmailModalProps, j as LoginBoxProps, B as ButtonProps, k as OtherLoginMethodType, R as RecommendLoginMethodType, l as WalletType, P as PopoverPositionType, m as PopoverTypeType, n as LoginPanelProps, o as LoginModalProps, M as ModalWithHeaderProps, i as WalletAssetMergeType, u as useMatchWalletAssetsProps, p as ContactType } from './types-VrV1kYga.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-CQmN0dN4.js';
|
|
4
|
+
import React, { ReactNode } from 'react';
|
|
5
5
|
|
|
6
6
|
declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
|
|
7
7
|
|
|
@@ -26,11 +26,11 @@ declare function UsernameModal({ title, isOpen, onSuccess, ...props }: ModalWith
|
|
|
26
26
|
onSuccess?: () => void;
|
|
27
27
|
}): react_jsx_runtime.JSX.Element;
|
|
28
28
|
|
|
29
|
-
type
|
|
29
|
+
type EVMModalProps = ModalWithHeaderProps & {
|
|
30
30
|
type?: 'login' | 'bind' | '';
|
|
31
31
|
onSuccess?: () => void;
|
|
32
32
|
};
|
|
33
|
-
declare function
|
|
33
|
+
declare function EVMModal(props: EVMModalProps): false | react_jsx_runtime.JSX.Element;
|
|
34
34
|
|
|
35
35
|
type TRONConnectModalProps = ModalWithHeaderProps & {
|
|
36
36
|
type?: 'login' | 'bind' | '';
|
|
@@ -81,8 +81,22 @@ declare function TransactionList({ scrollableTarget }: {
|
|
|
81
81
|
scrollableTarget?: ReactNode;
|
|
82
82
|
}): react_jsx_runtime.JSX.Element;
|
|
83
83
|
|
|
84
|
+
declare function ContactCard({ loading, data, action }: {
|
|
85
|
+
loading?: boolean;
|
|
86
|
+
data?: ContactType;
|
|
87
|
+
action?: () => React.ReactNode;
|
|
88
|
+
}): react_jsx_runtime.JSX.Element;
|
|
89
|
+
declare function ContactList({ limit, height, type }: {
|
|
90
|
+
limit?: number;
|
|
91
|
+
height?: number;
|
|
92
|
+
type?: "Friend" | "Requests";
|
|
93
|
+
}): react_jsx_runtime.JSX.Element;
|
|
94
|
+
|
|
84
95
|
declare const index_BTCModal: typeof BTCModal;
|
|
85
96
|
declare const index_Button: typeof Button;
|
|
97
|
+
declare const index_ContactCard: typeof ContactCard;
|
|
98
|
+
declare const index_ContactList: typeof ContactList;
|
|
99
|
+
declare const index_EVMModal: typeof EVMModal;
|
|
86
100
|
declare const index_EmailModal: typeof EmailModal;
|
|
87
101
|
declare const index_Field: typeof Field;
|
|
88
102
|
declare const index_Input: typeof Input;
|
|
@@ -94,7 +108,6 @@ declare const index_Modal: typeof Modal;
|
|
|
94
108
|
declare const index_ModalWithHeader: typeof ModalWithHeader;
|
|
95
109
|
declare const index_Overlay: typeof Overlay;
|
|
96
110
|
declare const index_Popover: typeof Popover;
|
|
97
|
-
declare const index_SOLModal: typeof SOLModal;
|
|
98
111
|
declare const index_TONModal: typeof TONModal;
|
|
99
112
|
declare const index_TRONModal: typeof TRONModal;
|
|
100
113
|
declare const index_TokenDetail: typeof TokenDetail;
|
|
@@ -105,7 +118,7 @@ declare const index_UsernameModal: typeof UsernameModal;
|
|
|
105
118
|
declare const index_WalletAsset: typeof WalletAsset;
|
|
106
119
|
declare const index_WalletModal: typeof WalletModal;
|
|
107
120
|
declare namespace index {
|
|
108
|
-
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,
|
|
121
|
+
export { index_BTCModal as BTCModal, index_Button as Button, index_ContactCard as ContactCard, index_ContactList as ContactList, index_EVMModal as EVMModal, 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_TONModal as TONModal, index_TRONModal as TRONModal, index_TokenDetail as TokenDetail, index_TokenSend as TokenSend, index_TokenSendList as TokenSendList, index_TransactionList as TransactionList, index_UsernameModal as UsernameModal, index_WalletAsset as WalletAsset, index_WalletModal as WalletModal };
|
|
109
122
|
}
|
|
110
123
|
|
|
111
|
-
export { BTCModal as B,
|
|
124
|
+
export { BTCModal as B, ContactList as C, EmailModal as E, LoginBox as L, TRONModal as T, UsernameModal as U, WalletModal as W, LoginButton as a, LoginPanel as b, LoginModal as c, EVMModal as d, TONModal as e, WalletAsset as f, TokenDetail as g, TokenSend as h, index as i, TokenSendList as j, TransactionList as k, ContactCard as l };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as MyResponseType } from './request-B0CyrGFT.mjs';
|
|
2
|
+
import { b as ISocialLoginMethod, O as OverviewInfo, C as CEXType, c as LoginMethodType, I as IMatchEvents, d as ChainType, U as UserChainType, A as Address, H as Hash$1, e as AnyObject, f as UserTransactionType, u as useMatchWalletAssetsProps, g as UserImportTokenType, h as UserAssetToken, i as WalletAssetMergeType } from './types-VrV1kYga.mjs';
|
|
2
3
|
import * as viem from 'viem';
|
|
3
4
|
import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
|
|
4
5
|
import { Hash } from 'viem/types/misc';
|
|
@@ -85,11 +86,12 @@ declare function useUserInfo(): {
|
|
|
85
86
|
auth: () => Promise<any>;
|
|
86
87
|
login: (method: LoginMethodType | "wallet", extra?: {
|
|
87
88
|
[key: string]: any;
|
|
88
|
-
}) => Promise<void | Window | null>;
|
|
89
|
+
}) => Promise<string | void | Window | null>;
|
|
89
90
|
bind: (method: LoginMethodType | "wallet", extra?: {
|
|
90
91
|
[key: string]: any;
|
|
91
|
-
}) => Promise<void | Window | null>;
|
|
92
|
+
}) => Promise<string | void | Window | null>;
|
|
92
93
|
getAuthInfo: (method: keyof typeof LOGIN_METHOD_MAP) => Promise<unknown>;
|
|
94
|
+
invite: (invite_code: string) => Promise<MyResponseType<any>>;
|
|
93
95
|
};
|
|
94
96
|
|
|
95
97
|
declare function useMatchEvents(handlers: IMatchEvents): void;
|
|
@@ -176,9 +178,9 @@ declare function useMatchChain(): {
|
|
|
176
178
|
getBlobBaseFee: () => Promise<viem.GetBlobBaseFeeReturnType>;
|
|
177
179
|
getBlock: <includeTransactions extends boolean = false, blockTag extends viem.BlockTag = "latest">(args?: viem.GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
|
|
178
180
|
number: blockTag extends "pending" ? null : bigint;
|
|
181
|
+
nonce: blockTag extends "pending" ? null : `0x${string}`;
|
|
179
182
|
size: bigint;
|
|
180
183
|
hash: blockTag extends "pending" ? null : `0x${string}`;
|
|
181
|
-
nonce: blockTag extends "pending" ? null : `0x${string}`;
|
|
182
184
|
logsBloom: blockTag extends "pending" ? null : `0x${string}`;
|
|
183
185
|
baseFeePerGas: bigint | null;
|
|
184
186
|
blobGasUsed: bigint;
|
|
@@ -202,6 +204,7 @@ declare function useMatchChain(): {
|
|
|
202
204
|
withdrawalsRoot?: viem.Hex | undefined;
|
|
203
205
|
transactions: includeTransactions extends true ? ({
|
|
204
206
|
type: "legacy";
|
|
207
|
+
nonce: number;
|
|
205
208
|
chainId?: number | undefined;
|
|
206
209
|
value: bigint;
|
|
207
210
|
input: viem.Hex;
|
|
@@ -212,7 +215,6 @@ declare function useMatchChain(): {
|
|
|
212
215
|
hash: viem.Hash;
|
|
213
216
|
from: viem.Address;
|
|
214
217
|
gas: bigint;
|
|
215
|
-
nonce: number;
|
|
216
218
|
to: viem.Address | null;
|
|
217
219
|
blobVersionedHashes?: undefined;
|
|
218
220
|
gasPrice: bigint;
|
|
@@ -226,6 +228,7 @@ declare function useMatchChain(): {
|
|
|
226
228
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
227
229
|
} | {
|
|
228
230
|
type: "eip2930";
|
|
231
|
+
nonce: number;
|
|
229
232
|
chainId: number;
|
|
230
233
|
value: bigint;
|
|
231
234
|
input: viem.Hex;
|
|
@@ -236,7 +239,6 @@ declare function useMatchChain(): {
|
|
|
236
239
|
hash: viem.Hash;
|
|
237
240
|
from: viem.Address;
|
|
238
241
|
gas: bigint;
|
|
239
|
-
nonce: number;
|
|
240
242
|
to: viem.Address | null;
|
|
241
243
|
blobVersionedHashes?: undefined;
|
|
242
244
|
gasPrice: bigint;
|
|
@@ -250,6 +252,7 @@ declare function useMatchChain(): {
|
|
|
250
252
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
251
253
|
} | {
|
|
252
254
|
type: "eip1559";
|
|
255
|
+
nonce: number;
|
|
253
256
|
chainId: number;
|
|
254
257
|
value: bigint;
|
|
255
258
|
input: viem.Hex;
|
|
@@ -260,7 +263,6 @@ declare function useMatchChain(): {
|
|
|
260
263
|
hash: viem.Hash;
|
|
261
264
|
from: viem.Address;
|
|
262
265
|
gas: bigint;
|
|
263
|
-
nonce: number;
|
|
264
266
|
to: viem.Address | null;
|
|
265
267
|
blobVersionedHashes?: undefined;
|
|
266
268
|
gasPrice?: undefined;
|
|
@@ -274,6 +276,7 @@ declare function useMatchChain(): {
|
|
|
274
276
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
275
277
|
} | {
|
|
276
278
|
type: "eip4844";
|
|
279
|
+
nonce: number;
|
|
277
280
|
chainId: number;
|
|
278
281
|
value: bigint;
|
|
279
282
|
input: viem.Hex;
|
|
@@ -284,7 +287,6 @@ declare function useMatchChain(): {
|
|
|
284
287
|
hash: viem.Hash;
|
|
285
288
|
from: viem.Address;
|
|
286
289
|
gas: bigint;
|
|
287
|
-
nonce: number;
|
|
288
290
|
to: viem.Address | null;
|
|
289
291
|
blobVersionedHashes: readonly viem.Hex[];
|
|
290
292
|
gasPrice?: undefined;
|
|
@@ -323,6 +325,7 @@ declare function useMatchChain(): {
|
|
|
323
325
|
getStorageAt: (args: viem.GetStorageAtParameters) => Promise<viem.GetStorageAtReturnType>;
|
|
324
326
|
getTransaction: <blockTag extends viem.BlockTag = "latest">(args: viem.GetTransactionParameters<blockTag>) => Promise<{
|
|
325
327
|
type: "legacy";
|
|
328
|
+
nonce: number;
|
|
326
329
|
chainId?: number | undefined;
|
|
327
330
|
value: bigint;
|
|
328
331
|
input: viem.Hex;
|
|
@@ -333,7 +336,6 @@ declare function useMatchChain(): {
|
|
|
333
336
|
hash: viem.Hash;
|
|
334
337
|
from: viem.Address;
|
|
335
338
|
gas: bigint;
|
|
336
|
-
nonce: number;
|
|
337
339
|
to: viem.Address | null;
|
|
338
340
|
blobVersionedHashes?: undefined;
|
|
339
341
|
gasPrice: bigint;
|
|
@@ -347,6 +349,7 @@ declare function useMatchChain(): {
|
|
|
347
349
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
348
350
|
} | {
|
|
349
351
|
type: "eip2930";
|
|
352
|
+
nonce: number;
|
|
350
353
|
chainId: number;
|
|
351
354
|
value: bigint;
|
|
352
355
|
input: viem.Hex;
|
|
@@ -357,7 +360,6 @@ declare function useMatchChain(): {
|
|
|
357
360
|
hash: viem.Hash;
|
|
358
361
|
from: viem.Address;
|
|
359
362
|
gas: bigint;
|
|
360
|
-
nonce: number;
|
|
361
363
|
to: viem.Address | null;
|
|
362
364
|
blobVersionedHashes?: undefined;
|
|
363
365
|
gasPrice: bigint;
|
|
@@ -371,6 +373,7 @@ declare function useMatchChain(): {
|
|
|
371
373
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
372
374
|
} | {
|
|
373
375
|
type: "eip1559";
|
|
376
|
+
nonce: number;
|
|
374
377
|
chainId: number;
|
|
375
378
|
value: bigint;
|
|
376
379
|
input: viem.Hex;
|
|
@@ -381,7 +384,6 @@ declare function useMatchChain(): {
|
|
|
381
384
|
hash: viem.Hash;
|
|
382
385
|
from: viem.Address;
|
|
383
386
|
gas: bigint;
|
|
384
|
-
nonce: number;
|
|
385
387
|
to: viem.Address | null;
|
|
386
388
|
blobVersionedHashes?: undefined;
|
|
387
389
|
gasPrice?: undefined;
|
|
@@ -395,6 +397,7 @@ declare function useMatchChain(): {
|
|
|
395
397
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
396
398
|
} | {
|
|
397
399
|
type: "eip4844";
|
|
400
|
+
nonce: number;
|
|
398
401
|
chainId: number;
|
|
399
402
|
value: bigint;
|
|
400
403
|
input: viem.Hex;
|
|
@@ -405,7 +408,6 @@ declare function useMatchChain(): {
|
|
|
405
408
|
hash: viem.Hash;
|
|
406
409
|
from: viem.Address;
|
|
407
410
|
gas: bigint;
|
|
408
|
-
nonce: number;
|
|
409
411
|
to: viem.Address | null;
|
|
410
412
|
blobVersionedHashes: readonly viem.Hex[];
|
|
411
413
|
gasPrice?: undefined;
|
|
@@ -1810,7 +1812,7 @@ declare function useMatchChain(): {
|
|
|
1810
1812
|
sidecars: viem.TransactionSerializableEIP4844["sidecars"];
|
|
1811
1813
|
}, viem.TransactionSerializableEIP4844>)) | viem.Opaque<viem.TransactionSerializableEIP4844, request> | viem.Opaque<viem.TransactionRequestEIP4844, request> ? "eip4844" : never) | (request["type"] extends string ? request["type"] : never)>) ? T_6 extends "eip4844" ? viem.TransactionRequestEIP4844 : never : never : never)>> & {
|
|
1812
1814
|
chainId?: number | undefined;
|
|
1813
|
-
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "
|
|
1815
|
+
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "nonce" | "chainId" | "gas" | "blobVersionedHashes" | "fees") extends infer T_7 ? T_7 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "nonce" | "chainId" | "gas" | "blobVersionedHashes" | "fees") ? T_7 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_7 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: (viem.UnionRequiredBy<Extract<viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<UserChainType, chainOverride>, "transactionRequest", viem.TransactionRequest>, "from"> & (viem.DeriveChain<UserChainType, chainOverride> extends infer T_1 ? T_1 extends viem.DeriveChain<UserChainType, chainOverride> ? T_1 extends viem.Chain ? {
|
|
1814
1816
|
chain: T_1;
|
|
1815
1817
|
} : {
|
|
1816
1818
|
chain?: undefined;
|
|
@@ -3198,7 +3200,7 @@ declare function useMatchChain(): {
|
|
|
3198
3200
|
sidecars: viem.TransactionSerializableEIP4844["sidecars"];
|
|
3199
3201
|
}, viem.TransactionSerializableEIP4844>)) | viem.Opaque<viem.TransactionSerializableEIP4844, request> | viem.Opaque<viem.TransactionRequestEIP4844, request> ? "eip4844" : never) | (request["type"] extends string ? request["type"] : never)>) ? T_6 extends "eip4844" ? viem.TransactionRequestEIP4844 : never : never : never)>> & {
|
|
3200
3202
|
chainId?: number | undefined;
|
|
3201
|
-
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "
|
|
3203
|
+
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "nonce" | "chainId" | "gas" | "blobVersionedHashes" | "fees") extends infer T_7 ? T_7 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "nonce" | "chainId" | "gas" | "blobVersionedHashes" | "fees") ? T_7 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_7 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K]; } : never>;
|
|
3202
3204
|
readContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "pure" | "view">, args extends viem.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem.ReadContractParameters<abi, functionName, args>) => Promise<viem.ReadContractReturnType<abi, functionName, args>>;
|
|
3203
3205
|
sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
|
|
3204
3206
|
simulateContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, args_1 extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends viem.Chain | undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(args: viem.SimulateContractParameters<abi, functionName, args_1, UserChainType, chainOverride, accountOverride>) => Promise<viem.SimulateContractReturnType<abi, functionName, args_1, UserChainType, viem.Account | undefined, chainOverride, accountOverride>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Address, e as AnyObject,
|
|
1
|
+
import { 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
2
|
|
|
3
3
|
declare const index_Address: typeof Address;
|
|
4
4
|
declare const index_AnyObject: typeof AnyObject;
|
|
@@ -10,6 +10,7 @@ declare const index_BindWalletParam: typeof BindWalletParam;
|
|
|
10
10
|
declare const index_ButtonProps: typeof ButtonProps;
|
|
11
11
|
declare const index_CEXType: typeof CEXType;
|
|
12
12
|
declare const index_ChainType: typeof ChainType;
|
|
13
|
+
declare const index_ContactType: typeof ContactType;
|
|
13
14
|
declare const index_DeepPartial: typeof DeepPartial;
|
|
14
15
|
declare const index_DrawerProps: typeof DrawerProps;
|
|
15
16
|
declare const index_EmailModalProps: typeof EmailModalProps;
|
|
@@ -56,10 +57,11 @@ declare const index_WalletConfigType: typeof WalletConfigType;
|
|
|
56
57
|
declare const index_WalletNFTType: typeof WalletNFTType;
|
|
57
58
|
declare const index_WalletPanelProps: typeof WalletPanelProps;
|
|
58
59
|
declare const index_WalletReceiveMessageType: typeof WalletReceiveMessageType;
|
|
60
|
+
declare const index_WalletStatusType: typeof WalletStatusType;
|
|
59
61
|
declare const index_WalletType: typeof WalletType;
|
|
60
62
|
declare const index_useMatchWalletAssetsProps: typeof useMatchWalletAssetsProps;
|
|
61
63
|
declare namespace index {
|
|
62
|
-
export { index_Address as Address, 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_Hash as Hash, 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_UserTransactionNextPageParams as UserTransactionNextPageParams, index_UserTransactionRecordType as UserTransactionRecordType, index_UserTransactionType as UserTransactionType, index_WalletAssetMergeType as WalletAssetMergeType, index_WalletAssetType as WalletAssetType, index_WalletChainType as WalletChainType, index_WalletConfigType as WalletConfigType, index_WalletNFTType as WalletNFTType, index_WalletPanelProps as WalletPanelProps, index_WalletReceiveMessageType as WalletReceiveMessageType, index_WalletType as WalletType, index_useMatchWalletAssetsProps as useMatchWalletAssetsProps };
|
|
64
|
+
export { index_Address as Address, 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_ContactType as ContactType, index_DeepPartial as DeepPartial, index_DrawerProps as DrawerProps, index_EmailModalProps as EmailModalProps, index_EmbeddedWalletsParams as EmbeddedWalletsParams, index_Hash as Hash, 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_UserTransactionNextPageParams as UserTransactionNextPageParams, index_UserTransactionRecordType as UserTransactionRecordType, index_UserTransactionType as UserTransactionType, index_WalletAssetMergeType as WalletAssetMergeType, index_WalletAssetType as WalletAssetType, index_WalletChainType as WalletChainType, index_WalletConfigType as WalletConfigType, index_WalletNFTType as WalletNFTType, index_WalletPanelProps as WalletPanelProps, index_WalletReceiveMessageType as WalletReceiveMessageType, index_WalletStatusType as WalletStatusType, index_WalletType as WalletType, index_useMatchWalletAssetsProps as useMatchWalletAssetsProps };
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
export { index as i };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as MyResponseType } from './request-B0CyrGFT.js';
|
|
2
|
+
import { b as ISocialLoginMethod, O as OverviewInfo, C as CEXType, c as LoginMethodType, I as IMatchEvents, d as ChainType, U as UserChainType, A as Address, H as Hash$1, e as AnyObject, f as UserTransactionType, u as useMatchWalletAssetsProps, g as UserImportTokenType, h as UserAssetToken, i as WalletAssetMergeType } from './types-VrV1kYga.js';
|
|
2
3
|
import * as viem from 'viem';
|
|
3
4
|
import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
|
|
4
5
|
import { Hash } from 'viem/types/misc';
|
|
@@ -85,11 +86,12 @@ declare function useUserInfo(): {
|
|
|
85
86
|
auth: () => Promise<any>;
|
|
86
87
|
login: (method: LoginMethodType | "wallet", extra?: {
|
|
87
88
|
[key: string]: any;
|
|
88
|
-
}) => Promise<void | Window | null>;
|
|
89
|
+
}) => Promise<string | void | Window | null>;
|
|
89
90
|
bind: (method: LoginMethodType | "wallet", extra?: {
|
|
90
91
|
[key: string]: any;
|
|
91
|
-
}) => Promise<void | Window | null>;
|
|
92
|
+
}) => Promise<string | void | Window | null>;
|
|
92
93
|
getAuthInfo: (method: keyof typeof LOGIN_METHOD_MAP) => Promise<unknown>;
|
|
94
|
+
invite: (invite_code: string) => Promise<MyResponseType<any>>;
|
|
93
95
|
};
|
|
94
96
|
|
|
95
97
|
declare function useMatchEvents(handlers: IMatchEvents): void;
|
|
@@ -176,9 +178,9 @@ declare function useMatchChain(): {
|
|
|
176
178
|
getBlobBaseFee: () => Promise<viem.GetBlobBaseFeeReturnType>;
|
|
177
179
|
getBlock: <includeTransactions extends boolean = false, blockTag extends viem.BlockTag = "latest">(args?: viem.GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
|
|
178
180
|
number: blockTag extends "pending" ? null : bigint;
|
|
181
|
+
nonce: blockTag extends "pending" ? null : `0x${string}`;
|
|
179
182
|
size: bigint;
|
|
180
183
|
hash: blockTag extends "pending" ? null : `0x${string}`;
|
|
181
|
-
nonce: blockTag extends "pending" ? null : `0x${string}`;
|
|
182
184
|
logsBloom: blockTag extends "pending" ? null : `0x${string}`;
|
|
183
185
|
baseFeePerGas: bigint | null;
|
|
184
186
|
blobGasUsed: bigint;
|
|
@@ -202,6 +204,7 @@ declare function useMatchChain(): {
|
|
|
202
204
|
withdrawalsRoot?: viem.Hex | undefined;
|
|
203
205
|
transactions: includeTransactions extends true ? ({
|
|
204
206
|
type: "legacy";
|
|
207
|
+
nonce: number;
|
|
205
208
|
chainId?: number | undefined;
|
|
206
209
|
value: bigint;
|
|
207
210
|
input: viem.Hex;
|
|
@@ -212,7 +215,6 @@ declare function useMatchChain(): {
|
|
|
212
215
|
hash: viem.Hash;
|
|
213
216
|
from: viem.Address;
|
|
214
217
|
gas: bigint;
|
|
215
|
-
nonce: number;
|
|
216
218
|
to: viem.Address | null;
|
|
217
219
|
blobVersionedHashes?: undefined;
|
|
218
220
|
gasPrice: bigint;
|
|
@@ -226,6 +228,7 @@ declare function useMatchChain(): {
|
|
|
226
228
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
227
229
|
} | {
|
|
228
230
|
type: "eip2930";
|
|
231
|
+
nonce: number;
|
|
229
232
|
chainId: number;
|
|
230
233
|
value: bigint;
|
|
231
234
|
input: viem.Hex;
|
|
@@ -236,7 +239,6 @@ declare function useMatchChain(): {
|
|
|
236
239
|
hash: viem.Hash;
|
|
237
240
|
from: viem.Address;
|
|
238
241
|
gas: bigint;
|
|
239
|
-
nonce: number;
|
|
240
242
|
to: viem.Address | null;
|
|
241
243
|
blobVersionedHashes?: undefined;
|
|
242
244
|
gasPrice: bigint;
|
|
@@ -250,6 +252,7 @@ declare function useMatchChain(): {
|
|
|
250
252
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
251
253
|
} | {
|
|
252
254
|
type: "eip1559";
|
|
255
|
+
nonce: number;
|
|
253
256
|
chainId: number;
|
|
254
257
|
value: bigint;
|
|
255
258
|
input: viem.Hex;
|
|
@@ -260,7 +263,6 @@ declare function useMatchChain(): {
|
|
|
260
263
|
hash: viem.Hash;
|
|
261
264
|
from: viem.Address;
|
|
262
265
|
gas: bigint;
|
|
263
|
-
nonce: number;
|
|
264
266
|
to: viem.Address | null;
|
|
265
267
|
blobVersionedHashes?: undefined;
|
|
266
268
|
gasPrice?: undefined;
|
|
@@ -274,6 +276,7 @@ declare function useMatchChain(): {
|
|
|
274
276
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
275
277
|
} | {
|
|
276
278
|
type: "eip4844";
|
|
279
|
+
nonce: number;
|
|
277
280
|
chainId: number;
|
|
278
281
|
value: bigint;
|
|
279
282
|
input: viem.Hex;
|
|
@@ -284,7 +287,6 @@ declare function useMatchChain(): {
|
|
|
284
287
|
hash: viem.Hash;
|
|
285
288
|
from: viem.Address;
|
|
286
289
|
gas: bigint;
|
|
287
|
-
nonce: number;
|
|
288
290
|
to: viem.Address | null;
|
|
289
291
|
blobVersionedHashes: readonly viem.Hex[];
|
|
290
292
|
gasPrice?: undefined;
|
|
@@ -323,6 +325,7 @@ declare function useMatchChain(): {
|
|
|
323
325
|
getStorageAt: (args: viem.GetStorageAtParameters) => Promise<viem.GetStorageAtReturnType>;
|
|
324
326
|
getTransaction: <blockTag extends viem.BlockTag = "latest">(args: viem.GetTransactionParameters<blockTag>) => Promise<{
|
|
325
327
|
type: "legacy";
|
|
328
|
+
nonce: number;
|
|
326
329
|
chainId?: number | undefined;
|
|
327
330
|
value: bigint;
|
|
328
331
|
input: viem.Hex;
|
|
@@ -333,7 +336,6 @@ declare function useMatchChain(): {
|
|
|
333
336
|
hash: viem.Hash;
|
|
334
337
|
from: viem.Address;
|
|
335
338
|
gas: bigint;
|
|
336
|
-
nonce: number;
|
|
337
339
|
to: viem.Address | null;
|
|
338
340
|
blobVersionedHashes?: undefined;
|
|
339
341
|
gasPrice: bigint;
|
|
@@ -347,6 +349,7 @@ declare function useMatchChain(): {
|
|
|
347
349
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
348
350
|
} | {
|
|
349
351
|
type: "eip2930";
|
|
352
|
+
nonce: number;
|
|
350
353
|
chainId: number;
|
|
351
354
|
value: bigint;
|
|
352
355
|
input: viem.Hex;
|
|
@@ -357,7 +360,6 @@ declare function useMatchChain(): {
|
|
|
357
360
|
hash: viem.Hash;
|
|
358
361
|
from: viem.Address;
|
|
359
362
|
gas: bigint;
|
|
360
|
-
nonce: number;
|
|
361
363
|
to: viem.Address | null;
|
|
362
364
|
blobVersionedHashes?: undefined;
|
|
363
365
|
gasPrice: bigint;
|
|
@@ -371,6 +373,7 @@ declare function useMatchChain(): {
|
|
|
371
373
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
372
374
|
} | {
|
|
373
375
|
type: "eip1559";
|
|
376
|
+
nonce: number;
|
|
374
377
|
chainId: number;
|
|
375
378
|
value: bigint;
|
|
376
379
|
input: viem.Hex;
|
|
@@ -381,7 +384,6 @@ declare function useMatchChain(): {
|
|
|
381
384
|
hash: viem.Hash;
|
|
382
385
|
from: viem.Address;
|
|
383
386
|
gas: bigint;
|
|
384
|
-
nonce: number;
|
|
385
387
|
to: viem.Address | null;
|
|
386
388
|
blobVersionedHashes?: undefined;
|
|
387
389
|
gasPrice?: undefined;
|
|
@@ -395,6 +397,7 @@ declare function useMatchChain(): {
|
|
|
395
397
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
396
398
|
} | {
|
|
397
399
|
type: "eip4844";
|
|
400
|
+
nonce: number;
|
|
398
401
|
chainId: number;
|
|
399
402
|
value: bigint;
|
|
400
403
|
input: viem.Hex;
|
|
@@ -405,7 +408,6 @@ declare function useMatchChain(): {
|
|
|
405
408
|
hash: viem.Hash;
|
|
406
409
|
from: viem.Address;
|
|
407
410
|
gas: bigint;
|
|
408
|
-
nonce: number;
|
|
409
411
|
to: viem.Address | null;
|
|
410
412
|
blobVersionedHashes: readonly viem.Hex[];
|
|
411
413
|
gasPrice?: undefined;
|
|
@@ -1810,7 +1812,7 @@ declare function useMatchChain(): {
|
|
|
1810
1812
|
sidecars: viem.TransactionSerializableEIP4844["sidecars"];
|
|
1811
1813
|
}, viem.TransactionSerializableEIP4844>)) | viem.Opaque<viem.TransactionSerializableEIP4844, request> | viem.Opaque<viem.TransactionRequestEIP4844, request> ? "eip4844" : never) | (request["type"] extends string ? request["type"] : never)>) ? T_6 extends "eip4844" ? viem.TransactionRequestEIP4844 : never : never : never)>> & {
|
|
1812
1814
|
chainId?: number | undefined;
|
|
1813
|
-
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "
|
|
1815
|
+
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "nonce" | "chainId" | "gas" | "blobVersionedHashes" | "fees") extends infer T_7 ? T_7 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "nonce" | "chainId" | "gas" | "blobVersionedHashes" | "fees") ? T_7 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_7 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: (viem.UnionRequiredBy<Extract<viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<UserChainType, chainOverride>, "transactionRequest", viem.TransactionRequest>, "from"> & (viem.DeriveChain<UserChainType, chainOverride> extends infer T_1 ? T_1 extends viem.DeriveChain<UserChainType, chainOverride> ? T_1 extends viem.Chain ? {
|
|
1814
1816
|
chain: T_1;
|
|
1815
1817
|
} : {
|
|
1816
1818
|
chain?: undefined;
|
|
@@ -3198,7 +3200,7 @@ declare function useMatchChain(): {
|
|
|
3198
3200
|
sidecars: viem.TransactionSerializableEIP4844["sidecars"];
|
|
3199
3201
|
}, viem.TransactionSerializableEIP4844>)) | viem.Opaque<viem.TransactionSerializableEIP4844, request> | viem.Opaque<viem.TransactionRequestEIP4844, request> ? "eip4844" : never) | (request["type"] extends string ? request["type"] : never)>) ? T_6 extends "eip4844" ? viem.TransactionRequestEIP4844 : never : never : never)>> & {
|
|
3200
3202
|
chainId?: number | undefined;
|
|
3201
|
-
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "
|
|
3203
|
+
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "nonce" | "chainId" | "gas" | "blobVersionedHashes" | "fees") extends infer T_7 ? T_7 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "nonce" | "chainId" | "gas" | "blobVersionedHashes" | "fees") ? T_7 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_7 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K]; } : never>;
|
|
3202
3204
|
readContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "pure" | "view">, args extends viem.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem.ReadContractParameters<abi, functionName, args>) => Promise<viem.ReadContractReturnType<abi, functionName, args>>;
|
|
3203
3205
|
sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
|
|
3204
3206
|
simulateContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, args_1 extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends viem.Chain | undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(args: viem.SimulateContractParameters<abi, functionName, args_1, UserChainType, chainOverride, accountOverride>) => Promise<viem.SimulateContractReturnType<abi, functionName, args_1, UserChainType, viem.Account | undefined, chainOverride, accountOverride>>;
|