@aave/graphql 1.0.0-next.17 → 1.0.0-next.18
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 +126 -125
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +90 -46
- package/dist/index.d.ts +90 -46
- package/dist/index.js +126 -125
- 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 +33 -15
- package/dist/testing.js +1 -1
- 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 Pe=(r=>(r.Asc="ASC",r.Desc="DESC",r))(Pe||{}),Fe=(r=>(r.Ten="TEN",r.Fifty="FIFTY",r))(Fe||{}),Ie=(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))(Ie||{}),Te=(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))(Te||{}),be=(n=>(n.TESTNET_ONLY="TESTNET_ONLY",n.MAINNET_ONLY="MAINNET_ONLY",n.ALL="ALL",n))(be||{}),
|
|
1
|
+
'use strict';var gql_tada=require('gql.tada'),types=require('@aave/types');var Pe=(r=>(r.Asc="ASC",r.Desc="DESC",r))(Pe||{}),Fe=(r=>(r.Ten="TEN",r.Fifty="FIFTY",r))(Fe||{}),Ie=(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))(Ie||{}),Te=(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))(Te||{}),be=(n=>(n.TESTNET_ONLY="TESTNET_ONLY",n.MAINNET_ONLY="MAINNET_ONLY",n.ALL="ALL",n))(be||{}),Ee=(n=>(n.Active="ACTIVE",n.Frozen="FROZEN",n.Paused="PAUSED",n))(Ee||{}),ke=(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))(ke||{}),ve=(n=>(n.Highest="HIGHEST",n.Lowest="LOWEST",n.Average="AVERAGE",n))(ve||{}),Ue=(r=>(r.Highest="HIGHEST",r.Lowest="LOWEST",r))(Ue||{}),Ce=(n=>(n.Usd="USD",n.Eur="EUR",n.Gbp="GBP",n))(Ce||{}),Oe=(S=>(S.Supply="SUPPLY",S.Borrow="BORROW",S.Collateral="COLLATERAL",S.All="ALL",S))(Oe||{}),He=(r=>(r.Buy="BUY",r.Sell="SELL",r))(He||{}),Be=(r=>(r.Current="CURRENT",r.New="NEW",r))(Be||{}),Qe=(r=>(r.Repay="REPAY",r.Supply="SUPPLY",r))(Qe||{}),_e=(r=>(r.Current="CURRENT",r.New="NEW",r))(_e||{}),$e=(r=>(r.Withdraw="WITHDRAW",r.Buy="BUY",r))($e||{}),Ne=(P=>(P.Cancelled="CANCELLED",P.Expired="EXPIRED",P.Fulfilled="FULFILLED",P.Open="OPEN",P.PendingSignature="PENDING_SIGNATURE",P))(Ne||{}),We=(r=>(r.Stablecoin="STABLECOIN",r.EthCorrelated="ETH_CORRELATED",r))(We||{}),De=(r=>(r.AllDynamicConfig="ALL_DYNAMIC_CONFIG",r.JustRiskPremium="JUST_RISK_PREMIUM",r))(De||{}),Le=(r=>(r.FAST="FAST",r.ACCURATE="ACCURATE",r))(Le||{});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]),Ve=e(`fragment HealthFactorVariation on HealthFactorVariation {
|
|
161
161
|
__typename
|
|
162
162
|
current
|
|
163
163
|
after
|
|
164
|
-
}`),
|
|
164
|
+
}`),Ke=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
|
+
}`,[Ve,Ke]),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 Ge=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,Ge]);var Ye=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,7 +241,7 @@
|
|
|
241
241
|
}
|
|
242
242
|
irStrategy
|
|
243
243
|
reinvestmentController
|
|
244
|
-
}`,[a]),
|
|
244
|
+
}`,[a]),Ze=e(`fragment HubAssetUserState on HubAssetUserState {
|
|
245
245
|
__typename
|
|
246
246
|
balance {
|
|
247
247
|
...Erc20Amount
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
userState {
|
|
266
266
|
...HubAssetUserState
|
|
267
267
|
}
|
|
268
|
-
}`,[T,y,
|
|
268
|
+
}`,[T,y,Ye,ze,Ze]);var i=e(`fragment Spoke on Spoke {
|
|
269
269
|
__typename
|
|
270
270
|
id
|
|
271
271
|
name
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
chain {
|
|
274
274
|
...Chain
|
|
275
275
|
}
|
|
276
|
-
}`,[o]),
|
|
276
|
+
}`,[o]),je=e(`fragment SpokePositionManager on SpokePositionManger {
|
|
277
277
|
__typename
|
|
278
278
|
address
|
|
279
279
|
active
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
pageInfo {
|
|
287
287
|
...PaginatedResultInfo
|
|
288
288
|
}
|
|
289
|
-
}`,[
|
|
289
|
+
}`,[je,A]),Je=e(`fragment SpokeUserPositionManager on SpokeUserPositionManager {
|
|
290
290
|
__typename
|
|
291
291
|
address
|
|
292
292
|
approvedOn
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
pageInfo {
|
|
301
301
|
...PaginatedResultInfo
|
|
302
302
|
}
|
|
303
|
-
}`,[
|
|
303
|
+
}`,[Je,A]);var Xe=e(`fragment ReserveSettings on ReserveSettings {
|
|
304
304
|
__typename
|
|
305
305
|
collateralFactor {
|
|
306
306
|
...PercentNumber
|
|
@@ -318,12 +318,12 @@
|
|
|
318
318
|
collateral
|
|
319
319
|
suppliable
|
|
320
320
|
latestDynamicConfigKey
|
|
321
|
-
}`,[a]),
|
|
321
|
+
}`,[a]),et=e(`fragment ReserveStatus on ReserveStatus {
|
|
322
322
|
__typename
|
|
323
323
|
frozen
|
|
324
324
|
paused
|
|
325
325
|
active
|
|
326
|
-
}`),
|
|
326
|
+
}`),tt=e(`fragment ReserveSummary on ReserveSummary {
|
|
327
327
|
__typename
|
|
328
328
|
supplied {
|
|
329
329
|
...Erc20Amount
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
borrowApy {
|
|
338
338
|
...PercentNumber
|
|
339
339
|
}
|
|
340
|
-
}`,[p,a]),
|
|
340
|
+
}`,[p,a]),rt=e(`fragment ReserveUserState on ReserveUserState {
|
|
341
341
|
__typename
|
|
342
342
|
balance {
|
|
343
343
|
...Erc20Amount
|
|
@@ -391,23 +391,23 @@
|
|
|
391
391
|
asset {
|
|
392
392
|
...HubAsset
|
|
393
393
|
}
|
|
394
|
-
}`,[i,o,
|
|
394
|
+
}`,[i,o,tt,Xe,et,rt,b]),g=e(`fragment ReserveInfo on ReserveInfo {
|
|
395
395
|
__typename
|
|
396
396
|
id
|
|
397
397
|
asset {
|
|
398
398
|
...HubAsset
|
|
399
399
|
}
|
|
400
|
-
}`,[b]);var
|
|
400
|
+
}`,[b]);var at=e(`fragment TypeField on TypeField {
|
|
401
401
|
name
|
|
402
402
|
type
|
|
403
|
-
}`),
|
|
403
|
+
}`),nt=e(`fragment TypeDefinition on TypeDefinition {
|
|
404
404
|
EIP712Domain {
|
|
405
405
|
...TypeField
|
|
406
406
|
}
|
|
407
407
|
Permit {
|
|
408
408
|
...TypeField
|
|
409
409
|
}
|
|
410
|
-
}`,[
|
|
410
|
+
}`,[at]),ot=e(`fragment PermitMessageData on PermitMessageData {
|
|
411
411
|
owner
|
|
412
412
|
spender
|
|
413
413
|
value
|
|
@@ -425,7 +425,7 @@
|
|
|
425
425
|
message {
|
|
426
426
|
...PermitMessageData
|
|
427
427
|
}
|
|
428
|
-
}`,[
|
|
428
|
+
}`,[nt,v,ot]);function fr(t){return typeof t=="object"&&t!==null&&"deadline"in t&&"value"in t}var Rr=e(`query PermitTypedData($request: PermitRequest!) {
|
|
429
429
|
value: permitTypedData(request: $request) {
|
|
430
430
|
...PermitTypedDataResponse
|
|
431
431
|
}
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
originalTransaction {
|
|
453
453
|
...TransactionRequest
|
|
454
454
|
}
|
|
455
|
-
}`,[m,c]),
|
|
455
|
+
}`,[m,c]),pt=e(`fragment PreContractActionRequired on PreContractActionRequired {
|
|
456
456
|
__typename
|
|
457
457
|
transaction {
|
|
458
458
|
...TransactionRequest
|
|
@@ -461,7 +461,7 @@
|
|
|
461
461
|
originalTransaction {
|
|
462
462
|
...TransactionRequest
|
|
463
463
|
}
|
|
464
|
-
}`,[m]),
|
|
464
|
+
}`,[m]),E=e(`fragment ExecutionPlan on ExecutionPlan {
|
|
465
465
|
__typename
|
|
466
466
|
... on TransactionRequest {
|
|
467
467
|
...TransactionRequest
|
|
@@ -475,7 +475,7 @@
|
|
|
475
475
|
... on InsufficientBalanceError {
|
|
476
476
|
...InsufficientBalanceError
|
|
477
477
|
}
|
|
478
|
-
}`,[m,$,
|
|
478
|
+
}`,[m,$,pt,q]);var st=e(`fragment Erc20Approval on Erc20Approval {
|
|
479
479
|
__typename
|
|
480
480
|
byTransaction {
|
|
481
481
|
...TransactionRequest
|
|
@@ -483,7 +483,7 @@
|
|
|
483
483
|
bySignature {
|
|
484
484
|
...PermitTypedDataResponse
|
|
485
485
|
}
|
|
486
|
-
}`,[m,_]),
|
|
486
|
+
}`,[m,_]),ut=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
487
487
|
__typename
|
|
488
488
|
networkCosts {
|
|
489
489
|
...TokenAmount
|
|
@@ -499,14 +499,15 @@
|
|
|
499
499
|
}
|
|
500
500
|
}`,[I]),U=e(`fragment SwapQuote on SwapQuote {
|
|
501
501
|
__typename
|
|
502
|
+
accuracy
|
|
502
503
|
quoteId
|
|
503
504
|
suggestedSlippage {
|
|
504
505
|
...PercentNumber
|
|
505
506
|
}
|
|
506
|
-
|
|
507
|
+
buy {
|
|
507
508
|
...TokenAmount
|
|
508
509
|
}
|
|
509
|
-
|
|
510
|
+
sell {
|
|
510
511
|
...TokenAmount
|
|
511
512
|
}
|
|
512
513
|
costs {
|
|
@@ -518,7 +519,7 @@
|
|
|
518
519
|
finalSell {
|
|
519
520
|
...TokenAmount
|
|
520
521
|
}
|
|
521
|
-
}`,[a,I,
|
|
522
|
+
}`,[a,I,ut]),k=e(`fragment SwapTypedData on SwapTypedData {
|
|
522
523
|
__typename
|
|
523
524
|
primaryType
|
|
524
525
|
types
|
|
@@ -532,13 +533,13 @@
|
|
|
532
533
|
data {
|
|
533
534
|
...SwapTypedData
|
|
534
535
|
}
|
|
535
|
-
}`,[
|
|
536
|
+
}`,[k]),it=e(`fragment SwapByIntent on SwapByIntent {
|
|
536
537
|
__typename
|
|
537
538
|
quote {
|
|
538
539
|
...SwapQuote
|
|
539
540
|
}
|
|
540
541
|
|
|
541
|
-
}`,[U]),
|
|
542
|
+
}`,[U]),mt=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
542
543
|
__typename
|
|
543
544
|
approval {
|
|
544
545
|
...Erc20Approval
|
|
@@ -546,7 +547,7 @@
|
|
|
546
547
|
quote {
|
|
547
548
|
...SwapQuote
|
|
548
549
|
}
|
|
549
|
-
}`,[
|
|
550
|
+
}`,[st,U,k]),yt=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
550
551
|
__typename
|
|
551
552
|
quote {
|
|
552
553
|
...SwapQuote
|
|
@@ -567,7 +568,7 @@
|
|
|
567
568
|
... on SwapByTransaction {
|
|
568
569
|
...SwapByTransaction
|
|
569
570
|
}
|
|
570
|
-
}`,[
|
|
571
|
+
}`,[it,mt,yt]),oe=e(`fragment PrepareTokenSwapResult on PrepareTokenSwapResult {
|
|
571
572
|
__typename
|
|
572
573
|
... on PrepareSwapOrder {
|
|
573
574
|
...PrepareSwapOrder
|
|
@@ -575,7 +576,7 @@
|
|
|
575
576
|
... on InsufficientBalanceError {
|
|
576
577
|
...InsufficientBalanceError
|
|
577
578
|
}
|
|
578
|
-
}`,[re,q]),
|
|
579
|
+
}`,[re,q]),ct=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
579
580
|
__typename
|
|
580
581
|
transaction {
|
|
581
582
|
...TransactionRequest
|
|
@@ -594,17 +595,17 @@
|
|
|
594
595
|
... on InsufficientBalanceError {
|
|
595
596
|
...InsufficientBalanceError
|
|
596
597
|
}
|
|
597
|
-
}`,[
|
|
598
|
+
}`,[ct,ae,q]),se=e(`fragment SwapCancelled on SwapCancelled {
|
|
598
599
|
__typename
|
|
599
600
|
createdAt
|
|
600
601
|
cancelledAt
|
|
601
602
|
explorerLink
|
|
602
|
-
}`),
|
|
603
|
+
}`),lt=e(`fragment SwapExpired on SwapExpired {
|
|
603
604
|
__typename
|
|
604
605
|
createdAt
|
|
605
606
|
expiredAt
|
|
606
607
|
explorerLink
|
|
607
|
-
}`),
|
|
608
|
+
}`),gt=e(`fragment PositionAmount on PositionAmount {
|
|
608
609
|
__typename
|
|
609
610
|
reserve {
|
|
610
611
|
...ReserveInfo
|
|
@@ -623,7 +624,7 @@
|
|
|
623
624
|
... on Erc20Amount {
|
|
624
625
|
...Erc20Amount
|
|
625
626
|
}
|
|
626
|
-
}`,[
|
|
627
|
+
}`,[gt,Q,p]),dt=e(`fragment SwapOpen on SwapOpen {
|
|
627
628
|
__typename
|
|
628
629
|
swapId
|
|
629
630
|
createdAt
|
|
@@ -635,12 +636,12 @@
|
|
|
635
636
|
desiredBuy {
|
|
636
637
|
...SwapAmount
|
|
637
638
|
}
|
|
638
|
-
}`,[ue]),
|
|
639
|
+
}`,[ue]),St=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
639
640
|
__typename
|
|
640
641
|
createdAt
|
|
641
642
|
deadline
|
|
642
643
|
explorerLink
|
|
643
|
-
}`),
|
|
644
|
+
}`),ft=e(`fragment SwapFulfilled on SwapFulfilled {
|
|
644
645
|
__typename
|
|
645
646
|
txHash
|
|
646
647
|
desiredSell {
|
|
@@ -676,12 +677,12 @@
|
|
|
676
677
|
... on SwapFulfilled {
|
|
677
678
|
...SwapFulfilled
|
|
678
679
|
}
|
|
679
|
-
}`,[
|
|
680
|
+
}`,[dt,St,se,lt,ft]),ie=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
680
681
|
__typename
|
|
681
682
|
data {
|
|
682
683
|
...SwapTypedData
|
|
683
684
|
}
|
|
684
|
-
}`,[
|
|
685
|
+
}`,[k]),me=e(`fragment CancelSwapExecutionPlan on CancelSwapExecutionPlan {
|
|
685
686
|
__typename
|
|
686
687
|
... on TransactionRequest {
|
|
687
688
|
...TransactionRequest
|
|
@@ -697,12 +698,12 @@
|
|
|
697
698
|
pageInfo {
|
|
698
699
|
...PaginatedResultInfo
|
|
699
700
|
}
|
|
700
|
-
}`,[N,A]),
|
|
701
|
+
}`,[N,A]),Rt=e(`fragment PositionSwapAdapterContractApproval on PositionSwapAdapterContractApproval {
|
|
701
702
|
__typename
|
|
702
703
|
bySignature {
|
|
703
704
|
...SwapTypedData
|
|
704
705
|
}
|
|
705
|
-
}`,[
|
|
706
|
+
}`,[k]),qt=e(`fragment PositionSwapPositionManagerApproval on PositionSwapPositionManagerApproval {
|
|
706
707
|
__typename
|
|
707
708
|
byTransaction {
|
|
708
709
|
...TransactionRequest
|
|
@@ -710,7 +711,7 @@
|
|
|
710
711
|
bySignature {
|
|
711
712
|
...SwapTypedData
|
|
712
713
|
}
|
|
713
|
-
}`,[m,
|
|
714
|
+
}`,[m,k]),xt=e(`fragment PositionSwapApproval on PositionSwapApproval {
|
|
714
715
|
__typename
|
|
715
716
|
... on PositionSwapAdapterContractApproval {
|
|
716
717
|
...PositionSwapAdapterContractApproval
|
|
@@ -718,7 +719,7 @@
|
|
|
718
719
|
... on PositionSwapPositionManagerApproval {
|
|
719
720
|
...PositionSwapPositionManagerApproval
|
|
720
721
|
}
|
|
721
|
-
}`,[
|
|
722
|
+
}`,[Rt,qt]),C=e(`fragment PositionSwapByIntentApprovalsRequired on PositionSwapByIntentApprovalsRequired {
|
|
722
723
|
__typename
|
|
723
724
|
quote {
|
|
724
725
|
...SwapQuote
|
|
@@ -726,7 +727,7 @@
|
|
|
726
727
|
approvals {
|
|
727
728
|
...PositionSwapApproval
|
|
728
729
|
}
|
|
729
|
-
}`,[U,
|
|
730
|
+
}`,[U,xt]),ce=e(`fragment SupplySwapQuoteResult on SupplySwapQuoteResult {
|
|
730
731
|
__typename
|
|
731
732
|
... on PositionSwapByIntentApprovalsRequired {
|
|
732
733
|
...PositionSwapByIntentApprovalsRequired
|
|
@@ -823,7 +824,7 @@
|
|
|
823
824
|
collateral {
|
|
824
825
|
...PercentNumber
|
|
825
826
|
}
|
|
826
|
-
}`,[y,a]),
|
|
827
|
+
}`,[y,a]),At=e(`fragment UserPositionRiskPremium on UserPositionRiskPremium {
|
|
827
828
|
__typename
|
|
828
829
|
current {
|
|
829
830
|
...PercentNumber
|
|
@@ -888,7 +889,7 @@
|
|
|
888
889
|
averageCollateralFactor {
|
|
889
890
|
...PercentNumber
|
|
890
891
|
}
|
|
891
|
-
}`,[i,a,R,u,z,J,
|
|
892
|
+
}`,[i,a,R,u,z,J,At]),xe=e(`fragment UserBalance on UserBalance {
|
|
892
893
|
__typename
|
|
893
894
|
id
|
|
894
895
|
info {
|
|
@@ -940,19 +941,19 @@
|
|
|
940
941
|
avgRate {
|
|
941
942
|
...PercentNumber
|
|
942
943
|
}
|
|
943
|
-
}`,[a]);var
|
|
944
|
+
}`,[a]);var Qr=e(`query Hub($request: HubRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
944
945
|
value: hub(request: $request) {
|
|
945
946
|
...Hub
|
|
946
947
|
}
|
|
947
|
-
}`,[T]),
|
|
948
|
+
}`,[T]),_r=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
948
949
|
value: hubs(request: $request) {
|
|
949
950
|
...Hub
|
|
950
951
|
}
|
|
951
|
-
}`,[T])
|
|
952
|
+
}`,[T]),$r=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
952
953
|
value: hubAssets(request: $request) {
|
|
953
954
|
...HubAsset
|
|
954
955
|
}
|
|
955
|
-
}`,[b]),
|
|
956
|
+
}`,[b]),wt=e(`fragment HubSummarySample on HubSummarySample {
|
|
956
957
|
__typename
|
|
957
958
|
date
|
|
958
959
|
deposits {
|
|
@@ -967,31 +968,31 @@
|
|
|
967
968
|
utilizationRate {
|
|
968
969
|
...PercentNumber
|
|
969
970
|
}
|
|
970
|
-
}`,[u,a])
|
|
971
|
+
}`,[u,a]),Nr=e(`query HubSummaryHistory($request: HubSummaryHistoryRequest!) {
|
|
971
972
|
value: hubSummaryHistory(request: $request) {
|
|
972
973
|
...HubSummarySample
|
|
973
974
|
}
|
|
974
|
-
}`,[
|
|
975
|
+
}`,[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 Lr(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 Mr(t){return ht(H(`${t.chainId}${d}${t.address}`))}function Vr(t){let x=V(t),[r,n]=x.split(d);return {chainId:types.chainId(Number.parseInt(r,10)),address:types.evmAddress(n)}}function Kr(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 Gr(t){return t}function Yr(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 zr(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 jr(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 Xr(t){return types.invariant(types.isValidHexString(t),`Invalid SwapQuoteId: ${t}`),t}function ea(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 ta(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 ra(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 aa(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 na(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid TokenInfoId: ${t}`),t}function sa(t){return types.isObject(t)&&"hubInput"in t&&t.hubInput!=null}function ua(t){return types.isObject(t)&&"chainIds"in t&&t.chainIds!=null}function ia(t){return types.isObject(t)&&"spoke"in t&&t.spoke!=null}function ma(t){return types.isObject(t)&&"txHash"in t&&t.txHash!=null}var ga=e(`query Chain($request: ChainRequest!) {
|
|
975
976
|
value: chain(request: $request) {
|
|
976
977
|
...Chain
|
|
977
978
|
}
|
|
978
|
-
}`,[o]),
|
|
979
|
+
}`,[o]),da=e(`query Chains($request: ChainsRequest!) {
|
|
979
980
|
value: chains(request: $request) {
|
|
980
981
|
...Chain
|
|
981
982
|
}
|
|
982
|
-
}`,[o]),
|
|
983
|
+
}`,[o]),Sa=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
983
984
|
value: hasProcessedKnownTransaction(request: $request)
|
|
984
|
-
}`),
|
|
985
|
+
}`),fa=e(`query Health {
|
|
985
986
|
value: health
|
|
986
|
-
}`),
|
|
987
|
+
}`),Ra=e(`query ExchangeRate($request: ExchangeRateRequest!) {
|
|
987
988
|
value: exchangeRate(request: $request) {
|
|
988
989
|
...ExchangeAmount
|
|
989
990
|
}
|
|
990
|
-
}`,[u]);var
|
|
991
|
+
}`,[u]);var It=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
991
992
|
__typename
|
|
992
993
|
date
|
|
993
994
|
price
|
|
994
|
-
}`),
|
|
995
|
+
}`),Tt=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
995
996
|
__typename
|
|
996
997
|
date
|
|
997
998
|
amount {
|
|
@@ -1003,7 +1004,7 @@
|
|
|
1003
1004
|
lowestApy {
|
|
1004
1005
|
...PercentNumber
|
|
1005
1006
|
}
|
|
1006
|
-
}`,[c,a]),
|
|
1007
|
+
}`,[c,a]),bt=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
1007
1008
|
__typename
|
|
1008
1009
|
date
|
|
1009
1010
|
amount {
|
|
@@ -1015,7 +1016,7 @@
|
|
|
1015
1016
|
lowestApy {
|
|
1016
1017
|
...PercentNumber
|
|
1017
1018
|
}
|
|
1018
|
-
}`,[c,a]),
|
|
1019
|
+
}`,[c,a]),Et=e(`fragment AssetAmountWithChange on AssetAmountWithChange {
|
|
1019
1020
|
__typename
|
|
1020
1021
|
amount {
|
|
1021
1022
|
...DecimalNumberWithChange
|
|
@@ -1049,7 +1050,7 @@
|
|
|
1049
1050
|
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
1050
1051
|
...PercentNumber
|
|
1051
1052
|
}
|
|
1052
|
-
}`,[
|
|
1053
|
+
}`,[Et,a]),vt=e(`fragment Asset on Asset {
|
|
1053
1054
|
__typename
|
|
1054
1055
|
id
|
|
1055
1056
|
token {
|
|
@@ -1061,23 +1062,23 @@
|
|
|
1061
1062
|
price(currency: $currency) {
|
|
1062
1063
|
...ExchangeAmountWithChange
|
|
1063
1064
|
}
|
|
1064
|
-
}`,[y,kt,R]),
|
|
1065
|
+
}`,[y,kt,R]),wa=e(`query Asset($request: AssetRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1065
1066
|
value: asset(request: $request) {
|
|
1066
1067
|
...Asset
|
|
1067
1068
|
}
|
|
1068
|
-
}`,[
|
|
1069
|
+
}`,[vt]),ha=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
1069
1070
|
value: assetPriceHistory(request: $request) {
|
|
1070
1071
|
...AssetPriceSample
|
|
1071
1072
|
}
|
|
1072
|
-
}`,[
|
|
1073
|
+
}`,[It]),Pa=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!) {
|
|
1073
1074
|
value: assetSupplyHistory(request: $request) {
|
|
1074
1075
|
...AssetSupplySample
|
|
1075
1076
|
}
|
|
1076
|
-
}`,[
|
|
1077
|
+
}`,[Tt]),Fa=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!) {
|
|
1077
1078
|
value: assetBorrowHistory(request: $request) {
|
|
1078
1079
|
...AssetBorrowSample
|
|
1079
1080
|
}
|
|
1080
|
-
}`,[
|
|
1081
|
+
}`,[bt]),Ut=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
1081
1082
|
__typename
|
|
1082
1083
|
date
|
|
1083
1084
|
deposits {
|
|
@@ -1086,111 +1087,111 @@
|
|
|
1086
1087
|
borrows {
|
|
1087
1088
|
...ExchangeAmount
|
|
1088
1089
|
}
|
|
1089
|
-
}`,[u]),
|
|
1090
|
+
}`,[u]),Ia=e(`query ProtocolHistory($request: ProtocolHistoryRequest!) {
|
|
1090
1091
|
value: protocolHistory(request: $request) {
|
|
1091
1092
|
...ProtocolHistorySample
|
|
1092
1093
|
}
|
|
1093
|
-
}`,[
|
|
1094
|
+
}`,[Ut]);var ka=e(`query BorrowApyHistory($request: BorrowApyHistoryRequest!) {
|
|
1094
1095
|
value: borrowApyHistory(request: $request) {
|
|
1095
1096
|
...ApySample
|
|
1096
1097
|
}
|
|
1097
|
-
}`,[L]),
|
|
1098
|
+
}`,[L]),va=e(`query SupplyApyHistory($request: SupplyApyHistoryRequest!) {
|
|
1098
1099
|
value: supplyApyHistory(request: $request) {
|
|
1099
1100
|
...ApySample
|
|
1100
1101
|
}
|
|
1101
|
-
}`,[L]),
|
|
1102
|
+
}`,[L]),Ua=e(`query Reserve($request: ReserveRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1102
1103
|
value: reserve(request: $request) {
|
|
1103
1104
|
...Reserve
|
|
1104
1105
|
}
|
|
1105
|
-
}`,[h]),
|
|
1106
|
+
}`,[h]),Ca=e(`query Reserves($request: ReservesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1106
1107
|
value: reserves(request: $request) {
|
|
1107
1108
|
...Reserve
|
|
1108
1109
|
}
|
|
1109
|
-
}`,[h]);var
|
|
1110
|
+
}`,[h]);var Qa=e(`query Spoke($request: SpokeRequest!) {
|
|
1110
1111
|
value: spoke(request: $request) {
|
|
1111
1112
|
...Spoke
|
|
1112
1113
|
}
|
|
1113
|
-
}`,[i]),
|
|
1114
|
+
}`,[i]),_a=e(`query Spokes($request: SpokesRequest!) {
|
|
1114
1115
|
value: spokes(request: $request) {
|
|
1115
1116
|
...Spoke
|
|
1116
1117
|
}
|
|
1117
|
-
}`,[i])
|
|
1118
|
+
}`,[i]),$a=e(`query SpokePositionManagers($request: SpokePositionManagersRequest!) {
|
|
1118
1119
|
value: spokePositionManagers(request: $request) {
|
|
1119
1120
|
...PaginatedSpokePositionManagerResult
|
|
1120
1121
|
}
|
|
1121
|
-
}`,[ee])
|
|
1122
|
+
}`,[ee]),Na=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
1122
1123
|
value: spokeUserPositionManagers(request: $request) {
|
|
1123
1124
|
...PaginatedSpokeUserPositionManagerResult
|
|
1124
1125
|
}
|
|
1125
|
-
}`,[te]);var
|
|
1126
|
+
}`,[te]);var Ma=e(`query TokenSwapQuote($request: TokenSwapQuoteRequest!, $currency: Currency!) {
|
|
1126
1127
|
value: tokenSwapQuote(request: $request) {
|
|
1127
1128
|
...TokenSwapQuoteResult
|
|
1128
1129
|
}
|
|
1129
|
-
}`,[ne]),
|
|
1130
|
+
}`,[ne]),Va=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
1130
1131
|
value: swappableTokens(request: $request) {
|
|
1131
1132
|
...Token
|
|
1132
1133
|
}
|
|
1133
|
-
}`,[Y]),
|
|
1134
|
+
}`,[Y]),Ka=e(`query PrepareTokenSwap($request: PrepareTokenSwapRequest!) {
|
|
1134
1135
|
value: prepareTokenSwap(request: $request) {
|
|
1135
1136
|
...PrepareTokenSwapResult
|
|
1136
1137
|
}
|
|
1137
|
-
}`,[oe]),
|
|
1138
|
+
}`,[oe]),Ga=e(`query SwapStatus($request: SwapStatusRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1138
1139
|
value: swapStatus(request: $request) {
|
|
1139
1140
|
...SwapStatus
|
|
1140
1141
|
}
|
|
1141
|
-
}`,[N]),
|
|
1142
|
+
}`,[N]),Ya=e(`mutation Swap($request: SwapRequest!) {
|
|
1142
1143
|
value: swap(request: $request) {
|
|
1143
1144
|
...SwapExecutionPlan
|
|
1144
1145
|
}
|
|
1145
|
-
}`,[pe]),
|
|
1146
|
+
}`,[pe]),za=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
1146
1147
|
value: prepareSwapCancel(request: $request) {
|
|
1147
1148
|
...PrepareSwapCancelResult
|
|
1148
1149
|
}
|
|
1149
|
-
}`,[ie]),
|
|
1150
|
+
}`,[ie]),Za=e(`mutation CancelSwap($request: CancelSwapRequest!) {
|
|
1150
1151
|
value: cancelSwap(request: $request) {
|
|
1151
1152
|
...CancelSwapExecutionPlan
|
|
1152
1153
|
}
|
|
1153
|
-
}`,[me]),
|
|
1154
|
+
}`,[me]),ja=e(`query UserSwaps($request: UserSwapsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1154
1155
|
value: userSwaps(request: $request) {
|
|
1155
1156
|
...PaginatedUserSwapsResult
|
|
1156
1157
|
}
|
|
1157
|
-
}`,[ye]),
|
|
1158
|
+
}`,[ye]),Ja=e(`query SupplySwapQuote($request: SupplySwapQuoteRequest!, $currency: Currency!) {
|
|
1158
1159
|
value: supplySwapQuote(request: $request) {
|
|
1159
1160
|
...SupplySwapQuoteResult
|
|
1160
1161
|
}
|
|
1161
|
-
}`,[ce]),
|
|
1162
|
+
}`,[ce]),Xa=e(`query BorrowSwapQuote($request: BorrowSwapQuoteRequest!, $currency: Currency!) {
|
|
1162
1163
|
value: borrowSwapQuote(request: $request) {
|
|
1163
1164
|
...BorrowSwapQuoteResult
|
|
1164
1165
|
}
|
|
1165
|
-
}`,[le]),
|
|
1166
|
+
}`,[le]),en=e(`query RepayWithSupplyQuote($request: RepayWithSupplyQuoteRequest!, $currency: Currency!) {
|
|
1166
1167
|
value: repayWithSupplyQuote(request: $request) {
|
|
1167
1168
|
...RepayWithSupplyQuoteResult
|
|
1168
1169
|
}
|
|
1169
|
-
}`,[ge]),
|
|
1170
|
+
}`,[ge]),tn=e(`query WithdrawSwapQuote($request: WithdrawSwapQuoteRequest!, $currency: Currency!) {
|
|
1170
1171
|
value: withdrawSwapQuote(request: $request) {
|
|
1171
1172
|
...WithdrawSwapQuoteResult
|
|
1172
1173
|
}
|
|
1173
|
-
}`,[de]),
|
|
1174
|
+
}`,[de]),rn=e(`query PreparePositionSwap($request: PreparePositionSwapRequest!) {
|
|
1174
1175
|
value: preparePositionSwap(request: $request) {
|
|
1175
1176
|
...PreparePositionSwapResult
|
|
1176
1177
|
}
|
|
1177
|
-
}`,[Se]);var
|
|
1178
|
+
}`,[Se]);var pn=e(`query Borrow($request: BorrowRequest!) {
|
|
1178
1179
|
value: borrow(request: $request) {
|
|
1179
1180
|
...ExecutionPlan
|
|
1180
1181
|
}
|
|
1181
|
-
}`,[
|
|
1182
|
+
}`,[E]),sn=e(`query Supply($request: SupplyRequest!) {
|
|
1182
1183
|
value: supply(request: $request) {
|
|
1183
1184
|
...ExecutionPlan
|
|
1184
1185
|
}
|
|
1185
|
-
}`,[
|
|
1186
|
+
}`,[E]),un=e(`query Repay($request: RepayRequest!) {
|
|
1186
1187
|
value: repay(request: $request) {
|
|
1187
1188
|
...ExecutionPlan
|
|
1188
1189
|
}
|
|
1189
|
-
}`,[
|
|
1190
|
+
}`,[E]),mn=e(`query Withdraw($request: WithdrawRequest!) {
|
|
1190
1191
|
value: withdraw(request: $request) {
|
|
1191
1192
|
...ExecutionPlan
|
|
1192
1193
|
}
|
|
1193
|
-
}`,[
|
|
1194
|
+
}`,[E]),Ct=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1194
1195
|
__typename
|
|
1195
1196
|
... on TransactionRequest {
|
|
1196
1197
|
...TransactionRequest
|
|
@@ -1201,27 +1202,27 @@
|
|
|
1201
1202
|
... on InsufficientBalanceError {
|
|
1202
1203
|
...InsufficientBalanceError
|
|
1203
1204
|
}
|
|
1204
|
-
}`,[m,$,q]),
|
|
1205
|
+
}`,[m,$,q]),yn=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1205
1206
|
value: liquidatePosition(request: $request) {
|
|
1206
1207
|
...LiquidatePositionExecutionPlan
|
|
1207
1208
|
}
|
|
1208
|
-
}`,[
|
|
1209
|
+
}`,[Ct]),cn=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1209
1210
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1210
1211
|
...TransactionRequest
|
|
1211
1212
|
}
|
|
1212
|
-
}`,[m]),
|
|
1213
|
+
}`,[m]),ln=e(`query SetUserSuppliesAsCollateral($request: SetUserSuppliesAsCollateralRequest!) {
|
|
1213
1214
|
value: setUserSuppliesAsCollateral(request: $request) {
|
|
1214
1215
|
...TransactionRequest
|
|
1215
1216
|
}
|
|
1216
|
-
}`,[m]),
|
|
1217
|
+
}`,[m]),gn=e(`query RenounceSpokeUserPositionManager($request: RenounceSpokeUserPositionManagerRequest!) {
|
|
1217
1218
|
value: renounceSpokeUserPositionManager(request: $request) {
|
|
1218
1219
|
...TransactionRequest
|
|
1219
1220
|
}
|
|
1220
|
-
}`,[m]),
|
|
1221
|
+
}`,[m]),dn=e(`query UpdateUserPositionConditions($request: UpdateUserPositionConditionsRequest!) {
|
|
1221
1222
|
value: updateUserPositionConditions(request: $request) {
|
|
1222
1223
|
...TransactionRequest
|
|
1223
1224
|
}
|
|
1224
|
-
}`,[m]),
|
|
1225
|
+
}`,[m]),Ot=e(`fragment CollateralFactorVariation on CollateralFactorVariation {
|
|
1225
1226
|
__typename
|
|
1226
1227
|
reserveId
|
|
1227
1228
|
token {
|
|
@@ -1233,7 +1234,7 @@
|
|
|
1233
1234
|
after {
|
|
1234
1235
|
...PercentNumber
|
|
1235
1236
|
}
|
|
1236
|
-
}`,[y,a]),
|
|
1237
|
+
}`,[y,a]),Ht=e(`fragment LiquidationFeeVariation on LiquidationFeeVariation {
|
|
1237
1238
|
__typename
|
|
1238
1239
|
reserveId
|
|
1239
1240
|
token {
|
|
@@ -1257,7 +1258,7 @@
|
|
|
1257
1258
|
after {
|
|
1258
1259
|
...PercentNumber
|
|
1259
1260
|
}
|
|
1260
|
-
}`,[y,a]),
|
|
1261
|
+
}`,[y,a]),Qt=e(`fragment UserPositionConditionVariation on UserPositionConditionVariation {
|
|
1261
1262
|
__typename
|
|
1262
1263
|
... on CollateralFactorVariation {
|
|
1263
1264
|
...CollateralFactorVariation
|
|
@@ -1268,7 +1269,7 @@
|
|
|
1268
1269
|
... on MaxLiquidationBonusVariation {
|
|
1269
1270
|
...MaxLiquidationBonusVariation
|
|
1270
1271
|
}
|
|
1271
|
-
}`,[
|
|
1272
|
+
}`,[Ot,Ht,Bt]),_t=e(`fragment PreviewUserPosition on PreviewUserPosition {
|
|
1272
1273
|
__typename
|
|
1273
1274
|
id
|
|
1274
1275
|
healthFactor {
|
|
@@ -1295,11 +1296,11 @@
|
|
|
1295
1296
|
otherConditions {
|
|
1296
1297
|
...UserPositionConditionVariation
|
|
1297
1298
|
}
|
|
1298
|
-
}`,[X,Z,j,
|
|
1299
|
+
}`,[X,Z,j,Qt]),Sn=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD) {
|
|
1299
1300
|
value: preview(request: $request) {
|
|
1300
1301
|
...PreviewUserPosition
|
|
1301
1302
|
}
|
|
1302
|
-
}`,[
|
|
1303
|
+
}`,[_t]),he=e(`fragment PercentNumberChangeSnapshot on PercentNumberChangeSnapshot {
|
|
1303
1304
|
__typename
|
|
1304
1305
|
before {
|
|
1305
1306
|
...PercentNumber
|
|
@@ -1307,7 +1308,7 @@
|
|
|
1307
1308
|
after {
|
|
1308
1309
|
...PercentNumber
|
|
1309
1310
|
}
|
|
1310
|
-
}`,[a])
|
|
1311
|
+
}`,[a]),$t=e(`fragment BorrowActivity on BorrowActivity {
|
|
1311
1312
|
__typename
|
|
1312
1313
|
id
|
|
1313
1314
|
user
|
|
@@ -1325,7 +1326,7 @@
|
|
|
1325
1326
|
chain {
|
|
1326
1327
|
...Chain
|
|
1327
1328
|
}
|
|
1328
|
-
}`,[i,p,g,o])
|
|
1329
|
+
}`,[i,p,g,o]),Nt=e(`fragment SupplyActivity on SupplyActivity {
|
|
1329
1330
|
__typename
|
|
1330
1331
|
id
|
|
1331
1332
|
user
|
|
@@ -1343,7 +1344,7 @@
|
|
|
1343
1344
|
chain {
|
|
1344
1345
|
...Chain
|
|
1345
1346
|
}
|
|
1346
|
-
}`,[i,p,g,o]),
|
|
1347
|
+
}`,[i,p,g,o]),Wt=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1347
1348
|
__typename
|
|
1348
1349
|
id
|
|
1349
1350
|
user
|
|
@@ -1361,7 +1362,7 @@
|
|
|
1361
1362
|
chain {
|
|
1362
1363
|
...Chain
|
|
1363
1364
|
}
|
|
1364
|
-
}`,[i,p,g,o]),
|
|
1365
|
+
}`,[i,p,g,o]),Dt=e(`fragment RepayActivity on RepayActivity {
|
|
1365
1366
|
__typename
|
|
1366
1367
|
id
|
|
1367
1368
|
user
|
|
@@ -1379,7 +1380,7 @@
|
|
|
1379
1380
|
chain {
|
|
1380
1381
|
...Chain
|
|
1381
1382
|
}
|
|
1382
|
-
}`,[i,p,g,o]),
|
|
1383
|
+
}`,[i,p,g,o]),Lt=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1383
1384
|
__typename
|
|
1384
1385
|
id
|
|
1385
1386
|
user
|
|
@@ -1404,7 +1405,7 @@
|
|
|
1404
1405
|
chain {
|
|
1405
1406
|
...Chain
|
|
1406
1407
|
}
|
|
1407
|
-
}`,[i,p,g,o]),
|
|
1408
|
+
}`,[i,p,g,o]),Mt=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1408
1409
|
__typename
|
|
1409
1410
|
id
|
|
1410
1411
|
user
|
|
@@ -1420,7 +1421,7 @@
|
|
|
1420
1421
|
chain {
|
|
1421
1422
|
...Chain
|
|
1422
1423
|
}
|
|
1423
|
-
}`,[i,g,o]),
|
|
1424
|
+
}`,[i,g,o]),Vt=e(`fragment UpdatedDynamicConfigActivity on UpdatedDynamicConfigActivity {
|
|
1424
1425
|
__typename
|
|
1425
1426
|
id
|
|
1426
1427
|
user
|
|
@@ -1444,7 +1445,7 @@
|
|
|
1444
1445
|
chain {
|
|
1445
1446
|
...Chain
|
|
1446
1447
|
}
|
|
1447
|
-
}`,[i,g,he,o]),
|
|
1448
|
+
}`,[i,g,he,o]),Kt=e(`fragment UpdatedRiskPremiumActivity on UpdatedRiskPremiumActivity {
|
|
1448
1449
|
__typename
|
|
1449
1450
|
id
|
|
1450
1451
|
user
|
|
@@ -1459,7 +1460,7 @@
|
|
|
1459
1460
|
chain {
|
|
1460
1461
|
...Chain
|
|
1461
1462
|
}
|
|
1462
|
-
}`,[i,he,o]),
|
|
1463
|
+
}`,[i,he,o]),Gt=e(`fragment ActivityItem on ActivityItem {
|
|
1463
1464
|
__typename
|
|
1464
1465
|
... on BorrowActivity {
|
|
1465
1466
|
...BorrowActivity
|
|
@@ -1485,7 +1486,7 @@
|
|
|
1485
1486
|
... on UpdatedRiskPremiumActivity {
|
|
1486
1487
|
...UpdatedRiskPremiumActivity
|
|
1487
1488
|
}
|
|
1488
|
-
}`,[
|
|
1489
|
+
}`,[$t,Nt,Wt,Dt,Lt,Mt,Vt,Kt]),Yt=e(`fragment PaginatedActivitiesResult on PaginatedActivitiesResult {
|
|
1489
1490
|
__typename
|
|
1490
1491
|
items {
|
|
1491
1492
|
...ActivityItem
|
|
@@ -1493,41 +1494,41 @@
|
|
|
1493
1494
|
pageInfo {
|
|
1494
1495
|
...PaginatedResultInfo
|
|
1495
1496
|
}
|
|
1496
|
-
}`,[
|
|
1497
|
+
}`,[Gt,A]),fn=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1497
1498
|
value: activities(request: $request) {
|
|
1498
1499
|
...PaginatedActivitiesResult
|
|
1499
1500
|
}
|
|
1500
|
-
}`,[
|
|
1501
|
+
}`,[Yt]);var An=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1501
1502
|
value: userSupplies(request: $request) {
|
|
1502
1503
|
...UserSupplyItem
|
|
1503
1504
|
}
|
|
1504
|
-
}`,[fe]),
|
|
1505
|
+
}`,[fe]),wn=e(`query UserBorrows($request: UserBorrowsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1505
1506
|
value: userBorrows(request: $request) {
|
|
1506
1507
|
...UserBorrowItem
|
|
1507
1508
|
}
|
|
1508
|
-
}`,[Re]),
|
|
1509
|
+
}`,[Re]),hn=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1509
1510
|
value: userSummary(request: $request) {
|
|
1510
1511
|
...UserSummary
|
|
1511
1512
|
}
|
|
1512
|
-
}`,[qe]),
|
|
1513
|
+
}`,[qe]),Pn=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1513
1514
|
value: userPositions(request: $request) {
|
|
1514
1515
|
...UserPosition
|
|
1515
1516
|
}
|
|
1516
|
-
}`,[D]),
|
|
1517
|
+
}`,[D]),Fn=e(`query UserPosition($request: UserPositionRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1517
1518
|
value: userPosition(request: $request) {
|
|
1518
1519
|
...UserPosition
|
|
1519
1520
|
}
|
|
1520
|
-
}`,[D]),
|
|
1521
|
+
}`,[D]),In=e(`query UserBalances($request: UserBalancesRequest!, $currency: Currency!) {
|
|
1521
1522
|
value: userBalances(request: $request) {
|
|
1522
1523
|
...UserBalance
|
|
1523
1524
|
}
|
|
1524
|
-
}`,[xe]),
|
|
1525
|
+
}`,[xe]),Tn=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1525
1526
|
value: userSummaryHistory(request: $request) {
|
|
1526
1527
|
...UserSummaryHistoryItem
|
|
1527
1528
|
}
|
|
1528
|
-
}`,[Ae]),
|
|
1529
|
+
}`,[Ae]),bn=e(`query UserRiskPremiumBreakdown($request: UserRiskPremiumBreakdownRequest!) {
|
|
1529
1530
|
value: userRiskPremiumBreakdown(request: $request) {
|
|
1530
1531
|
...UserRiskPremiumBreakdownItem
|
|
1531
1532
|
}
|
|
1532
|
-
}`,[W]);exports.ActivitiesQuery=
|
|
1533
|
+
}`,[W]);exports.ActivitiesQuery=fn;exports.ActivityItemFragment=Gt;exports.ActivityType=ke;exports.ApyMetric=ve;exports.ApySampleFragment=L;exports.AssetAmountWithChangeFragment=Et;exports.AssetBorrowHistoryQuery=Fa;exports.AssetBorrowSampleFragment=bt;exports.AssetFragment=vt;exports.AssetPriceHistoryQuery=ha;exports.AssetPriceSampleFragment=It;exports.AssetQuery=wa;exports.AssetSummaryFragment=kt;exports.AssetSupplyHistoryQuery=Pa;exports.AssetSupplySampleFragment=Tt;exports.BorrowActivityFragment=$t;exports.BorrowApyHistoryQuery=ka;exports.BorrowQuery=pn;exports.BorrowSwapKind=Be;exports.BorrowSwapQuoteQuery=Xa;exports.BorrowSwapQuoteResultFragment=le;exports.CancelSwapExecutionPlanFragment=me;exports.CancelSwapMutation=Za;exports.ChainFragment=o;exports.ChainQuery=ga;exports.ChainsFilter=be;exports.ChainsQuery=da;exports.CollateralFactorVariationFragment=Ot;exports.CollateralMetric=Ue;exports.Currency=Ce;exports.DecimalNumberFragment=c;exports.DecimalNumberWithChangeFragment=K;exports.DomainDataFragment=v;exports.Erc20AmountFragment=p;exports.Erc20ApprovalFragment=st;exports.Erc20ApprovalRequiredFragment=$;exports.Erc20TokenFragment=y;exports.ExchangeAmountFragment=u;exports.ExchangeAmountVariationFragment=j;exports.ExchangeAmountWithChangeFragment=R;exports.ExchangeRateQuery=Ra;exports.ExecutionPlanFragment=E;exports.HasProcessedKnownTransactionQuery=Sa;exports.HealthFactorErrorFragment=Ke;exports.HealthFactorResultFragment=X;exports.HealthFactorVariationFragment=Ve;exports.HealthFactorWithChangeFragment=J;exports.HealthQuery=fa;exports.HubAssetFragment=b;exports.HubAssetSettingsFragment=ze;exports.HubAssetStatusType=Ee;exports.HubAssetSummaryFragment=Ye;exports.HubAssetUserStateFragment=Ze;exports.HubAssetsQuery=$r;exports.HubFragment=T;exports.HubQuery=Qr;exports.HubSummaryFragment=Ge;exports.HubSummaryHistoryQuery=Nr;exports.HubSummarySampleFragment=wt;exports.HubsQuery=_r;exports.InsufficientBalanceErrorFragment=q;exports.LiquidatePositionExecutionPlanFragment=Ct;exports.LiquidatePositionQuery=yn;exports.LiquidatedActivityFragment=Lt;exports.LiquidationFeeVariationFragment=Ht;exports.MaxLiquidationBonusVariationFragment=Bt;exports.NativeAmountFragment=Q;exports.NativeTokenFragment=G;exports.OperationType=Te;exports.OrderDirection=Pe;exports.PageSize=Fe;exports.PaginatedActivitiesResultFragment=Yt;exports.PaginatedResultInfoFragment=A;exports.PaginatedSpokePositionManagerResultFragment=ee;exports.PaginatedSpokeUserPositionManagerResultFragment=te;exports.PaginatedUserSwapsResultFragment=ye;exports.PercentNumberChangeSnapshotFragment=he;exports.PercentNumberFragment=a;exports.PercentNumberVariationFragment=Z;exports.PercentNumberWithChangeFragment=z;exports.PermitMessageDataFragment=ot;exports.PermitTypedDataQuery=Rr;exports.PermitTypedDataResponseFragment=_;exports.PositionAmountFragment=gt;exports.PositionSwapAdapterContractApprovalFragment=Rt;exports.PositionSwapApprovalFragment=xt;exports.PositionSwapByIntentApprovalsRequiredFragment=C;exports.PositionSwapPositionManagerApprovalFragment=qt;exports.PreContractActionRequiredFragment=pt;exports.PreparePositionSwapQuery=rn;exports.PreparePositionSwapResultFragment=Se;exports.PrepareSwapCancelQuery=za;exports.PrepareSwapCancelResultFragment=ie;exports.PrepareSwapOrderFragment=re;exports.PrepareTokenSwapQuery=Ka;exports.PrepareTokenSwapResultFragment=oe;exports.PreviewQuery=Sn;exports.PreviewUserPositionFragment=_t;exports.ProtocolHistoryQuery=Ia;exports.ProtocolHistorySampleFragment=Ut;exports.QuoteAccuracy=Le;exports.RenounceSpokeUserPositionManagerQuery=gn;exports.RepayActivityFragment=Dt;exports.RepayQuery=un;exports.RepayWithSupplyKind=Qe;exports.RepayWithSupplyQuoteQuery=en;exports.RepayWithSupplyQuoteResultFragment=ge;exports.ReserveFragment=h;exports.ReserveInfoFragment=g;exports.ReserveQuery=Ua;exports.ReserveSettingsFragment=Xe;exports.ReserveStatusFragment=et;exports.ReserveSummaryFragment=tt;exports.ReserveUserStateFragment=rt;exports.ReservesQuery=Ca;exports.ReservesRequestFilter=Oe;exports.SetSpokeUserPositionManagerQuery=cn;exports.SetUserSuppliesAsCollateralQuery=ln;exports.SpokeFragment=i;exports.SpokePositionManagerFragment=je;exports.SpokePositionManagersQuery=$a;exports.SpokeQuery=Qa;exports.SpokeUserPositionManagerFragment=Je;exports.SpokeUserPositionManagersQuery=Na;exports.SpokesQuery=_a;exports.SupplyActivityFragment=Nt;exports.SupplyApyHistoryQuery=va;exports.SupplyQuery=sn;exports.SupplySwapKind=_e;exports.SupplySwapQuoteQuery=Ja;exports.SupplySwapQuoteResultFragment=ce;exports.SwapAmountFragment=ue;exports.SwapByIntentFragment=it;exports.SwapByIntentWithApprovalRequiredFragment=mt;exports.SwapByTransactionFragment=yt;exports.SwapCancelledFragment=se;exports.SwapExecutionPlanFragment=pe;exports.SwapExpiredFragment=lt;exports.SwapFulfilledFragment=ft;exports.SwapKind=He;exports.SwapMutation=Ya;exports.SwapOpenFragment=dt;exports.SwapPendingSignatureFragment=St;exports.SwapQuoteCostsFragment=ut;exports.SwapQuoteFragment=U;exports.SwapReceiptFragment=ae;exports.SwapStatusFilter=Ne;exports.SwapStatusFragment=N;exports.SwapStatusQuery=Ga;exports.SwapTransactionRequestFragment=ct;exports.SwapTypedDataFragment=k;exports.SwappableTokensQuery=Va;exports.TimeWindow=Ie;exports.TokenAmountFragment=I;exports.TokenCategory=We;exports.TokenFragment=Y;exports.TokenInfoFragment=F;exports.TokenSwapQuoteQuery=Ma;exports.TokenSwapQuoteResultFragment=ne;exports.TransactionRequestFragment=m;exports.TypeDefinitionFragment=nt;exports.TypeFieldFragment=at;exports.UpdateUserPositionConditionsQuery=dn;exports.UpdatedDynamicConfigActivityFragment=Vt;exports.UpdatedRiskPremiumActivityFragment=Kt;exports.UserBalanceFragment=xe;exports.UserBalancesQuery=In;exports.UserBorrowItemFragment=Re;exports.UserBorrowsQuery=wn;exports.UserPositionConditionVariationFragment=Qt;exports.UserPositionConditionsUpdate=De;exports.UserPositionFragment=D;exports.UserPositionQuery=Fn;exports.UserPositionRiskPremiumFragment=At;exports.UserPositionsQuery=Pn;exports.UserRiskPremiumBreakdownItemFragment=W;exports.UserRiskPremiumBreakdownQuery=bn;exports.UserSummaryFragment=qe;exports.UserSummaryHistoryItemFragment=Ae;exports.UserSummaryHistoryQuery=Tn;exports.UserSummaryQuery=hn;exports.UserSuppliesQuery=An;exports.UserSupplyItemFragment=fe;exports.UserSwapsQuery=ja;exports.UsingAsCollateralActivityFragment=Mt;exports.WithdrawActivityFragment=Wt;exports.WithdrawQuery=mn;exports.WithdrawSwapKind=$e;exports.WithdrawSwapQuoteQuery=tn;exports.WithdrawSwapQuoteResultFragment=de;exports.assetId=Lr;exports.decodeHubId=Vr;exports.decodeReserveId=Yr;exports.decodeUserPositionId=Zr;exports.encodeHubId=Mr;exports.encodeReserveId=zr;exports.encodeSpokeId=ea;exports.encodeUserPositionId=jr;exports.graphql=e;exports.hubAssetId=Kr;exports.hubId=ht;exports.isChainIdsVariant=ua;exports.isERC20PermitSignature=fr;exports.isHubInputVariant=sa;exports.isSpokeInputVariant=ia;exports.isTxHashInputVariant=ma;exports.reserveId=Gr;exports.spokeId=Ft;exports.swapId=Jr;exports.swapQuoteId=Xr;exports.tokenInfoId=na;exports.userBalanceId=ta;exports.userBorrowItemId=ra;exports.userPositionId=Pt;exports.userSupplyItemId=aa;//# sourceMappingURL=index.cjs.map
|
|
1533
1534
|
//# sourceMappingURL=index.cjs.map
|