@matchain/matchid-sdk-react 0.1.48-alpha.9 → 0.1.49
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 +8 -2
- package/dist/assets/icon/index.d.ts +8 -2
- package/dist/assets/icon/index.js +54 -2
- package/dist/assets/icon/index.js.map +1 -1
- package/dist/assets/icon/index.mjs +5 -1
- package/dist/chunk-5JHHHLG4.mjs +136 -0
- package/dist/chunk-5JHHHLG4.mjs.map +1 -0
- package/dist/{chunk-USKUYOYJ.mjs → chunk-FB5MHLWX.mjs} +75 -42
- package/dist/chunk-FB5MHLWX.mjs.map +1 -0
- package/dist/{chunk-T72FT5NB.mjs → chunk-IKSPEZ4F.mjs} +2 -2
- package/dist/{chunk-7UTR37EJ.mjs → chunk-LHNKZISB.mjs} +54 -4
- package/dist/chunk-LHNKZISB.mjs.map +1 -0
- package/dist/{chunk-CI63DTB6.mjs → chunk-MXDPJRRH.mjs} +2020 -702
- package/dist/chunk-MXDPJRRH.mjs.map +1 -0
- package/dist/components/index.d.mts +4 -3
- package/dist/components/index.d.ts +4 -3
- package/dist/components/index.js +2265 -536
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +14 -3
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +363 -204
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +5 -4
- package/dist/hooks/index.d.mts +4 -2
- package/dist/hooks/index.d.ts +4 -2
- package/dist/hooks/index.js +1532 -320
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +8 -3
- package/dist/index-BMfaixEx.d.mts +66 -0
- package/dist/{index-Bbn2Stvu.d.ts → index-BMsj8hJv.d.ts} +4 -3
- package/dist/{index-DcxdJ0m2.d.ts → index-BcEreCxd.d.ts} +1 -1
- package/dist/{index-Bz53bbI_.d.ts → index-Bg4rqEu2.d.ts} +145 -88
- package/dist/index-Bpmrd7mh.d.ts +66 -0
- package/dist/{index-C_S7k6z2.d.mts → index-Bvc8cjpN.d.ts} +34 -4
- package/dist/{index-Dzvj-uGt.d.mts → index-C9F6f2iz.d.mts} +4 -3
- package/dist/{index-D-uNr-JV.d.ts → index-C9qYyRgt.d.mts} +34 -4
- package/dist/{index-DDV4F9ka.d.mts → index-CNzG0MX7.d.mts} +145 -88
- package/dist/{index-CB4j_ONH.d.mts → index-Cou96DpL.d.mts} +1 -1
- package/dist/{index-B7A0lN0C.d.mts → index-Cy3K-Yao.d.ts} +21 -6
- package/dist/{index-dhPbMbvL.d.ts → index-D4ju2J_e.d.mts} +21 -6
- package/dist/index.css +613 -10
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +2597 -1104
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -10
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/{types-B4BYNw8B.d.mts → types-DzVVzMYU.d.mts} +62 -35
- package/dist/{types-B4BYNw8B.d.ts → types-DzVVzMYU.d.ts} +62 -35
- package/dist/ui/index.d.mts +4 -3
- package/dist/ui/index.d.ts +4 -3
- package/dist/ui/index.js +134 -95
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +2 -2
- package/dist/utils/index.d.mts +26 -0
- package/dist/utils/index.d.ts +26 -0
- package/dist/utils/index.js +181 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +30 -0
- package/dist/utils/index.mjs.map +1 -0
- package/example/src/pages/Wallet/components/MatchWallet.tsx +44 -9
- package/example/src/pages/Wallet/index.tsx +2 -1
- package/package.json +7 -1
- package/dist/chunk-7UTR37EJ.mjs.map +0 -1
- package/dist/chunk-CI63DTB6.mjs.map +0 -1
- package/dist/chunk-USKUYOYJ.mjs.map +0 -1
- package/dist/index-CKyWWkzU.d.mts +0 -60
- package/dist/index-DV_mRu4y.d.ts +0 -60
- /package/dist/{chunk-T72FT5NB.mjs.map → chunk-IKSPEZ4F.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { E as EmailModalProps, b as LoginBoxProps, B as ButtonProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, c as WalletType, P as PopoverPositionType, d as PopoverTypeType, e as LoginPanelProps, f as LoginModalProps, M as ModalWithHeaderProps } 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-
|
|
2
|
+
import { E as EmailModalProps, b as LoginBoxProps, B as ButtonProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, c as WalletType, P as PopoverPositionType, d as PopoverTypeType, e as LoginPanelProps, f as LoginModalProps, M as ModalWithHeaderProps, g as WalletAssetMergeType, u as useMatchWalletAssetsProps } from './types-DzVVzMYU.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-BcEreCxd.js';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
|
|
6
6
|
declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
|
|
@@ -56,6 +56,31 @@ type WalletModalProps = ModalWithHeaderProps & {
|
|
|
56
56
|
};
|
|
57
57
|
declare function WalletModal(props: WalletModalProps): false | react_jsx_runtime.JSX.Element;
|
|
58
58
|
|
|
59
|
+
declare function WalletAsset({ onAssetClick, matchWalletAssetsOptions }: {
|
|
60
|
+
onAssetClick?: (asset: WalletAssetMergeType) => () => void;
|
|
61
|
+
matchWalletAssetsOptions?: useMatchWalletAssetsProps;
|
|
62
|
+
}): react_jsx_runtime.JSX.Element;
|
|
63
|
+
|
|
64
|
+
declare function TokenDetail({ onClose, token }: {
|
|
65
|
+
onClose: () => void;
|
|
66
|
+
token: WalletAssetMergeType;
|
|
67
|
+
}): react_jsx_runtime.JSX.Element;
|
|
68
|
+
|
|
69
|
+
declare function TokenSend({ onClose, zIndex, token, onBack }: {
|
|
70
|
+
onBack: () => void;
|
|
71
|
+
onClose: () => void;
|
|
72
|
+
zIndex: number;
|
|
73
|
+
token: WalletAssetMergeType;
|
|
74
|
+
}): react_jsx_runtime.JSX.Element;
|
|
75
|
+
|
|
76
|
+
declare function TokenSendList({ close }: {
|
|
77
|
+
close: () => void;
|
|
78
|
+
}): react_jsx_runtime.JSX.Element;
|
|
79
|
+
|
|
80
|
+
declare function TransactionList({ scrollableTarget }: {
|
|
81
|
+
scrollableTarget?: ReactNode;
|
|
82
|
+
}): react_jsx_runtime.JSX.Element;
|
|
83
|
+
|
|
59
84
|
declare const index_BTCModal: typeof BTCModal;
|
|
60
85
|
declare const index_Button: typeof Button;
|
|
61
86
|
declare const index_EmailModal: typeof EmailModal;
|
|
@@ -72,10 +97,15 @@ declare const index_Popover: typeof Popover;
|
|
|
72
97
|
declare const index_SOLModal: typeof SOLModal;
|
|
73
98
|
declare const index_TONModal: typeof TONModal;
|
|
74
99
|
declare const index_TRONModal: typeof TRONModal;
|
|
100
|
+
declare const index_TokenDetail: typeof TokenDetail;
|
|
101
|
+
declare const index_TokenSend: typeof TokenSend;
|
|
102
|
+
declare const index_TokenSendList: typeof TokenSendList;
|
|
103
|
+
declare const index_TransactionList: typeof TransactionList;
|
|
75
104
|
declare const index_UsernameModal: typeof UsernameModal;
|
|
105
|
+
declare const index_WalletAsset: typeof WalletAsset;
|
|
76
106
|
declare const index_WalletModal: typeof WalletModal;
|
|
77
107
|
declare namespace index {
|
|
78
|
-
export { index_BTCModal as BTCModal, index_Button as Button, index_EmailModal as EmailModal, index_Field as Field, index_Input as Input, index_LoginBox as LoginBox, index_LoginButton as LoginButton, index_LoginModal as LoginModal, index_LoginPanel as LoginPanel, index_Modal as Modal, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_Popover as Popover, index_SOLModal as SOLModal, index_TONModal as TONModal, index_TRONModal as TRONModal, index_UsernameModal as UsernameModal, index_WalletModal as WalletModal };
|
|
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, index_SOLModal as SOLModal, 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 };
|
|
79
109
|
}
|
|
80
110
|
|
|
81
|
-
export { BTCModal as B, EmailModal as E, LoginBox as L, SOLModal as S, TRONModal as T, UsernameModal as U, WalletModal as W, LoginButton as a, LoginPanel as b, LoginModal as c, TONModal as d, index as i };
|
|
111
|
+
export { BTCModal as B, EmailModal as E, LoginBox as L, SOLModal as S, TRONModal as T, UsernameModal as U, WalletModal as W, LoginButton as a, LoginPanel as b, LoginModal as c, TONModal as d, WalletAsset as e, TokenDetail as f, TokenSend as g, TokenSendList as h, index as i, TransactionList as j };
|
|
@@ -1,16 +1,17 @@
|
|
|
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-Cou96DpL.mjs';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import {
|
|
3
|
+
import { s as DrawerProps, _ as WalletPanelProps, N as UIProps } from './types-DzVVzMYU.mjs';
|
|
4
4
|
import { Hash, Chain } from 'viem';
|
|
5
5
|
import { CSSProperties } from 'react';
|
|
6
6
|
|
|
7
|
-
declare function Drawer({ children, showClose, onClose, isOpen, title, zIndex }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function Drawer({ children, showClose, onClose, isOpen, title, zIndex, onBack }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
8
8
|
|
|
9
9
|
type HashPanelProps = {
|
|
10
10
|
hash?: Hash | null;
|
|
11
11
|
chain?: Chain | null;
|
|
12
12
|
isOpen: boolean;
|
|
13
13
|
onClose: () => void;
|
|
14
|
+
zIndex?: number;
|
|
14
15
|
};
|
|
15
16
|
declare function export_default(props: HashPanelProps): false | react_jsx_runtime.JSX.Element;
|
|
16
17
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { E as EmailModalProps, b as LoginBoxProps, B as ButtonProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, c as WalletType, P as PopoverPositionType, d as PopoverTypeType, e as LoginPanelProps, f as LoginModalProps, M as ModalWithHeaderProps } 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-
|
|
2
|
+
import { E as EmailModalProps, b as LoginBoxProps, B as ButtonProps, O as OtherLoginMethodType, R as RecommendLoginMethodType, c as WalletType, P as PopoverPositionType, d as PopoverTypeType, e as LoginPanelProps, f as LoginModalProps, M as ModalWithHeaderProps, g as WalletAssetMergeType, u as useMatchWalletAssetsProps } from './types-DzVVzMYU.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-Cou96DpL.mjs';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
|
|
6
6
|
declare function EmailModal({ isOpen, width, onClose, onBack, onLogin }: EmailModalProps): react_jsx_runtime.JSX.Element;
|
|
@@ -56,6 +56,31 @@ type WalletModalProps = ModalWithHeaderProps & {
|
|
|
56
56
|
};
|
|
57
57
|
declare function WalletModal(props: WalletModalProps): false | react_jsx_runtime.JSX.Element;
|
|
58
58
|
|
|
59
|
+
declare function WalletAsset({ onAssetClick, matchWalletAssetsOptions }: {
|
|
60
|
+
onAssetClick?: (asset: WalletAssetMergeType) => () => void;
|
|
61
|
+
matchWalletAssetsOptions?: useMatchWalletAssetsProps;
|
|
62
|
+
}): react_jsx_runtime.JSX.Element;
|
|
63
|
+
|
|
64
|
+
declare function TokenDetail({ onClose, token }: {
|
|
65
|
+
onClose: () => void;
|
|
66
|
+
token: WalletAssetMergeType;
|
|
67
|
+
}): react_jsx_runtime.JSX.Element;
|
|
68
|
+
|
|
69
|
+
declare function TokenSend({ onClose, zIndex, token, onBack }: {
|
|
70
|
+
onBack: () => void;
|
|
71
|
+
onClose: () => void;
|
|
72
|
+
zIndex: number;
|
|
73
|
+
token: WalletAssetMergeType;
|
|
74
|
+
}): react_jsx_runtime.JSX.Element;
|
|
75
|
+
|
|
76
|
+
declare function TokenSendList({ close }: {
|
|
77
|
+
close: () => void;
|
|
78
|
+
}): react_jsx_runtime.JSX.Element;
|
|
79
|
+
|
|
80
|
+
declare function TransactionList({ scrollableTarget }: {
|
|
81
|
+
scrollableTarget?: ReactNode;
|
|
82
|
+
}): react_jsx_runtime.JSX.Element;
|
|
83
|
+
|
|
59
84
|
declare const index_BTCModal: typeof BTCModal;
|
|
60
85
|
declare const index_Button: typeof Button;
|
|
61
86
|
declare const index_EmailModal: typeof EmailModal;
|
|
@@ -72,10 +97,15 @@ declare const index_Popover: typeof Popover;
|
|
|
72
97
|
declare const index_SOLModal: typeof SOLModal;
|
|
73
98
|
declare const index_TONModal: typeof TONModal;
|
|
74
99
|
declare const index_TRONModal: typeof TRONModal;
|
|
100
|
+
declare const index_TokenDetail: typeof TokenDetail;
|
|
101
|
+
declare const index_TokenSend: typeof TokenSend;
|
|
102
|
+
declare const index_TokenSendList: typeof TokenSendList;
|
|
103
|
+
declare const index_TransactionList: typeof TransactionList;
|
|
75
104
|
declare const index_UsernameModal: typeof UsernameModal;
|
|
105
|
+
declare const index_WalletAsset: typeof WalletAsset;
|
|
76
106
|
declare const index_WalletModal: typeof WalletModal;
|
|
77
107
|
declare namespace index {
|
|
78
|
-
export { index_BTCModal as BTCModal, index_Button as Button, index_EmailModal as EmailModal, index_Field as Field, index_Input as Input, index_LoginBox as LoginBox, index_LoginButton as LoginButton, index_LoginModal as LoginModal, index_LoginPanel as LoginPanel, index_Modal as Modal, index_ModalWithHeader as ModalWithHeader, index_Overlay as Overlay, index_Popover as Popover, index_SOLModal as SOLModal, index_TONModal as TONModal, index_TRONModal as TRONModal, index_UsernameModal as UsernameModal, index_WalletModal as WalletModal };
|
|
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, index_SOLModal as SOLModal, 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 };
|
|
79
109
|
}
|
|
80
110
|
|
|
81
|
-
export { BTCModal as B, EmailModal as E, LoginBox as L, SOLModal as S, TRONModal as T, UsernameModal as U, WalletModal as W, LoginButton as a, LoginPanel as b, LoginModal as c, TONModal as d, index as i };
|
|
111
|
+
export { BTCModal as B, EmailModal as E, LoginBox as L, SOLModal as S, TRONModal as T, UsernameModal as U, WalletModal as W, LoginButton as a, LoginPanel as b, LoginModal as c, TONModal as d, WalletAsset as e, TokenDetail as f, TokenSend as g, TokenSendList as h, index as i, TransactionList as j };
|
|
@@ -1,13 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as ISocialLoginMethod, i as OverviewInfo, C as CEXType, j as LoginMethodType, I as IMatchEvents, U as UserChainType, A as Address, H as Hash$1, k as AnyObject, l as UserTransactionType, u as useMatchWalletAssetsProps, m as UserImportTokenType, n as UserAssetToken, g as WalletAssetMergeType } from './types-DzVVzMYU.mjs';
|
|
2
2
|
import * as viem from 'viem';
|
|
3
3
|
import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
|
|
4
4
|
import { C as ChainType } from './mpc-CTbBWHld.mjs';
|
|
5
5
|
import { Hash } from 'viem/types/misc';
|
|
6
6
|
import { Abi } from 'abitype';
|
|
7
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
8
|
import React, { ReactNode } from 'react';
|
|
8
9
|
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
9
10
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
10
11
|
|
|
12
|
+
interface ModalContextType {
|
|
13
|
+
show: (content: (props: {
|
|
14
|
+
close: () => void;
|
|
15
|
+
zIndex: number;
|
|
16
|
+
}) => ReactNode, index?: number) => void;
|
|
17
|
+
open: (props: {
|
|
18
|
+
title: ReactNode;
|
|
19
|
+
content: React.ComponentType<{
|
|
20
|
+
close: () => void;
|
|
21
|
+
zIndex: number;
|
|
22
|
+
}>;
|
|
23
|
+
index?: number;
|
|
24
|
+
}) => void;
|
|
25
|
+
}
|
|
26
|
+
declare function ModalProvider({ children }: {
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
}): react_jsx_runtime.JSX.Element;
|
|
29
|
+
declare function useModal(): ModalContextType;
|
|
30
|
+
|
|
31
|
+
interface ToastContextType {
|
|
32
|
+
show: (options: {
|
|
33
|
+
icon?: ReactNode;
|
|
34
|
+
timeout?: number;
|
|
35
|
+
text: ReactNode;
|
|
36
|
+
}) => void;
|
|
37
|
+
success: (text: ReactNode, timeout?: number) => void;
|
|
38
|
+
error: (text: ReactNode, timeout?: number) => void;
|
|
39
|
+
}
|
|
40
|
+
declare function ToastProvider({ children, zIndex }: {
|
|
41
|
+
children: ReactNode;
|
|
42
|
+
zIndex?: number;
|
|
43
|
+
}): react_jsx_runtime.JSX.Element;
|
|
44
|
+
declare function useToast(): ToastContextType;
|
|
45
|
+
|
|
11
46
|
declare const LOGIN_METHOD_MAP: {
|
|
12
47
|
email: string;
|
|
13
48
|
evm: string;
|
|
@@ -108,30 +143,6 @@ declare function useWallet(): UseWalletReturnType;
|
|
|
108
143
|
|
|
109
144
|
declare function useCopyClipboard(timeout?: number): [boolean, (toCopy: string) => void];
|
|
110
145
|
|
|
111
|
-
interface ModalContextType {
|
|
112
|
-
show: (content: (props: {
|
|
113
|
-
close: () => void;
|
|
114
|
-
}) => ReactNode) => void;
|
|
115
|
-
open: (props: {
|
|
116
|
-
title: ReactNode;
|
|
117
|
-
content: React.ComponentType<{
|
|
118
|
-
close: () => void;
|
|
119
|
-
}>;
|
|
120
|
-
}) => void;
|
|
121
|
-
}
|
|
122
|
-
declare function useModal(): ModalContextType;
|
|
123
|
-
|
|
124
|
-
interface ToastContextType {
|
|
125
|
-
show: (options: {
|
|
126
|
-
icon?: ReactNode;
|
|
127
|
-
timeout?: number;
|
|
128
|
-
text: ReactNode;
|
|
129
|
-
}) => void;
|
|
130
|
-
success: (text: ReactNode, timeout?: number) => void;
|
|
131
|
-
error: (text: ReactNode, timeout?: number) => void;
|
|
132
|
-
}
|
|
133
|
-
declare function useToast(): ToastContextType;
|
|
134
|
-
|
|
135
146
|
declare function useMatchChain(): {
|
|
136
147
|
list: UserChainType[] | undefined;
|
|
137
148
|
chainId: number | null;
|
|
@@ -193,17 +204,17 @@ declare function useMatchChain(): {
|
|
|
193
204
|
transactions: includeTransactions extends true ? ({
|
|
194
205
|
type: "legacy";
|
|
195
206
|
chainId?: number | undefined;
|
|
207
|
+
value: bigint;
|
|
196
208
|
input: viem.Hex;
|
|
209
|
+
s: viem.Hex;
|
|
210
|
+
r: viem.Hex;
|
|
211
|
+
v: bigint;
|
|
212
|
+
yParity?: undefined;
|
|
197
213
|
hash: viem.Hash;
|
|
198
214
|
from: viem.Address;
|
|
199
215
|
gas: bigint;
|
|
200
216
|
nonce: number;
|
|
201
217
|
to: viem.Address | null;
|
|
202
|
-
value: bigint;
|
|
203
|
-
r: viem.Hex;
|
|
204
|
-
s: viem.Hex;
|
|
205
|
-
v: bigint;
|
|
206
|
-
yParity?: undefined;
|
|
207
218
|
blobVersionedHashes?: undefined;
|
|
208
219
|
gasPrice: bigint;
|
|
209
220
|
maxFeePerBlobGas?: undefined;
|
|
@@ -211,23 +222,23 @@ declare function useMatchChain(): {
|
|
|
211
222
|
maxPriorityFeePerGas?: undefined;
|
|
212
223
|
accessList?: undefined;
|
|
213
224
|
typeHex: viem.Hex | null;
|
|
214
|
-
|
|
215
|
-
|
|
225
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
|
|
226
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
|
|
216
227
|
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;
|
|
217
228
|
} | {
|
|
218
229
|
type: "eip2930";
|
|
219
230
|
chainId: number;
|
|
231
|
+
value: bigint;
|
|
220
232
|
input: viem.Hex;
|
|
233
|
+
s: viem.Hex;
|
|
234
|
+
r: viem.Hex;
|
|
235
|
+
v: bigint;
|
|
236
|
+
yParity: number;
|
|
221
237
|
hash: viem.Hash;
|
|
222
238
|
from: viem.Address;
|
|
223
239
|
gas: bigint;
|
|
224
240
|
nonce: number;
|
|
225
241
|
to: viem.Address | null;
|
|
226
|
-
value: bigint;
|
|
227
|
-
r: viem.Hex;
|
|
228
|
-
s: viem.Hex;
|
|
229
|
-
v: bigint;
|
|
230
|
-
yParity: number;
|
|
231
242
|
blobVersionedHashes?: undefined;
|
|
232
243
|
gasPrice: bigint;
|
|
233
244
|
maxFeePerBlobGas?: undefined;
|
|
@@ -235,23 +246,23 @@ declare function useMatchChain(): {
|
|
|
235
246
|
maxPriorityFeePerGas?: undefined;
|
|
236
247
|
accessList: viem.AccessList;
|
|
237
248
|
typeHex: viem.Hex | null;
|
|
238
|
-
|
|
239
|
-
|
|
249
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
|
|
250
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
|
|
240
251
|
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;
|
|
241
252
|
} | {
|
|
242
253
|
type: "eip1559";
|
|
243
254
|
chainId: number;
|
|
255
|
+
value: bigint;
|
|
244
256
|
input: viem.Hex;
|
|
257
|
+
s: viem.Hex;
|
|
258
|
+
r: viem.Hex;
|
|
259
|
+
v: bigint;
|
|
260
|
+
yParity: number;
|
|
245
261
|
hash: viem.Hash;
|
|
246
262
|
from: viem.Address;
|
|
247
263
|
gas: bigint;
|
|
248
264
|
nonce: number;
|
|
249
265
|
to: viem.Address | null;
|
|
250
|
-
value: bigint;
|
|
251
|
-
r: viem.Hex;
|
|
252
|
-
s: viem.Hex;
|
|
253
|
-
v: bigint;
|
|
254
|
-
yParity: number;
|
|
255
266
|
blobVersionedHashes?: undefined;
|
|
256
267
|
gasPrice?: undefined;
|
|
257
268
|
maxFeePerBlobGas?: undefined;
|
|
@@ -259,23 +270,23 @@ declare function useMatchChain(): {
|
|
|
259
270
|
maxPriorityFeePerGas: bigint;
|
|
260
271
|
accessList: viem.AccessList;
|
|
261
272
|
typeHex: viem.Hex | null;
|
|
262
|
-
|
|
263
|
-
|
|
273
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
|
|
274
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
|
|
264
275
|
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;
|
|
265
276
|
} | {
|
|
266
277
|
type: "eip4844";
|
|
267
278
|
chainId: number;
|
|
279
|
+
value: bigint;
|
|
268
280
|
input: viem.Hex;
|
|
281
|
+
s: viem.Hex;
|
|
282
|
+
r: viem.Hex;
|
|
283
|
+
v: bigint;
|
|
284
|
+
yParity: number;
|
|
269
285
|
hash: viem.Hash;
|
|
270
286
|
from: viem.Address;
|
|
271
287
|
gas: bigint;
|
|
272
288
|
nonce: number;
|
|
273
289
|
to: viem.Address | null;
|
|
274
|
-
value: bigint;
|
|
275
|
-
r: viem.Hex;
|
|
276
|
-
s: viem.Hex;
|
|
277
|
-
v: bigint;
|
|
278
|
-
yParity: number;
|
|
279
290
|
blobVersionedHashes: readonly viem.Hex[];
|
|
280
291
|
gasPrice?: undefined;
|
|
281
292
|
maxFeePerBlobGas: bigint;
|
|
@@ -283,8 +294,8 @@ declare function useMatchChain(): {
|
|
|
283
294
|
maxPriorityFeePerGas: bigint;
|
|
284
295
|
accessList: viem.AccessList;
|
|
285
296
|
typeHex: viem.Hex | null;
|
|
286
|
-
|
|
287
|
-
|
|
297
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
|
|
298
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
|
|
288
299
|
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;
|
|
289
300
|
})[] : `0x${string}`[];
|
|
290
301
|
}>;
|
|
@@ -314,17 +325,17 @@ declare function useMatchChain(): {
|
|
|
314
325
|
getTransaction: <blockTag extends viem.BlockTag = "latest">(args: viem.GetTransactionParameters<blockTag>) => Promise<{
|
|
315
326
|
type: "legacy";
|
|
316
327
|
chainId?: number | undefined;
|
|
328
|
+
value: bigint;
|
|
317
329
|
input: viem.Hex;
|
|
330
|
+
s: viem.Hex;
|
|
331
|
+
r: viem.Hex;
|
|
332
|
+
v: bigint;
|
|
333
|
+
yParity?: undefined;
|
|
318
334
|
hash: viem.Hash;
|
|
319
335
|
from: viem.Address;
|
|
320
336
|
gas: bigint;
|
|
321
337
|
nonce: number;
|
|
322
338
|
to: viem.Address | null;
|
|
323
|
-
value: bigint;
|
|
324
|
-
r: viem.Hex;
|
|
325
|
-
s: viem.Hex;
|
|
326
|
-
v: bigint;
|
|
327
|
-
yParity?: undefined;
|
|
328
339
|
blobVersionedHashes?: undefined;
|
|
329
340
|
gasPrice: bigint;
|
|
330
341
|
maxFeePerBlobGas?: undefined;
|
|
@@ -332,23 +343,23 @@ declare function useMatchChain(): {
|
|
|
332
343
|
maxPriorityFeePerGas?: undefined;
|
|
333
344
|
accessList?: undefined;
|
|
334
345
|
typeHex: viem.Hex | null;
|
|
335
|
-
|
|
336
|
-
|
|
346
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
|
|
347
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
|
|
337
348
|
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;
|
|
338
349
|
} | {
|
|
339
350
|
type: "eip2930";
|
|
340
351
|
chainId: number;
|
|
352
|
+
value: bigint;
|
|
341
353
|
input: viem.Hex;
|
|
354
|
+
s: viem.Hex;
|
|
355
|
+
r: viem.Hex;
|
|
356
|
+
v: bigint;
|
|
357
|
+
yParity: number;
|
|
342
358
|
hash: viem.Hash;
|
|
343
359
|
from: viem.Address;
|
|
344
360
|
gas: bigint;
|
|
345
361
|
nonce: number;
|
|
346
362
|
to: viem.Address | null;
|
|
347
|
-
value: bigint;
|
|
348
|
-
r: viem.Hex;
|
|
349
|
-
s: viem.Hex;
|
|
350
|
-
v: bigint;
|
|
351
|
-
yParity: number;
|
|
352
363
|
blobVersionedHashes?: undefined;
|
|
353
364
|
gasPrice: bigint;
|
|
354
365
|
maxFeePerBlobGas?: undefined;
|
|
@@ -356,23 +367,23 @@ declare function useMatchChain(): {
|
|
|
356
367
|
maxPriorityFeePerGas?: undefined;
|
|
357
368
|
accessList: viem.AccessList;
|
|
358
369
|
typeHex: viem.Hex | null;
|
|
359
|
-
|
|
360
|
-
|
|
370
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
|
|
371
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
|
|
361
372
|
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;
|
|
362
373
|
} | {
|
|
363
374
|
type: "eip1559";
|
|
364
375
|
chainId: number;
|
|
376
|
+
value: bigint;
|
|
365
377
|
input: viem.Hex;
|
|
378
|
+
s: viem.Hex;
|
|
379
|
+
r: viem.Hex;
|
|
380
|
+
v: bigint;
|
|
381
|
+
yParity: number;
|
|
366
382
|
hash: viem.Hash;
|
|
367
383
|
from: viem.Address;
|
|
368
384
|
gas: bigint;
|
|
369
385
|
nonce: number;
|
|
370
386
|
to: viem.Address | null;
|
|
371
|
-
value: bigint;
|
|
372
|
-
r: viem.Hex;
|
|
373
|
-
s: viem.Hex;
|
|
374
|
-
v: bigint;
|
|
375
|
-
yParity: number;
|
|
376
387
|
blobVersionedHashes?: undefined;
|
|
377
388
|
gasPrice?: undefined;
|
|
378
389
|
maxFeePerBlobGas?: undefined;
|
|
@@ -380,23 +391,23 @@ declare function useMatchChain(): {
|
|
|
380
391
|
maxPriorityFeePerGas: bigint;
|
|
381
392
|
accessList: viem.AccessList;
|
|
382
393
|
typeHex: viem.Hex | null;
|
|
383
|
-
|
|
384
|
-
|
|
394
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
|
|
395
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
|
|
385
396
|
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;
|
|
386
397
|
} | {
|
|
387
398
|
type: "eip4844";
|
|
388
399
|
chainId: number;
|
|
400
|
+
value: bigint;
|
|
389
401
|
input: viem.Hex;
|
|
402
|
+
s: viem.Hex;
|
|
403
|
+
r: viem.Hex;
|
|
404
|
+
v: bigint;
|
|
405
|
+
yParity: number;
|
|
390
406
|
hash: viem.Hash;
|
|
391
407
|
from: viem.Address;
|
|
392
408
|
gas: bigint;
|
|
393
409
|
nonce: number;
|
|
394
410
|
to: viem.Address | null;
|
|
395
|
-
value: bigint;
|
|
396
|
-
r: viem.Hex;
|
|
397
|
-
s: viem.Hex;
|
|
398
|
-
v: bigint;
|
|
399
|
-
yParity: number;
|
|
400
411
|
blobVersionedHashes: readonly viem.Hex[];
|
|
401
412
|
gasPrice?: undefined;
|
|
402
413
|
maxFeePerBlobGas: bigint;
|
|
@@ -404,8 +415,8 @@ declare function useMatchChain(): {
|
|
|
404
415
|
maxPriorityFeePerGas: bigint;
|
|
405
416
|
accessList: viem.AccessList;
|
|
406
417
|
typeHex: viem.Hex | null;
|
|
407
|
-
|
|
408
|
-
|
|
418
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
|
|
419
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
|
|
409
420
|
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;
|
|
410
421
|
}>;
|
|
411
422
|
getTransactionConfirmations: (args: viem.GetTransactionConfirmationsParameters<UserChainType>) => Promise<viem.GetTransactionConfirmationsReturnType>;
|
|
@@ -3216,21 +3227,65 @@ declare function useMatchChain(): {
|
|
|
3216
3227
|
transport?: undefined;
|
|
3217
3228
|
type?: undefined;
|
|
3218
3229
|
uid?: undefined;
|
|
3219
|
-
} & viem.ExactPartial<Pick<viem.PublicActions<viem.HttpTransport, UserChainType, undefined>, "
|
|
3230
|
+
} & viem.ExactPartial<Pick<viem.PublicActions<viem.HttpTransport, UserChainType, undefined>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<viem.WalletActions<UserChainType, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: viem.Client<viem.HttpTransport, UserChainType, undefined, viem.PublicRpcSchema, viem.PublicActions<viem.HttpTransport, UserChainType>>) => client) => viem.Client<viem.HttpTransport, UserChainType, undefined, viem.PublicRpcSchema, { [K in keyof client]: client[K]; } & viem.PublicActions<viem.HttpTransport, UserChainType>>;
|
|
3220
3231
|
} | null;
|
|
3232
|
+
formatUnits: (value: bigint) => string;
|
|
3233
|
+
parseUnits: (value: string) => bigint;
|
|
3221
3234
|
};
|
|
3222
3235
|
|
|
3236
|
+
interface TransactionInfo {
|
|
3237
|
+
from: Address;
|
|
3238
|
+
hash: Hash$1;
|
|
3239
|
+
input: Hash$1;
|
|
3240
|
+
timestamp: string;
|
|
3241
|
+
to: Address;
|
|
3242
|
+
value: string;
|
|
3243
|
+
source: "local";
|
|
3244
|
+
extra?: AnyObject;
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3223
3247
|
declare function useMatchWallet(): {
|
|
3224
3248
|
showReceiveModal: () => void;
|
|
3225
3249
|
showImportTokenModal: () => void;
|
|
3250
|
+
showSendListModal: () => void;
|
|
3226
3251
|
};
|
|
3227
|
-
declare function useMatchWalletRecords(
|
|
3228
|
-
|
|
3229
|
-
}): {
|
|
3230
|
-
items: UserTransactionType[];
|
|
3252
|
+
declare function useMatchWalletRecords(): {
|
|
3253
|
+
items: (UserTransactionType | TransactionInfo)[];
|
|
3231
3254
|
fetchMoreData: () => Promise<void>;
|
|
3232
3255
|
hasMore: boolean;
|
|
3233
3256
|
};
|
|
3257
|
+
declare function useMatchWalletAssets({ importTokenOptions, assetListOptions }?: useMatchWalletAssetsProps): {
|
|
3258
|
+
importTokenQuery: _tanstack_react_query.UseQueryResult<UserImportTokenType[], Error>;
|
|
3259
|
+
assetListQuery: _tanstack_react_query.UseQueryResult<UserAssetToken[], Error>;
|
|
3260
|
+
mergedAssets: any[];
|
|
3261
|
+
};
|
|
3262
|
+
declare function useMatchWalletAssetList({ list }: {
|
|
3263
|
+
list: WalletAssetMergeType[];
|
|
3264
|
+
}): {
|
|
3265
|
+
list: WalletAssetMergeType[];
|
|
3266
|
+
isLoading: boolean;
|
|
3267
|
+
isFetched: boolean;
|
|
3268
|
+
nativeBalanceQuery: _tanstack_react_query.UseQueryResult<bigint | null, Error>;
|
|
3269
|
+
erc20BalanceQuery: _tanstack_react_query.UseQueryResult<({
|
|
3270
|
+
error?: undefined;
|
|
3271
|
+
result: unknown;
|
|
3272
|
+
status: "success";
|
|
3273
|
+
} | {
|
|
3274
|
+
error: Error;
|
|
3275
|
+
result?: undefined;
|
|
3276
|
+
status: "failure";
|
|
3277
|
+
})[], Error>;
|
|
3278
|
+
nativeBalance: bigint | null | undefined;
|
|
3279
|
+
erc20Balances: ({
|
|
3280
|
+
error?: undefined;
|
|
3281
|
+
result: unknown;
|
|
3282
|
+
status: "success";
|
|
3283
|
+
} | {
|
|
3284
|
+
error: Error;
|
|
3285
|
+
result?: undefined;
|
|
3286
|
+
status: "failure";
|
|
3287
|
+
})[] | undefined;
|
|
3288
|
+
};
|
|
3234
3289
|
|
|
3235
3290
|
declare function useReceipt({ chainId, hash }: {
|
|
3236
3291
|
chainId: number;
|
|
@@ -3254,6 +3309,8 @@ declare const index_useLayout: typeof useLayout;
|
|
|
3254
3309
|
declare const index_useMatchChain: typeof useMatchChain;
|
|
3255
3310
|
declare const index_useMatchEvents: typeof useMatchEvents;
|
|
3256
3311
|
declare const index_useMatchWallet: typeof useMatchWallet;
|
|
3312
|
+
declare const index_useMatchWalletAssetList: typeof useMatchWalletAssetList;
|
|
3313
|
+
declare const index_useMatchWalletAssets: typeof useMatchWalletAssets;
|
|
3257
3314
|
declare const index_useMatchWalletRecords: typeof useMatchWalletRecords;
|
|
3258
3315
|
declare const index_useModal: typeof useModal;
|
|
3259
3316
|
declare const index_useReceipt: typeof useReceipt;
|
|
@@ -3262,7 +3319,7 @@ declare const index_useTransaction: typeof useTransaction;
|
|
|
3262
3319
|
declare const index_useUserInfo: typeof useUserInfo;
|
|
3263
3320
|
declare const index_useWallet: typeof useWallet;
|
|
3264
3321
|
declare namespace index {
|
|
3265
|
-
export { index_useCopyClipboard as useCopyClipboard, index_useLayout as useLayout, index_useMatchChain as useMatchChain, index_useMatchEvents as useMatchEvents, index_useMatchWallet as useMatchWallet, index_useMatchWalletRecords as useMatchWalletRecords, index_useModal as useModal, index_useReceipt as useReceipt, index_useToast as useToast, index_useTransaction as useTransaction, index_useUserInfo as useUserInfo, index_useWallet as useWallet };
|
|
3322
|
+
export { index_useCopyClipboard as useCopyClipboard, index_useLayout as useLayout, index_useMatchChain as useMatchChain, index_useMatchEvents as useMatchEvents, index_useMatchWallet as useMatchWallet, index_useMatchWalletAssetList as useMatchWalletAssetList, index_useMatchWalletAssets as useMatchWalletAssets, index_useMatchWalletRecords as useMatchWalletRecords, index_useModal as useModal, index_useReceipt as useReceipt, index_useToast as useToast, index_useTransaction as useTransaction, index_useUserInfo as useUserInfo, index_useWallet as useWallet };
|
|
3266
3323
|
}
|
|
3267
3324
|
|
|
3268
|
-
export { useMatchEvents as a, useWallet as b, useCopyClipboard as c, useModal as d, useToast as e, useMatchChain as f, useMatchWallet as g, useMatchWalletRecords as h, index as i,
|
|
3325
|
+
export { ModalProvider as M, ToastProvider as T, useMatchEvents as a, useWallet as b, useCopyClipboard as c, useModal as d, useToast as e, useMatchChain as f, useMatchWallet as g, useMatchWalletRecords as h, index as i, useMatchWalletAssets as j, useMatchWalletAssetList as k, useReceipt as l, useTransaction as m, useLayout as n, useUserInfo as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode, PropsWithChildren } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { x as InputProps, B as ButtonProps, F as ModalProps, M as ModalWithHeaderProps, K as PopoverProps } from './types-DzVVzMYU.mjs';
|
|
4
4
|
|
|
5
5
|
declare function Field({ label, children, error, required, className }: {
|
|
6
6
|
label: ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { UseQueryOptions } from '@tanstack/react-query/src/types';
|
|
3
|
-
import {
|
|
3
|
+
import { J as PohZkpassParams, l as UserTransactionType, S as UserTransactionNextPageParams, X as WalletAssetType, z as MetaPageType, q as BindItemType, p as BindInfoType, G as PohItemType, U as UserChainType, n as UserAssetToken, m as UserImportTokenType, Y as WalletChainType, Z as WalletNFTType } from './types-DzVVzMYU.js';
|
|
4
4
|
|
|
5
5
|
declare const isSuccess: (res: {
|
|
6
6
|
code: number;
|
|
@@ -40,13 +40,15 @@ declare const userImportTokenApi: (data: {
|
|
|
40
40
|
decimals: string;
|
|
41
41
|
}) => Promise<MyResponseType<any>>;
|
|
42
42
|
declare const getUserWalletTransactionsApi: (data: {
|
|
43
|
+
address?: string;
|
|
43
44
|
chain_id: string;
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
page?: string;
|
|
46
|
+
block_number?: number;
|
|
47
|
+
index?: number;
|
|
48
|
+
items_count?: number;
|
|
46
49
|
}) => Promise<MyResponseType<{
|
|
47
50
|
transactions: UserTransactionType[];
|
|
48
|
-
|
|
49
|
-
offset: number;
|
|
51
|
+
next_page_params: UserTransactionNextPageParams;
|
|
50
52
|
}>>;
|
|
51
53
|
declare const getWalletAssetListApi: (data: {
|
|
52
54
|
chain_id: string;
|
|
@@ -96,6 +98,7 @@ declare function useChainListQuery(options?: Partial<Omit<UseQueryOptions<UserCh
|
|
|
96
98
|
declare function useAssetListQuery({ chainId, ...options }: {
|
|
97
99
|
chainId: number;
|
|
98
100
|
} & Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<UserAssetToken[], Error>;
|
|
101
|
+
declare const USER_IMPORT_TOKEN_LIST_KEY = "match-user-import-token-list";
|
|
99
102
|
declare function useImportTokenListQuery({ chainId, ...options }: {
|
|
100
103
|
chainId: number;
|
|
101
104
|
} & Partial<Omit<UseQueryOptions<UserImportTokenType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<UserImportTokenType[], Error>;
|
|
@@ -104,18 +107,30 @@ declare function useWalletNftListQuery({ chainId, address, ...options }: {
|
|
|
104
107
|
chainId: string;
|
|
105
108
|
address: string;
|
|
106
109
|
} & Partial<Omit<UseQueryOptions<WalletNFTType[]>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<WalletNFTType[], Error>;
|
|
110
|
+
declare function useWalletAssetListQuery({ chainId, address, ...options }: {
|
|
111
|
+
chainId: string;
|
|
112
|
+
address: string;
|
|
113
|
+
} & Partial<Omit<UseQueryOptions<{
|
|
114
|
+
asset_list: WalletAssetType[];
|
|
115
|
+
asset_total_balance: string;
|
|
116
|
+
} | null>, 'queryKey' | 'queryFn'>>): _tanstack_react_query.UseQueryResult<{
|
|
117
|
+
asset_list: WalletAssetType[];
|
|
118
|
+
asset_total_balance: string;
|
|
119
|
+
} | null, Error>;
|
|
107
120
|
|
|
121
|
+
declare const wallet_USER_IMPORT_TOKEN_LIST_KEY: typeof USER_IMPORT_TOKEN_LIST_KEY;
|
|
108
122
|
declare const wallet_getUserWalletTransactionsApi: typeof getUserWalletTransactionsApi;
|
|
109
123
|
declare const wallet_getWalletAssetListApi: typeof getWalletAssetListApi;
|
|
110
124
|
declare const wallet_getWalletListApi: typeof getWalletListApi;
|
|
111
125
|
declare const wallet_useAssetListQuery: typeof useAssetListQuery;
|
|
112
126
|
declare const wallet_useChainListQuery: typeof useChainListQuery;
|
|
113
127
|
declare const wallet_useImportTokenListQuery: typeof useImportTokenListQuery;
|
|
128
|
+
declare const wallet_useWalletAssetListQuery: typeof useWalletAssetListQuery;
|
|
114
129
|
declare const wallet_useWalletChainListQuery: typeof useWalletChainListQuery;
|
|
115
130
|
declare const wallet_useWalletNftListQuery: typeof useWalletNftListQuery;
|
|
116
131
|
declare const wallet_userImportTokenApi: typeof userImportTokenApi;
|
|
117
132
|
declare namespace wallet {
|
|
118
|
-
export { wallet_getUserWalletTransactionsApi as getUserWalletTransactionsApi, wallet_getWalletAssetListApi as getWalletAssetListApi, wallet_getWalletListApi as getWalletListApi, wallet_useAssetListQuery as useAssetListQuery, wallet_useChainListQuery as useChainListQuery, wallet_useImportTokenListQuery as useImportTokenListQuery, wallet_useWalletChainListQuery as useWalletChainListQuery, wallet_useWalletNftListQuery as useWalletNftListQuery, wallet_userImportTokenApi as userImportTokenApi };
|
|
133
|
+
export { wallet_USER_IMPORT_TOKEN_LIST_KEY as USER_IMPORT_TOKEN_LIST_KEY, wallet_getUserWalletTransactionsApi as getUserWalletTransactionsApi, wallet_getWalletAssetListApi as getWalletAssetListApi, wallet_getWalletListApi as getWalletListApi, wallet_useAssetListQuery as useAssetListQuery, wallet_useChainListQuery as useChainListQuery, wallet_useImportTokenListQuery as useImportTokenListQuery, wallet_useWalletAssetListQuery as useWalletAssetListQuery, wallet_useWalletChainListQuery as useWalletChainListQuery, wallet_useWalletNftListQuery as useWalletNftListQuery, wallet_userImportTokenApi as userImportTokenApi };
|
|
119
134
|
}
|
|
120
135
|
|
|
121
136
|
declare const index_bind: typeof bind;
|