@dodoex/wallet-web3-react 0.0.1-beta.6 → 0.0.1-beta.8
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/index.cjs +24 -2
- package/dist/index.js +24 -2
- package/dist/types/WalletConnectProvider.d.ts +1 -1
- package/dist/types/components/WalletTag.d.ts +1 -1
- package/dist/types/hooks/useTransactionList.d.ts +254 -14
- package/dist/types/index.d.ts +1 -0
- package/package.json +4 -4
- package/src/WalletConnect/ConnectAlchemy/useConnectAlchemy.ts +1 -1
- package/src/WalletConnect/ConnectPage.tsx +1 -1
- package/src/WalletConnectProvider.tsx +1 -1
- package/src/components/WalletTag.tsx +1 -1
- package/src/index.tsx +1 -0
- /package/dist/types/hooks/{useConnectWalet.d.ts → useConnectWallet.d.ts} +0 -0
- /package/src/hooks/{useConnectWalet.ts → useConnectWallet.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GraphQLRequests, RestApiRequests } from '@dodoex/api';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TokenInfo } from './components/TokenLogo';
|
|
4
|
-
import { WalletItem } from './hooks/
|
|
4
|
+
import { WalletItem } from './hooks/useConnectWallet';
|
|
5
5
|
export declare const WalletConnectProvider: React.Provider<{
|
|
6
6
|
chainId?: number;
|
|
7
7
|
termsOfServiceLink?: React.ReactNode;
|
|
@@ -10,9 +10,25 @@ export declare function useTransactionList({ account, chainId, }: {
|
|
|
10
10
|
account: string | undefined;
|
|
11
11
|
chainId?: number;
|
|
12
12
|
}): {
|
|
13
|
-
list:
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
list: ({
|
|
14
|
+
chainId?: number | null;
|
|
15
|
+
createTime?: string | null;
|
|
16
|
+
extend?: any | null;
|
|
17
|
+
from?: string | null;
|
|
18
|
+
id?: number | null;
|
|
19
|
+
key?: string | null;
|
|
20
|
+
type?: string | null;
|
|
21
|
+
} | null)[];
|
|
22
|
+
pendingList: ({
|
|
23
|
+
chainId?: number | null;
|
|
24
|
+
createTime?: string | null;
|
|
25
|
+
extend?: any | null;
|
|
26
|
+
from?: string | null;
|
|
27
|
+
id?: number | null;
|
|
28
|
+
key?: string | null;
|
|
29
|
+
type?: string | null;
|
|
30
|
+
} | null)[];
|
|
31
|
+
data: import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>;
|
|
16
32
|
error: Error;
|
|
17
33
|
isError: true;
|
|
18
34
|
isPending: false;
|
|
@@ -22,8 +38,8 @@ export declare function useTransactionList({ account, chainId, }: {
|
|
|
22
38
|
isSuccess: false;
|
|
23
39
|
isPlaceholderData: false;
|
|
24
40
|
status: "error";
|
|
25
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
26
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
41
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
42
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
27
43
|
hasNextPage: boolean;
|
|
28
44
|
hasPreviousPage: boolean;
|
|
29
45
|
isFetchNextPageError: boolean;
|
|
@@ -42,13 +58,29 @@ export declare function useTransactionList({ account, chainId, }: {
|
|
|
42
58
|
isPaused: boolean;
|
|
43
59
|
isRefetching: boolean;
|
|
44
60
|
isStale: boolean;
|
|
45
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
61
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
46
62
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
47
|
-
promise: Promise<import("@tanstack/react-query").InfiniteData<
|
|
63
|
+
promise: Promise<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>>;
|
|
48
64
|
} | {
|
|
49
|
-
list:
|
|
50
|
-
|
|
51
|
-
|
|
65
|
+
list: ({
|
|
66
|
+
chainId?: number | null;
|
|
67
|
+
createTime?: string | null;
|
|
68
|
+
extend?: any | null;
|
|
69
|
+
from?: string | null;
|
|
70
|
+
id?: number | null;
|
|
71
|
+
key?: string | null;
|
|
72
|
+
type?: string | null;
|
|
73
|
+
} | null)[];
|
|
74
|
+
pendingList: ({
|
|
75
|
+
chainId?: number | null;
|
|
76
|
+
createTime?: string | null;
|
|
77
|
+
extend?: any | null;
|
|
78
|
+
from?: string | null;
|
|
79
|
+
id?: number | null;
|
|
80
|
+
key?: string | null;
|
|
81
|
+
type?: string | null;
|
|
82
|
+
} | null)[];
|
|
83
|
+
data: import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>;
|
|
52
84
|
error: null;
|
|
53
85
|
isError: false;
|
|
54
86
|
isPending: false;
|
|
@@ -60,8 +92,8 @@ export declare function useTransactionList({ account, chainId, }: {
|
|
|
60
92
|
isSuccess: true;
|
|
61
93
|
isPlaceholderData: false;
|
|
62
94
|
status: "success";
|
|
63
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
64
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
95
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
96
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
65
97
|
hasNextPage: boolean;
|
|
66
98
|
hasPreviousPage: boolean;
|
|
67
99
|
isFetchingNextPage: boolean;
|
|
@@ -78,7 +110,215 @@ export declare function useTransactionList({ account, chainId, }: {
|
|
|
78
110
|
isPaused: boolean;
|
|
79
111
|
isRefetching: boolean;
|
|
80
112
|
isStale: boolean;
|
|
81
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
113
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
82
114
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
83
|
-
promise: Promise<import("@tanstack/react-query").InfiniteData<
|
|
115
|
+
promise: Promise<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>>;
|
|
116
|
+
} | {
|
|
117
|
+
list: ({
|
|
118
|
+
chainId?: number | null;
|
|
119
|
+
createTime?: string | null;
|
|
120
|
+
extend?: any | null;
|
|
121
|
+
from?: string | null;
|
|
122
|
+
id?: number | null;
|
|
123
|
+
key?: string | null;
|
|
124
|
+
type?: string | null;
|
|
125
|
+
} | null)[];
|
|
126
|
+
pendingList: ({
|
|
127
|
+
chainId?: number | null;
|
|
128
|
+
createTime?: string | null;
|
|
129
|
+
extend?: any | null;
|
|
130
|
+
from?: string | null;
|
|
131
|
+
id?: number | null;
|
|
132
|
+
key?: string | null;
|
|
133
|
+
type?: string | null;
|
|
134
|
+
} | null)[];
|
|
135
|
+
data: undefined;
|
|
136
|
+
error: Error;
|
|
137
|
+
isError: true;
|
|
138
|
+
isPending: false;
|
|
139
|
+
isLoading: false;
|
|
140
|
+
isLoadingError: true;
|
|
141
|
+
isRefetchError: false;
|
|
142
|
+
isFetchNextPageError: false;
|
|
143
|
+
isFetchPreviousPageError: false;
|
|
144
|
+
isSuccess: false;
|
|
145
|
+
isPlaceholderData: false;
|
|
146
|
+
status: "error";
|
|
147
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
148
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
149
|
+
hasNextPage: boolean;
|
|
150
|
+
hasPreviousPage: boolean;
|
|
151
|
+
isFetchingNextPage: boolean;
|
|
152
|
+
isFetchingPreviousPage: boolean;
|
|
153
|
+
dataUpdatedAt: number;
|
|
154
|
+
errorUpdatedAt: number;
|
|
155
|
+
failureCount: number;
|
|
156
|
+
failureReason: Error | null;
|
|
157
|
+
errorUpdateCount: number;
|
|
158
|
+
isFetched: boolean;
|
|
159
|
+
isFetchedAfterMount: boolean;
|
|
160
|
+
isFetching: boolean;
|
|
161
|
+
isInitialLoading: boolean;
|
|
162
|
+
isPaused: boolean;
|
|
163
|
+
isRefetching: boolean;
|
|
164
|
+
isStale: boolean;
|
|
165
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
166
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
167
|
+
promise: Promise<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>>;
|
|
168
|
+
} | {
|
|
169
|
+
list: ({
|
|
170
|
+
chainId?: number | null;
|
|
171
|
+
createTime?: string | null;
|
|
172
|
+
extend?: any | null;
|
|
173
|
+
from?: string | null;
|
|
174
|
+
id?: number | null;
|
|
175
|
+
key?: string | null;
|
|
176
|
+
type?: string | null;
|
|
177
|
+
} | null)[];
|
|
178
|
+
pendingList: ({
|
|
179
|
+
chainId?: number | null;
|
|
180
|
+
createTime?: string | null;
|
|
181
|
+
extend?: any | null;
|
|
182
|
+
from?: string | null;
|
|
183
|
+
id?: number | null;
|
|
184
|
+
key?: string | null;
|
|
185
|
+
type?: string | null;
|
|
186
|
+
} | null)[];
|
|
187
|
+
data: undefined;
|
|
188
|
+
error: null;
|
|
189
|
+
isError: false;
|
|
190
|
+
isPending: true;
|
|
191
|
+
isLoading: true;
|
|
192
|
+
isLoadingError: false;
|
|
193
|
+
isRefetchError: false;
|
|
194
|
+
isFetchNextPageError: false;
|
|
195
|
+
isFetchPreviousPageError: false;
|
|
196
|
+
isSuccess: false;
|
|
197
|
+
isPlaceholderData: false;
|
|
198
|
+
status: "pending";
|
|
199
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
200
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
201
|
+
hasNextPage: boolean;
|
|
202
|
+
hasPreviousPage: boolean;
|
|
203
|
+
isFetchingNextPage: boolean;
|
|
204
|
+
isFetchingPreviousPage: boolean;
|
|
205
|
+
dataUpdatedAt: number;
|
|
206
|
+
errorUpdatedAt: number;
|
|
207
|
+
failureCount: number;
|
|
208
|
+
failureReason: Error | null;
|
|
209
|
+
errorUpdateCount: number;
|
|
210
|
+
isFetched: boolean;
|
|
211
|
+
isFetchedAfterMount: boolean;
|
|
212
|
+
isFetching: boolean;
|
|
213
|
+
isInitialLoading: boolean;
|
|
214
|
+
isPaused: boolean;
|
|
215
|
+
isRefetching: boolean;
|
|
216
|
+
isStale: boolean;
|
|
217
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
218
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
219
|
+
promise: Promise<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>>;
|
|
220
|
+
} | {
|
|
221
|
+
list: ({
|
|
222
|
+
chainId?: number | null;
|
|
223
|
+
createTime?: string | null;
|
|
224
|
+
extend?: any | null;
|
|
225
|
+
from?: string | null;
|
|
226
|
+
id?: number | null;
|
|
227
|
+
key?: string | null;
|
|
228
|
+
type?: string | null;
|
|
229
|
+
} | null)[];
|
|
230
|
+
pendingList: ({
|
|
231
|
+
chainId?: number | null;
|
|
232
|
+
createTime?: string | null;
|
|
233
|
+
extend?: any | null;
|
|
234
|
+
from?: string | null;
|
|
235
|
+
id?: number | null;
|
|
236
|
+
key?: string | null;
|
|
237
|
+
type?: string | null;
|
|
238
|
+
} | null)[];
|
|
239
|
+
data: undefined;
|
|
240
|
+
error: null;
|
|
241
|
+
isError: false;
|
|
242
|
+
isPending: true;
|
|
243
|
+
isLoadingError: false;
|
|
244
|
+
isRefetchError: false;
|
|
245
|
+
isFetchNextPageError: false;
|
|
246
|
+
isFetchPreviousPageError: false;
|
|
247
|
+
isSuccess: false;
|
|
248
|
+
isPlaceholderData: false;
|
|
249
|
+
status: "pending";
|
|
250
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
251
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
252
|
+
hasNextPage: boolean;
|
|
253
|
+
hasPreviousPage: boolean;
|
|
254
|
+
isFetchingNextPage: boolean;
|
|
255
|
+
isFetchingPreviousPage: boolean;
|
|
256
|
+
dataUpdatedAt: number;
|
|
257
|
+
errorUpdatedAt: number;
|
|
258
|
+
failureCount: number;
|
|
259
|
+
failureReason: Error | null;
|
|
260
|
+
errorUpdateCount: number;
|
|
261
|
+
isFetched: boolean;
|
|
262
|
+
isFetchedAfterMount: boolean;
|
|
263
|
+
isFetching: boolean;
|
|
264
|
+
isLoading: boolean;
|
|
265
|
+
isInitialLoading: boolean;
|
|
266
|
+
isPaused: boolean;
|
|
267
|
+
isRefetching: boolean;
|
|
268
|
+
isStale: boolean;
|
|
269
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
270
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
271
|
+
promise: Promise<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>>;
|
|
272
|
+
} | {
|
|
273
|
+
list: ({
|
|
274
|
+
chainId?: number | null;
|
|
275
|
+
createTime?: string | null;
|
|
276
|
+
extend?: any | null;
|
|
277
|
+
from?: string | null;
|
|
278
|
+
id?: number | null;
|
|
279
|
+
key?: string | null;
|
|
280
|
+
type?: string | null;
|
|
281
|
+
} | null)[];
|
|
282
|
+
pendingList: ({
|
|
283
|
+
chainId?: number | null;
|
|
284
|
+
createTime?: string | null;
|
|
285
|
+
extend?: any | null;
|
|
286
|
+
from?: string | null;
|
|
287
|
+
id?: number | null;
|
|
288
|
+
key?: string | null;
|
|
289
|
+
type?: string | null;
|
|
290
|
+
} | null)[];
|
|
291
|
+
data: import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>;
|
|
292
|
+
isError: false;
|
|
293
|
+
error: null;
|
|
294
|
+
isPending: false;
|
|
295
|
+
isLoading: false;
|
|
296
|
+
isLoadingError: false;
|
|
297
|
+
isRefetchError: false;
|
|
298
|
+
isSuccess: true;
|
|
299
|
+
isPlaceholderData: true;
|
|
300
|
+
isFetchNextPageError: false;
|
|
301
|
+
isFetchPreviousPageError: false;
|
|
302
|
+
status: "success";
|
|
303
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
304
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
305
|
+
hasNextPage: boolean;
|
|
306
|
+
hasPreviousPage: boolean;
|
|
307
|
+
isFetchingNextPage: boolean;
|
|
308
|
+
isFetchingPreviousPage: boolean;
|
|
309
|
+
dataUpdatedAt: number;
|
|
310
|
+
errorUpdatedAt: number;
|
|
311
|
+
failureCount: number;
|
|
312
|
+
failureReason: Error | null;
|
|
313
|
+
errorUpdateCount: number;
|
|
314
|
+
isFetched: boolean;
|
|
315
|
+
isFetchedAfterMount: boolean;
|
|
316
|
+
isFetching: boolean;
|
|
317
|
+
isInitialLoading: boolean;
|
|
318
|
+
isPaused: boolean;
|
|
319
|
+
isRefetching: boolean;
|
|
320
|
+
isStale: boolean;
|
|
321
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>, Error>>;
|
|
322
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
323
|
+
promise: Promise<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchNoticeCenterTransactionListQuery, unknown>>;
|
|
84
324
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export { default as WalletDialog } from './WalletConnect/WalletDialog';
|
|
|
2
2
|
export { WalletConnectProvider } from './WalletConnectProvider';
|
|
3
3
|
export { default as ClientProvider } from './ClientProvider';
|
|
4
4
|
export { default as LangProvider } from './LangProvider';
|
|
5
|
+
export { useWalletListByNetwork } from './hooks/useConnectWallet';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/wallet-web3-react",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.8",
|
|
4
4
|
"source": "src/index.tsx",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -33,9 +33,7 @@
|
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@dodoex/wallet-web3": "0.0.61-beta.
|
|
37
|
-
"@dodoex/api": ">=3.0.2",
|
|
38
|
-
"@dodoex/components": ">=3.0.0",
|
|
36
|
+
"@dodoex/wallet-web3": "0.0.61-beta.1",
|
|
39
37
|
"@dodoex/contract-request": ">=1.x",
|
|
40
38
|
"@dodoex/dodo-contract-request": ">=1.x",
|
|
41
39
|
"@dodoex/icons": ">=2.0.2",
|
|
@@ -59,6 +57,8 @@
|
|
|
59
57
|
"typescript": "^5.6.3"
|
|
60
58
|
},
|
|
61
59
|
"dependencies": {
|
|
60
|
+
"@dodoex/api": "^3.0.2",
|
|
61
|
+
"@dodoex/components": "^3.0.3",
|
|
62
62
|
"@lingui/macro": "^4.11.4",
|
|
63
63
|
"@lingui/react": "^4.11.4",
|
|
64
64
|
"@tanstack/react-query": "^5.18.1",
|
|
@@ -6,7 +6,7 @@ import WalletWeb3, {
|
|
|
6
6
|
} from '@dodoex/wallet-web3';
|
|
7
7
|
import { useMutation } from '@tanstack/react-query';
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import { connectToWallet } from '../../hooks/
|
|
9
|
+
import { connectToWallet } from '../../hooks/useConnectWallet';
|
|
10
10
|
|
|
11
11
|
export type AlchemyParams = Exclude<
|
|
12
12
|
Partial<ConnectorParams['alchemyParams']>,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import WalletWeb3, { useWalletStore, WalletType } from '@dodoex/wallet-web3';
|
|
3
|
-
import { useConnectWallet, WalletItem } from '../hooks/
|
|
3
|
+
import { useConnectWallet, WalletItem } from '../hooks/useConnectWallet';
|
|
4
4
|
import { alpha, Box, ButtonBase, Checkbox, useTheme } from '@dodoex/components';
|
|
5
5
|
import { useWalletConnectContext } from '../WalletConnectProvider';
|
|
6
6
|
import WalletTag from '../components/WalletTag';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GraphQLRequests, RestApiRequests } from '@dodoex/api';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TokenInfo } from './components/TokenLogo';
|
|
4
|
-
import { WalletItem } from './hooks/
|
|
4
|
+
import { WalletItem } from './hooks/useConnectWallet';
|
|
5
5
|
|
|
6
6
|
const WalletConnectContext = React.createContext<{
|
|
7
7
|
chainId?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { alpha, Box, RotatingIcon, useTheme } from '@dodoex/components';
|
|
2
2
|
import { WalletType } from '@dodoex/wallet-web3';
|
|
3
3
|
import { Trans } from '@lingui/macro';
|
|
4
|
-
import { WalletItem } from '../hooks/
|
|
4
|
+
import { WalletItem } from '../hooks/useConnectWallet';
|
|
5
5
|
|
|
6
6
|
export default function WalletTag({
|
|
7
7
|
loading,
|
package/src/index.tsx
CHANGED
|
@@ -2,3 +2,4 @@ export { default as WalletDialog } from './WalletConnect/WalletDialog';
|
|
|
2
2
|
export { WalletConnectProvider } from './WalletConnectProvider';
|
|
3
3
|
export { default as ClientProvider } from './ClientProvider';
|
|
4
4
|
export { default as LangProvider } from './LangProvider';
|
|
5
|
+
export { useWalletListByNetwork } from './hooks/useConnectWallet';
|
|
File without changes
|
|
File without changes
|