@dodoex/wallet-web3-react 0.0.6 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/wallet-web3-react",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"source": "src/index.tsx",
|
|
5
5
|
"types": "dist/types/index.d.ts",
|
|
6
6
|
"typings": "dist/types/index.d.ts",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"compile": "lingui compile"
|
|
14
14
|
},
|
|
15
15
|
"author": "",
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public",
|
|
18
|
+
"registry": "https://registry.npmjs.org"
|
|
19
|
+
},
|
|
16
20
|
"license": "GPL-3.0-or-later",
|
|
17
21
|
"description": "",
|
|
18
22
|
"keywords": [
|
|
@@ -33,7 +37,7 @@
|
|
|
33
37
|
]
|
|
34
38
|
},
|
|
35
39
|
"peerDependencies": {
|
|
36
|
-
"@dodoex/wallet-web3": "0.0.
|
|
40
|
+
"@dodoex/wallet-web3": ">=0.0.70",
|
|
37
41
|
"@dodoex/contract-request": ">=1.x",
|
|
38
42
|
"@dodoex/dodo-contract-request": ">=1.x",
|
|
39
43
|
"@dodoex/icons": ">=2.0.2",
|
|
@@ -70,4 +74,3 @@
|
|
|
70
74
|
"react-infinite-scroller": "^1.2.6"
|
|
71
75
|
}
|
|
72
76
|
}
|
|
73
|
-
|
|
@@ -473,27 +473,13 @@ function AccountPage({
|
|
|
473
473
|
/>
|
|
474
474
|
<Tabs
|
|
475
475
|
value={listTab}
|
|
476
|
-
onChange={(_, v) => setListTab(v as ListTab)}
|
|
477
|
-
placeholder=""
|
|
478
|
-
onPointerEnterCapture={() => {}}
|
|
479
|
-
onPointerLeaveCapture={() => {}}
|
|
476
|
+
onChange={(_: any, v: ListTab) => setListTab(v as ListTab)}
|
|
480
477
|
>
|
|
481
478
|
<TabsGroup tabs={tabs} />
|
|
482
|
-
<TabPanel
|
|
483
|
-
value={ListTab.tokens}
|
|
484
|
-
placeholder=""
|
|
485
|
-
onPointerEnterCapture={() => {}}
|
|
486
|
-
onPointerLeaveCapture={() => {}}
|
|
487
|
-
>
|
|
479
|
+
<TabPanel value={ListTab.tokens}>
|
|
488
480
|
<HasBalanceTokenList balanceListData={balanceListData} />
|
|
489
481
|
</TabPanel>
|
|
490
|
-
<TabPanel
|
|
491
|
-
value={ListTab.activity}
|
|
492
|
-
className="pt-2"
|
|
493
|
-
placeholder=""
|
|
494
|
-
onPointerEnterCapture={() => {}}
|
|
495
|
-
onPointerLeaveCapture={() => {}}
|
|
496
|
-
>
|
|
482
|
+
<TabPanel value={ListTab.activity} className="pt-2">
|
|
497
483
|
<ActivityList
|
|
498
484
|
fetchTransactionQuery={fetchTransactionQuery}
|
|
499
485
|
getScrollParent={getScrollParent}
|
|
@@ -58,7 +58,10 @@ export function useConnectAlchemyQuery({
|
|
|
58
58
|
const cacheType = walletWeb3.connectController.getAutoCacheType();
|
|
59
59
|
if (cacheType === WalletType.Alchemy) {
|
|
60
60
|
const alchemy = await alchemyWallet.getPackage?.();
|
|
61
|
-
const signer = await alchemy.getAlchemySigner(
|
|
61
|
+
const signer = await alchemy.getAlchemySigner(
|
|
62
|
+
chainId,
|
|
63
|
+
walletWeb3.providerConfig.alchemyParams?.apiKeyObject!,
|
|
64
|
+
);
|
|
62
65
|
const user = await signer.getAuthDetails().catch(() => null);
|
|
63
66
|
if (user) {
|
|
64
67
|
await connectToWallet(walletWeb3, alchemy, {
|
|
@@ -94,6 +97,7 @@ export function useConnectAlchemy({ walletWeb3 }: { walletWeb3: WalletWeb3 }) {
|
|
|
94
97
|
chainId,
|
|
95
98
|
alchemyParams: {
|
|
96
99
|
authParams,
|
|
100
|
+
apiKeyObject: walletWeb3.providerConfig.alchemyParams?.apiKeyObject!,
|
|
97
101
|
},
|
|
98
102
|
});
|
|
99
103
|
},
|