@aave/graphql 1.0.0-next.17 → 1.0.0-next.19
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 +158 -158
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +569 -350
- package/dist/index.d.ts +569 -350
- package/dist/index.js +158 -158
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs +1 -1
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +1 -1
- package/dist/schema.js.map +1 -1
- package/dist/testing.d.ts +82 -62
- package/dist/testing.js +2 -2
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var gql_tada=require('gql.tada'),types=require('@aave/types');var
|
|
1
|
+
'use strict';var gql_tada=require('gql.tada'),types=require('@aave/types');var Fe=(r=>(r.Asc="ASC",r.Desc="DESC",r))(Fe||{}),Ie=(r=>(r.Ten="TEN",r.Fifty="FIFTY",r))(Ie||{}),Te=(w=>(w.LastDay="LAST_DAY",w.LastWeek="LAST_WEEK",w.LastMonth="LAST_MONTH",w.LastSixMonths="LAST_SIX_MONTHS",w.LastYear="LAST_YEAR",w.All="ALL",w))(Te||{}),Ee=(l=>(l.SpokeBorrow="SPOKE_BORROW",l.SpokeRepay="SPOKE_REPAY",l.SpokeSupply="SPOKE_SUPPLY",l.SpokeWithdraw="SPOKE_WITHDRAW",l.SpokeUpdateUserRiskPremium="SPOKE_UPDATE_USER_RISK_PREMIUM",l.SpokeUpdateUserDynamicConfig="SPOKE_UPDATE_USER_DYNAMIC_CONFIG",l.SpokeSetUserUsingAsCollateral="SPOKE_SET_USER_USING_AS_COLLATERAL",l.SpokeSetUserPositionManager="SPOKE_SET_USER_POSITION_MANAGER",l.RenounceSpokeUserPositionManager="RENOUNCE_SPOKE_USER_POSITION_MANAGER",l.Liquidation="LIQUIDATION",l))(Ee||{}),be=(n=>(n.TESTNET_ONLY="TESTNET_ONLY",n.MAINNET_ONLY="MAINNET_ONLY",n.ALL="ALL",n))(be||{}),ke=(n=>(n.Active="ACTIVE",n.Frozen="FROZEN",n.Paused="PAUSED",n))(ke||{}),ve=(f=>(f.Borrow="BORROW",f.Supply="SUPPLY",f.Withdraw="WITHDRAW",f.Repay="REPAY",f.Liquidated="LIQUIDATED",f.SetAsCollateral="SET_AS_COLLATERAL",f.UpdatedDynamicConfig="UPDATED_DYNAMIC_CONFIG",f.UpdatedRiskPremium="UPDATED_RISK_PREMIUM",f))(ve||{}),Ue=(n=>(n.Highest="HIGHEST",n.Lowest="LOWEST",n.Average="AVERAGE",n))(Ue||{}),Ce=(r=>(r.Highest="HIGHEST",r.Lowest="LOWEST",r))(Ce||{}),Oe=(n=>(n.Usd="USD",n.Eur="EUR",n.Gbp="GBP",n))(Oe||{}),He=(S=>(S.Supply="SUPPLY",S.Borrow="BORROW",S.Collateral="COLLATERAL",S.All="ALL",S))(He||{}),Be=(r=>(r.Buy="BUY",r.Sell="SELL",r))(Be||{}),Qe=(r=>(r.Current="CURRENT",r.New="NEW",r))(Qe||{}),_e=(r=>(r.Repay="REPAY",r.Supply="SUPPLY",r))(_e||{}),$e=(r=>(r.Current="CURRENT",r.New="NEW",r))($e||{}),Ne=(r=>(r.Withdraw="WITHDRAW",r.Buy="BUY",r))(Ne||{}),We=(P=>(P.Cancelled="CANCELLED",P.Expired="EXPIRED",P.Fulfilled="FULFILLED",P.Open="OPEN",P.PendingSignature="PENDING_SIGNATURE",P))(We||{}),De=(r=>(r.Stablecoin="STABLECOIN",r.EthCorrelated="ETH_CORRELATED",r))(De||{}),Le=(r=>(r.AllDynamicConfig="ALL_DYNAMIC_CONFIG",r.JustRiskPremium="JUST_RISK_PREMIUM",r))(Le||{}),Me=(r=>(r.Fast="FAST",r.Accurate="ACCURATE",r))(Me||{});var e=gql_tada.initGraphQLTada();var v=e(`fragment DomainData on DomainData {
|
|
2
2
|
name
|
|
3
3
|
version
|
|
4
4
|
chainId
|
|
@@ -157,11 +157,11 @@
|
|
|
157
157
|
change(window: $timeWindow) {
|
|
158
158
|
...PercentNumber
|
|
159
159
|
}
|
|
160
|
-
}`,[a]),
|
|
160
|
+
}`,[a]),Ke=e(`fragment HealthFactorVariation on HealthFactorVariation {
|
|
161
161
|
__typename
|
|
162
162
|
current
|
|
163
163
|
after
|
|
164
|
-
}`),
|
|
164
|
+
}`),Ge=e(`fragment HealthFactorError on HealthFactorError {
|
|
165
165
|
__typename
|
|
166
166
|
reason
|
|
167
167
|
current
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
... on HealthFactorError {
|
|
175
175
|
...HealthFactorError
|
|
176
176
|
}
|
|
177
|
-
}`,[
|
|
177
|
+
}`,[Ke,Ge]),q=e(`fragment InsufficientBalanceError on InsufficientBalanceError {
|
|
178
178
|
__typename
|
|
179
179
|
required {
|
|
180
180
|
...DecimalNumber
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
available {
|
|
183
183
|
...DecimalNumber
|
|
184
184
|
}
|
|
185
|
-
}`,[c]);var
|
|
185
|
+
}`,[c]);var Ye=e(`fragment HubSummary on HubSummary {
|
|
186
186
|
__typename
|
|
187
187
|
totalBorrowed {
|
|
188
188
|
...ExchangeAmountWithChange
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
summary(currency: $currency) {
|
|
211
211
|
...HubSummary
|
|
212
212
|
}
|
|
213
|
-
}`,[o,
|
|
213
|
+
}`,[o,Ye]);var ze=e(`fragment HubAssetSummary on HubAssetSummary {
|
|
214
214
|
__typename
|
|
215
215
|
supplied {
|
|
216
216
|
...Erc20Amount
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
utilizationRate {
|
|
234
234
|
...PercentNumber
|
|
235
235
|
}
|
|
236
|
-
}`,[p,a]),
|
|
236
|
+
}`,[p,a]),Ze=e(`fragment HubAssetSettings on HubAssetSettings {
|
|
237
237
|
__typename
|
|
238
238
|
feeReceiver
|
|
239
239
|
liquidityFee {
|
|
@@ -241,12 +241,12 @@
|
|
|
241
241
|
}
|
|
242
242
|
irStrategy
|
|
243
243
|
reinvestmentController
|
|
244
|
-
}`,[a]),
|
|
244
|
+
}`,[a]),je=e(`fragment HubAssetUserState on HubAssetUserState {
|
|
245
245
|
__typename
|
|
246
246
|
balance {
|
|
247
247
|
...Erc20Amount
|
|
248
248
|
}
|
|
249
|
-
}`,[p]),
|
|
249
|
+
}`,[p]),E=e(`fragment HubAsset on HubAsset {
|
|
250
250
|
__typename
|
|
251
251
|
id
|
|
252
252
|
onchainAssetId
|
|
@@ -265,7 +265,35 @@
|
|
|
265
265
|
userState {
|
|
266
266
|
...HubAssetUserState
|
|
267
267
|
}
|
|
268
|
-
}`,[T,y,
|
|
268
|
+
}`,[T,y,ze,Ze,je]);var Je=e(`fragment TypeField on TypeField {
|
|
269
|
+
name
|
|
270
|
+
type
|
|
271
|
+
}`),Xe=e(`fragment TypeDefinition on TypeDefinition {
|
|
272
|
+
EIP712Domain {
|
|
273
|
+
...TypeField
|
|
274
|
+
}
|
|
275
|
+
Permit {
|
|
276
|
+
...TypeField
|
|
277
|
+
}
|
|
278
|
+
}`,[Je]),et=e(`fragment PermitMessageData on PermitMessageData {
|
|
279
|
+
owner
|
|
280
|
+
spender
|
|
281
|
+
value
|
|
282
|
+
nonce
|
|
283
|
+
deadline
|
|
284
|
+
}`),ee=e(`fragment PermitTypedData on PermitTypedData {
|
|
285
|
+
__typename
|
|
286
|
+
types {
|
|
287
|
+
...TypeDefinition
|
|
288
|
+
}
|
|
289
|
+
primaryType
|
|
290
|
+
domain {
|
|
291
|
+
...DomainData
|
|
292
|
+
}
|
|
293
|
+
message {
|
|
294
|
+
...PermitMessageData
|
|
295
|
+
}
|
|
296
|
+
}`,[Xe,v,et]);function ir(t){return typeof t=="object"&&t!==null&&"deadline"in t&&"value"in t}var i=e(`fragment Spoke on Spoke {
|
|
269
297
|
__typename
|
|
270
298
|
id
|
|
271
299
|
name
|
|
@@ -273,12 +301,12 @@
|
|
|
273
301
|
chain {
|
|
274
302
|
...Chain
|
|
275
303
|
}
|
|
276
|
-
}`,[o]),
|
|
304
|
+
}`,[o]),tt=e(`fragment SpokePositionManager on SpokePositionManger {
|
|
277
305
|
__typename
|
|
278
306
|
address
|
|
279
307
|
active
|
|
280
308
|
name
|
|
281
|
-
}`),
|
|
309
|
+
}`),te=e(`fragment PaginatedSpokePositionManagerResult on PaginatedSpokePositionManagerResult {
|
|
282
310
|
__typename
|
|
283
311
|
items {
|
|
284
312
|
...SpokePositionManager
|
|
@@ -286,13 +314,13 @@
|
|
|
286
314
|
pageInfo {
|
|
287
315
|
...PaginatedResultInfo
|
|
288
316
|
}
|
|
289
|
-
}`,[
|
|
317
|
+
}`,[tt,A]),rt=e(`fragment SpokeUserPositionManager on SpokeUserPositionManager {
|
|
290
318
|
__typename
|
|
291
319
|
address
|
|
292
320
|
approvedOn
|
|
293
321
|
active
|
|
294
322
|
name
|
|
295
|
-
}`),
|
|
323
|
+
}`),re=e(`fragment PaginatedSpokeUserPositionManagerResult on PaginatedSpokeUserPositionManagerResult {
|
|
296
324
|
__typename
|
|
297
325
|
items {
|
|
298
326
|
...SpokeUserPositionManager
|
|
@@ -300,7 +328,7 @@
|
|
|
300
328
|
pageInfo {
|
|
301
329
|
...PaginatedResultInfo
|
|
302
330
|
}
|
|
303
|
-
}`,[
|
|
331
|
+
}`,[rt,A]);var at=e(`fragment ReserveSettings on ReserveSettings {
|
|
304
332
|
__typename
|
|
305
333
|
collateralFactor {
|
|
306
334
|
...PercentNumber
|
|
@@ -318,12 +346,12 @@
|
|
|
318
346
|
collateral
|
|
319
347
|
suppliable
|
|
320
348
|
latestDynamicConfigKey
|
|
321
|
-
}`,[a]),
|
|
349
|
+
}`,[a]),nt=e(`fragment ReserveStatus on ReserveStatus {
|
|
322
350
|
__typename
|
|
323
351
|
frozen
|
|
324
352
|
paused
|
|
325
353
|
active
|
|
326
|
-
}`),
|
|
354
|
+
}`),ot=e(`fragment ReserveSummary on ReserveSummary {
|
|
327
355
|
__typename
|
|
328
356
|
supplied {
|
|
329
357
|
...Erc20Amount
|
|
@@ -337,7 +365,7 @@
|
|
|
337
365
|
borrowApy {
|
|
338
366
|
...PercentNumber
|
|
339
367
|
}
|
|
340
|
-
}`,[p,a]),
|
|
368
|
+
}`,[p,a]),pt=e(`fragment ReserveUserState on ReserveUserState {
|
|
341
369
|
__typename
|
|
342
370
|
balance {
|
|
343
371
|
...Erc20Amount
|
|
@@ -391,45 +419,13 @@
|
|
|
391
419
|
asset {
|
|
392
420
|
...HubAsset
|
|
393
421
|
}
|
|
394
|
-
}`,[i,o,
|
|
422
|
+
}`,[i,o,ot,at,nt,pt,E]),g=e(`fragment ReserveInfo on ReserveInfo {
|
|
395
423
|
__typename
|
|
396
424
|
id
|
|
397
425
|
asset {
|
|
398
426
|
...HubAsset
|
|
399
427
|
}
|
|
400
|
-
}`,[
|
|
401
|
-
name
|
|
402
|
-
type
|
|
403
|
-
}`),at=e(`fragment TypeDefinition on TypeDefinition {
|
|
404
|
-
EIP712Domain {
|
|
405
|
-
...TypeField
|
|
406
|
-
}
|
|
407
|
-
Permit {
|
|
408
|
-
...TypeField
|
|
409
|
-
}
|
|
410
|
-
}`,[rt]),nt=e(`fragment PermitMessageData on PermitMessageData {
|
|
411
|
-
owner
|
|
412
|
-
spender
|
|
413
|
-
value
|
|
414
|
-
nonce
|
|
415
|
-
deadline
|
|
416
|
-
}`),_=e(`fragment PermitTypedDataResponse on PermitTypedDataResponse {
|
|
417
|
-
__typename
|
|
418
|
-
types {
|
|
419
|
-
...TypeDefinition
|
|
420
|
-
}
|
|
421
|
-
primaryType
|
|
422
|
-
domain {
|
|
423
|
-
...DomainData
|
|
424
|
-
}
|
|
425
|
-
message {
|
|
426
|
-
...PermitMessageData
|
|
427
|
-
}
|
|
428
|
-
}`,[at,v,nt]);function Sr(t){return typeof t=="object"&&t!==null&&"deadline"in t&&"value"in t}var fr=e(`query PermitTypedData($request: PermitRequest!) {
|
|
429
|
-
value: permitTypedData(request: $request) {
|
|
430
|
-
...PermitTypedDataResponse
|
|
431
|
-
}
|
|
432
|
-
}`,[_]);var m=e(`fragment TransactionRequest on TransactionRequest {
|
|
428
|
+
}`,[E]);var m=e(`fragment TransactionRequest on TransactionRequest {
|
|
433
429
|
__typename
|
|
434
430
|
to
|
|
435
431
|
from
|
|
@@ -437,11 +433,22 @@
|
|
|
437
433
|
value
|
|
438
434
|
chainId
|
|
439
435
|
operations
|
|
440
|
-
}`)
|
|
436
|
+
}`),_=e(`fragment Erc20Approval on Erc20Approval {
|
|
437
|
+
__typename
|
|
438
|
+
byTransaction {
|
|
439
|
+
...TransactionRequest
|
|
440
|
+
}
|
|
441
|
+
bySignature {
|
|
442
|
+
...PermitTypedData
|
|
443
|
+
}
|
|
444
|
+
}`,[m,ee]),$=e(`fragment Erc20ApprovalRequired on Erc20ApprovalRequired {
|
|
441
445
|
__typename
|
|
442
446
|
transaction {
|
|
443
447
|
...TransactionRequest
|
|
444
448
|
}
|
|
449
|
+
approval {
|
|
450
|
+
...Erc20Approval
|
|
451
|
+
}
|
|
445
452
|
reason
|
|
446
453
|
requiredAmount {
|
|
447
454
|
...DecimalNumber
|
|
@@ -452,7 +459,7 @@
|
|
|
452
459
|
originalTransaction {
|
|
453
460
|
...TransactionRequest
|
|
454
461
|
}
|
|
455
|
-
}`,[m,c]),
|
|
462
|
+
}`,[m,_,c]),st=e(`fragment PreContractActionRequired on PreContractActionRequired {
|
|
456
463
|
__typename
|
|
457
464
|
transaction {
|
|
458
465
|
...TransactionRequest
|
|
@@ -461,7 +468,7 @@
|
|
|
461
468
|
originalTransaction {
|
|
462
469
|
...TransactionRequest
|
|
463
470
|
}
|
|
464
|
-
}`,[m]),
|
|
471
|
+
}`,[m]),b=e(`fragment ExecutionPlan on ExecutionPlan {
|
|
465
472
|
__typename
|
|
466
473
|
... on TransactionRequest {
|
|
467
474
|
...TransactionRequest
|
|
@@ -475,15 +482,7 @@
|
|
|
475
482
|
... on InsufficientBalanceError {
|
|
476
483
|
...InsufficientBalanceError
|
|
477
484
|
}
|
|
478
|
-
}`,[m,$,
|
|
479
|
-
__typename
|
|
480
|
-
byTransaction {
|
|
481
|
-
...TransactionRequest
|
|
482
|
-
}
|
|
483
|
-
bySignature {
|
|
484
|
-
...PermitTypedDataResponse
|
|
485
|
-
}
|
|
486
|
-
}`,[m,_]),st=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
485
|
+
}`,[m,$,st,q]);var ut=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
487
486
|
__typename
|
|
488
487
|
networkCosts {
|
|
489
488
|
...TokenAmount
|
|
@@ -499,14 +498,15 @@
|
|
|
499
498
|
}
|
|
500
499
|
}`,[I]),U=e(`fragment SwapQuote on SwapQuote {
|
|
501
500
|
__typename
|
|
501
|
+
accuracy
|
|
502
502
|
quoteId
|
|
503
503
|
suggestedSlippage {
|
|
504
504
|
...PercentNumber
|
|
505
505
|
}
|
|
506
|
-
|
|
506
|
+
buy {
|
|
507
507
|
...TokenAmount
|
|
508
508
|
}
|
|
509
|
-
|
|
509
|
+
sell {
|
|
510
510
|
...TokenAmount
|
|
511
511
|
}
|
|
512
512
|
costs {
|
|
@@ -518,7 +518,7 @@
|
|
|
518
518
|
finalSell {
|
|
519
519
|
...TokenAmount
|
|
520
520
|
}
|
|
521
|
-
}`,[a,I,
|
|
521
|
+
}`,[a,I,ut]),k=e(`fragment SwapTypedData on SwapTypedData {
|
|
522
522
|
__typename
|
|
523
523
|
primaryType
|
|
524
524
|
types
|
|
@@ -526,19 +526,19 @@
|
|
|
526
526
|
...DomainData
|
|
527
527
|
}
|
|
528
528
|
message
|
|
529
|
-
}`,[v]),
|
|
529
|
+
}`,[v]),ae=e(`fragment PrepareSwapOrder on PrepareSwapOrder {
|
|
530
530
|
__typename
|
|
531
531
|
newQuoteId
|
|
532
532
|
data {
|
|
533
533
|
...SwapTypedData
|
|
534
534
|
}
|
|
535
|
-
}`,[
|
|
535
|
+
}`,[k]),it=e(`fragment SwapByIntent on SwapByIntent {
|
|
536
536
|
__typename
|
|
537
537
|
quote {
|
|
538
538
|
...SwapQuote
|
|
539
539
|
}
|
|
540
540
|
|
|
541
|
-
}`,[U]),
|
|
541
|
+
}`,[U]),mt=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
542
542
|
__typename
|
|
543
543
|
approval {
|
|
544
544
|
...Erc20Approval
|
|
@@ -546,17 +546,17 @@
|
|
|
546
546
|
quote {
|
|
547
547
|
...SwapQuote
|
|
548
548
|
}
|
|
549
|
-
}`,[
|
|
549
|
+
}`,[_,U,k]),yt=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
550
550
|
__typename
|
|
551
551
|
quote {
|
|
552
552
|
...SwapQuote
|
|
553
553
|
}
|
|
554
|
-
}`,[U]),
|
|
554
|
+
}`,[U]),ne=e(`fragment SwapReceipt on SwapReceipt {
|
|
555
555
|
__typename
|
|
556
556
|
id
|
|
557
557
|
explorerLink
|
|
558
558
|
createdAt
|
|
559
|
-
}`),
|
|
559
|
+
}`),oe=e(`fragment TokenSwapQuoteResult on TokenSwapQuoteResult {
|
|
560
560
|
__typename
|
|
561
561
|
... on SwapByIntent {
|
|
562
562
|
...SwapByIntent
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
... on SwapByTransaction {
|
|
568
568
|
...SwapByTransaction
|
|
569
569
|
}
|
|
570
|
-
}`,[
|
|
570
|
+
}`,[it,mt,yt]),pe=e(`fragment PrepareTokenSwapResult on PrepareTokenSwapResult {
|
|
571
571
|
__typename
|
|
572
572
|
... on PrepareSwapOrder {
|
|
573
573
|
...PrepareSwapOrder
|
|
@@ -575,7 +575,7 @@
|
|
|
575
575
|
... on InsufficientBalanceError {
|
|
576
576
|
...InsufficientBalanceError
|
|
577
577
|
}
|
|
578
|
-
}`,[
|
|
578
|
+
}`,[ae,q]),ct=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
579
579
|
__typename
|
|
580
580
|
transaction {
|
|
581
581
|
...TransactionRequest
|
|
@@ -583,7 +583,7 @@
|
|
|
583
583
|
orderReceipt {
|
|
584
584
|
...SwapReceipt
|
|
585
585
|
}
|
|
586
|
-
}`,[m,
|
|
586
|
+
}`,[m,ne]),se=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
587
587
|
__typename
|
|
588
588
|
... on SwapTransactionRequest {
|
|
589
589
|
...SwapTransactionRequest
|
|
@@ -594,17 +594,17 @@
|
|
|
594
594
|
... on InsufficientBalanceError {
|
|
595
595
|
...InsufficientBalanceError
|
|
596
596
|
}
|
|
597
|
-
}`,[
|
|
597
|
+
}`,[ct,ne,q]),ue=e(`fragment SwapCancelled on SwapCancelled {
|
|
598
598
|
__typename
|
|
599
599
|
createdAt
|
|
600
600
|
cancelledAt
|
|
601
601
|
explorerLink
|
|
602
|
-
}`),
|
|
602
|
+
}`),lt=e(`fragment SwapExpired on SwapExpired {
|
|
603
603
|
__typename
|
|
604
604
|
createdAt
|
|
605
605
|
expiredAt
|
|
606
606
|
explorerLink
|
|
607
|
-
}`),
|
|
607
|
+
}`),gt=e(`fragment PositionAmount on PositionAmount {
|
|
608
608
|
__typename
|
|
609
609
|
reserve {
|
|
610
610
|
...ReserveInfo
|
|
@@ -612,7 +612,7 @@
|
|
|
612
612
|
amount {
|
|
613
613
|
...Erc20Amount
|
|
614
614
|
}
|
|
615
|
-
}`,[g,p]),
|
|
615
|
+
}`,[g,p]),ie=e(`fragment SwapAmount on SwapAmount {
|
|
616
616
|
__typename
|
|
617
617
|
... on PositionAmount {
|
|
618
618
|
...PositionAmount
|
|
@@ -623,7 +623,7 @@
|
|
|
623
623
|
... on Erc20Amount {
|
|
624
624
|
...Erc20Amount
|
|
625
625
|
}
|
|
626
|
-
}`,[
|
|
626
|
+
}`,[gt,Q,p]),dt=e(`fragment SwapOpen on SwapOpen {
|
|
627
627
|
__typename
|
|
628
628
|
swapId
|
|
629
629
|
createdAt
|
|
@@ -635,12 +635,12 @@
|
|
|
635
635
|
desiredBuy {
|
|
636
636
|
...SwapAmount
|
|
637
637
|
}
|
|
638
|
-
}`,[
|
|
638
|
+
}`,[ie]),St=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
639
639
|
__typename
|
|
640
640
|
createdAt
|
|
641
641
|
deadline
|
|
642
642
|
explorerLink
|
|
643
|
-
}`),
|
|
643
|
+
}`),ft=e(`fragment SwapFulfilled on SwapFulfilled {
|
|
644
644
|
__typename
|
|
645
645
|
txHash
|
|
646
646
|
desiredSell {
|
|
@@ -659,7 +659,7 @@
|
|
|
659
659
|
fulfilledAt
|
|
660
660
|
explorerLink
|
|
661
661
|
refundTxHash
|
|
662
|
-
}`,[
|
|
662
|
+
}`,[ie]),N=e(`fragment SwapStatus on SwapStatus {
|
|
663
663
|
__typename
|
|
664
664
|
... on SwapOpen {
|
|
665
665
|
...SwapOpen
|
|
@@ -676,12 +676,12 @@
|
|
|
676
676
|
... on SwapFulfilled {
|
|
677
677
|
...SwapFulfilled
|
|
678
678
|
}
|
|
679
|
-
}`,[
|
|
679
|
+
}`,[dt,St,ue,lt,ft]),me=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
680
680
|
__typename
|
|
681
681
|
data {
|
|
682
682
|
...SwapTypedData
|
|
683
683
|
}
|
|
684
|
-
}`,[
|
|
684
|
+
}`,[k]),ye=e(`fragment CancelSwapExecutionPlan on CancelSwapExecutionPlan {
|
|
685
685
|
__typename
|
|
686
686
|
... on TransactionRequest {
|
|
687
687
|
...TransactionRequest
|
|
@@ -689,7 +689,7 @@
|
|
|
689
689
|
... on SwapCancelled {
|
|
690
690
|
...SwapCancelled
|
|
691
691
|
}
|
|
692
|
-
}`,[m,
|
|
692
|
+
}`,[m,ue]),ce=e(`fragment PaginatedUserSwapsResult on PaginatedUserSwapsResult {
|
|
693
693
|
__typename
|
|
694
694
|
items {
|
|
695
695
|
...SwapStatus
|
|
@@ -697,12 +697,12 @@
|
|
|
697
697
|
pageInfo {
|
|
698
698
|
...PaginatedResultInfo
|
|
699
699
|
}
|
|
700
|
-
}`,[N,A]),
|
|
700
|
+
}`,[N,A]),Rt=e(`fragment PositionSwapAdapterContractApproval on PositionSwapAdapterContractApproval {
|
|
701
701
|
__typename
|
|
702
702
|
bySignature {
|
|
703
703
|
...SwapTypedData
|
|
704
704
|
}
|
|
705
|
-
}`,[
|
|
705
|
+
}`,[k]),qt=e(`fragment PositionSwapPositionManagerApproval on PositionSwapPositionManagerApproval {
|
|
706
706
|
__typename
|
|
707
707
|
byTransaction {
|
|
708
708
|
...TransactionRequest
|
|
@@ -710,7 +710,7 @@
|
|
|
710
710
|
bySignature {
|
|
711
711
|
...SwapTypedData
|
|
712
712
|
}
|
|
713
|
-
}`,[m,
|
|
713
|
+
}`,[m,k]),xt=e(`fragment PositionSwapApproval on PositionSwapApproval {
|
|
714
714
|
__typename
|
|
715
715
|
... on PositionSwapAdapterContractApproval {
|
|
716
716
|
...PositionSwapAdapterContractApproval
|
|
@@ -718,7 +718,7 @@
|
|
|
718
718
|
... on PositionSwapPositionManagerApproval {
|
|
719
719
|
...PositionSwapPositionManagerApproval
|
|
720
720
|
}
|
|
721
|
-
}`,[
|
|
721
|
+
}`,[Rt,qt]),C=e(`fragment PositionSwapByIntentApprovalsRequired on PositionSwapByIntentApprovalsRequired {
|
|
722
722
|
__typename
|
|
723
723
|
quote {
|
|
724
724
|
...SwapQuote
|
|
@@ -726,27 +726,27 @@
|
|
|
726
726
|
approvals {
|
|
727
727
|
...PositionSwapApproval
|
|
728
728
|
}
|
|
729
|
-
}`,[U,
|
|
729
|
+
}`,[U,xt]),le=e(`fragment SupplySwapQuoteResult on SupplySwapQuoteResult {
|
|
730
730
|
__typename
|
|
731
731
|
... on PositionSwapByIntentApprovalsRequired {
|
|
732
732
|
...PositionSwapByIntentApprovalsRequired
|
|
733
733
|
}
|
|
734
|
-
}`,[C]),
|
|
734
|
+
}`,[C]),ge=e(`fragment BorrowSwapQuoteResult on BorrowSwapQuoteResult {
|
|
735
735
|
__typename
|
|
736
736
|
... on PositionSwapByIntentApprovalsRequired {
|
|
737
737
|
...PositionSwapByIntentApprovalsRequired
|
|
738
738
|
}
|
|
739
|
-
}`,[C]),
|
|
739
|
+
}`,[C]),de=e(`fragment RepayWithSupplyQuoteResult on RepayWithSupplyQuoteResult {
|
|
740
740
|
__typename
|
|
741
741
|
... on PositionSwapByIntentApprovalsRequired {
|
|
742
742
|
...PositionSwapByIntentApprovalsRequired
|
|
743
743
|
}
|
|
744
|
-
}`,[C]),
|
|
744
|
+
}`,[C]),Se=e(`fragment WithdrawSwapQuoteResult on WithdrawSwapQuoteResult {
|
|
745
745
|
__typename
|
|
746
746
|
... on PositionSwapByIntentApprovalsRequired {
|
|
747
747
|
...PositionSwapByIntentApprovalsRequired
|
|
748
748
|
}
|
|
749
|
-
}`,[C]),
|
|
749
|
+
}`,[C]),fe=e(`fragment PreparePositionSwapResult on PreparePositionSwapResult {
|
|
750
750
|
__typename
|
|
751
751
|
... on PrepareSwapOrder {
|
|
752
752
|
...PrepareSwapOrder
|
|
@@ -754,7 +754,7 @@
|
|
|
754
754
|
... on InsufficientBalanceError {
|
|
755
755
|
...InsufficientBalanceError
|
|
756
756
|
}
|
|
757
|
-
}`,[
|
|
757
|
+
}`,[ae,q]);var Re=e(`fragment UserSupplyItem on UserSupplyItem {
|
|
758
758
|
__typename
|
|
759
759
|
id
|
|
760
760
|
reserve {
|
|
@@ -771,7 +771,7 @@
|
|
|
771
771
|
}
|
|
772
772
|
isCollateral
|
|
773
773
|
createdAt
|
|
774
|
-
}`,[p,h]),
|
|
774
|
+
}`,[p,h]),qe=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
775
775
|
__typename
|
|
776
776
|
id
|
|
777
777
|
principal {
|
|
@@ -787,7 +787,7 @@
|
|
|
787
787
|
...Reserve
|
|
788
788
|
}
|
|
789
789
|
createdAt
|
|
790
|
-
}`,[p,h]),
|
|
790
|
+
}`,[p,h]),xe=e(`fragment UserSummary on UserSummary {
|
|
791
791
|
__typename
|
|
792
792
|
totalPositions
|
|
793
793
|
netBalance(currency: $currency) {
|
|
@@ -823,7 +823,7 @@
|
|
|
823
823
|
collateral {
|
|
824
824
|
...PercentNumber
|
|
825
825
|
}
|
|
826
|
-
}`,[y,a]),
|
|
826
|
+
}`,[y,a]),At=e(`fragment UserPositionRiskPremium on UserPositionRiskPremium {
|
|
827
827
|
__typename
|
|
828
828
|
current {
|
|
829
829
|
...PercentNumber
|
|
@@ -888,7 +888,7 @@
|
|
|
888
888
|
averageCollateralFactor {
|
|
889
889
|
...PercentNumber
|
|
890
890
|
}
|
|
891
|
-
}`,[i,a,R,u,z,J,
|
|
891
|
+
}`,[i,a,R,u,z,J,At]),Ae=e(`fragment UserBalance on UserBalance {
|
|
892
892
|
__typename
|
|
893
893
|
id
|
|
894
894
|
info {
|
|
@@ -921,7 +921,7 @@
|
|
|
921
921
|
lowestCollateralFactor: collateralFactor(metric: LOWEST) {
|
|
922
922
|
...PercentNumber
|
|
923
923
|
}
|
|
924
|
-
}`,[F,c,I,u,a]),
|
|
924
|
+
}`,[F,c,I,u,a]),we=e(`fragment UserSummaryHistoryItem on UserSummaryHistoryItem {
|
|
925
925
|
__typename
|
|
926
926
|
netBalance(currency: $currency) {
|
|
927
927
|
...ExchangeAmount
|
|
@@ -940,7 +940,7 @@
|
|
|
940
940
|
avgRate {
|
|
941
941
|
...PercentNumber
|
|
942
942
|
}
|
|
943
|
-
}`,[a]);var
|
|
943
|
+
}`,[a]);var Br=e(`query Hub($request: HubRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
944
944
|
value: hub(request: $request) {
|
|
945
945
|
...Hub
|
|
946
946
|
}
|
|
@@ -952,7 +952,7 @@
|
|
|
952
952
|
value: hubAssets(request: $request) {
|
|
953
953
|
...HubAsset
|
|
954
954
|
}
|
|
955
|
-
}`,[
|
|
955
|
+
}`,[E]),wt=e(`fragment HubSummarySample on HubSummarySample {
|
|
956
956
|
__typename
|
|
957
957
|
date
|
|
958
958
|
deposits {
|
|
@@ -971,7 +971,7 @@
|
|
|
971
971
|
value: hubSummaryHistory(request: $request) {
|
|
972
972
|
...HubSummarySample
|
|
973
973
|
}
|
|
974
|
-
}`,[
|
|
974
|
+
}`,[wt]);function V(t){return new TextDecoder().decode(Uint8Array.from(atob(t),x=>x.charCodeAt(0)))}function H(t){return btoa(String.fromCharCode(...new TextEncoder().encode(t)))}var d="::";function Dr(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid AssetId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`AssetId must be valid base64: ${t}`),t}function ht(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid HubId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`HubId must be valid base64: ${t}`),t}function Lr(t){return ht(H(`${t.chainId}${d}${t.address}`))}function Mr(t){let x=V(t),[r,n]=x.split(d);return {chainId:types.chainId(Number.parseInt(r,10)),address:types.evmAddress(n)}}function Vr(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid HubAssetId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`HubAssetId must be valid base64: ${t}`),t}function Kr(t){return t}function Gr(t){let x=V(t),[r,n,S]=x.split(d);return {chainId:types.chainId(Number.parseInt(r,10)),spoke:types.evmAddress(n),onChainId:S}}function Yr(t){return H(`${t.chainId}${d}${t.spoke}${d}${t.onChainId}`)}function Pt(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid UserPositionId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserPositionId must be valid base64: ${t}`),t}function zr(t){let x=V(t),[r,n,S]=x.split(d);return {chainId:types.chainId(Number.parseInt(r,10)),spoke:types.evmAddress(n),user:types.evmAddress(S)}}function Zr(t){return Pt(H(`${t.chainId}${d}${t.spoke}${d}${t.user}`))}function jr(t){return types.invariant(types.isValidHexString(t),`Invalid SwapId: ${t}`),t}function Jr(t){return types.invariant(types.isValidHexString(t),`Invalid SwapQuoteId: ${t}`),t}function Xr(t){return Ft(H(`${t.chainId}${d}${t.address}`))}function Ft(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid SpokeId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`SpokeId must be valid base64: ${t}`),t}function ea(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid UserBalanceId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserBalanceId must be valid base64: ${t}`),t}function ta(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid UserBorrowItemId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserBorrowItemId must be valid base64: ${t}`),t}function ra(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid UserSupplyItemId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserSupplyItemId must be valid base64: ${t}`),t}function aa(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid TokenInfoId: ${t}`),t}function pa(t){return types.isObject(t)&&"hubInput"in t&&t.hubInput!=null}function sa(t){return types.isObject(t)&&"chainIds"in t&&t.chainIds!=null}function ua(t){return types.isObject(t)&&"spoke"in t&&t.spoke!=null}function ia(t){return types.isObject(t)&&"txHash"in t&&t.txHash!=null}var la=e(`query Chain($request: ChainRequest!) {
|
|
975
975
|
value: chain(request: $request) {
|
|
976
976
|
...Chain
|
|
977
977
|
}
|
|
@@ -987,11 +987,11 @@
|
|
|
987
987
|
value: exchangeRate(request: $request) {
|
|
988
988
|
...ExchangeAmount
|
|
989
989
|
}
|
|
990
|
-
}`,[u]);var
|
|
990
|
+
}`,[u]);var It=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
991
991
|
__typename
|
|
992
992
|
date
|
|
993
993
|
price
|
|
994
|
-
}`),
|
|
994
|
+
}`),Tt=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
995
995
|
__typename
|
|
996
996
|
date
|
|
997
997
|
amount {
|
|
@@ -1003,7 +1003,7 @@
|
|
|
1003
1003
|
lowestApy {
|
|
1004
1004
|
...PercentNumber
|
|
1005
1005
|
}
|
|
1006
|
-
}`,[c,a]),
|
|
1006
|
+
}`,[c,a]),Et=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
1007
1007
|
__typename
|
|
1008
1008
|
date
|
|
1009
1009
|
amount {
|
|
@@ -1049,7 +1049,7 @@
|
|
|
1049
1049
|
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
1050
1050
|
...PercentNumber
|
|
1051
1051
|
}
|
|
1052
|
-
}`,[bt,a]),
|
|
1052
|
+
}`,[bt,a]),vt=e(`fragment Asset on Asset {
|
|
1053
1053
|
__typename
|
|
1054
1054
|
id
|
|
1055
1055
|
token {
|
|
@@ -1065,19 +1065,19 @@
|
|
|
1065
1065
|
value: asset(request: $request) {
|
|
1066
1066
|
...Asset
|
|
1067
1067
|
}
|
|
1068
|
-
}`,[
|
|
1068
|
+
}`,[vt]),wa=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
1069
1069
|
value: assetPriceHistory(request: $request) {
|
|
1070
1070
|
...AssetPriceSample
|
|
1071
1071
|
}
|
|
1072
|
-
}`,[
|
|
1072
|
+
}`,[It]),ha=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!) {
|
|
1073
1073
|
value: assetSupplyHistory(request: $request) {
|
|
1074
1074
|
...AssetSupplySample
|
|
1075
1075
|
}
|
|
1076
|
-
}`,[
|
|
1076
|
+
}`,[Tt]),Pa=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!) {
|
|
1077
1077
|
value: assetBorrowHistory(request: $request) {
|
|
1078
1078
|
...AssetBorrowSample
|
|
1079
1079
|
}
|
|
1080
|
-
}`,[
|
|
1080
|
+
}`,[Et]),Ut=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
1081
1081
|
__typename
|
|
1082
1082
|
date
|
|
1083
1083
|
deposits {
|
|
@@ -1090,11 +1090,11 @@
|
|
|
1090
1090
|
value: protocolHistory(request: $request) {
|
|
1091
1091
|
...ProtocolHistorySample
|
|
1092
1092
|
}
|
|
1093
|
-
}`,[
|
|
1093
|
+
}`,[Ut]);var ba=e(`query BorrowApyHistory($request: BorrowApyHistoryRequest!) {
|
|
1094
1094
|
value: borrowApyHistory(request: $request) {
|
|
1095
1095
|
...ApySample
|
|
1096
1096
|
}
|
|
1097
|
-
}`,[L]),
|
|
1097
|
+
}`,[L]),ka=e(`query SupplyApyHistory($request: SupplyApyHistoryRequest!) {
|
|
1098
1098
|
value: supplyApyHistory(request: $request) {
|
|
1099
1099
|
...ApySample
|
|
1100
1100
|
}
|
|
@@ -1106,7 +1106,7 @@
|
|
|
1106
1106
|
value: reserves(request: $request) {
|
|
1107
1107
|
...Reserve
|
|
1108
1108
|
}
|
|
1109
|
-
}`,[h]);var
|
|
1109
|
+
}`,[h]);var Ba=e(`query Spoke($request: SpokeRequest!) {
|
|
1110
1110
|
value: spoke(request: $request) {
|
|
1111
1111
|
...Spoke
|
|
1112
1112
|
}
|
|
@@ -1118,15 +1118,15 @@
|
|
|
1118
1118
|
value: spokePositionManagers(request: $request) {
|
|
1119
1119
|
...PaginatedSpokePositionManagerResult
|
|
1120
1120
|
}
|
|
1121
|
-
}`,[
|
|
1121
|
+
}`,[te]),$a=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
1122
1122
|
value: spokeUserPositionManagers(request: $request) {
|
|
1123
1123
|
...PaginatedSpokeUserPositionManagerResult
|
|
1124
1124
|
}
|
|
1125
|
-
}`,[
|
|
1125
|
+
}`,[re]);var La=e(`query TokenSwapQuote($request: TokenSwapQuoteRequest!, $currency: Currency!) {
|
|
1126
1126
|
value: tokenSwapQuote(request: $request) {
|
|
1127
1127
|
...TokenSwapQuoteResult
|
|
1128
1128
|
}
|
|
1129
|
-
}`,[
|
|
1129
|
+
}`,[oe]),Ma=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
1130
1130
|
value: swappableTokens(request: $request) {
|
|
1131
1131
|
...Token
|
|
1132
1132
|
}
|
|
@@ -1134,7 +1134,7 @@
|
|
|
1134
1134
|
value: prepareTokenSwap(request: $request) {
|
|
1135
1135
|
...PrepareTokenSwapResult
|
|
1136
1136
|
}
|
|
1137
|
-
}`,[
|
|
1137
|
+
}`,[pe]),Ka=e(`query SwapStatus($request: SwapStatusRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1138
1138
|
value: swapStatus(request: $request) {
|
|
1139
1139
|
...SwapStatus
|
|
1140
1140
|
}
|
|
@@ -1142,55 +1142,55 @@
|
|
|
1142
1142
|
value: swap(request: $request) {
|
|
1143
1143
|
...SwapExecutionPlan
|
|
1144
1144
|
}
|
|
1145
|
-
}`,[
|
|
1145
|
+
}`,[se]),Ya=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
1146
1146
|
value: prepareSwapCancel(request: $request) {
|
|
1147
1147
|
...PrepareSwapCancelResult
|
|
1148
1148
|
}
|
|
1149
|
-
}`,[
|
|
1149
|
+
}`,[me]),za=e(`mutation CancelSwap($request: CancelSwapRequest!) {
|
|
1150
1150
|
value: cancelSwap(request: $request) {
|
|
1151
1151
|
...CancelSwapExecutionPlan
|
|
1152
1152
|
}
|
|
1153
|
-
}`,[
|
|
1153
|
+
}`,[ye]),Za=e(`query UserSwaps($request: UserSwapsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1154
1154
|
value: userSwaps(request: $request) {
|
|
1155
1155
|
...PaginatedUserSwapsResult
|
|
1156
1156
|
}
|
|
1157
|
-
}`,[
|
|
1157
|
+
}`,[ce]),ja=e(`query SupplySwapQuote($request: SupplySwapQuoteRequest!, $currency: Currency!) {
|
|
1158
1158
|
value: supplySwapQuote(request: $request) {
|
|
1159
1159
|
...SupplySwapQuoteResult
|
|
1160
1160
|
}
|
|
1161
|
-
}`,[
|
|
1161
|
+
}`,[le]),Ja=e(`query BorrowSwapQuote($request: BorrowSwapQuoteRequest!, $currency: Currency!) {
|
|
1162
1162
|
value: borrowSwapQuote(request: $request) {
|
|
1163
1163
|
...BorrowSwapQuoteResult
|
|
1164
1164
|
}
|
|
1165
|
-
}`,[
|
|
1165
|
+
}`,[ge]),Xa=e(`query RepayWithSupplyQuote($request: RepayWithSupplyQuoteRequest!, $currency: Currency!) {
|
|
1166
1166
|
value: repayWithSupplyQuote(request: $request) {
|
|
1167
1167
|
...RepayWithSupplyQuoteResult
|
|
1168
1168
|
}
|
|
1169
|
-
}`,[
|
|
1169
|
+
}`,[de]),en=e(`query WithdrawSwapQuote($request: WithdrawSwapQuoteRequest!, $currency: Currency!) {
|
|
1170
1170
|
value: withdrawSwapQuote(request: $request) {
|
|
1171
1171
|
...WithdrawSwapQuoteResult
|
|
1172
1172
|
}
|
|
1173
|
-
}`,[
|
|
1173
|
+
}`,[Se]),tn=e(`query PreparePositionSwap($request: PreparePositionSwapRequest!) {
|
|
1174
1174
|
value: preparePositionSwap(request: $request) {
|
|
1175
1175
|
...PreparePositionSwapResult
|
|
1176
1176
|
}
|
|
1177
|
-
}`,[
|
|
1177
|
+
}`,[fe]);var on=e(`query Borrow($request: BorrowRequest!) {
|
|
1178
1178
|
value: borrow(request: $request) {
|
|
1179
1179
|
...ExecutionPlan
|
|
1180
1180
|
}
|
|
1181
|
-
}`,[
|
|
1181
|
+
}`,[b]),pn=e(`query Supply($request: SupplyRequest!) {
|
|
1182
1182
|
value: supply(request: $request) {
|
|
1183
1183
|
...ExecutionPlan
|
|
1184
1184
|
}
|
|
1185
|
-
}`,[
|
|
1185
|
+
}`,[b]),sn=e(`query Repay($request: RepayRequest!) {
|
|
1186
1186
|
value: repay(request: $request) {
|
|
1187
1187
|
...ExecutionPlan
|
|
1188
1188
|
}
|
|
1189
|
-
}`,[
|
|
1189
|
+
}`,[b]),un=e(`query Withdraw($request: WithdrawRequest!) {
|
|
1190
1190
|
value: withdraw(request: $request) {
|
|
1191
1191
|
...ExecutionPlan
|
|
1192
1192
|
}
|
|
1193
|
-
}`,[
|
|
1193
|
+
}`,[b]),Ct=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1194
1194
|
__typename
|
|
1195
1195
|
... on TransactionRequest {
|
|
1196
1196
|
...TransactionRequest
|
|
@@ -1205,7 +1205,7 @@
|
|
|
1205
1205
|
value: liquidatePosition(request: $request) {
|
|
1206
1206
|
...LiquidatePositionExecutionPlan
|
|
1207
1207
|
}
|
|
1208
|
-
}`,[
|
|
1208
|
+
}`,[Ct]),yn=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1209
1209
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1210
1210
|
...TransactionRequest
|
|
1211
1211
|
}
|
|
@@ -1221,7 +1221,7 @@
|
|
|
1221
1221
|
value: updateUserPositionConditions(request: $request) {
|
|
1222
1222
|
...TransactionRequest
|
|
1223
1223
|
}
|
|
1224
|
-
}`,[m]),
|
|
1224
|
+
}`,[m]),Ot=e(`fragment CollateralFactorVariation on CollateralFactorVariation {
|
|
1225
1225
|
__typename
|
|
1226
1226
|
reserveId
|
|
1227
1227
|
token {
|
|
@@ -1233,7 +1233,7 @@
|
|
|
1233
1233
|
after {
|
|
1234
1234
|
...PercentNumber
|
|
1235
1235
|
}
|
|
1236
|
-
}`,[y,a]),
|
|
1236
|
+
}`,[y,a]),Ht=e(`fragment LiquidationFeeVariation on LiquidationFeeVariation {
|
|
1237
1237
|
__typename
|
|
1238
1238
|
reserveId
|
|
1239
1239
|
token {
|
|
@@ -1257,7 +1257,7 @@
|
|
|
1257
1257
|
after {
|
|
1258
1258
|
...PercentNumber
|
|
1259
1259
|
}
|
|
1260
|
-
}`,[y,a]),
|
|
1260
|
+
}`,[y,a]),Qt=e(`fragment UserPositionConditionVariation on UserPositionConditionVariation {
|
|
1261
1261
|
__typename
|
|
1262
1262
|
... on CollateralFactorVariation {
|
|
1263
1263
|
...CollateralFactorVariation
|
|
@@ -1268,7 +1268,7 @@
|
|
|
1268
1268
|
... on MaxLiquidationBonusVariation {
|
|
1269
1269
|
...MaxLiquidationBonusVariation
|
|
1270
1270
|
}
|
|
1271
|
-
}`,[
|
|
1271
|
+
}`,[Ot,Ht,Bt]),_t=e(`fragment PreviewUserPosition on PreviewUserPosition {
|
|
1272
1272
|
__typename
|
|
1273
1273
|
id
|
|
1274
1274
|
healthFactor {
|
|
@@ -1295,11 +1295,11 @@
|
|
|
1295
1295
|
otherConditions {
|
|
1296
1296
|
...UserPositionConditionVariation
|
|
1297
1297
|
}
|
|
1298
|
-
}`,[X,Z,j,
|
|
1298
|
+
}`,[X,Z,j,Qt]),dn=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD) {
|
|
1299
1299
|
value: preview(request: $request) {
|
|
1300
1300
|
...PreviewUserPosition
|
|
1301
1301
|
}
|
|
1302
|
-
}`,[
|
|
1302
|
+
}`,[_t]),Pe=e(`fragment PercentNumberChangeSnapshot on PercentNumberChangeSnapshot {
|
|
1303
1303
|
__typename
|
|
1304
1304
|
before {
|
|
1305
1305
|
...PercentNumber
|
|
@@ -1307,7 +1307,7 @@
|
|
|
1307
1307
|
after {
|
|
1308
1308
|
...PercentNumber
|
|
1309
1309
|
}
|
|
1310
|
-
}`,[a])
|
|
1310
|
+
}`,[a]),$t=e(`fragment BorrowActivity on BorrowActivity {
|
|
1311
1311
|
__typename
|
|
1312
1312
|
id
|
|
1313
1313
|
user
|
|
@@ -1325,7 +1325,7 @@
|
|
|
1325
1325
|
chain {
|
|
1326
1326
|
...Chain
|
|
1327
1327
|
}
|
|
1328
|
-
}`,[i,p,g,o])
|
|
1328
|
+
}`,[i,p,g,o]),Nt=e(`fragment SupplyActivity on SupplyActivity {
|
|
1329
1329
|
__typename
|
|
1330
1330
|
id
|
|
1331
1331
|
user
|
|
@@ -1343,7 +1343,7 @@
|
|
|
1343
1343
|
chain {
|
|
1344
1344
|
...Chain
|
|
1345
1345
|
}
|
|
1346
|
-
}`,[i,p,g,o]),
|
|
1346
|
+
}`,[i,p,g,o]),Wt=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1347
1347
|
__typename
|
|
1348
1348
|
id
|
|
1349
1349
|
user
|
|
@@ -1361,7 +1361,7 @@
|
|
|
1361
1361
|
chain {
|
|
1362
1362
|
...Chain
|
|
1363
1363
|
}
|
|
1364
|
-
}`,[i,p,g,o]),
|
|
1364
|
+
}`,[i,p,g,o]),Dt=e(`fragment RepayActivity on RepayActivity {
|
|
1365
1365
|
__typename
|
|
1366
1366
|
id
|
|
1367
1367
|
user
|
|
@@ -1379,7 +1379,7 @@
|
|
|
1379
1379
|
chain {
|
|
1380
1380
|
...Chain
|
|
1381
1381
|
}
|
|
1382
|
-
}`,[i,p,g,o]),
|
|
1382
|
+
}`,[i,p,g,o]),Lt=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1383
1383
|
__typename
|
|
1384
1384
|
id
|
|
1385
1385
|
user
|
|
@@ -1404,7 +1404,7 @@
|
|
|
1404
1404
|
chain {
|
|
1405
1405
|
...Chain
|
|
1406
1406
|
}
|
|
1407
|
-
}`,[i,p,g,o]),
|
|
1407
|
+
}`,[i,p,g,o]),Mt=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1408
1408
|
__typename
|
|
1409
1409
|
id
|
|
1410
1410
|
user
|
|
@@ -1420,7 +1420,7 @@
|
|
|
1420
1420
|
chain {
|
|
1421
1421
|
...Chain
|
|
1422
1422
|
}
|
|
1423
|
-
}`,[i,g,o]),
|
|
1423
|
+
}`,[i,g,o]),Vt=e(`fragment UpdatedDynamicConfigActivity on UpdatedDynamicConfigActivity {
|
|
1424
1424
|
__typename
|
|
1425
1425
|
id
|
|
1426
1426
|
user
|
|
@@ -1444,7 +1444,7 @@
|
|
|
1444
1444
|
chain {
|
|
1445
1445
|
...Chain
|
|
1446
1446
|
}
|
|
1447
|
-
}`,[i,g,
|
|
1447
|
+
}`,[i,g,Pe,o]),Kt=e(`fragment UpdatedRiskPremiumActivity on UpdatedRiskPremiumActivity {
|
|
1448
1448
|
__typename
|
|
1449
1449
|
id
|
|
1450
1450
|
user
|
|
@@ -1459,7 +1459,7 @@
|
|
|
1459
1459
|
chain {
|
|
1460
1460
|
...Chain
|
|
1461
1461
|
}
|
|
1462
|
-
}`,[i,
|
|
1462
|
+
}`,[i,Pe,o]),Gt=e(`fragment ActivityItem on ActivityItem {
|
|
1463
1463
|
__typename
|
|
1464
1464
|
... on BorrowActivity {
|
|
1465
1465
|
...BorrowActivity
|
|
@@ -1485,7 +1485,7 @@
|
|
|
1485
1485
|
... on UpdatedRiskPremiumActivity {
|
|
1486
1486
|
...UpdatedRiskPremiumActivity
|
|
1487
1487
|
}
|
|
1488
|
-
}`,[
|
|
1488
|
+
}`,[$t,Nt,Wt,Dt,Lt,Mt,Vt,Kt]),Yt=e(`fragment PaginatedActivitiesResult on PaginatedActivitiesResult {
|
|
1489
1489
|
__typename
|
|
1490
1490
|
items {
|
|
1491
1491
|
...ActivityItem
|
|
@@ -1493,23 +1493,23 @@
|
|
|
1493
1493
|
pageInfo {
|
|
1494
1494
|
...PaginatedResultInfo
|
|
1495
1495
|
}
|
|
1496
|
-
}`,[
|
|
1496
|
+
}`,[Gt,A]),Sn=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1497
1497
|
value: activities(request: $request) {
|
|
1498
1498
|
...PaginatedActivitiesResult
|
|
1499
1499
|
}
|
|
1500
|
-
}`,[
|
|
1500
|
+
}`,[Yt]);var xn=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1501
1501
|
value: userSupplies(request: $request) {
|
|
1502
1502
|
...UserSupplyItem
|
|
1503
1503
|
}
|
|
1504
|
-
}`,[
|
|
1504
|
+
}`,[Re]),An=e(`query UserBorrows($request: UserBorrowsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1505
1505
|
value: userBorrows(request: $request) {
|
|
1506
1506
|
...UserBorrowItem
|
|
1507
1507
|
}
|
|
1508
|
-
}`,[
|
|
1508
|
+
}`,[qe]),wn=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1509
1509
|
value: userSummary(request: $request) {
|
|
1510
1510
|
...UserSummary
|
|
1511
1511
|
}
|
|
1512
|
-
}`,[
|
|
1512
|
+
}`,[xe]),hn=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1513
1513
|
value: userPositions(request: $request) {
|
|
1514
1514
|
...UserPosition
|
|
1515
1515
|
}
|
|
@@ -1521,13 +1521,13 @@
|
|
|
1521
1521
|
value: userBalances(request: $request) {
|
|
1522
1522
|
...UserBalance
|
|
1523
1523
|
}
|
|
1524
|
-
}`,[
|
|
1524
|
+
}`,[Ae]),In=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1525
1525
|
value: userSummaryHistory(request: $request) {
|
|
1526
1526
|
...UserSummaryHistoryItem
|
|
1527
1527
|
}
|
|
1528
|
-
}`,[
|
|
1528
|
+
}`,[we]),Tn=e(`query UserRiskPremiumBreakdown($request: UserRiskPremiumBreakdownRequest!) {
|
|
1529
1529
|
value: userRiskPremiumBreakdown(request: $request) {
|
|
1530
1530
|
...UserRiskPremiumBreakdownItem
|
|
1531
1531
|
}
|
|
1532
|
-
}`,[W]);exports.ActivitiesQuery=Sn;exports.ActivityItemFragment=
|
|
1532
|
+
}`,[W]);exports.ActivitiesQuery=Sn;exports.ActivityItemFragment=Gt;exports.ActivityType=ve;exports.ApyMetric=Ue;exports.ApySampleFragment=L;exports.AssetAmountWithChangeFragment=bt;exports.AssetBorrowHistoryQuery=Pa;exports.AssetBorrowSampleFragment=Et;exports.AssetFragment=vt;exports.AssetPriceHistoryQuery=wa;exports.AssetPriceSampleFragment=It;exports.AssetQuery=Aa;exports.AssetSummaryFragment=kt;exports.AssetSupplyHistoryQuery=ha;exports.AssetSupplySampleFragment=Tt;exports.BorrowActivityFragment=$t;exports.BorrowApyHistoryQuery=ba;exports.BorrowQuery=on;exports.BorrowSwapKind=Qe;exports.BorrowSwapQuoteQuery=Ja;exports.BorrowSwapQuoteResultFragment=ge;exports.CancelSwapExecutionPlanFragment=ye;exports.CancelSwapMutation=za;exports.ChainFragment=o;exports.ChainQuery=la;exports.ChainsFilter=be;exports.ChainsQuery=ga;exports.CollateralFactorVariationFragment=Ot;exports.CollateralMetric=Ce;exports.Currency=Oe;exports.DecimalNumberFragment=c;exports.DecimalNumberWithChangeFragment=K;exports.DomainDataFragment=v;exports.Erc20AmountFragment=p;exports.Erc20ApprovalFragment=_;exports.Erc20ApprovalRequiredFragment=$;exports.Erc20TokenFragment=y;exports.ExchangeAmountFragment=u;exports.ExchangeAmountVariationFragment=j;exports.ExchangeAmountWithChangeFragment=R;exports.ExchangeRateQuery=fa;exports.ExecutionPlanFragment=b;exports.HasProcessedKnownTransactionQuery=da;exports.HealthFactorErrorFragment=Ge;exports.HealthFactorResultFragment=X;exports.HealthFactorVariationFragment=Ke;exports.HealthFactorWithChangeFragment=J;exports.HealthQuery=Sa;exports.HubAssetFragment=E;exports.HubAssetSettingsFragment=Ze;exports.HubAssetStatusType=ke;exports.HubAssetSummaryFragment=ze;exports.HubAssetUserStateFragment=je;exports.HubAssetsQuery=_r;exports.HubFragment=T;exports.HubQuery=Br;exports.HubSummaryFragment=Ye;exports.HubSummaryHistoryQuery=$r;exports.HubSummarySampleFragment=wt;exports.HubsQuery=Qr;exports.InsufficientBalanceErrorFragment=q;exports.LiquidatePositionExecutionPlanFragment=Ct;exports.LiquidatePositionQuery=mn;exports.LiquidatedActivityFragment=Lt;exports.LiquidationFeeVariationFragment=Ht;exports.MaxLiquidationBonusVariationFragment=Bt;exports.NativeAmountFragment=Q;exports.NativeTokenFragment=G;exports.OperationType=Ee;exports.OrderDirection=Fe;exports.PageSize=Ie;exports.PaginatedActivitiesResultFragment=Yt;exports.PaginatedResultInfoFragment=A;exports.PaginatedSpokePositionManagerResultFragment=te;exports.PaginatedSpokeUserPositionManagerResultFragment=re;exports.PaginatedUserSwapsResultFragment=ce;exports.PercentNumberChangeSnapshotFragment=Pe;exports.PercentNumberFragment=a;exports.PercentNumberVariationFragment=Z;exports.PercentNumberWithChangeFragment=z;exports.PermitMessageDataFragment=et;exports.PermitTypedDataFragment=ee;exports.PositionAmountFragment=gt;exports.PositionSwapAdapterContractApprovalFragment=Rt;exports.PositionSwapApprovalFragment=xt;exports.PositionSwapByIntentApprovalsRequiredFragment=C;exports.PositionSwapPositionManagerApprovalFragment=qt;exports.PreContractActionRequiredFragment=st;exports.PreparePositionSwapQuery=tn;exports.PreparePositionSwapResultFragment=fe;exports.PrepareSwapCancelQuery=Ya;exports.PrepareSwapCancelResultFragment=me;exports.PrepareSwapOrderFragment=ae;exports.PrepareTokenSwapQuery=Va;exports.PrepareTokenSwapResultFragment=pe;exports.PreviewQuery=dn;exports.PreviewUserPositionFragment=_t;exports.ProtocolHistoryQuery=Fa;exports.ProtocolHistorySampleFragment=Ut;exports.QuoteAccuracy=Me;exports.RenounceSpokeUserPositionManagerQuery=ln;exports.RepayActivityFragment=Dt;exports.RepayQuery=sn;exports.RepayWithSupplyKind=_e;exports.RepayWithSupplyQuoteQuery=Xa;exports.RepayWithSupplyQuoteResultFragment=de;exports.ReserveFragment=h;exports.ReserveInfoFragment=g;exports.ReserveQuery=va;exports.ReserveSettingsFragment=at;exports.ReserveStatusFragment=nt;exports.ReserveSummaryFragment=ot;exports.ReserveUserStateFragment=pt;exports.ReservesQuery=Ua;exports.ReservesRequestFilter=He;exports.SetSpokeUserPositionManagerQuery=yn;exports.SetUserSuppliesAsCollateralQuery=cn;exports.SpokeFragment=i;exports.SpokePositionManagerFragment=tt;exports.SpokePositionManagersQuery=_a;exports.SpokeQuery=Ba;exports.SpokeUserPositionManagerFragment=rt;exports.SpokeUserPositionManagersQuery=$a;exports.SpokesQuery=Qa;exports.SupplyActivityFragment=Nt;exports.SupplyApyHistoryQuery=ka;exports.SupplyQuery=pn;exports.SupplySwapKind=$e;exports.SupplySwapQuoteQuery=ja;exports.SupplySwapQuoteResultFragment=le;exports.SwapAmountFragment=ie;exports.SwapByIntentFragment=it;exports.SwapByIntentWithApprovalRequiredFragment=mt;exports.SwapByTransactionFragment=yt;exports.SwapCancelledFragment=ue;exports.SwapExecutionPlanFragment=se;exports.SwapExpiredFragment=lt;exports.SwapFulfilledFragment=ft;exports.SwapKind=Be;exports.SwapMutation=Ga;exports.SwapOpenFragment=dt;exports.SwapPendingSignatureFragment=St;exports.SwapQuoteCostsFragment=ut;exports.SwapQuoteFragment=U;exports.SwapReceiptFragment=ne;exports.SwapStatusFilter=We;exports.SwapStatusFragment=N;exports.SwapStatusQuery=Ka;exports.SwapTransactionRequestFragment=ct;exports.SwapTypedDataFragment=k;exports.SwappableTokensQuery=Ma;exports.TimeWindow=Te;exports.TokenAmountFragment=I;exports.TokenCategory=De;exports.TokenFragment=Y;exports.TokenInfoFragment=F;exports.TokenSwapQuoteQuery=La;exports.TokenSwapQuoteResultFragment=oe;exports.TransactionRequestFragment=m;exports.TypeDefinitionFragment=Xe;exports.TypeFieldFragment=Je;exports.UpdateUserPositionConditionsQuery=gn;exports.UpdatedDynamicConfigActivityFragment=Vt;exports.UpdatedRiskPremiumActivityFragment=Kt;exports.UserBalanceFragment=Ae;exports.UserBalancesQuery=Fn;exports.UserBorrowItemFragment=qe;exports.UserBorrowsQuery=An;exports.UserPositionConditionVariationFragment=Qt;exports.UserPositionConditionsUpdate=Le;exports.UserPositionFragment=D;exports.UserPositionQuery=Pn;exports.UserPositionRiskPremiumFragment=At;exports.UserPositionsQuery=hn;exports.UserRiskPremiumBreakdownItemFragment=W;exports.UserRiskPremiumBreakdownQuery=Tn;exports.UserSummaryFragment=xe;exports.UserSummaryHistoryItemFragment=we;exports.UserSummaryHistoryQuery=In;exports.UserSummaryQuery=wn;exports.UserSuppliesQuery=xn;exports.UserSupplyItemFragment=Re;exports.UserSwapsQuery=Za;exports.UsingAsCollateralActivityFragment=Mt;exports.WithdrawActivityFragment=Wt;exports.WithdrawQuery=un;exports.WithdrawSwapKind=Ne;exports.WithdrawSwapQuoteQuery=en;exports.WithdrawSwapQuoteResultFragment=Se;exports.assetId=Dr;exports.decodeHubId=Mr;exports.decodeReserveId=Gr;exports.decodeUserPositionId=zr;exports.encodeHubId=Lr;exports.encodeReserveId=Yr;exports.encodeSpokeId=Xr;exports.encodeUserPositionId=Zr;exports.graphql=e;exports.hubAssetId=Vr;exports.hubId=ht;exports.isChainIdsVariant=sa;exports.isERC20PermitSignature=ir;exports.isHubInputVariant=pa;exports.isSpokeInputVariant=ua;exports.isTxHashInputVariant=ia;exports.reserveId=Kr;exports.spokeId=Ft;exports.swapId=jr;exports.swapQuoteId=Jr;exports.tokenInfoId=aa;exports.userBalanceId=ea;exports.userBorrowItemId=ta;exports.userPositionId=Pt;exports.userSupplyItemId=ra;//# sourceMappingURL=index.cjs.map
|
|
1533
1533
|
//# sourceMappingURL=index.cjs.map
|