@aave/graphql 1.0.0-next.16 → 1.0.0-next.17
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 +140 -137
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +259 -93
- package/dist/index.d.ts +259 -93
- package/dist/index.js +140 -137
- 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 +6 -4
- 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||{}),
|
|
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||{}),ke=(n=>(n.Active="ACTIVE",n.Frozen="FROZEN",n.Paused="PAUSED",n))(ke||{}),Ee=(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))(Ee||{}),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||{}),Be=(r=>(r.Buy="BUY",r.Sell="SELL",r))(Be||{}),He=(r=>(r.Current="CURRENT",r.New="NEW",r))(He||{}),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||{});var e=gql_tada.initGraphQLTada();var v=e(`fragment DomainData on DomainData {
|
|
2
2
|
name
|
|
3
3
|
version
|
|
4
4
|
chainId
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
decimals
|
|
15
15
|
value
|
|
16
16
|
normalized
|
|
17
|
-
}`),
|
|
17
|
+
}`),K=e(`fragment DecimalNumberWithChange on DecimalNumberWithChange {
|
|
18
18
|
__typename
|
|
19
19
|
current {
|
|
20
20
|
...DecimalNumber
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
exchangeRate(currency: $currency){
|
|
86
86
|
...DecimalNumber
|
|
87
87
|
}
|
|
88
|
-
}`,[y,c,u]),
|
|
88
|
+
}`,[y,c,u]),Q=e(`fragment NativeAmount on NativeAmount {
|
|
89
89
|
__typename
|
|
90
90
|
token {
|
|
91
91
|
...NativeToken
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
... on NativeAmount {
|
|
108
108
|
...NativeAmount
|
|
109
109
|
}
|
|
110
|
-
}`,[p,
|
|
110
|
+
}`,[p,Q]),Y=e(`fragment Token on Token {
|
|
111
111
|
__typename
|
|
112
112
|
... on Erc20Token {
|
|
113
113
|
...Erc20Token
|
|
@@ -157,11 +157,11 @@
|
|
|
157
157
|
change(window: $timeWindow) {
|
|
158
158
|
...PercentNumber
|
|
159
159
|
}
|
|
160
|
-
}`,[a]),
|
|
160
|
+
}`,[a]),Me=e(`fragment HealthFactorVariation on HealthFactorVariation {
|
|
161
161
|
__typename
|
|
162
162
|
current
|
|
163
163
|
after
|
|
164
|
-
}`),
|
|
164
|
+
}`),Ve=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
|
-
}`,[Ve
|
|
177
|
+
}`,[Me,Ve]),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 Ke=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,Ke]);var Ge=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]),Ye=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]),ze=e(`fragment HubAssetUserState on HubAssetUserState {
|
|
245
245
|
__typename
|
|
246
246
|
balance {
|
|
247
247
|
...Erc20Amount
|
|
248
248
|
}
|
|
249
|
-
}`,[p]),
|
|
249
|
+
}`,[p]),b=e(`fragment HubAsset on HubAsset {
|
|
250
250
|
__typename
|
|
251
251
|
id
|
|
252
252
|
onchainAssetId
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
userState {
|
|
266
266
|
...HubAssetUserState
|
|
267
267
|
}
|
|
268
|
-
}`,[T,y,Ye,ze
|
|
268
|
+
}`,[T,y,Ge,Ye,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]),Ze=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
|
+
}`,[Ze,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 Je=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]),Xe=e(`fragment ReserveStatus on ReserveStatus {
|
|
322
322
|
__typename
|
|
323
323
|
frozen
|
|
324
324
|
paused
|
|
325
325
|
active
|
|
326
|
-
}`),
|
|
326
|
+
}`),et=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]),tt=e(`fragment ReserveUserState on ReserveUserState {
|
|
341
341
|
__typename
|
|
342
342
|
balance {
|
|
343
343
|
...Erc20Amount
|
|
@@ -391,29 +391,29 @@
|
|
|
391
391
|
asset {
|
|
392
392
|
...HubAsset
|
|
393
393
|
}
|
|
394
|
-
}`,[i,o,
|
|
394
|
+
}`,[i,o,et,Je,Xe,tt,b]),g=e(`fragment ReserveInfo on ReserveInfo {
|
|
395
395
|
__typename
|
|
396
396
|
id
|
|
397
397
|
asset {
|
|
398
398
|
...HubAsset
|
|
399
399
|
}
|
|
400
|
-
}`,[
|
|
400
|
+
}`,[b]);var rt=e(`fragment TypeField on TypeField {
|
|
401
401
|
name
|
|
402
402
|
type
|
|
403
|
-
}`),
|
|
403
|
+
}`),at=e(`fragment TypeDefinition on TypeDefinition {
|
|
404
404
|
EIP712Domain {
|
|
405
405
|
...TypeField
|
|
406
406
|
}
|
|
407
407
|
Permit {
|
|
408
408
|
...TypeField
|
|
409
409
|
}
|
|
410
|
-
}`,[
|
|
410
|
+
}`,[rt]),nt=e(`fragment PermitMessageData on PermitMessageData {
|
|
411
411
|
owner
|
|
412
412
|
spender
|
|
413
413
|
value
|
|
414
414
|
nonce
|
|
415
415
|
deadline
|
|
416
|
-
}`)
|
|
416
|
+
}`),_=e(`fragment PermitTypedDataResponse on PermitTypedDataResponse {
|
|
417
417
|
__typename
|
|
418
418
|
types {
|
|
419
419
|
...TypeDefinition
|
|
@@ -425,11 +425,11 @@
|
|
|
425
425
|
message {
|
|
426
426
|
...PermitMessageData
|
|
427
427
|
}
|
|
428
|
-
}`,[
|
|
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
429
|
value: permitTypedData(request: $request) {
|
|
430
430
|
...PermitTypedDataResponse
|
|
431
431
|
}
|
|
432
|
-
}`,[
|
|
432
|
+
}`,[_]);var m=e(`fragment TransactionRequest on TransactionRequest {
|
|
433
433
|
__typename
|
|
434
434
|
to
|
|
435
435
|
from
|
|
@@ -437,7 +437,7 @@
|
|
|
437
437
|
value
|
|
438
438
|
chainId
|
|
439
439
|
operations
|
|
440
|
-
}`)
|
|
440
|
+
}`),$=e(`fragment Erc20ApprovalRequired on Erc20ApprovalRequired {
|
|
441
441
|
__typename
|
|
442
442
|
transaction {
|
|
443
443
|
...TransactionRequest
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
originalTransaction {
|
|
453
453
|
...TransactionRequest
|
|
454
454
|
}
|
|
455
|
-
}`,[m,c]),
|
|
455
|
+
}`,[m,c]),ot=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]),k=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,$,ot,q]);var pt=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,_]),st=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
487
487
|
__typename
|
|
488
488
|
networkCosts {
|
|
489
489
|
...TokenAmount
|
|
@@ -518,7 +518,7 @@
|
|
|
518
518
|
finalSell {
|
|
519
519
|
...TokenAmount
|
|
520
520
|
}
|
|
521
|
-
}`,[a,I,
|
|
521
|
+
}`,[a,I,st]),E=e(`fragment SwapTypedData on SwapTypedData {
|
|
522
522
|
__typename
|
|
523
523
|
primaryType
|
|
524
524
|
types
|
|
@@ -532,13 +532,13 @@
|
|
|
532
532
|
data {
|
|
533
533
|
...SwapTypedData
|
|
534
534
|
}
|
|
535
|
-
}`,[
|
|
535
|
+
}`,[E]),ut=e(`fragment SwapByIntent on SwapByIntent {
|
|
536
536
|
__typename
|
|
537
537
|
quote {
|
|
538
538
|
...SwapQuote
|
|
539
539
|
}
|
|
540
540
|
|
|
541
|
-
}`,[U]),
|
|
541
|
+
}`,[U]),it=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
542
542
|
__typename
|
|
543
543
|
approval {
|
|
544
544
|
...Erc20Approval
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
quote {
|
|
547
547
|
...SwapQuote
|
|
548
548
|
}
|
|
549
|
-
}`,[
|
|
549
|
+
}`,[pt,U,E]),mt=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
550
550
|
__typename
|
|
551
551
|
quote {
|
|
552
552
|
...SwapQuote
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
... on SwapByTransaction {
|
|
568
568
|
...SwapByTransaction
|
|
569
569
|
}
|
|
570
|
-
}`,[it,mt
|
|
570
|
+
}`,[ut,it,mt]),oe=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
|
-
}`,[re,q]),
|
|
578
|
+
}`,[re,q]),yt=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
579
579
|
__typename
|
|
580
580
|
transaction {
|
|
581
581
|
...TransactionRequest
|
|
@@ -594,17 +594,17 @@
|
|
|
594
594
|
... on InsufficientBalanceError {
|
|
595
595
|
...InsufficientBalanceError
|
|
596
596
|
}
|
|
597
|
-
}`,[
|
|
597
|
+
}`,[yt,ae,q]),se=e(`fragment SwapCancelled on SwapCancelled {
|
|
598
598
|
__typename
|
|
599
599
|
createdAt
|
|
600
600
|
cancelledAt
|
|
601
601
|
explorerLink
|
|
602
|
-
}`),
|
|
602
|
+
}`),ct=e(`fragment SwapExpired on SwapExpired {
|
|
603
603
|
__typename
|
|
604
604
|
createdAt
|
|
605
605
|
expiredAt
|
|
606
606
|
explorerLink
|
|
607
|
-
}`),
|
|
607
|
+
}`),lt=e(`fragment PositionAmount on PositionAmount {
|
|
608
608
|
__typename
|
|
609
609
|
reserve {
|
|
610
610
|
...ReserveInfo
|
|
@@ -623,7 +623,7 @@
|
|
|
623
623
|
... on Erc20Amount {
|
|
624
624
|
...Erc20Amount
|
|
625
625
|
}
|
|
626
|
-
}`,[
|
|
626
|
+
}`,[lt,Q,p]),gt=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
|
-
}`,[ue]),
|
|
638
|
+
}`,[ue]),dt=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
639
639
|
__typename
|
|
640
640
|
createdAt
|
|
641
641
|
deadline
|
|
642
642
|
explorerLink
|
|
643
|
-
}`),
|
|
643
|
+
}`),St=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
|
-
}`,[ue]),
|
|
662
|
+
}`,[ue]),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
|
-
}`,[dt,
|
|
679
|
+
}`,[gt,dt,se,ct,St]),ie=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
680
680
|
__typename
|
|
681
681
|
data {
|
|
682
682
|
...SwapTypedData
|
|
683
683
|
}
|
|
684
|
-
}`,[
|
|
684
|
+
}`,[E]),me=e(`fragment CancelSwapExecutionPlan on CancelSwapExecutionPlan {
|
|
685
685
|
__typename
|
|
686
686
|
... on TransactionRequest {
|
|
687
687
|
...TransactionRequest
|
|
@@ -697,12 +697,12 @@
|
|
|
697
697
|
pageInfo {
|
|
698
698
|
...PaginatedResultInfo
|
|
699
699
|
}
|
|
700
|
-
}`,[
|
|
700
|
+
}`,[N,A]),ft=e(`fragment PositionSwapAdapterContractApproval on PositionSwapAdapterContractApproval {
|
|
701
701
|
__typename
|
|
702
702
|
bySignature {
|
|
703
703
|
...SwapTypedData
|
|
704
704
|
}
|
|
705
|
-
}`,[
|
|
705
|
+
}`,[E]),Rt=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,E]),qt=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
|
-
}`,[Rt
|
|
721
|
+
}`,[ft,Rt]),C=e(`fragment PositionSwapByIntentApprovalsRequired on PositionSwapByIntentApprovalsRequired {
|
|
722
722
|
__typename
|
|
723
723
|
quote {
|
|
724
724
|
...SwapQuote
|
|
@@ -726,7 +726,7 @@
|
|
|
726
726
|
approvals {
|
|
727
727
|
...PositionSwapApproval
|
|
728
728
|
}
|
|
729
|
-
}`,[U,
|
|
729
|
+
}`,[U,qt]),ce=e(`fragment SupplySwapQuoteResult on SupplySwapQuoteResult {
|
|
730
730
|
__typename
|
|
731
731
|
... on PositionSwapByIntentApprovalsRequired {
|
|
732
732
|
...PositionSwapByIntentApprovalsRequired
|
|
@@ -805,11 +805,11 @@
|
|
|
805
805
|
netApy {
|
|
806
806
|
...PercentNumber
|
|
807
807
|
}
|
|
808
|
-
netAccruedInterest {
|
|
808
|
+
netAccruedInterest(currency: $currency) {
|
|
809
809
|
...ExchangeAmount
|
|
810
810
|
}
|
|
811
811
|
lowestHealthFactor
|
|
812
|
-
}`,[R,u,a]),
|
|
812
|
+
}`,[R,u,a]),W=e(`fragment UserRiskPremiumBreakdownItem on UserRiskPremiumBreakdownItem {
|
|
813
813
|
__typename
|
|
814
814
|
token {
|
|
815
815
|
...Erc20Token
|
|
@@ -823,7 +823,7 @@
|
|
|
823
823
|
collateral {
|
|
824
824
|
...PercentNumber
|
|
825
825
|
}
|
|
826
|
-
}`,[y,a]),
|
|
826
|
+
}`,[y,a]),xt=e(`fragment UserPositionRiskPremium on UserPositionRiskPremium {
|
|
827
827
|
__typename
|
|
828
828
|
current {
|
|
829
829
|
...PercentNumber
|
|
@@ -834,7 +834,7 @@
|
|
|
834
834
|
breakdown {
|
|
835
835
|
...UserRiskPremiumBreakdownItem
|
|
836
836
|
}
|
|
837
|
-
}`,[a,
|
|
837
|
+
}`,[a,W]),D=e(`fragment UserPosition on UserPosition {
|
|
838
838
|
__typename
|
|
839
839
|
id
|
|
840
840
|
spoke {
|
|
@@ -851,6 +851,9 @@
|
|
|
851
851
|
netBalance(currency: $currency) {
|
|
852
852
|
...ExchangeAmountWithChange
|
|
853
853
|
}
|
|
854
|
+
netAccruedInterest(currency: $currency) {
|
|
855
|
+
...ExchangeAmount
|
|
856
|
+
}
|
|
854
857
|
totalCollateral(currency: $currency) {
|
|
855
858
|
...ExchangeAmountWithChange
|
|
856
859
|
}
|
|
@@ -885,7 +888,7 @@
|
|
|
885
888
|
averageCollateralFactor {
|
|
886
889
|
...PercentNumber
|
|
887
890
|
}
|
|
888
|
-
}`,[i,a,R,u,z,J,
|
|
891
|
+
}`,[i,a,R,u,z,J,xt]),xe=e(`fragment UserBalance on UserBalance {
|
|
889
892
|
__typename
|
|
890
893
|
id
|
|
891
894
|
info {
|
|
@@ -931,25 +934,25 @@
|
|
|
931
934
|
}
|
|
932
935
|
healthFactor
|
|
933
936
|
date
|
|
934
|
-
}`,[u]),
|
|
937
|
+
}`,[u]),L=e(`fragment ApySample on ApySample {
|
|
935
938
|
__typename
|
|
936
939
|
date
|
|
937
940
|
avgRate {
|
|
938
941
|
...PercentNumber
|
|
939
942
|
}
|
|
940
|
-
}`,[a]);var
|
|
943
|
+
}`,[a]);var Hr=e(`query Hub($request: HubRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
941
944
|
value: hub(request: $request) {
|
|
942
945
|
...Hub
|
|
943
946
|
}
|
|
944
|
-
}`,[T]),
|
|
947
|
+
}`,[T]),Qr=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
945
948
|
value: hubs(request: $request) {
|
|
946
949
|
...Hub
|
|
947
950
|
}
|
|
948
|
-
}`,[T])
|
|
951
|
+
}`,[T]),_r=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
949
952
|
value: hubAssets(request: $request) {
|
|
950
953
|
...HubAsset
|
|
951
954
|
}
|
|
952
|
-
}`,[
|
|
955
|
+
}`,[b]),At=e(`fragment HubSummarySample on HubSummarySample {
|
|
953
956
|
__typename
|
|
954
957
|
date
|
|
955
958
|
deposits {
|
|
@@ -964,31 +967,31 @@
|
|
|
964
967
|
utilizationRate {
|
|
965
968
|
...PercentNumber
|
|
966
969
|
}
|
|
967
|
-
}`,[u,a])
|
|
970
|
+
}`,[u,a]),$r=e(`query HubSummaryHistory($request: HubSummaryHistoryRequest!) {
|
|
968
971
|
value: hubSummaryHistory(request: $request) {
|
|
969
972
|
...HubSummarySample
|
|
970
973
|
}
|
|
971
|
-
}`,[
|
|
974
|
+
}`,[At]);function V(t){return new TextDecoder().decode(Uint8Array.from(atob(t),x=>x.charCodeAt(0)))}function B(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 wt(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 wt(B(`${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 B(`${t.chainId}${d}${t.spoke}${d}${t.onChainId}`)}function ht(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 ht(B(`${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 Pt(B(`${t.chainId}${d}${t.address}`))}function Pt(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!) {
|
|
972
975
|
value: chain(request: $request) {
|
|
973
976
|
...Chain
|
|
974
977
|
}
|
|
975
|
-
}`,[o]),
|
|
978
|
+
}`,[o]),ga=e(`query Chains($request: ChainsRequest!) {
|
|
976
979
|
value: chains(request: $request) {
|
|
977
980
|
...Chain
|
|
978
981
|
}
|
|
979
|
-
}`,[o]),
|
|
982
|
+
}`,[o]),da=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
980
983
|
value: hasProcessedKnownTransaction(request: $request)
|
|
981
|
-
}`),
|
|
984
|
+
}`),Sa=e(`query Health {
|
|
982
985
|
value: health
|
|
983
|
-
}`),
|
|
986
|
+
}`),fa=e(`query ExchangeRate($request: ExchangeRateRequest!) {
|
|
984
987
|
value: exchangeRate(request: $request) {
|
|
985
988
|
...ExchangeAmount
|
|
986
989
|
}
|
|
987
|
-
}`,[u]);var
|
|
990
|
+
}`,[u]);var Ft=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
988
991
|
__typename
|
|
989
992
|
date
|
|
990
993
|
price
|
|
991
|
-
}`),
|
|
994
|
+
}`),It=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
992
995
|
__typename
|
|
993
996
|
date
|
|
994
997
|
amount {
|
|
@@ -1000,7 +1003,7 @@
|
|
|
1000
1003
|
lowestApy {
|
|
1001
1004
|
...PercentNumber
|
|
1002
1005
|
}
|
|
1003
|
-
}`,[c,a]),
|
|
1006
|
+
}`,[c,a]),Tt=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
1004
1007
|
__typename
|
|
1005
1008
|
date
|
|
1006
1009
|
amount {
|
|
@@ -1020,10 +1023,10 @@
|
|
|
1020
1023
|
exchange(currency: $currency) {
|
|
1021
1024
|
...ExchangeAmountWithChange
|
|
1022
1025
|
}
|
|
1023
|
-
}`,[
|
|
1026
|
+
}`,[K,R]),kt=e(`fragment AssetSummary on AssetSummary {
|
|
1024
1027
|
__typename
|
|
1025
1028
|
totalSupplyCap {
|
|
1026
|
-
...
|
|
1029
|
+
...AssetAmountWithChange
|
|
1027
1030
|
}
|
|
1028
1031
|
totalSupplied {
|
|
1029
1032
|
...AssetAmountWithChange
|
|
@@ -1032,7 +1035,7 @@
|
|
|
1032
1035
|
...AssetAmountWithChange
|
|
1033
1036
|
}
|
|
1034
1037
|
totalBorrowCap {
|
|
1035
|
-
...
|
|
1038
|
+
...AssetAmountWithChange
|
|
1036
1039
|
}
|
|
1037
1040
|
totalBorrowed {
|
|
1038
1041
|
...AssetAmountWithChange
|
|
@@ -1046,7 +1049,7 @@
|
|
|
1046
1049
|
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
1047
1050
|
...PercentNumber
|
|
1048
1051
|
}
|
|
1049
|
-
}`,[bt,
|
|
1052
|
+
}`,[bt,a]),Et=e(`fragment Asset on Asset {
|
|
1050
1053
|
__typename
|
|
1051
1054
|
id
|
|
1052
1055
|
token {
|
|
@@ -1058,23 +1061,23 @@
|
|
|
1058
1061
|
price(currency: $currency) {
|
|
1059
1062
|
...ExchangeAmountWithChange
|
|
1060
1063
|
}
|
|
1061
|
-
}`,[y,kt,R]),
|
|
1064
|
+
}`,[y,kt,R]),Aa=e(`query Asset($request: AssetRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1062
1065
|
value: asset(request: $request) {
|
|
1063
1066
|
...Asset
|
|
1064
1067
|
}
|
|
1065
|
-
}`,[
|
|
1068
|
+
}`,[Et]),wa=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
1066
1069
|
value: assetPriceHistory(request: $request) {
|
|
1067
1070
|
...AssetPriceSample
|
|
1068
1071
|
}
|
|
1069
|
-
}`,[
|
|
1072
|
+
}`,[Ft]),ha=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!) {
|
|
1070
1073
|
value: assetSupplyHistory(request: $request) {
|
|
1071
1074
|
...AssetSupplySample
|
|
1072
1075
|
}
|
|
1073
|
-
}`,[
|
|
1076
|
+
}`,[It]),Pa=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!) {
|
|
1074
1077
|
value: assetBorrowHistory(request: $request) {
|
|
1075
1078
|
...AssetBorrowSample
|
|
1076
1079
|
}
|
|
1077
|
-
}`,[
|
|
1080
|
+
}`,[Tt]),vt=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
1078
1081
|
__typename
|
|
1079
1082
|
date
|
|
1080
1083
|
deposits {
|
|
@@ -1083,111 +1086,111 @@
|
|
|
1083
1086
|
borrows {
|
|
1084
1087
|
...ExchangeAmount
|
|
1085
1088
|
}
|
|
1086
|
-
}`,[u]),
|
|
1089
|
+
}`,[u]),Fa=e(`query ProtocolHistory($request: ProtocolHistoryRequest!) {
|
|
1087
1090
|
value: protocolHistory(request: $request) {
|
|
1088
1091
|
...ProtocolHistorySample
|
|
1089
1092
|
}
|
|
1090
|
-
}`,[
|
|
1093
|
+
}`,[vt]);var ka=e(`query BorrowApyHistory($request: BorrowApyHistoryRequest!) {
|
|
1091
1094
|
value: borrowApyHistory(request: $request) {
|
|
1092
1095
|
...ApySample
|
|
1093
1096
|
}
|
|
1094
|
-
}`,[
|
|
1097
|
+
}`,[L]),Ea=e(`query SupplyApyHistory($request: SupplyApyHistoryRequest!) {
|
|
1095
1098
|
value: supplyApyHistory(request: $request) {
|
|
1096
1099
|
...ApySample
|
|
1097
1100
|
}
|
|
1098
|
-
}`,[
|
|
1101
|
+
}`,[L]),va=e(`query Reserve($request: ReserveRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1099
1102
|
value: reserve(request: $request) {
|
|
1100
1103
|
...Reserve
|
|
1101
1104
|
}
|
|
1102
|
-
}`,[h]),
|
|
1105
|
+
}`,[h]),Ua=e(`query Reserves($request: ReservesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1103
1106
|
value: reserves(request: $request) {
|
|
1104
1107
|
...Reserve
|
|
1105
1108
|
}
|
|
1106
|
-
}`,[h]);var
|
|
1109
|
+
}`,[h]);var Ha=e(`query Spoke($request: SpokeRequest!) {
|
|
1107
1110
|
value: spoke(request: $request) {
|
|
1108
1111
|
...Spoke
|
|
1109
1112
|
}
|
|
1110
|
-
}`,[i]),
|
|
1113
|
+
}`,[i]),Qa=e(`query Spokes($request: SpokesRequest!) {
|
|
1111
1114
|
value: spokes(request: $request) {
|
|
1112
1115
|
...Spoke
|
|
1113
1116
|
}
|
|
1114
|
-
}`,[i])
|
|
1117
|
+
}`,[i]),_a=e(`query SpokePositionManagers($request: SpokePositionManagersRequest!) {
|
|
1115
1118
|
value: spokePositionManagers(request: $request) {
|
|
1116
1119
|
...PaginatedSpokePositionManagerResult
|
|
1117
1120
|
}
|
|
1118
|
-
}`,[ee])
|
|
1121
|
+
}`,[ee]),$a=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
1119
1122
|
value: spokeUserPositionManagers(request: $request) {
|
|
1120
1123
|
...PaginatedSpokeUserPositionManagerResult
|
|
1121
1124
|
}
|
|
1122
|
-
}`,[te]);var
|
|
1125
|
+
}`,[te]);var La=e(`query TokenSwapQuote($request: TokenSwapQuoteRequest!, $currency: Currency!) {
|
|
1123
1126
|
value: tokenSwapQuote(request: $request) {
|
|
1124
1127
|
...TokenSwapQuoteResult
|
|
1125
1128
|
}
|
|
1126
|
-
}`,[ne]),
|
|
1129
|
+
}`,[ne]),Ma=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
1127
1130
|
value: swappableTokens(request: $request) {
|
|
1128
1131
|
...Token
|
|
1129
1132
|
}
|
|
1130
|
-
}`,[Y]),
|
|
1133
|
+
}`,[Y]),Va=e(`query PrepareTokenSwap($request: PrepareTokenSwapRequest!) {
|
|
1131
1134
|
value: prepareTokenSwap(request: $request) {
|
|
1132
1135
|
...PrepareTokenSwapResult
|
|
1133
1136
|
}
|
|
1134
|
-
}`,[oe]),
|
|
1137
|
+
}`,[oe]),Ka=e(`query SwapStatus($request: SwapStatusRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1135
1138
|
value: swapStatus(request: $request) {
|
|
1136
1139
|
...SwapStatus
|
|
1137
1140
|
}
|
|
1138
|
-
}`,[
|
|
1141
|
+
}`,[N]),Ga=e(`mutation Swap($request: SwapRequest!) {
|
|
1139
1142
|
value: swap(request: $request) {
|
|
1140
1143
|
...SwapExecutionPlan
|
|
1141
1144
|
}
|
|
1142
|
-
}`,[pe]),
|
|
1145
|
+
}`,[pe]),Ya=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
1143
1146
|
value: prepareSwapCancel(request: $request) {
|
|
1144
1147
|
...PrepareSwapCancelResult
|
|
1145
1148
|
}
|
|
1146
|
-
}`,[ie]),
|
|
1149
|
+
}`,[ie]),za=e(`mutation CancelSwap($request: CancelSwapRequest!) {
|
|
1147
1150
|
value: cancelSwap(request: $request) {
|
|
1148
1151
|
...CancelSwapExecutionPlan
|
|
1149
1152
|
}
|
|
1150
|
-
}`,[me]),
|
|
1153
|
+
}`,[me]),Za=e(`query UserSwaps($request: UserSwapsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1151
1154
|
value: userSwaps(request: $request) {
|
|
1152
1155
|
...PaginatedUserSwapsResult
|
|
1153
1156
|
}
|
|
1154
|
-
}`,[ye]),
|
|
1157
|
+
}`,[ye]),ja=e(`query SupplySwapQuote($request: SupplySwapQuoteRequest!, $currency: Currency!) {
|
|
1155
1158
|
value: supplySwapQuote(request: $request) {
|
|
1156
1159
|
...SupplySwapQuoteResult
|
|
1157
1160
|
}
|
|
1158
|
-
}`,[ce]),
|
|
1161
|
+
}`,[ce]),Ja=e(`query BorrowSwapQuote($request: BorrowSwapQuoteRequest!, $currency: Currency!) {
|
|
1159
1162
|
value: borrowSwapQuote(request: $request) {
|
|
1160
1163
|
...BorrowSwapQuoteResult
|
|
1161
1164
|
}
|
|
1162
|
-
}`,[le]),
|
|
1165
|
+
}`,[le]),Xa=e(`query RepayWithSupplyQuote($request: RepayWithSupplyQuoteRequest!, $currency: Currency!) {
|
|
1163
1166
|
value: repayWithSupplyQuote(request: $request) {
|
|
1164
1167
|
...RepayWithSupplyQuoteResult
|
|
1165
1168
|
}
|
|
1166
|
-
}`,[ge]),
|
|
1169
|
+
}`,[ge]),en=e(`query WithdrawSwapQuote($request: WithdrawSwapQuoteRequest!, $currency: Currency!) {
|
|
1167
1170
|
value: withdrawSwapQuote(request: $request) {
|
|
1168
1171
|
...WithdrawSwapQuoteResult
|
|
1169
1172
|
}
|
|
1170
|
-
}`,[de]),
|
|
1173
|
+
}`,[de]),tn=e(`query PreparePositionSwap($request: PreparePositionSwapRequest!) {
|
|
1171
1174
|
value: preparePositionSwap(request: $request) {
|
|
1172
1175
|
...PreparePositionSwapResult
|
|
1173
1176
|
}
|
|
1174
|
-
}`,[Se]);var
|
|
1177
|
+
}`,[Se]);var on=e(`query Borrow($request: BorrowRequest!) {
|
|
1175
1178
|
value: borrow(request: $request) {
|
|
1176
1179
|
...ExecutionPlan
|
|
1177
1180
|
}
|
|
1178
|
-
}`,[
|
|
1181
|
+
}`,[k]),pn=e(`query Supply($request: SupplyRequest!) {
|
|
1179
1182
|
value: supply(request: $request) {
|
|
1180
1183
|
...ExecutionPlan
|
|
1181
1184
|
}
|
|
1182
|
-
}`,[
|
|
1185
|
+
}`,[k]),sn=e(`query Repay($request: RepayRequest!) {
|
|
1183
1186
|
value: repay(request: $request) {
|
|
1184
1187
|
...ExecutionPlan
|
|
1185
1188
|
}
|
|
1186
|
-
}`,[
|
|
1189
|
+
}`,[k]),un=e(`query Withdraw($request: WithdrawRequest!) {
|
|
1187
1190
|
value: withdraw(request: $request) {
|
|
1188
1191
|
...ExecutionPlan
|
|
1189
1192
|
}
|
|
1190
|
-
}`,[
|
|
1193
|
+
}`,[k]),Ut=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1191
1194
|
__typename
|
|
1192
1195
|
... on TransactionRequest {
|
|
1193
1196
|
...TransactionRequest
|
|
@@ -1198,27 +1201,27 @@
|
|
|
1198
1201
|
... on InsufficientBalanceError {
|
|
1199
1202
|
...InsufficientBalanceError
|
|
1200
1203
|
}
|
|
1201
|
-
}`,[m
|
|
1204
|
+
}`,[m,$,q]),mn=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1202
1205
|
value: liquidatePosition(request: $request) {
|
|
1203
1206
|
...LiquidatePositionExecutionPlan
|
|
1204
1207
|
}
|
|
1205
|
-
}`,[
|
|
1208
|
+
}`,[Ut]),yn=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1206
1209
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1207
1210
|
...TransactionRequest
|
|
1208
1211
|
}
|
|
1209
|
-
}`,[m]),
|
|
1212
|
+
}`,[m]),cn=e(`query SetUserSuppliesAsCollateral($request: SetUserSuppliesAsCollateralRequest!) {
|
|
1210
1213
|
value: setUserSuppliesAsCollateral(request: $request) {
|
|
1211
1214
|
...TransactionRequest
|
|
1212
1215
|
}
|
|
1213
|
-
}`,[m]),
|
|
1216
|
+
}`,[m]),ln=e(`query RenounceSpokeUserPositionManager($request: RenounceSpokeUserPositionManagerRequest!) {
|
|
1214
1217
|
value: renounceSpokeUserPositionManager(request: $request) {
|
|
1215
1218
|
...TransactionRequest
|
|
1216
1219
|
}
|
|
1217
|
-
}`,[m]),
|
|
1220
|
+
}`,[m]),gn=e(`query UpdateUserPositionConditions($request: UpdateUserPositionConditionsRequest!) {
|
|
1218
1221
|
value: updateUserPositionConditions(request: $request) {
|
|
1219
1222
|
...TransactionRequest
|
|
1220
1223
|
}
|
|
1221
|
-
}`,[m]),
|
|
1224
|
+
}`,[m]),Ct=e(`fragment CollateralFactorVariation on CollateralFactorVariation {
|
|
1222
1225
|
__typename
|
|
1223
1226
|
reserveId
|
|
1224
1227
|
token {
|
|
@@ -1230,7 +1233,7 @@
|
|
|
1230
1233
|
after {
|
|
1231
1234
|
...PercentNumber
|
|
1232
1235
|
}
|
|
1233
|
-
}`,[y,a]),
|
|
1236
|
+
}`,[y,a]),Ot=e(`fragment LiquidationFeeVariation on LiquidationFeeVariation {
|
|
1234
1237
|
__typename
|
|
1235
1238
|
reserveId
|
|
1236
1239
|
token {
|
|
@@ -1254,7 +1257,7 @@
|
|
|
1254
1257
|
after {
|
|
1255
1258
|
...PercentNumber
|
|
1256
1259
|
}
|
|
1257
|
-
}`,[y,a]),
|
|
1260
|
+
}`,[y,a]),Ht=e(`fragment UserPositionConditionVariation on UserPositionConditionVariation {
|
|
1258
1261
|
__typename
|
|
1259
1262
|
... on CollateralFactorVariation {
|
|
1260
1263
|
...CollateralFactorVariation
|
|
@@ -1265,7 +1268,7 @@
|
|
|
1265
1268
|
... on MaxLiquidationBonusVariation {
|
|
1266
1269
|
...MaxLiquidationBonusVariation
|
|
1267
1270
|
}
|
|
1268
|
-
}`,[Ot,
|
|
1271
|
+
}`,[Ct,Ot,Bt]),Qt=e(`fragment PreviewUserPosition on PreviewUserPosition {
|
|
1269
1272
|
__typename
|
|
1270
1273
|
id
|
|
1271
1274
|
healthFactor {
|
|
@@ -1292,11 +1295,11 @@
|
|
|
1292
1295
|
otherConditions {
|
|
1293
1296
|
...UserPositionConditionVariation
|
|
1294
1297
|
}
|
|
1295
|
-
}`,[X,Z,j,
|
|
1298
|
+
}`,[X,Z,j,Ht]),dn=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD) {
|
|
1296
1299
|
value: preview(request: $request) {
|
|
1297
1300
|
...PreviewUserPosition
|
|
1298
1301
|
}
|
|
1299
|
-
}`,[
|
|
1302
|
+
}`,[Qt]),he=e(`fragment PercentNumberChangeSnapshot on PercentNumberChangeSnapshot {
|
|
1300
1303
|
__typename
|
|
1301
1304
|
before {
|
|
1302
1305
|
...PercentNumber
|
|
@@ -1304,7 +1307,7 @@
|
|
|
1304
1307
|
after {
|
|
1305
1308
|
...PercentNumber
|
|
1306
1309
|
}
|
|
1307
|
-
}`,[a])
|
|
1310
|
+
}`,[a]),_t=e(`fragment BorrowActivity on BorrowActivity {
|
|
1308
1311
|
__typename
|
|
1309
1312
|
id
|
|
1310
1313
|
user
|
|
@@ -1322,7 +1325,7 @@
|
|
|
1322
1325
|
chain {
|
|
1323
1326
|
...Chain
|
|
1324
1327
|
}
|
|
1325
|
-
}`,[i,p,g,o])
|
|
1328
|
+
}`,[i,p,g,o]),$t=e(`fragment SupplyActivity on SupplyActivity {
|
|
1326
1329
|
__typename
|
|
1327
1330
|
id
|
|
1328
1331
|
user
|
|
@@ -1340,7 +1343,7 @@
|
|
|
1340
1343
|
chain {
|
|
1341
1344
|
...Chain
|
|
1342
1345
|
}
|
|
1343
|
-
}`,[i,p,g,o]),
|
|
1346
|
+
}`,[i,p,g,o]),Nt=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1344
1347
|
__typename
|
|
1345
1348
|
id
|
|
1346
1349
|
user
|
|
@@ -1358,7 +1361,7 @@
|
|
|
1358
1361
|
chain {
|
|
1359
1362
|
...Chain
|
|
1360
1363
|
}
|
|
1361
|
-
}`,[i,p,g,o]),
|
|
1364
|
+
}`,[i,p,g,o]),Wt=e(`fragment RepayActivity on RepayActivity {
|
|
1362
1365
|
__typename
|
|
1363
1366
|
id
|
|
1364
1367
|
user
|
|
@@ -1376,7 +1379,7 @@
|
|
|
1376
1379
|
chain {
|
|
1377
1380
|
...Chain
|
|
1378
1381
|
}
|
|
1379
|
-
}`,[i,p,g,o]),
|
|
1382
|
+
}`,[i,p,g,o]),Dt=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1380
1383
|
__typename
|
|
1381
1384
|
id
|
|
1382
1385
|
user
|
|
@@ -1401,7 +1404,7 @@
|
|
|
1401
1404
|
chain {
|
|
1402
1405
|
...Chain
|
|
1403
1406
|
}
|
|
1404
|
-
}`,[i,p,g,o]),
|
|
1407
|
+
}`,[i,p,g,o]),Lt=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1405
1408
|
__typename
|
|
1406
1409
|
id
|
|
1407
1410
|
user
|
|
@@ -1417,7 +1420,7 @@
|
|
|
1417
1420
|
chain {
|
|
1418
1421
|
...Chain
|
|
1419
1422
|
}
|
|
1420
|
-
}`,[i,g,o]),
|
|
1423
|
+
}`,[i,g,o]),Mt=e(`fragment UpdatedDynamicConfigActivity on UpdatedDynamicConfigActivity {
|
|
1421
1424
|
__typename
|
|
1422
1425
|
id
|
|
1423
1426
|
user
|
|
@@ -1441,7 +1444,7 @@
|
|
|
1441
1444
|
chain {
|
|
1442
1445
|
...Chain
|
|
1443
1446
|
}
|
|
1444
|
-
}`,[i,g,he,o]),
|
|
1447
|
+
}`,[i,g,he,o]),Vt=e(`fragment UpdatedRiskPremiumActivity on UpdatedRiskPremiumActivity {
|
|
1445
1448
|
__typename
|
|
1446
1449
|
id
|
|
1447
1450
|
user
|
|
@@ -1456,7 +1459,7 @@
|
|
|
1456
1459
|
chain {
|
|
1457
1460
|
...Chain
|
|
1458
1461
|
}
|
|
1459
|
-
}`,[i,he,o]),
|
|
1462
|
+
}`,[i,he,o]),Kt=e(`fragment ActivityItem on ActivityItem {
|
|
1460
1463
|
__typename
|
|
1461
1464
|
... on BorrowActivity {
|
|
1462
1465
|
...BorrowActivity
|
|
@@ -1482,7 +1485,7 @@
|
|
|
1482
1485
|
... on UpdatedRiskPremiumActivity {
|
|
1483
1486
|
...UpdatedRiskPremiumActivity
|
|
1484
1487
|
}
|
|
1485
|
-
}`,[
|
|
1488
|
+
}`,[_t,$t,Nt,Wt,Dt,Lt,Mt,Vt]),Gt=e(`fragment PaginatedActivitiesResult on PaginatedActivitiesResult {
|
|
1486
1489
|
__typename
|
|
1487
1490
|
items {
|
|
1488
1491
|
...ActivityItem
|
|
@@ -1490,41 +1493,41 @@
|
|
|
1490
1493
|
pageInfo {
|
|
1491
1494
|
...PaginatedResultInfo
|
|
1492
1495
|
}
|
|
1493
|
-
}`,[
|
|
1496
|
+
}`,[Kt,A]),Sn=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1494
1497
|
value: activities(request: $request) {
|
|
1495
1498
|
...PaginatedActivitiesResult
|
|
1496
1499
|
}
|
|
1497
|
-
}`,[
|
|
1500
|
+
}`,[Gt]);var xn=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1498
1501
|
value: userSupplies(request: $request) {
|
|
1499
1502
|
...UserSupplyItem
|
|
1500
1503
|
}
|
|
1501
|
-
}`,[fe]),
|
|
1504
|
+
}`,[fe]),An=e(`query UserBorrows($request: UserBorrowsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1502
1505
|
value: userBorrows(request: $request) {
|
|
1503
1506
|
...UserBorrowItem
|
|
1504
1507
|
}
|
|
1505
|
-
}`,[Re]),
|
|
1508
|
+
}`,[Re]),wn=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1506
1509
|
value: userSummary(request: $request) {
|
|
1507
1510
|
...UserSummary
|
|
1508
1511
|
}
|
|
1509
|
-
}`,[qe]),
|
|
1512
|
+
}`,[qe]),hn=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1510
1513
|
value: userPositions(request: $request) {
|
|
1511
1514
|
...UserPosition
|
|
1512
1515
|
}
|
|
1513
|
-
}`,[
|
|
1516
|
+
}`,[D]),Pn=e(`query UserPosition($request: UserPositionRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1514
1517
|
value: userPosition(request: $request) {
|
|
1515
1518
|
...UserPosition
|
|
1516
1519
|
}
|
|
1517
|
-
}`,[
|
|
1520
|
+
}`,[D]),Fn=e(`query UserBalances($request: UserBalancesRequest!, $currency: Currency!) {
|
|
1518
1521
|
value: userBalances(request: $request) {
|
|
1519
1522
|
...UserBalance
|
|
1520
1523
|
}
|
|
1521
|
-
}`,[xe]),
|
|
1524
|
+
}`,[xe]),In=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1522
1525
|
value: userSummaryHistory(request: $request) {
|
|
1523
1526
|
...UserSummaryHistoryItem
|
|
1524
1527
|
}
|
|
1525
|
-
}`,[Ae]),
|
|
1528
|
+
}`,[Ae]),Tn=e(`query UserRiskPremiumBreakdown($request: UserRiskPremiumBreakdownRequest!) {
|
|
1526
1529
|
value: userRiskPremiumBreakdown(request: $request) {
|
|
1527
1530
|
...UserRiskPremiumBreakdownItem
|
|
1528
1531
|
}
|
|
1529
|
-
}`,[
|
|
1532
|
+
}`,[W]);exports.ActivitiesQuery=Sn;exports.ActivityItemFragment=Kt;exports.ActivityType=Ee;exports.ApyMetric=ve;exports.ApySampleFragment=L;exports.AssetAmountWithChangeFragment=bt;exports.AssetBorrowHistoryQuery=Pa;exports.AssetBorrowSampleFragment=Tt;exports.AssetFragment=Et;exports.AssetPriceHistoryQuery=wa;exports.AssetPriceSampleFragment=Ft;exports.AssetQuery=Aa;exports.AssetSummaryFragment=kt;exports.AssetSupplyHistoryQuery=ha;exports.AssetSupplySampleFragment=It;exports.BorrowActivityFragment=_t;exports.BorrowApyHistoryQuery=ka;exports.BorrowQuery=on;exports.BorrowSwapKind=He;exports.BorrowSwapQuoteQuery=Ja;exports.BorrowSwapQuoteResultFragment=le;exports.CancelSwapExecutionPlanFragment=me;exports.CancelSwapMutation=za;exports.ChainFragment=o;exports.ChainQuery=la;exports.ChainsFilter=be;exports.ChainsQuery=ga;exports.CollateralFactorVariationFragment=Ct;exports.CollateralMetric=Ue;exports.Currency=Ce;exports.DecimalNumberFragment=c;exports.DecimalNumberWithChangeFragment=K;exports.DomainDataFragment=v;exports.Erc20AmountFragment=p;exports.Erc20ApprovalFragment=pt;exports.Erc20ApprovalRequiredFragment=$;exports.Erc20TokenFragment=y;exports.ExchangeAmountFragment=u;exports.ExchangeAmountVariationFragment=j;exports.ExchangeAmountWithChangeFragment=R;exports.ExchangeRateQuery=fa;exports.ExecutionPlanFragment=k;exports.HasProcessedKnownTransactionQuery=da;exports.HealthFactorErrorFragment=Ve;exports.HealthFactorResultFragment=X;exports.HealthFactorVariationFragment=Me;exports.HealthFactorWithChangeFragment=J;exports.HealthQuery=Sa;exports.HubAssetFragment=b;exports.HubAssetSettingsFragment=Ye;exports.HubAssetStatusType=ke;exports.HubAssetSummaryFragment=Ge;exports.HubAssetUserStateFragment=ze;exports.HubAssetsQuery=_r;exports.HubFragment=T;exports.HubQuery=Hr;exports.HubSummaryFragment=Ke;exports.HubSummaryHistoryQuery=$r;exports.HubSummarySampleFragment=At;exports.HubsQuery=Qr;exports.InsufficientBalanceErrorFragment=q;exports.LiquidatePositionExecutionPlanFragment=Ut;exports.LiquidatePositionQuery=mn;exports.LiquidatedActivityFragment=Dt;exports.LiquidationFeeVariationFragment=Ot;exports.MaxLiquidationBonusVariationFragment=Bt;exports.NativeAmountFragment=Q;exports.NativeTokenFragment=G;exports.OperationType=Te;exports.OrderDirection=Pe;exports.PageSize=Fe;exports.PaginatedActivitiesResultFragment=Gt;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=nt;exports.PermitTypedDataQuery=fr;exports.PermitTypedDataResponseFragment=_;exports.PositionAmountFragment=lt;exports.PositionSwapAdapterContractApprovalFragment=ft;exports.PositionSwapApprovalFragment=qt;exports.PositionSwapByIntentApprovalsRequiredFragment=C;exports.PositionSwapPositionManagerApprovalFragment=Rt;exports.PreContractActionRequiredFragment=ot;exports.PreparePositionSwapQuery=tn;exports.PreparePositionSwapResultFragment=Se;exports.PrepareSwapCancelQuery=Ya;exports.PrepareSwapCancelResultFragment=ie;exports.PrepareSwapOrderFragment=re;exports.PrepareTokenSwapQuery=Va;exports.PrepareTokenSwapResultFragment=oe;exports.PreviewQuery=dn;exports.PreviewUserPositionFragment=Qt;exports.ProtocolHistoryQuery=Fa;exports.ProtocolHistorySampleFragment=vt;exports.RenounceSpokeUserPositionManagerQuery=ln;exports.RepayActivityFragment=Wt;exports.RepayQuery=sn;exports.RepayWithSupplyKind=Qe;exports.RepayWithSupplyQuoteQuery=Xa;exports.RepayWithSupplyQuoteResultFragment=ge;exports.ReserveFragment=h;exports.ReserveInfoFragment=g;exports.ReserveQuery=va;exports.ReserveSettingsFragment=Je;exports.ReserveStatusFragment=Xe;exports.ReserveSummaryFragment=et;exports.ReserveUserStateFragment=tt;exports.ReservesQuery=Ua;exports.ReservesRequestFilter=Oe;exports.SetSpokeUserPositionManagerQuery=yn;exports.SetUserSuppliesAsCollateralQuery=cn;exports.SpokeFragment=i;exports.SpokePositionManagerFragment=Ze;exports.SpokePositionManagersQuery=_a;exports.SpokeQuery=Ha;exports.SpokeUserPositionManagerFragment=je;exports.SpokeUserPositionManagersQuery=$a;exports.SpokesQuery=Qa;exports.SupplyActivityFragment=$t;exports.SupplyApyHistoryQuery=Ea;exports.SupplyQuery=pn;exports.SupplySwapKind=_e;exports.SupplySwapQuoteQuery=ja;exports.SupplySwapQuoteResultFragment=ce;exports.SwapAmountFragment=ue;exports.SwapByIntentFragment=ut;exports.SwapByIntentWithApprovalRequiredFragment=it;exports.SwapByTransactionFragment=mt;exports.SwapCancelledFragment=se;exports.SwapExecutionPlanFragment=pe;exports.SwapExpiredFragment=ct;exports.SwapFulfilledFragment=St;exports.SwapKind=Be;exports.SwapMutation=Ga;exports.SwapOpenFragment=gt;exports.SwapPendingSignatureFragment=dt;exports.SwapQuoteCostsFragment=st;exports.SwapQuoteFragment=U;exports.SwapReceiptFragment=ae;exports.SwapStatusFilter=Ne;exports.SwapStatusFragment=N;exports.SwapStatusQuery=Ka;exports.SwapTransactionRequestFragment=yt;exports.SwapTypedDataFragment=E;exports.SwappableTokensQuery=Ma;exports.TimeWindow=Ie;exports.TokenAmountFragment=I;exports.TokenCategory=We;exports.TokenFragment=Y;exports.TokenInfoFragment=F;exports.TokenSwapQuoteQuery=La;exports.TokenSwapQuoteResultFragment=ne;exports.TransactionRequestFragment=m;exports.TypeDefinitionFragment=at;exports.TypeFieldFragment=rt;exports.UpdateUserPositionConditionsQuery=gn;exports.UpdatedDynamicConfigActivityFragment=Mt;exports.UpdatedRiskPremiumActivityFragment=Vt;exports.UserBalanceFragment=xe;exports.UserBalancesQuery=Fn;exports.UserBorrowItemFragment=Re;exports.UserBorrowsQuery=An;exports.UserPositionConditionVariationFragment=Ht;exports.UserPositionConditionsUpdate=De;exports.UserPositionFragment=D;exports.UserPositionQuery=Pn;exports.UserPositionRiskPremiumFragment=xt;exports.UserPositionsQuery=hn;exports.UserRiskPremiumBreakdownItemFragment=W;exports.UserRiskPremiumBreakdownQuery=Tn;exports.UserSummaryFragment=qe;exports.UserSummaryHistoryItemFragment=Ae;exports.UserSummaryHistoryQuery=In;exports.UserSummaryQuery=wn;exports.UserSuppliesQuery=xn;exports.UserSupplyItemFragment=fe;exports.UserSwapsQuery=Za;exports.UsingAsCollateralActivityFragment=Lt;exports.WithdrawActivityFragment=Nt;exports.WithdrawQuery=un;exports.WithdrawSwapKind=$e;exports.WithdrawSwapQuoteQuery=en;exports.WithdrawSwapQuoteResultFragment=de;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=wt;exports.isChainIdsVariant=sa;exports.isERC20PermitSignature=Sr;exports.isHubInputVariant=pa;exports.isSpokeInputVariant=ua;exports.isTxHashInputVariant=ia;exports.reserveId=Kr;exports.spokeId=Pt;exports.swapId=jr;exports.swapQuoteId=Jr;exports.tokenInfoId=aa;exports.userBalanceId=ea;exports.userBorrowItemId=ta;exports.userPositionId=ht;exports.userSupplyItemId=ra;//# sourceMappingURL=index.cjs.map
|
|
1530
1533
|
//# sourceMappingURL=index.cjs.map
|