@pear-protocol/symmio-client 0.2.11 → 0.2.13
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/react/index.d.mts +40 -174
- package/dist/react/index.d.ts +40 -174
- package/dist/react/index.js +35 -142
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +35 -142
- package/dist/react/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { S as SymmioSDKConfig } from './provider-BoNiSPy9.js';
|
|
2
2
|
export { a as SymmProvider, b as SymmProviderProps } from './provider-BoNiSPy9.js';
|
|
3
3
|
import * as _pear_protocol_symm_core from '@pear-protocol/symm-core';
|
|
4
|
-
import { SymmSDK, CloseOrderRequest, OpenBasketPositionRequest, ClosePositionRequest, CancelOpenRequest, UpdatePositionRequest, SetTpslRequest, CancelTpslRequest, GetTpslOrdersRequest, UpsertTriggerConfigRequest, GetSymmHedgerMarketsRequest
|
|
4
|
+
import { SymmSDK, CloseOrderRequest, OpenBasketPositionRequest, ClosePositionRequest, CancelOpenRequest, UpdatePositionRequest, SetTpslRequest, CancelTpslRequest, GetTpslOrdersRequest, UpsertTriggerConfigRequest, GetSymmHedgerMarketsRequest } from '@pear-protocol/symm-core';
|
|
5
5
|
import { Address, WalletClient, Hex, PublicClient } from 'viem';
|
|
6
6
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
7
|
-
import
|
|
7
|
+
import { useQuery } from '@tanstack/react-query';
|
|
8
8
|
import * as node_modules__pear_protocol_symm_core_dist_types from 'node_modules/@pear-protocol/symm-core/dist/types';
|
|
9
9
|
import * as _pear_protocol_symm_shared from '@pear-protocol/symm-shared';
|
|
10
10
|
import * as zustand from 'zustand';
|
|
@@ -127,11 +127,7 @@ declare function useSymmAccounts(params?: {
|
|
|
127
127
|
}, options?: {
|
|
128
128
|
query?: SymmQueryConfig;
|
|
129
129
|
}): {
|
|
130
|
-
|
|
131
|
-
count: number;
|
|
132
|
-
isLoading: boolean;
|
|
133
|
-
error: Error | null;
|
|
134
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<Account[], Error>>;
|
|
130
|
+
query: _tanstack_react_query.UseQueryResult<Account[], Error>;
|
|
135
131
|
createAccount: _tanstack_react_query.UseMutationResult<`0x${string}`, Error, {
|
|
136
132
|
name: string;
|
|
137
133
|
}, unknown>;
|
|
@@ -146,10 +142,7 @@ declare function useSymmAccountsApi(params: {
|
|
|
146
142
|
chainId?: number;
|
|
147
143
|
query?: SymmQueryConfig;
|
|
148
144
|
}): {
|
|
149
|
-
|
|
150
|
-
total: number;
|
|
151
|
-
isLoading: boolean;
|
|
152
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<node_modules__pear_protocol_symm_core_dist_types.AccountsListResponse, Error>>;
|
|
145
|
+
query: _tanstack_react_query.UseQueryResult<node_modules__pear_protocol_symm_core_dist_types.AccountsListResponse, Error>;
|
|
153
146
|
};
|
|
154
147
|
|
|
155
148
|
declare function useSymmAccountsLength(params: {
|
|
@@ -157,10 +150,7 @@ declare function useSymmAccountsLength(params: {
|
|
|
157
150
|
chainId?: number;
|
|
158
151
|
query?: SymmQueryConfig;
|
|
159
152
|
}): {
|
|
160
|
-
|
|
161
|
-
total: number;
|
|
162
|
-
isLoading: boolean;
|
|
163
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<node_modules__pear_protocol_symm_core_dist_types.AccountsLengthResponse, Error>>;
|
|
153
|
+
query: _tanstack_react_query.UseQueryResult<node_modules__pear_protocol_symm_core_dist_types.AccountsLengthResponse, Error>;
|
|
164
154
|
};
|
|
165
155
|
|
|
166
156
|
declare function useSymmAccountsWithPositions(params: {
|
|
@@ -168,10 +158,7 @@ declare function useSymmAccountsWithPositions(params: {
|
|
|
168
158
|
chainId?: number;
|
|
169
159
|
query?: SymmQueryConfig;
|
|
170
160
|
}): {
|
|
171
|
-
|
|
172
|
-
total: number;
|
|
173
|
-
isLoading: boolean;
|
|
174
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<node_modules__pear_protocol_symm_core_dist_types.AccountsWithPositionsResponse, Error>>;
|
|
161
|
+
query: _tanstack_react_query.UseQueryResult<node_modules__pear_protocol_symm_core_dist_types.AccountsWithPositionsResponse, Error>;
|
|
175
162
|
};
|
|
176
163
|
|
|
177
164
|
declare enum ApprovalState {
|
|
@@ -190,10 +177,11 @@ declare function useSymmApproval(params: {
|
|
|
190
177
|
collateralToken?: Address;
|
|
191
178
|
query?: SymmQueryConfig;
|
|
192
179
|
}): {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
180
|
+
query: _tanstack_react_query.UseQueryResult<{
|
|
181
|
+
state: ApprovalState;
|
|
182
|
+
allowance: bigint;
|
|
183
|
+
balance: bigint;
|
|
184
|
+
}, Error>;
|
|
197
185
|
approve: _tanstack_react_query.UseMutationResult<`0x${string}`, Error, bigint, unknown>;
|
|
198
186
|
};
|
|
199
187
|
|
|
@@ -264,8 +252,7 @@ declare function useSymmSignature(params?: {
|
|
|
264
252
|
}, options?: {
|
|
265
253
|
query?: SymmQueryConfig;
|
|
266
254
|
}): {
|
|
267
|
-
|
|
268
|
-
isLoading: boolean;
|
|
255
|
+
query: _tanstack_react_query.UseQueryResult<boolean, Error>;
|
|
269
256
|
signTerms: _tanstack_react_query.UseMutationResult<void, Error, void, unknown>;
|
|
270
257
|
};
|
|
271
258
|
|
|
@@ -275,10 +262,8 @@ declare function useSymmAvailableMargin(params: {
|
|
|
275
262
|
upnl?: bigint;
|
|
276
263
|
query?: SymmQueryConfig;
|
|
277
264
|
}): {
|
|
278
|
-
|
|
279
|
-
stats: {
|
|
265
|
+
query: _tanstack_react_query.UseQueryResult<{
|
|
280
266
|
upnl: bigint;
|
|
281
|
-
availableForOrder: bigint;
|
|
282
267
|
collateralBalance: bigint;
|
|
283
268
|
allocatedBalance: bigint;
|
|
284
269
|
availableBalance: bigint;
|
|
@@ -293,26 +278,7 @@ declare function useSymmAvailableMargin(params: {
|
|
|
293
278
|
positionsCount: number;
|
|
294
279
|
pendingCount: number;
|
|
295
280
|
nonces: number;
|
|
296
|
-
}
|
|
297
|
-
isLoading: boolean;
|
|
298
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
|
|
299
|
-
upnl: bigint;
|
|
300
|
-
availableForOrder: bigint;
|
|
301
|
-
collateralBalance: bigint;
|
|
302
|
-
allocatedBalance: bigint;
|
|
303
|
-
availableBalance: bigint;
|
|
304
|
-
lockedCVA: bigint;
|
|
305
|
-
lockedLF: bigint;
|
|
306
|
-
lockedPartyAMM: bigint;
|
|
307
|
-
lockedPartyBMM: bigint;
|
|
308
|
-
pendingLockedCVA: bigint;
|
|
309
|
-
pendingLockedLF: bigint;
|
|
310
|
-
pendingLockedPartyAMM: bigint;
|
|
311
|
-
pendingLockedPartyBMM: bigint;
|
|
312
|
-
positionsCount: number;
|
|
313
|
-
pendingCount: number;
|
|
314
|
-
nonces: number;
|
|
315
|
-
}, Error>>;
|
|
281
|
+
}, Error>;
|
|
316
282
|
};
|
|
317
283
|
|
|
318
284
|
declare function useSymmAccountSummary(params: {
|
|
@@ -320,10 +286,7 @@ declare function useSymmAccountSummary(params: {
|
|
|
320
286
|
chainId?: number;
|
|
321
287
|
query?: SymmQueryConfig;
|
|
322
288
|
}): {
|
|
323
|
-
|
|
324
|
-
total: number;
|
|
325
|
-
isLoading: boolean;
|
|
326
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<node_modules__pear_protocol_symm_core_dist_types.AccountSummaryResponse, Error>>;
|
|
289
|
+
query: _tanstack_react_query.UseQueryResult<node_modules__pear_protocol_symm_core_dist_types.AccountSummaryResponse, Error>;
|
|
327
290
|
};
|
|
328
291
|
|
|
329
292
|
declare function useSymmAccountData(params: {
|
|
@@ -332,9 +295,7 @@ declare function useSymmAccountData(params: {
|
|
|
332
295
|
chainId?: number;
|
|
333
296
|
query?: SymmQueryConfig;
|
|
334
297
|
}): {
|
|
335
|
-
|
|
336
|
-
isLoading: boolean;
|
|
337
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<node_modules__pear_protocol_symm_core_dist_types.AccountDataResponse, Error>>;
|
|
298
|
+
query: _tanstack_react_query.UseQueryResult<node_modules__pear_protocol_symm_core_dist_types.AccountDataResponse, Error>;
|
|
338
299
|
};
|
|
339
300
|
|
|
340
301
|
declare function useSymmBalances(params: {
|
|
@@ -343,9 +304,7 @@ declare function useSymmBalances(params: {
|
|
|
343
304
|
multiAccountAddress?: Address;
|
|
344
305
|
query?: SymmQueryConfig;
|
|
345
306
|
}): {
|
|
346
|
-
|
|
347
|
-
isLoading: boolean;
|
|
348
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<node_modules__pear_protocol_symm_core_dist_types.BalanceInfoResponse, Error>>;
|
|
307
|
+
query: _tanstack_react_query.UseQueryResult<node_modules__pear_protocol_symm_core_dist_types.BalanceInfoResponse, Error>;
|
|
349
308
|
};
|
|
350
309
|
|
|
351
310
|
declare function useSymmTrade(): {
|
|
@@ -367,9 +326,7 @@ declare function useSymmPositions(params: {
|
|
|
367
326
|
chainId?: number;
|
|
368
327
|
query?: SymmQueryConfig;
|
|
369
328
|
}): {
|
|
370
|
-
|
|
371
|
-
isLoading: boolean;
|
|
372
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.OpenPositionsListResponse, Error>>;
|
|
329
|
+
query: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.OpenPositionsListResponse, Error>;
|
|
373
330
|
};
|
|
374
331
|
|
|
375
332
|
declare function useSymmOpenOrders(params: {
|
|
@@ -378,9 +335,7 @@ declare function useSymmOpenOrders(params: {
|
|
|
378
335
|
chainId?: number;
|
|
379
336
|
query?: SymmQueryConfig;
|
|
380
337
|
}): {
|
|
381
|
-
|
|
382
|
-
isLoading: boolean;
|
|
383
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.UnifiedOrdersListResponse, Error>>;
|
|
338
|
+
query: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.UnifiedOrdersListResponse, Error>;
|
|
384
339
|
};
|
|
385
340
|
|
|
386
341
|
declare function useSymmTradeHistory(params: {
|
|
@@ -389,9 +344,7 @@ declare function useSymmTradeHistory(params: {
|
|
|
389
344
|
chainId?: number;
|
|
390
345
|
query?: SymmQueryConfig;
|
|
391
346
|
}): {
|
|
392
|
-
|
|
393
|
-
isLoading: boolean;
|
|
394
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.PositionsListResponse, Error>>;
|
|
347
|
+
query: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.PositionsListResponse, Error>;
|
|
395
348
|
};
|
|
396
349
|
|
|
397
350
|
declare function useSymmTpsl(): {
|
|
@@ -409,10 +362,7 @@ type UseSymmTpslOrdersParams = {
|
|
|
409
362
|
query?: SymmQueryConfig;
|
|
410
363
|
};
|
|
411
364
|
declare function useSymmTpslOrders(params: UseSymmTpslOrdersParams): {
|
|
412
|
-
|
|
413
|
-
total: number;
|
|
414
|
-
isLoading: boolean;
|
|
415
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.TpslListResponse, Error>>;
|
|
365
|
+
query: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.TpslListResponse, Error>;
|
|
416
366
|
};
|
|
417
367
|
|
|
418
368
|
declare function useSymmTwap(params: {
|
|
@@ -421,8 +371,7 @@ declare function useSymmTwap(params: {
|
|
|
421
371
|
chainId?: number;
|
|
422
372
|
query?: SymmQueryConfig;
|
|
423
373
|
}): {
|
|
424
|
-
|
|
425
|
-
isLoading: boolean;
|
|
374
|
+
query: _tanstack_react_query.UseQueryResult<node_modules__pear_protocol_symm_core_dist_types.TwapOrdersListResponse, Error>;
|
|
426
375
|
cancelTwap: _tanstack_react_query.UseMutationResult<node_modules__pear_protocol_symm_core_dist_types.TwapOrderResponse, Error, string, unknown>;
|
|
427
376
|
};
|
|
428
377
|
|
|
@@ -430,9 +379,7 @@ declare function useSymmTriggerConfig(params: {
|
|
|
430
379
|
orderId?: string;
|
|
431
380
|
query?: SymmQueryConfig;
|
|
432
381
|
}): {
|
|
433
|
-
|
|
434
|
-
isLoading: boolean;
|
|
435
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.GetTriggerConfigResponse, Error>>;
|
|
382
|
+
query: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.GetTriggerConfigResponse, Error>;
|
|
436
383
|
setTriggerConfig: _tanstack_react_query.UseMutationResult<_pear_protocol_symm_core.GetTriggerConfigResponse, Error, UpsertTriggerConfigRequest, unknown>;
|
|
437
384
|
clearTriggerConfig: _tanstack_react_query.UseMutationResult<_pear_protocol_symm_core.GetTriggerConfigResponse, Error, void, unknown>;
|
|
438
385
|
};
|
|
@@ -446,12 +393,7 @@ declare function useSymmTriggerOrders(params: {
|
|
|
446
393
|
offset?: number;
|
|
447
394
|
query?: SymmQueryConfig;
|
|
448
395
|
}): {
|
|
449
|
-
|
|
450
|
-
total: number;
|
|
451
|
-
limit: number;
|
|
452
|
-
offset: number;
|
|
453
|
-
isLoading: boolean;
|
|
454
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.TriggerOrdersListResponse, Error>>;
|
|
396
|
+
query: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.TriggerOrdersListResponse, Error>;
|
|
455
397
|
};
|
|
456
398
|
|
|
457
399
|
declare function useSymmMarkets(params?: {
|
|
@@ -459,11 +401,9 @@ declare function useSymmMarkets(params?: {
|
|
|
459
401
|
searchText?: string;
|
|
460
402
|
query?: SymmQueryConfig;
|
|
461
403
|
}): {
|
|
462
|
-
|
|
463
|
-
isLoading: boolean;
|
|
464
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
|
|
404
|
+
query: _tanstack_react_query.UseQueryResult<{
|
|
465
405
|
markets?: unknown[];
|
|
466
|
-
}, Error
|
|
406
|
+
}, Error>;
|
|
467
407
|
};
|
|
468
408
|
|
|
469
409
|
declare function useSymmHedgerMarketById(params: {
|
|
@@ -471,10 +411,7 @@ declare function useSymmHedgerMarketById(params: {
|
|
|
471
411
|
chainId?: number;
|
|
472
412
|
query?: SymmQueryConfig;
|
|
473
413
|
}): {
|
|
474
|
-
|
|
475
|
-
markets: _pear_protocol_symm_core.MarketItem[];
|
|
476
|
-
isLoading: boolean;
|
|
477
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.HedgerMarketsListResponse, Error>>;
|
|
414
|
+
query: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.HedgerMarketsListResponse, Error>;
|
|
478
415
|
};
|
|
479
416
|
|
|
480
417
|
declare function useSymmHedgerMarketBySymbol(params: {
|
|
@@ -482,10 +419,7 @@ declare function useSymmHedgerMarketBySymbol(params: {
|
|
|
482
419
|
chainId?: number;
|
|
483
420
|
query?: SymmQueryConfig;
|
|
484
421
|
}): {
|
|
485
|
-
|
|
486
|
-
markets: _pear_protocol_symm_core.MarketItem[];
|
|
487
|
-
isLoading: boolean;
|
|
488
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.HedgerMarketsListResponse, Error>>;
|
|
422
|
+
query: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.HedgerMarketsListResponse, Error>;
|
|
489
423
|
};
|
|
490
424
|
|
|
491
425
|
declare function useSymmLockedParams(params: {
|
|
@@ -494,15 +428,7 @@ declare function useSymmLockedParams(params: {
|
|
|
494
428
|
chainId?: number;
|
|
495
429
|
query?: SymmQueryConfig;
|
|
496
430
|
}): {
|
|
497
|
-
|
|
498
|
-
cva: string;
|
|
499
|
-
lf: string;
|
|
500
|
-
partyAmm: string;
|
|
501
|
-
partyBmm: string;
|
|
502
|
-
leverage: number;
|
|
503
|
-
} | null;
|
|
504
|
-
isLoading: boolean;
|
|
505
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<node_modules__pear_protocol_symm_core_dist_types.LockedParamsResponse, Error>>;
|
|
431
|
+
query: _tanstack_react_query.UseQueryResult<node_modules__pear_protocol_symm_core_dist_types.LockedParamsResponse, Error>;
|
|
506
432
|
};
|
|
507
433
|
|
|
508
434
|
type UseSymmHedgerMarketsParams = GetSymmHedgerMarketsRequest & {
|
|
@@ -511,27 +437,14 @@ type UseSymmHedgerMarketsParams = GetSymmHedgerMarketsRequest & {
|
|
|
511
437
|
query?: SymmQueryConfig;
|
|
512
438
|
};
|
|
513
439
|
declare function useSymmHedgerMarkets(params?: UseSymmHedgerMarketsParams): {
|
|
514
|
-
|
|
515
|
-
markets: MarketItem[];
|
|
516
|
-
rawMarkets: MarketItem[];
|
|
517
|
-
filteredMarkets: MarketItem[];
|
|
518
|
-
allSymbols: string[];
|
|
519
|
-
filteredSymbols: string[];
|
|
520
|
-
marketsById: Map<number, MarketItem>;
|
|
521
|
-
marketsBySymbol: Map<string, MarketItem>;
|
|
522
|
-
category: _pear_protocol_symm_core.SymmHedgerMarketCategory;
|
|
523
|
-
resolvedSearchText: string;
|
|
524
|
-
isLoading: boolean;
|
|
525
|
-
isFetching: boolean;
|
|
526
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.SymmHedgerMarketsResult, Error>>;
|
|
440
|
+
query: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.SymmHedgerMarketsResult, Error>;
|
|
527
441
|
};
|
|
528
442
|
|
|
529
443
|
declare function useSymmFunding(params?: {
|
|
530
444
|
chainId?: number;
|
|
531
445
|
query?: SymmQueryConfig;
|
|
532
446
|
}): {
|
|
533
|
-
|
|
534
|
-
isLoading: boolean;
|
|
447
|
+
query: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.FundingRatesResponse, Error>;
|
|
535
448
|
};
|
|
536
449
|
|
|
537
450
|
declare function useSymmFundingHistory(params: {
|
|
@@ -544,37 +457,7 @@ declare function useSymmFundingHistory(params: {
|
|
|
544
457
|
chainId?: number;
|
|
545
458
|
query?: SymmQueryConfig;
|
|
546
459
|
}): {
|
|
547
|
-
|
|
548
|
-
period: string;
|
|
549
|
-
interval: string;
|
|
550
|
-
periodStart: string;
|
|
551
|
-
periodEnd: string;
|
|
552
|
-
longSymbols: string[];
|
|
553
|
-
shortSymbols: string[];
|
|
554
|
-
weightMode: string;
|
|
555
|
-
series: Array<{
|
|
556
|
-
timestamp: string;
|
|
557
|
-
epochTimestamp: string;
|
|
558
|
-
netFundingRatePct: number;
|
|
559
|
-
cumulativeFundingRatePct: number;
|
|
560
|
-
missingSymbols?: string[];
|
|
561
|
-
contributions?: Array<{
|
|
562
|
-
symbol: string;
|
|
563
|
-
side: string;
|
|
564
|
-
weight: number;
|
|
565
|
-
fundingRate: number;
|
|
566
|
-
contributionPct: number;
|
|
567
|
-
}>;
|
|
568
|
-
}>;
|
|
569
|
-
summary: {
|
|
570
|
-
points: number;
|
|
571
|
-
latestNetFundingRatePct: number;
|
|
572
|
-
cumulativeFundingRatePct: number;
|
|
573
|
-
avgNetFundingRatePct: number;
|
|
574
|
-
};
|
|
575
|
-
} | null;
|
|
576
|
-
isLoading: boolean;
|
|
577
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.FundingHistoryResponse, Error>>;
|
|
460
|
+
query: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.FundingHistoryResponse, Error>;
|
|
578
461
|
};
|
|
579
462
|
|
|
580
463
|
declare function useSymmFundingPayments(params: {
|
|
@@ -585,10 +468,7 @@ declare function useSymmFundingPayments(params: {
|
|
|
585
468
|
offset?: number;
|
|
586
469
|
query?: SymmQueryConfig;
|
|
587
470
|
}): {
|
|
588
|
-
|
|
589
|
-
total: number;
|
|
590
|
-
isLoading: boolean;
|
|
591
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.FundingPaymentsResponse, Error>>;
|
|
471
|
+
query: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.FundingPaymentsResponse, Error>;
|
|
592
472
|
};
|
|
593
473
|
|
|
594
474
|
declare function useSymmPortfolio(params: {
|
|
@@ -597,9 +477,7 @@ declare function useSymmPortfolio(params: {
|
|
|
597
477
|
chainId?: number;
|
|
598
478
|
query?: SymmQueryConfig;
|
|
599
479
|
}): {
|
|
600
|
-
|
|
601
|
-
isLoading: boolean;
|
|
602
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.PortfolioResponse, Error>>;
|
|
480
|
+
query: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.PortfolioResponse, Error>;
|
|
603
481
|
};
|
|
604
482
|
|
|
605
483
|
declare function useSymmNotifications(params: {
|
|
@@ -607,14 +485,12 @@ declare function useSymmNotifications(params: {
|
|
|
607
485
|
chainId?: number;
|
|
608
486
|
query?: SymmQueryConfig;
|
|
609
487
|
}): {
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
isLoading: boolean;
|
|
488
|
+
query: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.NotificationsResponse, Error>;
|
|
489
|
+
unreadQuery: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.UnreadCountResponse, Error>;
|
|
613
490
|
markRead: _tanstack_react_query.UseMutationResult<_pear_protocol_symm_core.MarkReadResponse, Error, {
|
|
614
491
|
id?: string;
|
|
615
492
|
timestamp?: number;
|
|
616
493
|
}, unknown>;
|
|
617
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.NotificationsResponse, Error>>;
|
|
618
494
|
};
|
|
619
495
|
|
|
620
496
|
declare function useSymmPendingIds(params: {
|
|
@@ -622,9 +498,7 @@ declare function useSymmPendingIds(params: {
|
|
|
622
498
|
chainId?: number;
|
|
623
499
|
query?: SymmQueryConfig;
|
|
624
500
|
}): {
|
|
625
|
-
|
|
626
|
-
isLoading: boolean;
|
|
627
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.PendingIdsResponse, Error>>;
|
|
501
|
+
query: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.PendingIdsResponse, Error>;
|
|
628
502
|
};
|
|
629
503
|
|
|
630
504
|
declare function useSymmPendingInstantOpens(params: {
|
|
@@ -633,23 +507,14 @@ declare function useSymmPendingInstantOpens(params: {
|
|
|
633
507
|
chainId?: number;
|
|
634
508
|
query?: SymmQueryConfig;
|
|
635
509
|
}): {
|
|
636
|
-
|
|
637
|
-
total: number;
|
|
638
|
-
isLoading: boolean;
|
|
639
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_pear_protocol_symm_core.PendingInstantOpensResponse, Error>>;
|
|
510
|
+
query: _tanstack_react_query.UseQueryResult<_pear_protocol_symm_core.PendingInstantOpensResponse, Error>;
|
|
640
511
|
};
|
|
641
512
|
|
|
642
513
|
declare function useSymmTwapOrder(params: {
|
|
643
514
|
orderId?: string;
|
|
644
515
|
query?: SymmQueryConfig;
|
|
645
516
|
}): {
|
|
646
|
-
|
|
647
|
-
orderId: string;
|
|
648
|
-
status: string;
|
|
649
|
-
twapConfig?: Record<string, unknown>;
|
|
650
|
-
} | null;
|
|
651
|
-
isLoading: boolean;
|
|
652
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<node_modules__pear_protocol_symm_core_dist_types.TwapOrderResponse, Error>>;
|
|
517
|
+
query: _tanstack_react_query.UseQueryResult<node_modules__pear_protocol_symm_core_dist_types.TwapOrderResponse, Error>;
|
|
653
518
|
};
|
|
654
519
|
|
|
655
520
|
declare function useSymmWs(params?: {
|
|
@@ -696,6 +561,7 @@ interface SymmTokenMetadata {
|
|
|
696
561
|
markPrice: number;
|
|
697
562
|
}
|
|
698
563
|
interface UseSymmTokenSelectionMetadataReturn {
|
|
564
|
+
query: ReturnType<typeof useQuery>;
|
|
699
565
|
isLoading: boolean;
|
|
700
566
|
isPriceDataReady: boolean;
|
|
701
567
|
isUnsupported: boolean;
|