@aave/graphql 1.0.0-next.23 → 1.0.0-next.25
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 +152 -149
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +778 -302
- package/dist/index.d.ts +778 -302
- package/dist/index.js +152 -149
- 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 +55 -74
- package/dist/testing.js +2 -2
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
'use strict';var gql_tada=require('gql.tada'),types=require('@aave/types');var
|
|
1
|
+
'use strict';var gql_tada=require('gql.tada'),types=require('@aave/types');var Ie=(r=>(r.Asc="ASC",r.Desc="DESC",r))(Ie||{}),Te=(r=>(r.Ten="TEN",r.Fifty="FIFTY",r))(Te||{}),ve=(P=>(P.LastDay="LAST_DAY",P.LastWeek="LAST_WEEK",P.LastMonth="LAST_MONTH",P.LastSixMonths="LAST_SIX_MONTHS",P.LastYear="LAST_YEAR",P.All="ALL",P))(ve||{}),ke=(g=>(g.SpokeBorrow="SPOKE_BORROW",g.SpokeRepay="SPOKE_REPAY",g.SpokeSupply="SPOKE_SUPPLY",g.SpokeWithdraw="SPOKE_WITHDRAW",g.SpokeUpdateUserRiskPremium="SPOKE_UPDATE_USER_RISK_PREMIUM",g.SpokeUpdateUserDynamicConfig="SPOKE_UPDATE_USER_DYNAMIC_CONFIG",g.SpokeSetUserUsingAsCollateral="SPOKE_SET_USER_USING_AS_COLLATERAL",g.SpokeSetUserPositionManager="SPOKE_SET_USER_POSITION_MANAGER",g.RenounceSpokeUserPositionManager="RENOUNCE_SPOKE_USER_POSITION_MANAGER",g.Liquidation="LIQUIDATION",g))(ke||{}),be=(o=>(o.TESTNET_ONLY="TESTNET_ONLY",o.MAINNET_ONLY="MAINNET_ONLY",o.ALL="ALL",o))(be||{}),Ee=(y=>(y.Borrow="BORROW",y.Supply="SUPPLY",y.Withdraw="WITHDRAW",y.Repay="REPAY",y.Liquidated="LIQUIDATED",y.SetAsCollateral="SET_AS_COLLATERAL",y.UpdatedDynamicConfig="UPDATED_DYNAMIC_CONFIG",y.UpdatedRiskPremium="UPDATED_RISK_PREMIUM",y.TokenToTokenSwap="TOKEN_TO_TOKEN_SWAP",y.SupplySwap="SUPPLY_SWAP",y.BorrowSwap="BORROW_SWAP",y.RepayWithSupply="REPAY_WITH_SUPPLY",y.WithdrawSwap="WITHDRAW_SWAP",y))(Ee||{}),Ue=(o=>(o.Highest="HIGHEST",o.Lowest="LOWEST",o.Average="AVERAGE",o))(Ue||{}),Ce=(r=>(r.Highest="HIGHEST",r.Lowest="LOWEST",r))(Ce||{}),Oe=(o=>(o.Usd="USD",o.Eur="EUR",o.Gbp="GBP",o))(Oe||{}),_e=(R=>(R.Supply="SUPPLY",R.Borrow="BORROW",R.Collateral="COLLATERAL",R.All="ALL",R))(_e||{}),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||{}),We=(r=>(r.Withdraw="WITHDRAW",r.Buy="BUY",r))(We||{}),Ne=(T=>(T.Cancelled="CANCELLED",T.Expired="EXPIRED",T.Fulfilled="FULFILLED",T.Open="OPEN",T.PendingSignature="PENDING_SIGNATURE",T))(Ne||{}),De=(r=>(r.Stablecoin="STABLECOIN",r.EthCorrelated="ETH_CORRELATED",r))(De||{}),Le=(r=>(r.AllDynamicConfig="ALL_DYNAMIC_CONFIG",r.JustRiskPremium="JUST_RISK_PREMIUM",r))(Le||{}),Me=(r=>(r.Fast="FAST",r.Accurate="ACCURATE",r))(Me||{});var e=gql_tada.initGraphQLTada();var C=e(`fragment DomainData on DomainData {
|
|
2
2
|
name
|
|
3
3
|
version
|
|
4
4
|
chainId
|
|
5
5
|
verifyingContract
|
|
6
|
-
}`),
|
|
6
|
+
}`),c=e(`fragment DecimalNumber on DecimalNumber {
|
|
7
7
|
__typename
|
|
8
8
|
onChainValue
|
|
9
9
|
decimals
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
change(window: $timeWindow) {
|
|
23
23
|
...PercentNumber
|
|
24
24
|
}
|
|
25
|
-
}`,[
|
|
25
|
+
}`,[c,a]),u=e(`fragment ExchangeAmount on ExchangeAmount {
|
|
26
26
|
__typename
|
|
27
27
|
value
|
|
28
28
|
name
|
|
29
29
|
symbol
|
|
30
30
|
icon
|
|
31
31
|
decimals
|
|
32
|
-
}`),
|
|
32
|
+
}`),v=e(`fragment TokenInfo on TokenInfo {
|
|
33
33
|
__typename
|
|
34
34
|
id
|
|
35
35
|
name
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
nativeInfo {
|
|
53
53
|
...TokenInfo
|
|
54
54
|
}
|
|
55
|
-
}`,[
|
|
55
|
+
}`,[v]),l=e(`fragment Erc20Token on Erc20Token {
|
|
56
56
|
__typename
|
|
57
57
|
info {
|
|
58
58
|
...TokenInfo
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
...Chain
|
|
63
63
|
}
|
|
64
64
|
isWrappedNativeToken
|
|
65
|
-
}`,[
|
|
65
|
+
}`,[v,n]),Y=e(`fragment NativeToken on NativeToken {
|
|
66
66
|
__typename
|
|
67
67
|
info {
|
|
68
68
|
...TokenInfo
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
chain {
|
|
71
71
|
...Chain
|
|
72
72
|
}
|
|
73
|
-
}`,[
|
|
73
|
+
}`,[v,n]),p=e(`fragment Erc20Amount on Erc20Amount {
|
|
74
74
|
__typename
|
|
75
75
|
token {
|
|
76
76
|
...Erc20Token
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
exchangeRate(currency: $currency){
|
|
85
85
|
...DecimalNumber
|
|
86
86
|
}
|
|
87
|
-
}`,[c,
|
|
87
|
+
}`,[l,c,u]),W=e(`fragment NativeAmount on NativeAmount {
|
|
88
88
|
__typename
|
|
89
89
|
token {
|
|
90
90
|
...NativeToken
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
exchangeRate(currency: $currency){
|
|
99
99
|
...DecimalNumber
|
|
100
100
|
}
|
|
101
|
-
}`,[Y,
|
|
101
|
+
}`,[Y,c,u]),k=e(`fragment TokenAmount on TokenAmount {
|
|
102
102
|
__typename
|
|
103
103
|
... on Erc20Amount {
|
|
104
104
|
...Erc20Amount
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
... on NativeAmount {
|
|
107
107
|
...NativeAmount
|
|
108
108
|
}
|
|
109
|
-
}`,[p,
|
|
109
|
+
}`,[p,W]),z=e(`fragment Token on Token {
|
|
110
110
|
__typename
|
|
111
111
|
... on Erc20Token {
|
|
112
112
|
...Erc20Token
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
... on NativeToken {
|
|
115
115
|
...NativeToken
|
|
116
116
|
}
|
|
117
|
-
}`,[
|
|
117
|
+
}`,[l,Y]),q=e(`fragment ExchangeAmountWithChange on ExchangeAmountWithChange {
|
|
118
118
|
__typename
|
|
119
119
|
current {
|
|
120
120
|
...ExchangeAmount
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
change(window: $timeWindow){
|
|
131
131
|
...PercentNumber
|
|
132
132
|
}
|
|
133
|
-
}`,[a]),
|
|
133
|
+
}`,[a]),A=e(`fragment PaginatedResultInfo on PaginatedResultInfo {
|
|
134
134
|
__typename
|
|
135
135
|
prev
|
|
136
136
|
next
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
... on HealthFactorError {
|
|
174
174
|
...HealthFactorError
|
|
175
175
|
}
|
|
176
|
-
}`,[Ke,Ge]),
|
|
176
|
+
}`,[Ke,Ge]),x=e(`fragment InsufficientBalanceError on InsufficientBalanceError {
|
|
177
177
|
__typename
|
|
178
178
|
required {
|
|
179
179
|
...DecimalNumber
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
available {
|
|
182
182
|
...DecimalNumber
|
|
183
183
|
}
|
|
184
|
-
}`,[
|
|
184
|
+
}`,[c]);var Ye=e(`fragment HubSummary on HubSummary {
|
|
185
185
|
__typename
|
|
186
186
|
totalBorrowed {
|
|
187
187
|
...ExchangeAmountWithChange
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
utilizationRate {
|
|
199
199
|
...PercentNumber
|
|
200
200
|
}
|
|
201
|
-
}`,[u,
|
|
201
|
+
}`,[u,q,a]),h=e(`fragment Hub on Hub {
|
|
202
202
|
__typename
|
|
203
203
|
id
|
|
204
204
|
name
|
|
@@ -264,35 +264,15 @@
|
|
|
264
264
|
userState {
|
|
265
265
|
...HubAssetUserState
|
|
266
266
|
}
|
|
267
|
-
}`,[
|
|
268
|
-
name
|
|
269
|
-
type
|
|
270
|
-
}`),Xe=e(`fragment TypeDefinition on TypeDefinition {
|
|
271
|
-
EIP712Domain {
|
|
272
|
-
...TypeField
|
|
273
|
-
}
|
|
274
|
-
Permit {
|
|
275
|
-
...TypeField
|
|
276
|
-
}
|
|
277
|
-
}`,[Je]),et=e(`fragment PermitMessageData on PermitMessageData {
|
|
278
|
-
owner
|
|
279
|
-
spender
|
|
280
|
-
value
|
|
281
|
-
nonce
|
|
282
|
-
deadline
|
|
283
|
-
}`),te=e(`fragment PermitTypedData on PermitTypedData {
|
|
267
|
+
}`,[h,l,ze,Ze,je]);var te=e(`fragment PermitTypedData on PermitTypedData {
|
|
284
268
|
__typename
|
|
285
|
-
types
|
|
286
|
-
...TypeDefinition
|
|
287
|
-
}
|
|
269
|
+
types
|
|
288
270
|
primaryType
|
|
289
271
|
domain {
|
|
290
272
|
...DomainData
|
|
291
273
|
}
|
|
292
|
-
message
|
|
293
|
-
|
|
294
|
-
}
|
|
295
|
-
}`,[Xe,k,et]);function gr(t){return typeof t=="object"&&t!==null&&"deadline"in t&&"value"in t}var i=e(`fragment Spoke on Spoke {
|
|
274
|
+
message
|
|
275
|
+
}`,[C]);function yr(t){return typeof t=="object"&&t!==null&&"deadline"in t&&"value"in t}var i=e(`fragment Spoke on Spoke {
|
|
296
276
|
__typename
|
|
297
277
|
id
|
|
298
278
|
name
|
|
@@ -300,7 +280,7 @@
|
|
|
300
280
|
chain {
|
|
301
281
|
...Chain
|
|
302
282
|
}
|
|
303
|
-
}`,[n]),
|
|
283
|
+
}`,[n]),Je=e(`fragment SpokePositionManager on SpokePositionManger {
|
|
304
284
|
__typename
|
|
305
285
|
address
|
|
306
286
|
active
|
|
@@ -313,7 +293,7 @@
|
|
|
313
293
|
pageInfo {
|
|
314
294
|
...PaginatedResultInfo
|
|
315
295
|
}
|
|
316
|
-
}`,[
|
|
296
|
+
}`,[Je,A]),Xe=e(`fragment SpokeUserPositionManager on SpokeUserPositionManager {
|
|
317
297
|
__typename
|
|
318
298
|
address
|
|
319
299
|
approvedOn
|
|
@@ -327,7 +307,7 @@
|
|
|
327
307
|
pageInfo {
|
|
328
308
|
...PaginatedResultInfo
|
|
329
309
|
}
|
|
330
|
-
}`,[
|
|
310
|
+
}`,[Xe,A]);var et=e(`fragment ReserveSettings on ReserveSettings {
|
|
331
311
|
__typename
|
|
332
312
|
collateralFactor {
|
|
333
313
|
...PercentNumber
|
|
@@ -345,12 +325,12 @@
|
|
|
345
325
|
collateral
|
|
346
326
|
suppliable
|
|
347
327
|
latestDynamicConfigKey
|
|
348
|
-
}`,[a]),
|
|
328
|
+
}`,[a]),tt=e(`fragment ReserveStatus on ReserveStatus {
|
|
349
329
|
__typename
|
|
350
330
|
frozen
|
|
351
331
|
paused
|
|
352
332
|
active
|
|
353
|
-
}`),
|
|
333
|
+
}`),rt=e(`fragment ReserveSummary on ReserveSummary {
|
|
354
334
|
__typename
|
|
355
335
|
supplied {
|
|
356
336
|
...Erc20Amount
|
|
@@ -364,7 +344,7 @@
|
|
|
364
344
|
borrowApy {
|
|
365
345
|
...PercentNumber
|
|
366
346
|
}
|
|
367
|
-
}`,[p,a]),
|
|
347
|
+
}`,[p,a]),at=e(`fragment ReserveUserState on ReserveUserState {
|
|
368
348
|
__typename
|
|
369
349
|
balance {
|
|
370
350
|
...Erc20Amount
|
|
@@ -388,7 +368,7 @@
|
|
|
388
368
|
...PercentNumber
|
|
389
369
|
}
|
|
390
370
|
dynamicConfigKey
|
|
391
|
-
}`,[p,a]),
|
|
371
|
+
}`,[p,a]),F=e(`fragment Reserve on Reserve {
|
|
392
372
|
__typename
|
|
393
373
|
id
|
|
394
374
|
onChainId
|
|
@@ -418,7 +398,7 @@
|
|
|
418
398
|
asset {
|
|
419
399
|
...HubAsset
|
|
420
400
|
}
|
|
421
|
-
}`,[i,n,
|
|
401
|
+
}`,[i,n,rt,et,tt,at,b]),S=e(`fragment ReserveInfo on ReserveInfo {
|
|
422
402
|
__typename
|
|
423
403
|
id
|
|
424
404
|
asset {
|
|
@@ -432,7 +412,7 @@
|
|
|
432
412
|
value
|
|
433
413
|
chainId
|
|
434
414
|
operations
|
|
435
|
-
}`)
|
|
415
|
+
}`),N=e(`fragment Erc20Approval on Erc20Approval {
|
|
436
416
|
__typename
|
|
437
417
|
byTransaction {
|
|
438
418
|
...TransactionRequest
|
|
@@ -440,11 +420,8 @@
|
|
|
440
420
|
bySignature {
|
|
441
421
|
...PermitTypedData
|
|
442
422
|
}
|
|
443
|
-
}`,[m,te]),
|
|
423
|
+
}`,[m,te]),D=e(`fragment Erc20ApprovalRequired on Erc20ApprovalRequired {
|
|
444
424
|
__typename
|
|
445
|
-
transaction {
|
|
446
|
-
...TransactionRequest
|
|
447
|
-
}
|
|
448
425
|
approval {
|
|
449
426
|
...Erc20Approval
|
|
450
427
|
}
|
|
@@ -458,7 +435,7 @@
|
|
|
458
435
|
originalTransaction {
|
|
459
436
|
...TransactionRequest
|
|
460
437
|
}
|
|
461
|
-
}`,[m
|
|
438
|
+
}`,[m,N,c]),nt=e(`fragment PreContractActionRequired on PreContractActionRequired {
|
|
462
439
|
__typename
|
|
463
440
|
transaction {
|
|
464
441
|
...TransactionRequest
|
|
@@ -481,7 +458,7 @@
|
|
|
481
458
|
... on InsufficientBalanceError {
|
|
482
459
|
...InsufficientBalanceError
|
|
483
460
|
}
|
|
484
|
-
}`,[m,
|
|
461
|
+
}`,[m,D,nt,x]);var ot=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
485
462
|
__typename
|
|
486
463
|
networkCosts {
|
|
487
464
|
...TokenAmount
|
|
@@ -495,13 +472,16 @@
|
|
|
495
472
|
providerFee {
|
|
496
473
|
...TokenAmount
|
|
497
474
|
}
|
|
498
|
-
}`,[
|
|
475
|
+
}`,[k]),O=e(`fragment SwapQuote on SwapQuote {
|
|
499
476
|
__typename
|
|
500
477
|
accuracy
|
|
501
478
|
quoteId
|
|
502
479
|
suggestedSlippage {
|
|
503
480
|
...PercentNumber
|
|
504
481
|
}
|
|
482
|
+
selectedSlippage {
|
|
483
|
+
...PercentNumber
|
|
484
|
+
}
|
|
505
485
|
buy {
|
|
506
486
|
...TokenAmount
|
|
507
487
|
}
|
|
@@ -517,7 +497,7 @@
|
|
|
517
497
|
finalSell {
|
|
518
498
|
...TokenAmount
|
|
519
499
|
}
|
|
520
|
-
}`,[a,
|
|
500
|
+
}`,[a,k,ot]),_=e(`fragment SwapTypedData on SwapTypedData {
|
|
521
501
|
__typename
|
|
522
502
|
primaryType
|
|
523
503
|
types
|
|
@@ -525,19 +505,19 @@
|
|
|
525
505
|
...DomainData
|
|
526
506
|
}
|
|
527
507
|
message
|
|
528
|
-
}`,[
|
|
508
|
+
}`,[C]),ne=e(`fragment PrepareSwapOrder on PrepareSwapOrder {
|
|
529
509
|
__typename
|
|
530
510
|
newQuoteId
|
|
531
511
|
data {
|
|
532
512
|
...SwapTypedData
|
|
533
513
|
}
|
|
534
|
-
}`,[
|
|
514
|
+
}`,[_]),pt=e(`fragment SwapByIntent on SwapByIntent {
|
|
535
515
|
__typename
|
|
536
516
|
quote {
|
|
537
517
|
...SwapQuote
|
|
538
518
|
}
|
|
539
519
|
|
|
540
|
-
}`,[
|
|
520
|
+
}`,[O]),st=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
541
521
|
__typename
|
|
542
522
|
approval {
|
|
543
523
|
...Erc20Approval
|
|
@@ -545,12 +525,12 @@
|
|
|
545
525
|
quote {
|
|
546
526
|
...SwapQuote
|
|
547
527
|
}
|
|
548
|
-
}`,[
|
|
528
|
+
}`,[N,O]),ut=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
549
529
|
__typename
|
|
550
530
|
quote {
|
|
551
531
|
...SwapQuote
|
|
552
532
|
}
|
|
553
|
-
}`,[
|
|
533
|
+
}`,[O]),oe=e(`fragment SwapReceipt on SwapReceipt {
|
|
554
534
|
__typename
|
|
555
535
|
id
|
|
556
536
|
explorerUrl
|
|
@@ -566,7 +546,7 @@
|
|
|
566
546
|
... on SwapByTransaction {
|
|
567
547
|
...SwapByTransaction
|
|
568
548
|
}
|
|
569
|
-
}`,[
|
|
549
|
+
}`,[pt,st,ut]),se=e(`fragment PrepareTokenSwapResult on PrepareTokenSwapResult {
|
|
570
550
|
__typename
|
|
571
551
|
... on PrepareSwapOrder {
|
|
572
552
|
...PrepareSwapOrder
|
|
@@ -574,7 +554,7 @@
|
|
|
574
554
|
... on InsufficientBalanceError {
|
|
575
555
|
...InsufficientBalanceError
|
|
576
556
|
}
|
|
577
|
-
}`,[ne,
|
|
557
|
+
}`,[ne,x]),it=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
578
558
|
__typename
|
|
579
559
|
transaction {
|
|
580
560
|
...TransactionRequest
|
|
@@ -593,19 +573,19 @@
|
|
|
593
573
|
... on InsufficientBalanceError {
|
|
594
574
|
...InsufficientBalanceError
|
|
595
575
|
}
|
|
596
|
-
}`,[
|
|
576
|
+
}`,[it,oe,x]),ie=e(`fragment SwapCancelled on SwapCancelled {
|
|
597
577
|
__typename
|
|
598
578
|
swapId
|
|
599
579
|
createdAt
|
|
600
580
|
cancelledAt
|
|
601
581
|
explorerUrl
|
|
602
|
-
}`),
|
|
582
|
+
}`),mt=e(`fragment SwapExpired on SwapExpired {
|
|
603
583
|
__typename
|
|
604
584
|
swapId
|
|
605
585
|
createdAt
|
|
606
586
|
expiredAt
|
|
607
587
|
explorerUrl
|
|
608
|
-
}`),
|
|
588
|
+
}`),yt=e(`fragment PositionAmount on PositionAmount {
|
|
609
589
|
__typename
|
|
610
590
|
reserve {
|
|
611
591
|
...ReserveInfo
|
|
@@ -613,7 +593,7 @@
|
|
|
613
593
|
amount {
|
|
614
594
|
...Erc20Amount
|
|
615
595
|
}
|
|
616
|
-
}`,[S,p]),
|
|
596
|
+
}`,[S,p]),w=e(`fragment SwapAmount on SwapAmount {
|
|
617
597
|
__typename
|
|
618
598
|
... on PositionAmount {
|
|
619
599
|
...PositionAmount
|
|
@@ -624,7 +604,7 @@
|
|
|
624
604
|
... on Erc20Amount {
|
|
625
605
|
...Erc20Amount
|
|
626
606
|
}
|
|
627
|
-
}`,[
|
|
607
|
+
}`,[yt,W,p]),ct=e(`fragment SwapOpen on SwapOpen {
|
|
628
608
|
__typename
|
|
629
609
|
swapId
|
|
630
610
|
createdAt
|
|
@@ -636,13 +616,13 @@
|
|
|
636
616
|
desiredBuy {
|
|
637
617
|
...SwapAmount
|
|
638
618
|
}
|
|
639
|
-
}`,[
|
|
619
|
+
}`,[w]),lt=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
640
620
|
__typename
|
|
641
621
|
swapId
|
|
642
622
|
createdAt
|
|
643
623
|
deadline
|
|
644
624
|
explorerUrl
|
|
645
|
-
}`),
|
|
625
|
+
}`),gt=e(`fragment SwapFulfilled on SwapFulfilled {
|
|
646
626
|
__typename
|
|
647
627
|
swapId
|
|
648
628
|
txHash
|
|
@@ -662,7 +642,7 @@
|
|
|
662
642
|
fulfilledAt
|
|
663
643
|
explorerUrl
|
|
664
644
|
refundTxHash
|
|
665
|
-
}`,[
|
|
645
|
+
}`,[w]),L=e(`fragment SwapStatus on SwapStatus {
|
|
666
646
|
__typename
|
|
667
647
|
... on SwapOpen {
|
|
668
648
|
...SwapOpen
|
|
@@ -679,12 +659,12 @@
|
|
|
679
659
|
... on SwapFulfilled {
|
|
680
660
|
...SwapFulfilled
|
|
681
661
|
}
|
|
682
|
-
}`,[
|
|
662
|
+
}`,[ct,lt,ie,mt,gt]),me=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
683
663
|
__typename
|
|
684
664
|
data {
|
|
685
665
|
...SwapTypedData
|
|
686
666
|
}
|
|
687
|
-
}`,[
|
|
667
|
+
}`,[_]),ye=e(`fragment CancelSwapExecutionPlan on CancelSwapExecutionPlan {
|
|
688
668
|
__typename
|
|
689
669
|
... on TransactionRequest {
|
|
690
670
|
...TransactionRequest
|
|
@@ -700,12 +680,12 @@
|
|
|
700
680
|
pageInfo {
|
|
701
681
|
...PaginatedResultInfo
|
|
702
682
|
}
|
|
703
|
-
}`,[
|
|
683
|
+
}`,[L,A]),St=e(`fragment PositionSwapAdapterContractApproval on PositionSwapAdapterContractApproval {
|
|
704
684
|
__typename
|
|
705
685
|
bySignature {
|
|
706
686
|
...SwapTypedData
|
|
707
687
|
}
|
|
708
|
-
}`,[
|
|
688
|
+
}`,[_]),dt=e(`fragment PositionSwapPositionManagerApproval on PositionSwapPositionManagerApproval {
|
|
709
689
|
__typename
|
|
710
690
|
byTransaction {
|
|
711
691
|
...TransactionRequest
|
|
@@ -713,7 +693,7 @@
|
|
|
713
693
|
bySignature {
|
|
714
694
|
...SwapTypedData
|
|
715
695
|
}
|
|
716
|
-
}`,[m,
|
|
696
|
+
}`,[m,_]),ft=e(`fragment PositionSwapApproval on PositionSwapApproval {
|
|
717
697
|
__typename
|
|
718
698
|
... on PositionSwapAdapterContractApproval {
|
|
719
699
|
...PositionSwapAdapterContractApproval
|
|
@@ -721,7 +701,7 @@
|
|
|
721
701
|
... on PositionSwapPositionManagerApproval {
|
|
722
702
|
...PositionSwapPositionManagerApproval
|
|
723
703
|
}
|
|
724
|
-
}`,[
|
|
704
|
+
}`,[St,dt]),B=e(`fragment PositionSwapByIntentApprovalsRequired on PositionSwapByIntentApprovalsRequired {
|
|
725
705
|
__typename
|
|
726
706
|
quote {
|
|
727
707
|
...SwapQuote
|
|
@@ -729,27 +709,27 @@
|
|
|
729
709
|
approvals {
|
|
730
710
|
...PositionSwapApproval
|
|
731
711
|
}
|
|
732
|
-
}`,[
|
|
712
|
+
}`,[O,ft]),le=e(`fragment SupplySwapQuoteResult on SupplySwapQuoteResult {
|
|
733
713
|
__typename
|
|
734
714
|
... on PositionSwapByIntentApprovalsRequired {
|
|
735
715
|
...PositionSwapByIntentApprovalsRequired
|
|
736
716
|
}
|
|
737
|
-
}`,[
|
|
717
|
+
}`,[B]),ge=e(`fragment BorrowSwapQuoteResult on BorrowSwapQuoteResult {
|
|
738
718
|
__typename
|
|
739
719
|
... on PositionSwapByIntentApprovalsRequired {
|
|
740
720
|
...PositionSwapByIntentApprovalsRequired
|
|
741
721
|
}
|
|
742
|
-
}`,[
|
|
722
|
+
}`,[B]),Se=e(`fragment RepayWithSupplyQuoteResult on RepayWithSupplyQuoteResult {
|
|
743
723
|
__typename
|
|
744
724
|
... on PositionSwapByIntentApprovalsRequired {
|
|
745
725
|
...PositionSwapByIntentApprovalsRequired
|
|
746
726
|
}
|
|
747
|
-
}`,[
|
|
727
|
+
}`,[B]),de=e(`fragment WithdrawSwapQuoteResult on WithdrawSwapQuoteResult {
|
|
748
728
|
__typename
|
|
749
729
|
... on PositionSwapByIntentApprovalsRequired {
|
|
750
730
|
...PositionSwapByIntentApprovalsRequired
|
|
751
731
|
}
|
|
752
|
-
}`,[
|
|
732
|
+
}`,[B]),fe=e(`fragment PreparePositionSwapResult on PreparePositionSwapResult {
|
|
753
733
|
__typename
|
|
754
734
|
... on PrepareSwapOrder {
|
|
755
735
|
...PrepareSwapOrder
|
|
@@ -757,7 +737,7 @@
|
|
|
757
737
|
... on InsufficientBalanceError {
|
|
758
738
|
...InsufficientBalanceError
|
|
759
739
|
}
|
|
760
|
-
}`,[ne,
|
|
740
|
+
}`,[ne,x]);var Re=e(`fragment UserSupplyItem on UserSupplyItem {
|
|
761
741
|
__typename
|
|
762
742
|
id
|
|
763
743
|
reserve {
|
|
@@ -774,7 +754,7 @@
|
|
|
774
754
|
}
|
|
775
755
|
isCollateral
|
|
776
756
|
createdAt
|
|
777
|
-
}`,[p,
|
|
757
|
+
}`,[p,F]),qe=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
778
758
|
__typename
|
|
779
759
|
id
|
|
780
760
|
principal {
|
|
@@ -790,7 +770,7 @@
|
|
|
790
770
|
...Reserve
|
|
791
771
|
}
|
|
792
772
|
createdAt
|
|
793
|
-
}`,[p,
|
|
773
|
+
}`,[p,F]),xe=e(`fragment UserSummary on UserSummary {
|
|
794
774
|
__typename
|
|
795
775
|
totalPositions
|
|
796
776
|
netBalance(currency: $currency) {
|
|
@@ -812,7 +792,7 @@
|
|
|
812
792
|
...ExchangeAmount
|
|
813
793
|
}
|
|
814
794
|
lowestHealthFactor
|
|
815
|
-
}`,[
|
|
795
|
+
}`,[q,u,a]),M=e(`fragment UserRiskPremiumBreakdownItem on UserRiskPremiumBreakdownItem {
|
|
816
796
|
__typename
|
|
817
797
|
token {
|
|
818
798
|
...Erc20Token
|
|
@@ -826,7 +806,7 @@
|
|
|
826
806
|
collateral {
|
|
827
807
|
...PercentNumber
|
|
828
808
|
}
|
|
829
|
-
}`,[
|
|
809
|
+
}`,[l,a]),Rt=e(`fragment UserPositionRiskPremium on UserPositionRiskPremium {
|
|
830
810
|
__typename
|
|
831
811
|
current {
|
|
832
812
|
...PercentNumber
|
|
@@ -837,7 +817,7 @@
|
|
|
837
817
|
breakdown {
|
|
838
818
|
...UserRiskPremiumBreakdownItem
|
|
839
819
|
}
|
|
840
|
-
}`,[a,
|
|
820
|
+
}`,[a,M]),V=e(`fragment UserPosition on UserPosition {
|
|
841
821
|
__typename
|
|
842
822
|
id
|
|
843
823
|
spoke {
|
|
@@ -891,7 +871,7 @@
|
|
|
891
871
|
averageCollateralFactor {
|
|
892
872
|
...PercentNumber
|
|
893
873
|
}
|
|
894
|
-
}`,[i,a,
|
|
874
|
+
}`,[i,a,q,u,Z,X,Rt]),we=e(`fragment UserBalance on UserBalance {
|
|
895
875
|
__typename
|
|
896
876
|
id
|
|
897
877
|
info {
|
|
@@ -924,7 +904,7 @@
|
|
|
924
904
|
lowestCollateralFactor: collateralFactor(metric: LOWEST) {
|
|
925
905
|
...PercentNumber
|
|
926
906
|
}
|
|
927
|
-
}`,[
|
|
907
|
+
}`,[v,c,k,u,a]),Ae=e(`fragment UserSummaryHistoryItem on UserSummaryHistoryItem {
|
|
928
908
|
__typename
|
|
929
909
|
netBalance(currency: $currency) {
|
|
930
910
|
...ExchangeAmount
|
|
@@ -937,25 +917,25 @@
|
|
|
937
917
|
}
|
|
938
918
|
healthFactor
|
|
939
919
|
date
|
|
940
|
-
}`,[u]),
|
|
920
|
+
}`,[u]),K=e(`fragment ApySample on ApySample {
|
|
941
921
|
__typename
|
|
942
922
|
date
|
|
943
923
|
avgRate {
|
|
944
924
|
...PercentNumber
|
|
945
925
|
}
|
|
946
|
-
}`,[a]);var
|
|
926
|
+
}`,[a]);var Qr=e(`query Hub($request: HubRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
947
927
|
value: hub(request: $request) {
|
|
948
928
|
...Hub
|
|
949
929
|
}
|
|
950
|
-
}`,[
|
|
930
|
+
}`,[h]),$r=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
951
931
|
value: hubs(request: $request) {
|
|
952
932
|
...Hub
|
|
953
933
|
}
|
|
954
|
-
}`,[
|
|
934
|
+
}`,[h]),Wr=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
955
935
|
value: hubAssets(request: $request) {
|
|
956
936
|
...HubAsset
|
|
957
937
|
}
|
|
958
|
-
}`,[b]),
|
|
938
|
+
}`,[b]),qt=e(`fragment HubSummarySample on HubSummarySample {
|
|
959
939
|
__typename
|
|
960
940
|
date
|
|
961
941
|
deposits {
|
|
@@ -970,11 +950,11 @@
|
|
|
970
950
|
utilizationRate {
|
|
971
951
|
...PercentNumber
|
|
972
952
|
}
|
|
973
|
-
}`,[u,a]),
|
|
953
|
+
}`,[u,a]),Nr=e(`query HubSummaryHistory($request: HubSummaryHistoryRequest!) {
|
|
974
954
|
value: hubSummaryHistory(request: $request) {
|
|
975
955
|
...HubSummarySample
|
|
976
956
|
}
|
|
977
|
-
}`,[
|
|
957
|
+
}`,[qt]);function Q(t){return new TextDecoder().decode(Uint8Array.from(atob(t),f=>f.charCodeAt(0)))}function $(t){return btoa(String.fromCharCode(...new TextEncoder().encode(t)))}var d="::";function Mr(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 xt(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 Vr(t){return xt($(`${t.chainId}${d}${t.address}`))}function Kr(t){let f=Q(t),[r,o]=f.split(d);return {chainId:types.chainId(Number.parseInt(r,10)),address:types.evmAddress(o)}}function Gr(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 Yr(t){return t}function zr(t){let f=Q(t),[r,o,R]=f.split(d);return {chainId:types.chainId(Number.parseInt(r,10)),spoke:types.evmAddress(o),onChainId:R}}function Zr(t){return $(`${t.chainId}${d}${t.spoke}${d}${t.onChainId}`)}function wt(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 jr(t){let f=Q(t),[r,o,R]=f.split(d);return {chainId:types.chainId(Number.parseInt(r,10)),spoke:types.evmAddress(o),user:types.evmAddress(R)}}function Jr(t){return wt($(`${t.chainId}${d}${t.spoke}${d}${t.user}`))}function Xr(t){return types.invariant(types.isValidHexString(t),`Invalid SwapId: ${t}`),t}function ea(t){return types.invariant(types.isValidHexString(t),`Invalid SwapQuoteId: ${t}`),t}function ta(t){return At($(`${t.chainId}${d}${t.address}`))}function ra(t){let f=Q(t),[r,o]=f.split(d);return {chainId:types.chainId(Number.parseInt(r,10)),address:types.evmAddress(o)}}function At(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 aa(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 na(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 oa(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 pa(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid TokenInfoId: ${t}`),t}function ia(t){return types.isObject(t)&&"hubInput"in t&&t.hubInput!=null}function ma(t){return types.isObject(t)&&"chainIds"in t&&t.chainIds!=null}function ya(t){return types.isObject(t)&&"tokens"in t&&t.tokens!=null}function ca(t){return types.isObject(t)&&"spoke"in t&&t.spoke!=null}function la(t){return types.isObject(t)&&"reserveInput"in t&&t.reserveInput!=null}function ga(t){return types.isObject(t)&&"txHash"in t&&t.txHash!=null}var Ra=e(`query Chain($request: ChainRequest!) {
|
|
978
958
|
value: chain(request: $request) {
|
|
979
959
|
...Chain
|
|
980
960
|
}
|
|
@@ -984,17 +964,28 @@
|
|
|
984
964
|
}
|
|
985
965
|
}`,[n]),xa=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
986
966
|
value: hasProcessedKnownTransaction(request: $request)
|
|
987
|
-
}`),
|
|
967
|
+
}`),wa=e(`query Health {
|
|
988
968
|
value: health
|
|
989
|
-
}`),
|
|
969
|
+
}`),Aa=e(`query ExchangeRate($request: ExchangeRateRequest!) {
|
|
990
970
|
value: exchangeRate(request: $request) {
|
|
991
971
|
...ExchangeAmount
|
|
992
972
|
}
|
|
993
|
-
}`,[u]);var
|
|
973
|
+
}`,[u]);var ht=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
994
974
|
__typename
|
|
995
975
|
date
|
|
996
976
|
price
|
|
997
|
-
}`),
|
|
977
|
+
}`),Pe=e(`fragment AssetSampleBreakdown on AssetSampleBreakdown {
|
|
978
|
+
__typename
|
|
979
|
+
amount {
|
|
980
|
+
...DecimalNumber
|
|
981
|
+
}
|
|
982
|
+
apy {
|
|
983
|
+
...PercentNumber
|
|
984
|
+
}
|
|
985
|
+
hub {
|
|
986
|
+
...Hub
|
|
987
|
+
}
|
|
988
|
+
}`,[c,a,h]),Pt=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
998
989
|
__typename
|
|
999
990
|
date
|
|
1000
991
|
amount {
|
|
@@ -1006,7 +997,13 @@
|
|
|
1006
997
|
lowestApy {
|
|
1007
998
|
...PercentNumber
|
|
1008
999
|
}
|
|
1009
|
-
|
|
1000
|
+
averageApy {
|
|
1001
|
+
...PercentNumber
|
|
1002
|
+
}
|
|
1003
|
+
breakdown {
|
|
1004
|
+
...AssetSampleBreakdown
|
|
1005
|
+
}
|
|
1006
|
+
}`,[c,a,Pe]),Ft=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
1010
1007
|
__typename
|
|
1011
1008
|
date
|
|
1012
1009
|
amount {
|
|
@@ -1018,7 +1015,13 @@
|
|
|
1018
1015
|
lowestApy {
|
|
1019
1016
|
...PercentNumber
|
|
1020
1017
|
}
|
|
1021
|
-
|
|
1018
|
+
averageApy {
|
|
1019
|
+
...PercentNumber
|
|
1020
|
+
}
|
|
1021
|
+
breakdown {
|
|
1022
|
+
...AssetSampleBreakdown
|
|
1023
|
+
}
|
|
1024
|
+
}`,[c,a,Pe]),It=e(`fragment AssetAmountWithChange on AssetAmountWithChange {
|
|
1022
1025
|
__typename
|
|
1023
1026
|
amount {
|
|
1024
1027
|
...DecimalNumberWithChange
|
|
@@ -1026,7 +1029,7 @@
|
|
|
1026
1029
|
exchange(currency: $currency) {
|
|
1027
1030
|
...ExchangeAmountWithChange
|
|
1028
1031
|
}
|
|
1029
|
-
}`,[G,
|
|
1032
|
+
}`,[G,q]),Tt=e(`fragment AssetSummary on AssetSummary {
|
|
1030
1033
|
__typename
|
|
1031
1034
|
totalSupplyCap {
|
|
1032
1035
|
...AssetAmountWithChange
|
|
@@ -1052,7 +1055,7 @@
|
|
|
1052
1055
|
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
1053
1056
|
...PercentNumber
|
|
1054
1057
|
}
|
|
1055
|
-
}`,[
|
|
1058
|
+
}`,[It,a]),vt=e(`fragment Asset on Asset {
|
|
1056
1059
|
__typename
|
|
1057
1060
|
id
|
|
1058
1061
|
token {
|
|
@@ -1064,23 +1067,23 @@
|
|
|
1064
1067
|
price(currency: $currency) {
|
|
1065
1068
|
...ExchangeAmountWithChange
|
|
1066
1069
|
}
|
|
1067
|
-
}`,[
|
|
1070
|
+
}`,[l,Tt,q]),Ia=e(`query Asset($request: AssetRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1068
1071
|
value: asset(request: $request) {
|
|
1069
1072
|
...Asset
|
|
1070
1073
|
}
|
|
1071
|
-
}`,[
|
|
1074
|
+
}`,[vt]),Ta=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
1072
1075
|
value: assetPriceHistory(request: $request) {
|
|
1073
1076
|
...AssetPriceSample
|
|
1074
1077
|
}
|
|
1075
|
-
}`,[
|
|
1078
|
+
}`,[ht]),va=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1076
1079
|
value: assetSupplyHistory(request: $request) {
|
|
1077
1080
|
...AssetSupplySample
|
|
1078
1081
|
}
|
|
1079
|
-
}`,[
|
|
1082
|
+
}`,[Pt]),ka=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1080
1083
|
value: assetBorrowHistory(request: $request) {
|
|
1081
1084
|
...AssetBorrowSample
|
|
1082
1085
|
}
|
|
1083
|
-
}`,[
|
|
1086
|
+
}`,[Ft]),kt=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
1084
1087
|
__typename
|
|
1085
1088
|
date
|
|
1086
1089
|
deposits {
|
|
@@ -1089,27 +1092,27 @@
|
|
|
1089
1092
|
borrows {
|
|
1090
1093
|
...ExchangeAmount
|
|
1091
1094
|
}
|
|
1092
|
-
}`,[u]),
|
|
1095
|
+
}`,[u]),ba=e(`query ProtocolHistory($request: ProtocolHistoryRequest!) {
|
|
1093
1096
|
value: protocolHistory(request: $request) {
|
|
1094
1097
|
...ProtocolHistorySample
|
|
1095
1098
|
}
|
|
1096
|
-
}`,[
|
|
1099
|
+
}`,[kt]);var Oa=e(`query BorrowApyHistory($request: BorrowApyHistoryRequest!) {
|
|
1097
1100
|
value: borrowApyHistory(request: $request) {
|
|
1098
1101
|
...ApySample
|
|
1099
1102
|
}
|
|
1100
|
-
}`,[
|
|
1103
|
+
}`,[K]),_a=e(`query SupplyApyHistory($request: SupplyApyHistoryRequest!) {
|
|
1101
1104
|
value: supplyApyHistory(request: $request) {
|
|
1102
1105
|
...ApySample
|
|
1103
1106
|
}
|
|
1104
|
-
}`,[
|
|
1107
|
+
}`,[K]),Ba=e(`query Reserve($request: ReserveRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1105
1108
|
value: reserve(request: $request) {
|
|
1106
1109
|
...Reserve
|
|
1107
1110
|
}
|
|
1108
|
-
}`,[
|
|
1111
|
+
}`,[F]),Ha=e(`query Reserves($request: ReservesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1109
1112
|
value: reserves(request: $request) {
|
|
1110
1113
|
...Reserve
|
|
1111
1114
|
}
|
|
1112
|
-
}`,[
|
|
1115
|
+
}`,[F]);var Na=e(`query Spoke($request: SpokeRequest!) {
|
|
1113
1116
|
value: spoke(request: $request) {
|
|
1114
1117
|
...Spoke
|
|
1115
1118
|
}
|
|
@@ -1141,7 +1144,7 @@
|
|
|
1141
1144
|
value: swapStatus(request: $request) {
|
|
1142
1145
|
...SwapStatus
|
|
1143
1146
|
}
|
|
1144
|
-
}`,[
|
|
1147
|
+
}`,[L]),Ja=e(`mutation Swap($request: SwapRequest!) {
|
|
1145
1148
|
value: swap(request: $request) {
|
|
1146
1149
|
...SwapExecutionPlan
|
|
1147
1150
|
}
|
|
@@ -1193,7 +1196,7 @@
|
|
|
1193
1196
|
value: withdraw(request: $request) {
|
|
1194
1197
|
...ExecutionPlan
|
|
1195
1198
|
}
|
|
1196
|
-
}`,[E]),
|
|
1199
|
+
}`,[E]),bt=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1197
1200
|
__typename
|
|
1198
1201
|
... on TransactionRequest {
|
|
1199
1202
|
...TransactionRequest
|
|
@@ -1204,11 +1207,11 @@
|
|
|
1204
1207
|
... on InsufficientBalanceError {
|
|
1205
1208
|
...InsufficientBalanceError
|
|
1206
1209
|
}
|
|
1207
|
-
}`,[m,
|
|
1210
|
+
}`,[m,D,x]),Sn=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1208
1211
|
value: liquidatePosition(request: $request) {
|
|
1209
1212
|
...LiquidatePositionExecutionPlan
|
|
1210
1213
|
}
|
|
1211
|
-
}`,[
|
|
1214
|
+
}`,[bt]),dn=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1212
1215
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1213
1216
|
...TransactionRequest
|
|
1214
1217
|
}
|
|
@@ -1224,7 +1227,7 @@
|
|
|
1224
1227
|
value: updateUserPositionConditions(request: $request) {
|
|
1225
1228
|
...TransactionRequest
|
|
1226
1229
|
}
|
|
1227
|
-
}`,[m]),
|
|
1230
|
+
}`,[m]),Et=e(`fragment CollateralFactorVariation on CollateralFactorVariation {
|
|
1228
1231
|
__typename
|
|
1229
1232
|
reserveId
|
|
1230
1233
|
token {
|
|
@@ -1236,7 +1239,7 @@
|
|
|
1236
1239
|
after {
|
|
1237
1240
|
...PercentNumber
|
|
1238
1241
|
}
|
|
1239
|
-
}`,[
|
|
1242
|
+
}`,[l,a]),Ut=e(`fragment LiquidationFeeVariation on LiquidationFeeVariation {
|
|
1240
1243
|
__typename
|
|
1241
1244
|
reserveId
|
|
1242
1245
|
token {
|
|
@@ -1248,7 +1251,7 @@
|
|
|
1248
1251
|
after {
|
|
1249
1252
|
...PercentNumber
|
|
1250
1253
|
}
|
|
1251
|
-
}`,[
|
|
1254
|
+
}`,[l,a]),Ct=e(`fragment MaxLiquidationBonusVariation on MaxLiquidationBonusVariation {
|
|
1252
1255
|
__typename
|
|
1253
1256
|
reserveId
|
|
1254
1257
|
token {
|
|
@@ -1260,7 +1263,7 @@
|
|
|
1260
1263
|
after {
|
|
1261
1264
|
...PercentNumber
|
|
1262
1265
|
}
|
|
1263
|
-
}`,[
|
|
1266
|
+
}`,[l,a]),Ot=e(`fragment UserPositionConditionVariation on UserPositionConditionVariation {
|
|
1264
1267
|
__typename
|
|
1265
1268
|
... on CollateralFactorVariation {
|
|
1266
1269
|
...CollateralFactorVariation
|
|
@@ -1271,7 +1274,7 @@
|
|
|
1271
1274
|
... on MaxLiquidationBonusVariation {
|
|
1272
1275
|
...MaxLiquidationBonusVariation
|
|
1273
1276
|
}
|
|
1274
|
-
}`,[
|
|
1277
|
+
}`,[Et,Ut,Ct]),_t=e(`fragment PreviewUserPosition on PreviewUserPosition {
|
|
1275
1278
|
__typename
|
|
1276
1279
|
id
|
|
1277
1280
|
healthFactor {
|
|
@@ -1298,11 +1301,11 @@
|
|
|
1298
1301
|
otherConditions {
|
|
1299
1302
|
...UserPositionConditionVariation
|
|
1300
1303
|
}
|
|
1301
|
-
}`,[ee,j,J,
|
|
1304
|
+
}`,[ee,j,J,Ot]),xn=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD) {
|
|
1302
1305
|
value: preview(request: $request) {
|
|
1303
1306
|
...PreviewUserPosition
|
|
1304
1307
|
}
|
|
1305
|
-
}`,[
|
|
1308
|
+
}`,[_t]),Fe=e(`fragment PercentNumberChangeSnapshot on PercentNumberChangeSnapshot {
|
|
1306
1309
|
__typename
|
|
1307
1310
|
before {
|
|
1308
1311
|
...PercentNumber
|
|
@@ -1310,7 +1313,7 @@
|
|
|
1310
1313
|
after {
|
|
1311
1314
|
...PercentNumber
|
|
1312
1315
|
}
|
|
1313
|
-
}`,[a])
|
|
1316
|
+
}`,[a]),Bt=e(`fragment BorrowActivity on BorrowActivity {
|
|
1314
1317
|
__typename
|
|
1315
1318
|
id
|
|
1316
1319
|
user
|
|
@@ -1328,7 +1331,7 @@
|
|
|
1328
1331
|
chain {
|
|
1329
1332
|
...Chain
|
|
1330
1333
|
}
|
|
1331
|
-
}`,[i,p,S,n]),
|
|
1334
|
+
}`,[i,p,S,n]),Ht=e(`fragment SupplyActivity on SupplyActivity {
|
|
1332
1335
|
__typename
|
|
1333
1336
|
id
|
|
1334
1337
|
user
|
|
@@ -1346,7 +1349,7 @@
|
|
|
1346
1349
|
chain {
|
|
1347
1350
|
...Chain
|
|
1348
1351
|
}
|
|
1349
|
-
}`,[i,p,S,n]),
|
|
1352
|
+
}`,[i,p,S,n]),Qt=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1350
1353
|
__typename
|
|
1351
1354
|
id
|
|
1352
1355
|
user
|
|
@@ -1364,7 +1367,7 @@
|
|
|
1364
1367
|
chain {
|
|
1365
1368
|
...Chain
|
|
1366
1369
|
}
|
|
1367
|
-
}`,[i,p,S,n])
|
|
1370
|
+
}`,[i,p,S,n]),$t=e(`fragment RepayActivity on RepayActivity {
|
|
1368
1371
|
__typename
|
|
1369
1372
|
id
|
|
1370
1373
|
user
|
|
@@ -1382,7 +1385,7 @@
|
|
|
1382
1385
|
chain {
|
|
1383
1386
|
...Chain
|
|
1384
1387
|
}
|
|
1385
|
-
}`,[i,p,S,n]),
|
|
1388
|
+
}`,[i,p,S,n]),Wt=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1386
1389
|
__typename
|
|
1387
1390
|
id
|
|
1388
1391
|
user
|
|
@@ -1407,7 +1410,7 @@
|
|
|
1407
1410
|
chain {
|
|
1408
1411
|
...Chain
|
|
1409
1412
|
}
|
|
1410
|
-
}`,[i,p,S,n]),
|
|
1413
|
+
}`,[i,p,S,n]),Nt=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1411
1414
|
__typename
|
|
1412
1415
|
id
|
|
1413
1416
|
user
|
|
@@ -1423,7 +1426,7 @@
|
|
|
1423
1426
|
chain {
|
|
1424
1427
|
...Chain
|
|
1425
1428
|
}
|
|
1426
|
-
}`,[i,S,n]),
|
|
1429
|
+
}`,[i,S,n]),Dt=e(`fragment UpdatedDynamicConfigActivity on UpdatedDynamicConfigActivity {
|
|
1427
1430
|
__typename
|
|
1428
1431
|
id
|
|
1429
1432
|
user
|
|
@@ -1447,7 +1450,7 @@
|
|
|
1447
1450
|
chain {
|
|
1448
1451
|
...Chain
|
|
1449
1452
|
}
|
|
1450
|
-
}`,[i,S,
|
|
1453
|
+
}`,[i,S,Fe,n]),Lt=e(`fragment UpdatedRiskPremiumActivity on UpdatedRiskPremiumActivity {
|
|
1451
1454
|
__typename
|
|
1452
1455
|
id
|
|
1453
1456
|
user
|
|
@@ -1462,7 +1465,7 @@
|
|
|
1462
1465
|
chain {
|
|
1463
1466
|
...Chain
|
|
1464
1467
|
}
|
|
1465
|
-
}`,[i,
|
|
1468
|
+
}`,[i,Fe,n]),Mt=e(`fragment TokenSwapActivity on TokenSwapActivity {
|
|
1466
1469
|
__typename
|
|
1467
1470
|
id
|
|
1468
1471
|
user
|
|
@@ -1478,7 +1481,7 @@
|
|
|
1478
1481
|
...SwapAmount
|
|
1479
1482
|
}
|
|
1480
1483
|
explorerUrl
|
|
1481
|
-
}`,[n,
|
|
1484
|
+
}`,[n,w]),Vt=e(`fragment SupplySwapActivity on SupplySwapActivity {
|
|
1482
1485
|
__typename
|
|
1483
1486
|
id
|
|
1484
1487
|
user
|
|
@@ -1494,7 +1497,7 @@
|
|
|
1494
1497
|
...SwapAmount
|
|
1495
1498
|
}
|
|
1496
1499
|
explorerUrl
|
|
1497
|
-
}`,[n,
|
|
1500
|
+
}`,[n,w]),Kt=e(`fragment BorrowSwapActivity on BorrowSwapActivity {
|
|
1498
1501
|
__typename
|
|
1499
1502
|
id
|
|
1500
1503
|
user
|
|
@@ -1510,7 +1513,7 @@
|
|
|
1510
1513
|
...SwapAmount
|
|
1511
1514
|
}
|
|
1512
1515
|
explorerUrl
|
|
1513
|
-
}`,[n,
|
|
1516
|
+
}`,[n,w]),Gt=e(`fragment RepayWithSupplyActivity on RepayWithSupplyActivity {
|
|
1514
1517
|
__typename
|
|
1515
1518
|
id
|
|
1516
1519
|
user
|
|
@@ -1526,7 +1529,7 @@
|
|
|
1526
1529
|
...SwapAmount
|
|
1527
1530
|
}
|
|
1528
1531
|
explorerUrl
|
|
1529
|
-
}`,[n,
|
|
1532
|
+
}`,[n,w]),Yt=e(`fragment WithdrawSwapActivity on WithdrawSwapActivity {
|
|
1530
1533
|
__typename
|
|
1531
1534
|
id
|
|
1532
1535
|
user
|
|
@@ -1542,7 +1545,7 @@
|
|
|
1542
1545
|
...SwapAmount
|
|
1543
1546
|
}
|
|
1544
1547
|
explorerUrl
|
|
1545
|
-
}`,[n,
|
|
1548
|
+
}`,[n,w]),zt=e(`fragment ActivityItem on ActivityItem {
|
|
1546
1549
|
__typename
|
|
1547
1550
|
... on BorrowActivity {
|
|
1548
1551
|
...BorrowActivity
|
|
@@ -1583,7 +1586,7 @@
|
|
|
1583
1586
|
... on WithdrawSwapActivity {
|
|
1584
1587
|
...WithdrawSwapActivity
|
|
1585
1588
|
}
|
|
1586
|
-
}`,[
|
|
1589
|
+
}`,[Bt,Ht,Qt,$t,Wt,Nt,Dt,Lt,Mt,Vt,Kt,Gt,Yt]),Zt=e(`fragment PaginatedActivitiesResult on PaginatedActivitiesResult {
|
|
1587
1590
|
__typename
|
|
1588
1591
|
items {
|
|
1589
1592
|
...ActivityItem
|
|
@@ -1591,11 +1594,11 @@
|
|
|
1591
1594
|
pageInfo {
|
|
1592
1595
|
...PaginatedResultInfo
|
|
1593
1596
|
}
|
|
1594
|
-
}`,[
|
|
1597
|
+
}`,[zt,A]),wn=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1595
1598
|
value: activities(request: $request) {
|
|
1596
1599
|
...PaginatedActivitiesResult
|
|
1597
1600
|
}
|
|
1598
|
-
}`,[
|
|
1601
|
+
}`,[Zt]);var Fn=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1599
1602
|
value: userSupplies(request: $request) {
|
|
1600
1603
|
...UserSupplyItem
|
|
1601
1604
|
}
|
|
@@ -1611,21 +1614,21 @@
|
|
|
1611
1614
|
value: userPositions(request: $request) {
|
|
1612
1615
|
...UserPosition
|
|
1613
1616
|
}
|
|
1614
|
-
}`,[
|
|
1617
|
+
}`,[V]),kn=e(`query UserPosition($request: UserPositionRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1615
1618
|
value: userPosition(request: $request) {
|
|
1616
1619
|
...UserPosition
|
|
1617
1620
|
}
|
|
1618
|
-
}`,[
|
|
1621
|
+
}`,[V]),bn=e(`query UserBalances($request: UserBalancesRequest!, $currency: Currency!) {
|
|
1619
1622
|
value: userBalances(request: $request) {
|
|
1620
1623
|
...UserBalance
|
|
1621
1624
|
}
|
|
1622
|
-
}`,[
|
|
1625
|
+
}`,[we]),En=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1623
1626
|
value: userSummaryHistory(request: $request) {
|
|
1624
1627
|
...UserSummaryHistoryItem
|
|
1625
1628
|
}
|
|
1626
|
-
}`,[
|
|
1629
|
+
}`,[Ae]),Un=e(`query UserRiskPremiumBreakdown($request: UserRiskPremiumBreakdownRequest!) {
|
|
1627
1630
|
value: userRiskPremiumBreakdown(request: $request) {
|
|
1628
1631
|
...UserRiskPremiumBreakdownItem
|
|
1629
1632
|
}
|
|
1630
|
-
}`,[
|
|
1633
|
+
}`,[M]);exports.ActivitiesQuery=wn;exports.ActivityItemFragment=zt;exports.ActivityType=Ee;exports.ApyMetric=Ue;exports.ApySampleFragment=K;exports.AssetAmountWithChangeFragment=It;exports.AssetBorrowHistoryQuery=ka;exports.AssetBorrowSampleFragment=Ft;exports.AssetFragment=vt;exports.AssetPriceHistoryQuery=Ta;exports.AssetPriceSampleFragment=ht;exports.AssetQuery=Ia;exports.AssetSampleBreakdownFragment=Pe;exports.AssetSummaryFragment=Tt;exports.AssetSupplyHistoryQuery=va;exports.AssetSupplySampleFragment=Pt;exports.BorrowActivityFragment=Bt;exports.BorrowApyHistoryQuery=Oa;exports.BorrowQuery=yn;exports.BorrowSwapActivityFragment=Kt;exports.BorrowSwapKind=He;exports.BorrowSwapQuoteQuery=an;exports.BorrowSwapQuoteResultFragment=ge;exports.CancelSwapExecutionPlanFragment=ye;exports.CancelSwapMutation=en;exports.ChainFragment=n;exports.ChainQuery=Ra;exports.ChainsFilter=be;exports.ChainsQuery=qa;exports.CollateralFactorVariationFragment=Et;exports.CollateralMetric=Ce;exports.Currency=Oe;exports.DecimalNumberFragment=c;exports.DecimalNumberWithChangeFragment=G;exports.DomainDataFragment=C;exports.Erc20AmountFragment=p;exports.Erc20ApprovalFragment=N;exports.Erc20ApprovalRequiredFragment=D;exports.Erc20TokenFragment=l;exports.ExchangeAmountFragment=u;exports.ExchangeAmountVariationFragment=J;exports.ExchangeAmountWithChangeFragment=q;exports.ExchangeRateQuery=Aa;exports.ExecutionPlanFragment=E;exports.HasProcessedKnownTransactionQuery=xa;exports.HealthFactorErrorFragment=Ge;exports.HealthFactorResultFragment=ee;exports.HealthFactorVariationFragment=Ke;exports.HealthFactorWithChangeFragment=X;exports.HealthQuery=wa;exports.HubAssetFragment=b;exports.HubAssetSettingsFragment=Ze;exports.HubAssetSummaryFragment=ze;exports.HubAssetUserStateFragment=je;exports.HubAssetsQuery=Wr;exports.HubFragment=h;exports.HubQuery=Qr;exports.HubSummaryFragment=Ye;exports.HubSummaryHistoryQuery=Nr;exports.HubSummarySampleFragment=qt;exports.HubsQuery=$r;exports.InsufficientBalanceErrorFragment=x;exports.LiquidatePositionExecutionPlanFragment=bt;exports.LiquidatePositionQuery=Sn;exports.LiquidatedActivityFragment=Wt;exports.LiquidationFeeVariationFragment=Ut;exports.MaxLiquidationBonusVariationFragment=Ct;exports.NativeAmountFragment=W;exports.NativeTokenFragment=Y;exports.OperationType=ke;exports.OrderDirection=Ie;exports.PageSize=Te;exports.PaginatedActivitiesResultFragment=Zt;exports.PaginatedResultInfoFragment=A;exports.PaginatedSpokePositionManagerResultFragment=re;exports.PaginatedSpokeUserPositionManagerResultFragment=ae;exports.PaginatedUserSwapsResultFragment=ce;exports.PercentNumberChangeSnapshotFragment=Fe;exports.PercentNumberFragment=a;exports.PercentNumberVariationFragment=j;exports.PercentNumberWithChangeFragment=Z;exports.PermitTypedDataFragment=te;exports.PositionAmountFragment=yt;exports.PositionSwapAdapterContractApprovalFragment=St;exports.PositionSwapApprovalFragment=ft;exports.PositionSwapByIntentApprovalsRequiredFragment=B;exports.PositionSwapPositionManagerApprovalFragment=dt;exports.PreContractActionRequiredFragment=nt;exports.PreparePositionSwapQuery=pn;exports.PreparePositionSwapResultFragment=fe;exports.PrepareSwapCancelQuery=Xa;exports.PrepareSwapCancelResultFragment=me;exports.PrepareSwapOrderFragment=ne;exports.PrepareTokenSwapQuery=Za;exports.PrepareTokenSwapResultFragment=se;exports.PreviewQuery=xn;exports.PreviewUserPositionFragment=_t;exports.ProtocolHistoryQuery=ba;exports.ProtocolHistorySampleFragment=kt;exports.QuoteAccuracy=Me;exports.RenounceSpokeUserPositionManagerQuery=Rn;exports.RepayActivityFragment=$t;exports.RepayQuery=ln;exports.RepayWithSupplyActivityFragment=Gt;exports.RepayWithSupplyKind=Qe;exports.RepayWithSupplyQuoteQuery=nn;exports.RepayWithSupplyQuoteResultFragment=Se;exports.ReserveFragment=F;exports.ReserveInfoFragment=S;exports.ReserveQuery=Ba;exports.ReserveSettingsFragment=et;exports.ReserveStatusFragment=tt;exports.ReserveSummaryFragment=rt;exports.ReserveUserStateFragment=at;exports.ReservesQuery=Ha;exports.ReservesRequestFilter=_e;exports.SetSpokeUserPositionManagerQuery=dn;exports.SetUserSuppliesAsCollateralQuery=fn;exports.SpokeFragment=i;exports.SpokePositionManagerFragment=Je;exports.SpokePositionManagersQuery=La;exports.SpokeQuery=Na;exports.SpokeUserPositionManagerFragment=Xe;exports.SpokeUserPositionManagersQuery=Ma;exports.SpokesQuery=Da;exports.SupplyActivityFragment=Ht;exports.SupplyApyHistoryQuery=_a;exports.SupplyQuery=cn;exports.SupplySwapActivityFragment=Vt;exports.SupplySwapKind=$e;exports.SupplySwapQuoteQuery=rn;exports.SupplySwapQuoteResultFragment=le;exports.SwapAmountFragment=w;exports.SwapByIntentFragment=pt;exports.SwapByIntentWithApprovalRequiredFragment=st;exports.SwapByTransactionFragment=ut;exports.SwapCancelledFragment=ie;exports.SwapExecutionPlanFragment=ue;exports.SwapExpiredFragment=mt;exports.SwapFulfilledFragment=gt;exports.SwapKind=Be;exports.SwapMutation=Ja;exports.SwapOpenFragment=ct;exports.SwapPendingSignatureFragment=lt;exports.SwapQuoteCostsFragment=ot;exports.SwapQuoteFragment=O;exports.SwapReceiptFragment=oe;exports.SwapStatusFilter=Ne;exports.SwapStatusFragment=L;exports.SwapStatusQuery=ja;exports.SwapTransactionRequestFragment=it;exports.SwapTypedDataFragment=_;exports.SwappableTokensQuery=za;exports.TimeWindow=ve;exports.TokenAmountFragment=k;exports.TokenCategory=De;exports.TokenFragment=z;exports.TokenInfoFragment=v;exports.TokenSwapActivityFragment=Mt;exports.TokenSwapQuoteQuery=Ya;exports.TokenSwapQuoteResultFragment=pe;exports.TransactionRequestFragment=m;exports.UpdateUserPositionConditionsQuery=qn;exports.UpdatedDynamicConfigActivityFragment=Dt;exports.UpdatedRiskPremiumActivityFragment=Lt;exports.UserBalanceFragment=we;exports.UserBalancesQuery=bn;exports.UserBorrowItemFragment=qe;exports.UserBorrowsQuery=In;exports.UserPositionConditionVariationFragment=Ot;exports.UserPositionConditionsUpdate=Le;exports.UserPositionFragment=V;exports.UserPositionQuery=kn;exports.UserPositionRiskPremiumFragment=Rt;exports.UserPositionsQuery=vn;exports.UserRiskPremiumBreakdownItemFragment=M;exports.UserRiskPremiumBreakdownQuery=Un;exports.UserSummaryFragment=xe;exports.UserSummaryHistoryItemFragment=Ae;exports.UserSummaryHistoryQuery=En;exports.UserSummaryQuery=Tn;exports.UserSuppliesQuery=Fn;exports.UserSupplyItemFragment=Re;exports.UserSwapsQuery=tn;exports.UsingAsCollateralActivityFragment=Nt;exports.WithdrawActivityFragment=Qt;exports.WithdrawQuery=gn;exports.WithdrawSwapActivityFragment=Yt;exports.WithdrawSwapKind=We;exports.WithdrawSwapQuoteQuery=on;exports.WithdrawSwapQuoteResultFragment=de;exports.assetId=Mr;exports.decodeHubId=Kr;exports.decodeReserveId=zr;exports.decodeSpokeId=ra;exports.decodeUserPositionId=jr;exports.encodeHubId=Vr;exports.encodeReserveId=Zr;exports.encodeSpokeId=ta;exports.encodeUserPositionId=Jr;exports.graphql=e;exports.hubAssetId=Gr;exports.hubId=xt;exports.isChainIdsVariant=ma;exports.isERC20PermitSignature=yr;exports.isHubInputVariant=ia;exports.isReserveInputVariant=la;exports.isSpokeInputVariant=ca;exports.isTokensVariant=ya;exports.isTxHashInputVariant=ga;exports.reserveId=Yr;exports.spokeId=At;exports.swapId=Xr;exports.swapQuoteId=ea;exports.tokenInfoId=pa;exports.userBalanceId=aa;exports.userBorrowItemId=na;exports.userPositionId=wt;exports.userSupplyItemId=oa;//# sourceMappingURL=index.cjs.map
|
|
1631
1634
|
//# sourceMappingURL=index.cjs.map
|