@aave/graphql 1.0.0-next.26 → 1.0.0-next.28
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 +314 -222
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +118603 -48263
- package/dist/index.d.ts +118603 -48263
- package/dist/index.js +314 -222
- 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 +7422 -815
- package/dist/testing.js +2 -2
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var gql_tada=require('gql.tada'),types=require('@aave/types');var Ie=(r=>(r.Asc="ASC",r.Desc="DESC",r))(Ie||{}),Te=(r=>(r.Ten="TEN",r.Fifty="FIFTY",r))(Te||{}),
|
|
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||{}),ke=(F=>(F.LastDay="LAST_DAY",F.LastWeek="LAST_WEEK",F.LastMonth="LAST_MONTH",F.LastSixMonths="LAST_SIX_MONTHS",F.LastYear="LAST_YEAR",F.All="ALL",F))(ke||{}),ve=(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))(ve||{}),Ee=(o=>(o.TESTNET_ONLY="TESTNET_ONLY",o.MAINNET_ONLY="MAINNET_ONLY",o.ALL="ALL",o))(Ee||{}),be=(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))(be||{}),Ce=(o=>(o.Highest="HIGHEST",o.Lowest="LOWEST",o.Average="AVERAGE",o))(Ce||{}),Ue=(r=>(r.Highest="HIGHEST",r.Lowest="LOWEST",r))(Ue||{}),Oe=(o=>(o.Usd="USD",o.Eur="EUR",o.Gbp="GBP",o))(Oe||{}),_e=(q=>(q.Supply="SUPPLY",q.Borrow="BORROW",q.Collateral="COLLATERAL",q.All="ALL",q))(_e||{}),Be=(r=>(r.Current="CURRENT",r.New="NEW",r))(Be||{}),He=(r=>(r.Repay="REPAY",r.Supply="SUPPLY",r))(He||{}),Qe=(r=>(r.Current="CURRENT",r.New="NEW",r))(Qe||{}),We=(r=>(r.Withdraw="WITHDRAW",r.Buy="BUY",r))(We||{}),$e=(v=>(v.Cancelled="CANCELLED",v.Expired="EXPIRED",v.Fulfilled="FULFILLED",v.Open="OPEN",v.PendingSignature="PENDING_SIGNATURE",v))($e||{}),Ne=(r=>(r.Stablecoin="STABLECOIN",r.EthCorrelated="ETH_CORRELATED",r))(Ne||{}),De=(r=>(r.AllDynamicConfig="ALL_DYNAMIC_CONFIG",r.JustRiskPremium="JUST_RISK_PREMIUM",r))(De||{}),Le=(r=>(r.Fast="FAST",r.Accurate="ACCURATE",r))(Le||{}),Me=(r=>(r.Market="MARKET",r.Limit="LIMIT",r))(Me||{}),Ve=(o=>(o.Fulfilled="FULFILLED",o.Cancelled="CANCELLED",o.Expired="EXPIRED",o))(Ve||{}),Ke=(r=>(r.Buy="BUY",r.Sell="SELL",r))(Ke||{});var e=gql_tada.initGraphQLTada();var _=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
|
+
}`),Y=e(`fragment DecimalNumberWithChange on DecimalNumberWithChange {
|
|
18
18
|
__typename
|
|
19
19
|
current {
|
|
20
20
|
...DecimalNumber
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
change(window: $timeWindow) {
|
|
23
23
|
...PercentNumber
|
|
24
24
|
}
|
|
25
|
-
}`,[c,a]),
|
|
25
|
+
}`,[c,a]),i=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
|
+
}`),E=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
|
+
}`,[E]),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
|
+
}`,[E,n]),z=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
|
+
}`,[E,n]),s=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
|
-
}`,[l,c,
|
|
87
|
+
}`,[l,c,i]),Ye=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
|
-
}`,[
|
|
101
|
+
}`,[z,c,i]),S=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
|
-
}`,[
|
|
109
|
+
}`,[s,Ye]),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
|
-
}`,[l,
|
|
117
|
+
}`,[l,z]),x=e(`fragment ExchangeAmountWithChange on ExchangeAmountWithChange {
|
|
118
118
|
__typename
|
|
119
119
|
current {
|
|
120
120
|
...ExchangeAmount
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
change(window: $timeWindow){
|
|
123
123
|
...PercentNumber
|
|
124
124
|
}
|
|
125
|
-
}`,[
|
|
125
|
+
}`,[i,a]),j=e(`fragment PercentNumberWithChange on PercentNumberWithChange {
|
|
126
126
|
__typename
|
|
127
127
|
current {
|
|
128
128
|
...PercentNumber
|
|
@@ -130,11 +130,11 @@
|
|
|
130
130
|
change(window: $timeWindow){
|
|
131
131
|
...PercentNumber
|
|
132
132
|
}
|
|
133
|
-
}`,[a]),
|
|
133
|
+
}`,[a]),h=e(`fragment PaginatedResultInfo on PaginatedResultInfo {
|
|
134
134
|
__typename
|
|
135
135
|
prev
|
|
136
136
|
next
|
|
137
|
-
}`),
|
|
137
|
+
}`),J=e(`fragment PercentNumberVariation on PercentNumberVariation {
|
|
138
138
|
__typename
|
|
139
139
|
current {
|
|
140
140
|
...PercentNumber
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
after {
|
|
143
143
|
...PercentNumber
|
|
144
144
|
}
|
|
145
|
-
}`,[a]),
|
|
145
|
+
}`,[a]),X=e(`fragment ExchangeAmountVariation on ExchangeAmountVariation {
|
|
146
146
|
__typename
|
|
147
147
|
current {
|
|
148
148
|
...ExchangeAmount
|
|
@@ -150,22 +150,22 @@
|
|
|
150
150
|
after {
|
|
151
151
|
...ExchangeAmount
|
|
152
152
|
}
|
|
153
|
-
}`,[
|
|
153
|
+
}`,[i]),ee=e(`fragment HealthFactorWithChange on HealthFactorWithChange {
|
|
154
154
|
__typename
|
|
155
155
|
current
|
|
156
156
|
change(window: $timeWindow) {
|
|
157
157
|
...PercentNumber
|
|
158
158
|
}
|
|
159
|
-
}`,[a]),
|
|
159
|
+
}`,[a]),ze=e(`fragment HealthFactorVariation on HealthFactorVariation {
|
|
160
160
|
__typename
|
|
161
161
|
current
|
|
162
162
|
after
|
|
163
|
-
}`),
|
|
163
|
+
}`),Ze=e(`fragment HealthFactorError on HealthFactorError {
|
|
164
164
|
__typename
|
|
165
165
|
reason
|
|
166
166
|
current
|
|
167
167
|
after
|
|
168
|
-
}`),
|
|
168
|
+
}`),te=e(`fragment HealthFactorResult on HealthFactorResult {
|
|
169
169
|
__typename
|
|
170
170
|
... on HealthFactorVariation {
|
|
171
171
|
...HealthFactorVariation
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
... on HealthFactorError {
|
|
174
174
|
...HealthFactorError
|
|
175
175
|
}
|
|
176
|
-
}`,[
|
|
176
|
+
}`,[ze,Ze]),A=e(`fragment InsufficientBalanceError on InsufficientBalanceError {
|
|
177
177
|
__typename
|
|
178
178
|
required {
|
|
179
179
|
...DecimalNumber
|
|
@@ -181,7 +181,10 @@
|
|
|
181
181
|
available {
|
|
182
182
|
...DecimalNumber
|
|
183
183
|
}
|
|
184
|
-
}`,[c])
|
|
184
|
+
}`,[c]),I=e(`fragment InsufficientLiquidityError on InsufficientLiquidityError {
|
|
185
|
+
__typename
|
|
186
|
+
reason
|
|
187
|
+
}`);var je=e(`fragment HubSummary on HubSummary {
|
|
185
188
|
__typename
|
|
186
189
|
totalBorrowed {
|
|
187
190
|
...ExchangeAmountWithChange
|
|
@@ -198,7 +201,7 @@
|
|
|
198
201
|
utilizationRate {
|
|
199
202
|
...PercentNumber
|
|
200
203
|
}
|
|
201
|
-
}`,[
|
|
204
|
+
}`,[i,x,a]),P=e(`fragment Hub on Hub {
|
|
202
205
|
__typename
|
|
203
206
|
id
|
|
204
207
|
name
|
|
@@ -209,7 +212,7 @@
|
|
|
209
212
|
summary(currency: $currency) {
|
|
210
213
|
...HubSummary
|
|
211
214
|
}
|
|
212
|
-
}`,[n,
|
|
215
|
+
}`,[n,je]);var Je=e(`fragment HubAssetSummary on HubAssetSummary {
|
|
213
216
|
__typename
|
|
214
217
|
supplied {
|
|
215
218
|
...Erc20Amount
|
|
@@ -232,7 +235,7 @@
|
|
|
232
235
|
utilizationRate {
|
|
233
236
|
...PercentNumber
|
|
234
237
|
}
|
|
235
|
-
}`,[
|
|
238
|
+
}`,[s,a]),Xe=e(`fragment HubAssetSettings on HubAssetSettings {
|
|
236
239
|
__typename
|
|
237
240
|
feeReceiver
|
|
238
241
|
liquidityFee {
|
|
@@ -240,12 +243,12 @@
|
|
|
240
243
|
}
|
|
241
244
|
irStrategy
|
|
242
245
|
reinvestmentController
|
|
243
|
-
}`,[a]),
|
|
246
|
+
}`,[a]),et=e(`fragment HubAssetUserState on HubAssetUserState {
|
|
244
247
|
__typename
|
|
245
248
|
balance {
|
|
246
249
|
...Erc20Amount
|
|
247
250
|
}
|
|
248
|
-
}`,[
|
|
251
|
+
}`,[s]),b=e(`fragment HubAsset on HubAsset {
|
|
249
252
|
__typename
|
|
250
253
|
id
|
|
251
254
|
onchainAssetId
|
|
@@ -264,7 +267,7 @@
|
|
|
264
267
|
userState {
|
|
265
268
|
...HubAssetUserState
|
|
266
269
|
}
|
|
267
|
-
}`,[
|
|
270
|
+
}`,[P,l,Je,Xe,et]);var re=e(`fragment PermitTypedData on PermitTypedData {
|
|
268
271
|
__typename
|
|
269
272
|
types
|
|
270
273
|
primaryType
|
|
@@ -272,7 +275,7 @@
|
|
|
272
275
|
...DomainData
|
|
273
276
|
}
|
|
274
277
|
message
|
|
275
|
-
}`,[
|
|
278
|
+
}`,[_]);function qr(t){return typeof t=="object"&&t!==null&&"deadline"in t&&"value"in t}var u=e(`fragment Spoke on Spoke {
|
|
276
279
|
__typename
|
|
277
280
|
id
|
|
278
281
|
name
|
|
@@ -280,12 +283,12 @@
|
|
|
280
283
|
chain {
|
|
281
284
|
...Chain
|
|
282
285
|
}
|
|
283
|
-
}`,[n]),
|
|
286
|
+
}`,[n]),tt=e(`fragment SpokePositionManager on SpokePositionManager {
|
|
284
287
|
__typename
|
|
285
288
|
address
|
|
286
289
|
active
|
|
287
290
|
name
|
|
288
|
-
}`),
|
|
291
|
+
}`),ae=e(`fragment PaginatedSpokePositionManagerResult on PaginatedSpokePositionManagerResult {
|
|
289
292
|
__typename
|
|
290
293
|
items {
|
|
291
294
|
...SpokePositionManager
|
|
@@ -293,13 +296,13 @@
|
|
|
293
296
|
pageInfo {
|
|
294
297
|
...PaginatedResultInfo
|
|
295
298
|
}
|
|
296
|
-
}`,[
|
|
299
|
+
}`,[tt,h]),rt=e(`fragment SpokeUserPositionManager on SpokeUserPositionManager {
|
|
297
300
|
__typename
|
|
298
301
|
address
|
|
299
302
|
approvedOn
|
|
300
303
|
active
|
|
301
304
|
name
|
|
302
|
-
}`),
|
|
305
|
+
}`),ne=e(`fragment PaginatedSpokeUserPositionManagerResult on PaginatedSpokeUserPositionManagerResult {
|
|
303
306
|
__typename
|
|
304
307
|
items {
|
|
305
308
|
...SpokeUserPositionManager
|
|
@@ -307,7 +310,7 @@
|
|
|
307
310
|
pageInfo {
|
|
308
311
|
...PaginatedResultInfo
|
|
309
312
|
}
|
|
310
|
-
}`,[
|
|
313
|
+
}`,[rt,h]);var at=e(`fragment ReserveSettings on ReserveSettings {
|
|
311
314
|
__typename
|
|
312
315
|
collateralFactor {
|
|
313
316
|
...PercentNumber
|
|
@@ -325,12 +328,12 @@
|
|
|
325
328
|
collateral
|
|
326
329
|
suppliable
|
|
327
330
|
latestDynamicConfigKey
|
|
328
|
-
}`,[a]),
|
|
331
|
+
}`,[a]),nt=e(`fragment ReserveStatus on ReserveStatus {
|
|
329
332
|
__typename
|
|
330
333
|
frozen
|
|
331
334
|
paused
|
|
332
335
|
active
|
|
333
|
-
}`),
|
|
336
|
+
}`),ot=e(`fragment ReserveSummary on ReserveSummary {
|
|
334
337
|
__typename
|
|
335
338
|
supplied {
|
|
336
339
|
...Erc20Amount
|
|
@@ -344,7 +347,7 @@
|
|
|
344
347
|
borrowApy {
|
|
345
348
|
...PercentNumber
|
|
346
349
|
}
|
|
347
|
-
}`,[
|
|
350
|
+
}`,[s,a]),pt=e(`fragment ReserveUserState on ReserveUserState {
|
|
348
351
|
__typename
|
|
349
352
|
balance {
|
|
350
353
|
...Erc20Amount
|
|
@@ -368,7 +371,7 @@
|
|
|
368
371
|
...PercentNumber
|
|
369
372
|
}
|
|
370
373
|
dynamicConfigKey
|
|
371
|
-
}`,[
|
|
374
|
+
}`,[s,a]),T=e(`fragment Reserve on Reserve {
|
|
372
375
|
__typename
|
|
373
376
|
id
|
|
374
377
|
onChainId
|
|
@@ -399,7 +402,7 @@
|
|
|
399
402
|
asset {
|
|
400
403
|
...HubAsset
|
|
401
404
|
}
|
|
402
|
-
}`,[
|
|
405
|
+
}`,[u,n,ot,at,nt,pt,b]),d=e(`fragment ReserveInfo on ReserveInfo {
|
|
403
406
|
__typename
|
|
404
407
|
id
|
|
405
408
|
asset {
|
|
@@ -413,7 +416,7 @@
|
|
|
413
416
|
value
|
|
414
417
|
chainId
|
|
415
418
|
operations
|
|
416
|
-
}`),
|
|
419
|
+
}`),D=e(`fragment Erc20Approval on Erc20Approval {
|
|
417
420
|
__typename
|
|
418
421
|
byTransaction {
|
|
419
422
|
...TransactionRequest
|
|
@@ -421,7 +424,7 @@
|
|
|
421
424
|
bySignature {
|
|
422
425
|
...PermitTypedData
|
|
423
426
|
}
|
|
424
|
-
}`,[m,
|
|
427
|
+
}`,[m,re]),L=e(`fragment Erc20ApprovalRequired on Erc20ApprovalRequired {
|
|
425
428
|
__typename
|
|
426
429
|
approvals {
|
|
427
430
|
...Erc20Approval
|
|
@@ -436,7 +439,7 @@
|
|
|
436
439
|
originalTransaction {
|
|
437
440
|
...TransactionRequest
|
|
438
441
|
}
|
|
439
|
-
}`,[m,
|
|
442
|
+
}`,[m,D,c]),st=e(`fragment PreContractActionRequired on PreContractActionRequired {
|
|
440
443
|
__typename
|
|
441
444
|
transaction {
|
|
442
445
|
...TransactionRequest
|
|
@@ -445,7 +448,7 @@
|
|
|
445
448
|
originalTransaction {
|
|
446
449
|
...TransactionRequest
|
|
447
450
|
}
|
|
448
|
-
}`,[m]),
|
|
451
|
+
}`,[m]),C=e(`fragment ExecutionPlan on ExecutionPlan {
|
|
449
452
|
__typename
|
|
450
453
|
... on TransactionRequest {
|
|
451
454
|
...TransactionRequest
|
|
@@ -459,7 +462,7 @@
|
|
|
459
462
|
... on InsufficientBalanceError {
|
|
460
463
|
...InsufficientBalanceError
|
|
461
464
|
}
|
|
462
|
-
}`,[m,
|
|
465
|
+
}`,[m,L,st,A]);var it=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
463
466
|
__typename
|
|
464
467
|
networkCosts {
|
|
465
468
|
...TokenAmount
|
|
@@ -473,7 +476,7 @@
|
|
|
473
476
|
providerFee {
|
|
474
477
|
...TokenAmount
|
|
475
478
|
}
|
|
476
|
-
}`,[
|
|
479
|
+
}`,[S]),B=e(`fragment SwapQuote on SwapQuote {
|
|
477
480
|
__typename
|
|
478
481
|
accuracy
|
|
479
482
|
quoteId
|
|
@@ -498,7 +501,7 @@
|
|
|
498
501
|
finalSell {
|
|
499
502
|
...TokenAmount
|
|
500
503
|
}
|
|
501
|
-
}`,[a,
|
|
504
|
+
}`,[a,S,it]),H=e(`fragment SwapTypedData on SwapTypedData {
|
|
502
505
|
__typename
|
|
503
506
|
primaryType
|
|
504
507
|
types
|
|
@@ -506,19 +509,19 @@
|
|
|
506
509
|
...DomainData
|
|
507
510
|
}
|
|
508
511
|
message
|
|
509
|
-
}`,[
|
|
512
|
+
}`,[_]),oe=e(`fragment PrepareSwapOrder on PrepareSwapOrder {
|
|
510
513
|
__typename
|
|
511
514
|
newQuoteId
|
|
512
515
|
data {
|
|
513
516
|
...SwapTypedData
|
|
514
517
|
}
|
|
515
|
-
}`,[
|
|
518
|
+
}`,[H]),ut=e(`fragment SwapByIntent on SwapByIntent {
|
|
516
519
|
__typename
|
|
517
520
|
quote {
|
|
518
521
|
...SwapQuote
|
|
519
522
|
}
|
|
520
523
|
|
|
521
|
-
}`,[
|
|
524
|
+
}`,[B]),mt=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
522
525
|
__typename
|
|
523
526
|
approvals {
|
|
524
527
|
...Erc20Approval
|
|
@@ -526,17 +529,17 @@
|
|
|
526
529
|
quote {
|
|
527
530
|
...SwapQuote
|
|
528
531
|
}
|
|
529
|
-
}`,[
|
|
532
|
+
}`,[D,B]),yt=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
530
533
|
__typename
|
|
531
534
|
quote {
|
|
532
535
|
...SwapQuote
|
|
533
536
|
}
|
|
534
|
-
}`,[
|
|
537
|
+
}`,[B]),pe=e(`fragment SwapReceipt on SwapReceipt {
|
|
535
538
|
__typename
|
|
536
539
|
id
|
|
537
540
|
explorerUrl
|
|
538
541
|
createdAt
|
|
539
|
-
}`),
|
|
542
|
+
}`),se=e(`fragment TokenSwapQuoteResult on TokenSwapQuoteResult {
|
|
540
543
|
__typename
|
|
541
544
|
... on SwapByIntent {
|
|
542
545
|
...SwapByIntent
|
|
@@ -547,7 +550,10 @@
|
|
|
547
550
|
... on SwapByTransaction {
|
|
548
551
|
...SwapByTransaction
|
|
549
552
|
}
|
|
550
|
-
|
|
553
|
+
... on InsufficientLiquidityError {
|
|
554
|
+
...InsufficientLiquidityError
|
|
555
|
+
}
|
|
556
|
+
}`,[ut,mt,yt,I]),ie=e(`fragment PrepareTokenSwapResult on PrepareTokenSwapResult {
|
|
551
557
|
__typename
|
|
552
558
|
... on PrepareSwapOrder {
|
|
553
559
|
...PrepareSwapOrder
|
|
@@ -555,7 +561,7 @@
|
|
|
555
561
|
... on InsufficientBalanceError {
|
|
556
562
|
...InsufficientBalanceError
|
|
557
563
|
}
|
|
558
|
-
}`,[
|
|
564
|
+
}`,[oe,A]),ct=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
559
565
|
__typename
|
|
560
566
|
transaction {
|
|
561
567
|
...TransactionRequest
|
|
@@ -563,7 +569,7 @@
|
|
|
563
569
|
orderReceipt {
|
|
564
570
|
...SwapReceipt
|
|
565
571
|
}
|
|
566
|
-
}`,[m,
|
|
572
|
+
}`,[m,pe]),ue=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
567
573
|
__typename
|
|
568
574
|
... on SwapTransactionRequest {
|
|
569
575
|
...SwapTransactionRequest
|
|
@@ -574,19 +580,7 @@
|
|
|
574
580
|
... on InsufficientBalanceError {
|
|
575
581
|
...InsufficientBalanceError
|
|
576
582
|
}
|
|
577
|
-
}`,[
|
|
578
|
-
__typename
|
|
579
|
-
swapId
|
|
580
|
-
createdAt
|
|
581
|
-
cancelledAt
|
|
582
|
-
explorerUrl
|
|
583
|
-
}`),mt=e(`fragment SwapExpired on SwapExpired {
|
|
584
|
-
__typename
|
|
585
|
-
swapId
|
|
586
|
-
createdAt
|
|
587
|
-
expiredAt
|
|
588
|
-
explorerUrl
|
|
589
|
-
}`),yt=e(`fragment PositionAmount on PositionAmount {
|
|
583
|
+
}`,[ct,pe,A]),w=e(`fragment PositionAmount on PositionAmount {
|
|
590
584
|
__typename
|
|
591
585
|
reserve {
|
|
592
586
|
...ReserveInfo
|
|
@@ -594,56 +588,121 @@
|
|
|
594
588
|
amount {
|
|
595
589
|
...Erc20Amount
|
|
596
590
|
}
|
|
597
|
-
}`,[
|
|
591
|
+
}`,[d,s]),lt=e(`fragment SupplySwap on SupplySwap {
|
|
598
592
|
__typename
|
|
599
|
-
|
|
593
|
+
sell {
|
|
600
594
|
...PositionAmount
|
|
601
595
|
}
|
|
602
|
-
|
|
603
|
-
...
|
|
596
|
+
buy {
|
|
597
|
+
...PositionAmount
|
|
604
598
|
}
|
|
605
|
-
|
|
606
|
-
|
|
599
|
+
kind
|
|
600
|
+
orderClass
|
|
601
|
+
}`,[w]),gt=e(`fragment BorrowSwap on BorrowSwap {
|
|
602
|
+
__typename
|
|
603
|
+
sell {
|
|
604
|
+
...PositionAmount
|
|
605
|
+
}
|
|
606
|
+
buy {
|
|
607
|
+
...PositionAmount
|
|
608
|
+
}
|
|
609
|
+
kind
|
|
610
|
+
orderClass
|
|
611
|
+
}`,[w]),St=e(`fragment RepayWithSupply on RepayWithSupply {
|
|
612
|
+
__typename
|
|
613
|
+
repay {
|
|
614
|
+
...PositionAmount
|
|
615
|
+
}
|
|
616
|
+
supply {
|
|
617
|
+
...PositionAmount
|
|
618
|
+
}
|
|
619
|
+
kind
|
|
620
|
+
orderClass
|
|
621
|
+
}`,[w]),dt=e(`fragment WithdrawSwap on WithdrawSwap {
|
|
622
|
+
__typename
|
|
623
|
+
withdraw {
|
|
624
|
+
...PositionAmount
|
|
625
|
+
}
|
|
626
|
+
buy {
|
|
627
|
+
...TokenAmount
|
|
628
|
+
}
|
|
629
|
+
kind
|
|
630
|
+
orderClass
|
|
631
|
+
}`,[w,S]),ft=e(`fragment TokenSwap on TokenSwap {
|
|
632
|
+
__typename
|
|
633
|
+
sell {
|
|
634
|
+
...TokenAmount
|
|
635
|
+
}
|
|
636
|
+
buy {
|
|
637
|
+
...TokenAmount
|
|
638
|
+
}
|
|
639
|
+
kind
|
|
640
|
+
orderClass
|
|
641
|
+
}`,[S]),U=e(`fragment SwapOperation on SwapOperation {
|
|
642
|
+
__typename
|
|
643
|
+
... on SupplySwap {
|
|
644
|
+
...SupplySwap
|
|
645
|
+
}
|
|
646
|
+
... on BorrowSwap {
|
|
647
|
+
...BorrowSwap
|
|
648
|
+
}
|
|
649
|
+
... on RepayWithSupply {
|
|
650
|
+
...RepayWithSupply
|
|
651
|
+
}
|
|
652
|
+
... on WithdrawSwap {
|
|
653
|
+
...WithdrawSwap
|
|
607
654
|
}
|
|
608
|
-
|
|
655
|
+
... on TokenSwap {
|
|
656
|
+
...TokenSwap
|
|
657
|
+
}
|
|
658
|
+
}`,[lt,gt,St,dt,ft]),Rt=e(`fragment SwapCancelled on SwapCancelled {
|
|
609
659
|
__typename
|
|
610
660
|
swapId
|
|
611
661
|
createdAt
|
|
612
|
-
|
|
662
|
+
cancelledAt
|
|
613
663
|
explorerUrl
|
|
614
|
-
|
|
615
|
-
...
|
|
664
|
+
operation {
|
|
665
|
+
...SwapOperation
|
|
616
666
|
}
|
|
617
|
-
|
|
618
|
-
|
|
667
|
+
}`,[U]),wt=e(`fragment SwapExpired on SwapExpired {
|
|
668
|
+
__typename
|
|
669
|
+
swapId
|
|
670
|
+
createdAt
|
|
671
|
+
expiredAt
|
|
672
|
+
explorerUrl
|
|
673
|
+
operation {
|
|
674
|
+
...SwapOperation
|
|
619
675
|
}
|
|
620
|
-
}`,[
|
|
676
|
+
}`,[U]),qt=e(`fragment SwapOpen on SwapOpen {
|
|
621
677
|
__typename
|
|
622
678
|
swapId
|
|
623
679
|
createdAt
|
|
624
680
|
deadline
|
|
625
681
|
explorerUrl
|
|
626
|
-
|
|
682
|
+
operation {
|
|
683
|
+
...SwapOperation
|
|
684
|
+
}
|
|
685
|
+
}`,[U]),xt=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
627
686
|
__typename
|
|
628
687
|
swapId
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
...SwapAmount
|
|
635
|
-
}
|
|
636
|
-
sold {
|
|
637
|
-
...SwapAmount
|
|
638
|
-
}
|
|
639
|
-
bought {
|
|
640
|
-
...SwapAmount
|
|
688
|
+
createdAt
|
|
689
|
+
deadline
|
|
690
|
+
explorerUrl
|
|
691
|
+
operation {
|
|
692
|
+
...SwapOperation
|
|
641
693
|
}
|
|
694
|
+
}`,[U]),At=e(`fragment SwapFulfilled on SwapFulfilled {
|
|
695
|
+
__typename
|
|
696
|
+
swapId
|
|
697
|
+
txHash
|
|
642
698
|
createdAt
|
|
643
699
|
fulfilledAt
|
|
644
700
|
explorerUrl
|
|
645
701
|
refundTxHash
|
|
646
|
-
|
|
702
|
+
operation {
|
|
703
|
+
...SwapOperation
|
|
704
|
+
}
|
|
705
|
+
}`,[U]),M=e(`fragment SwapStatus on SwapStatus {
|
|
647
706
|
__typename
|
|
648
707
|
... on SwapOpen {
|
|
649
708
|
...SwapOpen
|
|
@@ -660,20 +719,26 @@
|
|
|
660
719
|
... on SwapFulfilled {
|
|
661
720
|
...SwapFulfilled
|
|
662
721
|
}
|
|
663
|
-
}`,[
|
|
722
|
+
}`,[qt,xt,Rt,wt,At]),me=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
664
723
|
__typename
|
|
665
724
|
data {
|
|
666
725
|
...SwapTypedData
|
|
667
726
|
}
|
|
668
|
-
}`,[
|
|
727
|
+
}`,[H]),ht=e(`fragment SwapCancelledResult on SwapCancelledResult {
|
|
728
|
+
__typename
|
|
729
|
+
swapId
|
|
730
|
+
createdAt
|
|
731
|
+
cancelledAt
|
|
732
|
+
explorerUrl
|
|
733
|
+
}`),ye=e(`fragment CancelSwapExecutionPlan on CancelSwapExecutionPlan {
|
|
669
734
|
__typename
|
|
670
735
|
... on TransactionRequest {
|
|
671
736
|
...TransactionRequest
|
|
672
737
|
}
|
|
673
|
-
... on
|
|
674
|
-
...
|
|
738
|
+
... on SwapCancelledResult {
|
|
739
|
+
...SwapCancelledResult
|
|
675
740
|
}
|
|
676
|
-
}`,[m,
|
|
741
|
+
}`,[m,ht]),ce=e(`fragment PaginatedUserSwapsResult on PaginatedUserSwapsResult {
|
|
677
742
|
__typename
|
|
678
743
|
items {
|
|
679
744
|
...SwapStatus
|
|
@@ -681,12 +746,12 @@
|
|
|
681
746
|
pageInfo {
|
|
682
747
|
...PaginatedResultInfo
|
|
683
748
|
}
|
|
684
|
-
}`,[
|
|
749
|
+
}`,[M,h]),Pt=e(`fragment PositionSwapAdapterContractApproval on PositionSwapAdapterContractApproval {
|
|
685
750
|
__typename
|
|
686
751
|
bySignature {
|
|
687
752
|
...SwapTypedData
|
|
688
753
|
}
|
|
689
|
-
}`,[
|
|
754
|
+
}`,[H]),Ft=e(`fragment PositionSwapPositionManagerApproval on PositionSwapPositionManagerApproval {
|
|
690
755
|
__typename
|
|
691
756
|
byTransaction {
|
|
692
757
|
...TransactionRequest
|
|
@@ -694,7 +759,7 @@
|
|
|
694
759
|
bySignature {
|
|
695
760
|
...SwapTypedData
|
|
696
761
|
}
|
|
697
|
-
}`,[m,
|
|
762
|
+
}`,[m,H]),It=e(`fragment PositionSwapApproval on PositionSwapApproval {
|
|
698
763
|
__typename
|
|
699
764
|
... on PositionSwapAdapterContractApproval {
|
|
700
765
|
...PositionSwapAdapterContractApproval
|
|
@@ -702,7 +767,7 @@
|
|
|
702
767
|
... on PositionSwapPositionManagerApproval {
|
|
703
768
|
...PositionSwapPositionManagerApproval
|
|
704
769
|
}
|
|
705
|
-
}`,[
|
|
770
|
+
}`,[Pt,Ft]),Q=e(`fragment PositionSwapByIntentApprovalsRequired on PositionSwapByIntentApprovalsRequired {
|
|
706
771
|
__typename
|
|
707
772
|
quote {
|
|
708
773
|
...SwapQuote
|
|
@@ -710,27 +775,39 @@
|
|
|
710
775
|
approvals {
|
|
711
776
|
...PositionSwapApproval
|
|
712
777
|
}
|
|
713
|
-
}`,[
|
|
778
|
+
}`,[B,It]),le=e(`fragment SupplySwapQuoteResult on SupplySwapQuoteResult {
|
|
714
779
|
__typename
|
|
715
780
|
... on PositionSwapByIntentApprovalsRequired {
|
|
716
781
|
...PositionSwapByIntentApprovalsRequired
|
|
717
782
|
}
|
|
718
|
-
|
|
783
|
+
... on InsufficientLiquidityError {
|
|
784
|
+
...InsufficientLiquidityError
|
|
785
|
+
}
|
|
786
|
+
}`,[Q,I]),ge=e(`fragment BorrowSwapQuoteResult on BorrowSwapQuoteResult {
|
|
719
787
|
__typename
|
|
720
788
|
... on PositionSwapByIntentApprovalsRequired {
|
|
721
789
|
...PositionSwapByIntentApprovalsRequired
|
|
722
790
|
}
|
|
723
|
-
|
|
791
|
+
... on InsufficientLiquidityError {
|
|
792
|
+
...InsufficientLiquidityError
|
|
793
|
+
}
|
|
794
|
+
}`,[Q,I]),Se=e(`fragment RepayWithSupplyQuoteResult on RepayWithSupplyQuoteResult {
|
|
724
795
|
__typename
|
|
725
796
|
... on PositionSwapByIntentApprovalsRequired {
|
|
726
797
|
...PositionSwapByIntentApprovalsRequired
|
|
727
798
|
}
|
|
728
|
-
|
|
799
|
+
... on InsufficientLiquidityError {
|
|
800
|
+
...InsufficientLiquidityError
|
|
801
|
+
}
|
|
802
|
+
}`,[Q,I]),de=e(`fragment WithdrawSwapQuoteResult on WithdrawSwapQuoteResult {
|
|
729
803
|
__typename
|
|
730
804
|
... on PositionSwapByIntentApprovalsRequired {
|
|
731
805
|
...PositionSwapByIntentApprovalsRequired
|
|
732
806
|
}
|
|
733
|
-
|
|
807
|
+
... on InsufficientLiquidityError {
|
|
808
|
+
...InsufficientLiquidityError
|
|
809
|
+
}
|
|
810
|
+
}`,[Q,I]),fe=e(`fragment PreparePositionSwapResult on PreparePositionSwapResult {
|
|
734
811
|
__typename
|
|
735
812
|
... on PrepareSwapOrder {
|
|
736
813
|
...PrepareSwapOrder
|
|
@@ -738,7 +815,7 @@
|
|
|
738
815
|
... on InsufficientBalanceError {
|
|
739
816
|
...InsufficientBalanceError
|
|
740
817
|
}
|
|
741
|
-
}`,[
|
|
818
|
+
}`,[oe,A]);var Re=e(`fragment UserSupplyItem on UserSupplyItem {
|
|
742
819
|
__typename
|
|
743
820
|
id
|
|
744
821
|
reserve {
|
|
@@ -755,7 +832,7 @@
|
|
|
755
832
|
}
|
|
756
833
|
isCollateral
|
|
757
834
|
createdAt
|
|
758
|
-
}`,[
|
|
835
|
+
}`,[s,T]),we=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
759
836
|
__typename
|
|
760
837
|
id
|
|
761
838
|
principal {
|
|
@@ -771,7 +848,7 @@
|
|
|
771
848
|
...Reserve
|
|
772
849
|
}
|
|
773
850
|
createdAt
|
|
774
|
-
}`,[
|
|
851
|
+
}`,[s,T]),qe=e(`fragment UserSummary on UserSummary {
|
|
775
852
|
__typename
|
|
776
853
|
totalPositions
|
|
777
854
|
netBalance(currency: $currency) {
|
|
@@ -793,7 +870,7 @@
|
|
|
793
870
|
...ExchangeAmount
|
|
794
871
|
}
|
|
795
872
|
lowestHealthFactor
|
|
796
|
-
}`,[
|
|
873
|
+
}`,[x,i,a]),V=e(`fragment UserRiskPremiumBreakdownItem on UserRiskPremiumBreakdownItem {
|
|
797
874
|
__typename
|
|
798
875
|
token {
|
|
799
876
|
...Erc20Token
|
|
@@ -807,7 +884,7 @@
|
|
|
807
884
|
collateral {
|
|
808
885
|
...PercentNumber
|
|
809
886
|
}
|
|
810
|
-
}`,[l,a]),
|
|
887
|
+
}`,[l,a]),Tt=e(`fragment UserPositionRiskPremium on UserPositionRiskPremium {
|
|
811
888
|
__typename
|
|
812
889
|
current {
|
|
813
890
|
...PercentNumber
|
|
@@ -818,7 +895,7 @@
|
|
|
818
895
|
breakdown {
|
|
819
896
|
...UserRiskPremiumBreakdownItem
|
|
820
897
|
}
|
|
821
|
-
}`,[a,
|
|
898
|
+
}`,[a,V]),K=e(`fragment UserPosition on UserPosition {
|
|
822
899
|
__typename
|
|
823
900
|
id
|
|
824
901
|
spoke {
|
|
@@ -872,7 +949,7 @@
|
|
|
872
949
|
averageCollateralFactor {
|
|
873
950
|
...PercentNumber
|
|
874
951
|
}
|
|
875
|
-
}`,[
|
|
952
|
+
}`,[u,a,x,i,j,ee,Tt]),xe=e(`fragment UserBalance on UserBalance {
|
|
876
953
|
__typename
|
|
877
954
|
id
|
|
878
955
|
info {
|
|
@@ -905,7 +982,7 @@
|
|
|
905
982
|
lowestCollateralFactor: collateralFactor(metric: LOWEST) {
|
|
906
983
|
...PercentNumber
|
|
907
984
|
}
|
|
908
|
-
}`,[
|
|
985
|
+
}`,[E,c,S,i,a]),Ae=e(`fragment UserSummaryHistoryItem on UserSummaryHistoryItem {
|
|
909
986
|
__typename
|
|
910
987
|
netBalance(currency: $currency) {
|
|
911
988
|
...ExchangeAmount
|
|
@@ -918,25 +995,25 @@
|
|
|
918
995
|
}
|
|
919
996
|
healthFactor
|
|
920
997
|
date
|
|
921
|
-
}`,[
|
|
998
|
+
}`,[i]),G=e(`fragment ApySample on ApySample {
|
|
922
999
|
__typename
|
|
923
1000
|
date
|
|
924
1001
|
avgRate {
|
|
925
1002
|
...PercentNumber
|
|
926
1003
|
}
|
|
927
|
-
}`,[a]);var
|
|
1004
|
+
}`,[a]);var Gr=e(`query Hub($request: HubRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
928
1005
|
value: hub(request: $request) {
|
|
929
1006
|
...Hub
|
|
930
1007
|
}
|
|
931
|
-
}`,[
|
|
1008
|
+
}`,[P]),Yr=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
932
1009
|
value: hubs(request: $request) {
|
|
933
1010
|
...Hub
|
|
934
1011
|
}
|
|
935
|
-
}`,[
|
|
1012
|
+
}`,[P]),zr=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
936
1013
|
value: hubAssets(request: $request) {
|
|
937
1014
|
...HubAsset
|
|
938
1015
|
}
|
|
939
|
-
}`,[b]),
|
|
1016
|
+
}`,[b]),kt=e(`fragment HubSummarySample on HubSummarySample {
|
|
940
1017
|
__typename
|
|
941
1018
|
date
|
|
942
1019
|
deposits {
|
|
@@ -951,27 +1028,27 @@
|
|
|
951
1028
|
utilizationRate {
|
|
952
1029
|
...PercentNumber
|
|
953
1030
|
}
|
|
954
|
-
}`,[
|
|
1031
|
+
}`,[i,a]),Zr=e(`query HubSummaryHistory($request: HubSummaryHistoryRequest!) {
|
|
955
1032
|
value: hubSummaryHistory(request: $request) {
|
|
956
1033
|
...HubSummarySample
|
|
957
1034
|
}
|
|
958
|
-
}`,[
|
|
1035
|
+
}`,[kt]);function $(t){return new TextDecoder().decode(Uint8Array.from(atob(t),R=>R.charCodeAt(0)))}function N(t){return btoa(String.fromCharCode(...new TextEncoder().encode(t)))}var f="::";function Xr(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 vt(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 ea(t){return vt(N(`${t.chainId}${f}${t.address}`))}function ta(t){let R=$(t),[r,o]=R.split(f);return {chainId:types.chainId(Number.parseInt(r,10)),address:types.evmAddress(o)}}function ra(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 aa(t){return t}function na(t){let R=$(t),[r,o,q]=R.split(f);return {chainId:types.chainId(Number.parseInt(r,10)),spoke:types.evmAddress(o),onChainId:q}}function oa(t){return N(`${t.chainId}${f}${t.spoke}${f}${t.onChainId}`)}function Et(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 pa(t){let R=$(t),[r,o,q]=R.split(f);return {chainId:types.chainId(Number.parseInt(r,10)),spoke:types.evmAddress(o),user:types.evmAddress(q)}}function sa(t){return Et(N(`${t.chainId}${f}${t.spoke}${f}${t.user}`))}function ia(t){return types.invariant(types.isValidHexString(t),`Invalid SwapId: ${t}`),t}function ua(t){return types.invariant(types.isValidHexString(t),`Invalid SwapQuoteId: ${t}`),t}function ma(t){return bt(N(`${t.chainId}${f}${t.address}`))}function ya(t){let R=$(t),[r,o]=R.split(f);return {chainId:types.chainId(Number.parseInt(r,10)),address:types.evmAddress(o)}}function bt(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 ca(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 la(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 ga(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 Sa(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid TokenInfoId: ${t}`),t}function Ra(t){return types.isObject(t)&&"hubInput"in t&&t.hubInput!=null}function wa(t){return types.isObject(t)&&"chainIds"in t&&t.chainIds!=null}function qa(t){return types.isObject(t)&&"tokens"in t&&t.tokens!=null}function xa(t){return types.isObject(t)&&"spoke"in t&&t.spoke!=null}function Aa(t){return types.isObject(t)&&"reserveInput"in t&&t.reserveInput!=null}function ha(t){return types.isObject(t)&&"txHash"in t&&t.txHash!=null}var Ta=e(`query Chain($request: ChainRequest!) {
|
|
959
1036
|
value: chain(request: $request) {
|
|
960
1037
|
...Chain
|
|
961
1038
|
}
|
|
962
|
-
}`,[n]),
|
|
1039
|
+
}`,[n]),ka=e(`query Chains($request: ChainsRequest!) {
|
|
963
1040
|
value: chains(request: $request) {
|
|
964
1041
|
...Chain
|
|
965
1042
|
}
|
|
966
|
-
}`,[n]),
|
|
1043
|
+
}`,[n]),va=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
967
1044
|
value: hasProcessedKnownTransaction(request: $request)
|
|
968
|
-
}`),
|
|
1045
|
+
}`),Ea=e(`query Health {
|
|
969
1046
|
value: health
|
|
970
|
-
}`),
|
|
1047
|
+
}`),ba=e(`query ExchangeRate($request: ExchangeRateRequest!) {
|
|
971
1048
|
value: exchangeRate(request: $request) {
|
|
972
1049
|
...ExchangeAmount
|
|
973
1050
|
}
|
|
974
|
-
}`,[
|
|
1051
|
+
}`,[i]);var Ct=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
975
1052
|
__typename
|
|
976
1053
|
date
|
|
977
1054
|
price
|
|
@@ -986,7 +1063,7 @@
|
|
|
986
1063
|
hub {
|
|
987
1064
|
...Hub
|
|
988
1065
|
}
|
|
989
|
-
}`,[c,a,
|
|
1066
|
+
}`,[c,a,P]),Ut=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
990
1067
|
__typename
|
|
991
1068
|
date
|
|
992
1069
|
amount {
|
|
@@ -1004,7 +1081,7 @@
|
|
|
1004
1081
|
breakdown {
|
|
1005
1082
|
...AssetSampleBreakdown
|
|
1006
1083
|
}
|
|
1007
|
-
}`,[c,a,Pe]),
|
|
1084
|
+
}`,[c,a,Pe]),Ot=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
1008
1085
|
__typename
|
|
1009
1086
|
date
|
|
1010
1087
|
amount {
|
|
@@ -1022,7 +1099,7 @@
|
|
|
1022
1099
|
breakdown {
|
|
1023
1100
|
...AssetSampleBreakdown
|
|
1024
1101
|
}
|
|
1025
|
-
}`,[c,a,Pe]),
|
|
1102
|
+
}`,[c,a,Pe]),_t=e(`fragment AssetAmountWithChange on AssetAmountWithChange {
|
|
1026
1103
|
__typename
|
|
1027
1104
|
amount {
|
|
1028
1105
|
...DecimalNumberWithChange
|
|
@@ -1030,7 +1107,7 @@
|
|
|
1030
1107
|
exchange(currency: $currency) {
|
|
1031
1108
|
...ExchangeAmountWithChange
|
|
1032
1109
|
}
|
|
1033
|
-
}`,[
|
|
1110
|
+
}`,[Y,x]),Bt=e(`fragment AssetSummary on AssetSummary {
|
|
1034
1111
|
__typename
|
|
1035
1112
|
totalSupplyCap {
|
|
1036
1113
|
...AssetAmountWithChange
|
|
@@ -1056,7 +1133,7 @@
|
|
|
1056
1133
|
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
1057
1134
|
...PercentNumber
|
|
1058
1135
|
}
|
|
1059
|
-
}`,[
|
|
1136
|
+
}`,[_t,a]),Ht=e(`fragment Asset on Asset {
|
|
1060
1137
|
__typename
|
|
1061
1138
|
id
|
|
1062
1139
|
token {
|
|
@@ -1068,23 +1145,23 @@
|
|
|
1068
1145
|
price(currency: $currency) {
|
|
1069
1146
|
...ExchangeAmountWithChange
|
|
1070
1147
|
}
|
|
1071
|
-
}`,[l,
|
|
1148
|
+
}`,[l,Bt,x]),_a=e(`query Asset($request: AssetRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1072
1149
|
value: asset(request: $request) {
|
|
1073
1150
|
...Asset
|
|
1074
1151
|
}
|
|
1075
|
-
}`,[
|
|
1152
|
+
}`,[Ht]),Ba=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
1076
1153
|
value: assetPriceHistory(request: $request) {
|
|
1077
1154
|
...AssetPriceSample
|
|
1078
1155
|
}
|
|
1079
|
-
}`,[
|
|
1156
|
+
}`,[Ct]),Ha=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1080
1157
|
value: assetSupplyHistory(request: $request) {
|
|
1081
1158
|
...AssetSupplySample
|
|
1082
1159
|
}
|
|
1083
|
-
}`,[
|
|
1160
|
+
}`,[Ut]),Qa=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1084
1161
|
value: assetBorrowHistory(request: $request) {
|
|
1085
1162
|
...AssetBorrowSample
|
|
1086
1163
|
}
|
|
1087
|
-
}`,[
|
|
1164
|
+
}`,[Ot]),Qt=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
1088
1165
|
__typename
|
|
1089
1166
|
date
|
|
1090
1167
|
deposits {
|
|
@@ -1093,111 +1170,111 @@
|
|
|
1093
1170
|
borrows {
|
|
1094
1171
|
...ExchangeAmount
|
|
1095
1172
|
}
|
|
1096
|
-
}`,[
|
|
1173
|
+
}`,[i]),Wa=e(`query ProtocolHistory($request: ProtocolHistoryRequest!) {
|
|
1097
1174
|
value: protocolHistory(request: $request) {
|
|
1098
1175
|
...ProtocolHistorySample
|
|
1099
1176
|
}
|
|
1100
|
-
}`,[
|
|
1177
|
+
}`,[Qt]);var La=e(`query BorrowApyHistory($request: BorrowApyHistoryRequest!) {
|
|
1101
1178
|
value: borrowApyHistory(request: $request) {
|
|
1102
1179
|
...ApySample
|
|
1103
1180
|
}
|
|
1104
|
-
}`,[
|
|
1181
|
+
}`,[G]),Ma=e(`query SupplyApyHistory($request: SupplyApyHistoryRequest!) {
|
|
1105
1182
|
value: supplyApyHistory(request: $request) {
|
|
1106
1183
|
...ApySample
|
|
1107
1184
|
}
|
|
1108
|
-
}`,[
|
|
1185
|
+
}`,[G]),Va=e(`query Reserve($request: ReserveRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1109
1186
|
value: reserve(request: $request) {
|
|
1110
1187
|
...Reserve
|
|
1111
1188
|
}
|
|
1112
|
-
}`,[
|
|
1189
|
+
}`,[T]),Ka=e(`query Reserves($request: ReservesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1113
1190
|
value: reserves(request: $request) {
|
|
1114
1191
|
...Reserve
|
|
1115
1192
|
}
|
|
1116
|
-
}`,[
|
|
1193
|
+
}`,[T]);var Za=e(`query Spoke($request: SpokeRequest!) {
|
|
1117
1194
|
value: spoke(request: $request) {
|
|
1118
1195
|
...Spoke
|
|
1119
1196
|
}
|
|
1120
|
-
}`,[
|
|
1197
|
+
}`,[u]),ja=e(`query Spokes($request: SpokesRequest!) {
|
|
1121
1198
|
value: spokes(request: $request) {
|
|
1122
1199
|
...Spoke
|
|
1123
1200
|
}
|
|
1124
|
-
}`,[
|
|
1201
|
+
}`,[u]),Ja=e(`query SpokePositionManagers($request: SpokePositionManagersRequest!) {
|
|
1125
1202
|
value: spokePositionManagers(request: $request) {
|
|
1126
1203
|
...PaginatedSpokePositionManagerResult
|
|
1127
1204
|
}
|
|
1128
|
-
}`,[
|
|
1205
|
+
}`,[ae]),Xa=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
1129
1206
|
value: spokeUserPositionManagers(request: $request) {
|
|
1130
1207
|
...PaginatedSpokeUserPositionManagerResult
|
|
1131
1208
|
}
|
|
1132
|
-
}`,[
|
|
1209
|
+
}`,[ne]);var an=e(`query TokenSwapQuote($request: TokenSwapQuoteRequest!, $currency: Currency!) {
|
|
1133
1210
|
value: tokenSwapQuote(request: $request) {
|
|
1134
1211
|
...TokenSwapQuoteResult
|
|
1135
1212
|
}
|
|
1136
|
-
}`,[
|
|
1213
|
+
}`,[se]),nn=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
1137
1214
|
value: swappableTokens(request: $request) {
|
|
1138
1215
|
...Token
|
|
1139
1216
|
}
|
|
1140
|
-
}`,[
|
|
1217
|
+
}`,[Z]),on=e(`query PrepareTokenSwap($request: PrepareTokenSwapRequest!) {
|
|
1141
1218
|
value: prepareTokenSwap(request: $request) {
|
|
1142
1219
|
...PrepareTokenSwapResult
|
|
1143
1220
|
}
|
|
1144
|
-
}`,[
|
|
1221
|
+
}`,[ie]),pn=e(`query SwapStatus($request: SwapStatusRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1145
1222
|
value: swapStatus(request: $request) {
|
|
1146
1223
|
...SwapStatus
|
|
1147
1224
|
}
|
|
1148
|
-
}`,[
|
|
1225
|
+
}`,[M]),sn=e(`mutation Swap($request: SwapRequest!) {
|
|
1149
1226
|
value: swap(request: $request) {
|
|
1150
1227
|
...SwapExecutionPlan
|
|
1151
1228
|
}
|
|
1152
|
-
}`,[ue]),
|
|
1229
|
+
}`,[ue]),un=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
1153
1230
|
value: prepareSwapCancel(request: $request) {
|
|
1154
1231
|
...PrepareSwapCancelResult
|
|
1155
1232
|
}
|
|
1156
|
-
}`,[me]),
|
|
1233
|
+
}`,[me]),mn=e(`mutation CancelSwap($request: CancelSwapRequest!) {
|
|
1157
1234
|
value: cancelSwap(request: $request) {
|
|
1158
1235
|
...CancelSwapExecutionPlan
|
|
1159
1236
|
}
|
|
1160
|
-
}`,[ye]),
|
|
1237
|
+
}`,[ye]),yn=e(`query UserSwaps($request: UserSwapsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1161
1238
|
value: userSwaps(request: $request) {
|
|
1162
1239
|
...PaginatedUserSwapsResult
|
|
1163
1240
|
}
|
|
1164
|
-
}`,[ce]),
|
|
1241
|
+
}`,[ce]),cn=e(`query SupplySwapQuote($request: SupplySwapQuoteRequest!, $currency: Currency!) {
|
|
1165
1242
|
value: supplySwapQuote(request: $request) {
|
|
1166
1243
|
...SupplySwapQuoteResult
|
|
1167
1244
|
}
|
|
1168
|
-
}`,[le]),
|
|
1245
|
+
}`,[le]),ln=e(`query BorrowSwapQuote($request: BorrowSwapQuoteRequest!, $currency: Currency!) {
|
|
1169
1246
|
value: borrowSwapQuote(request: $request) {
|
|
1170
1247
|
...BorrowSwapQuoteResult
|
|
1171
1248
|
}
|
|
1172
|
-
}`,[ge]),
|
|
1249
|
+
}`,[ge]),gn=e(`query RepayWithSupplyQuote($request: RepayWithSupplyQuoteRequest!, $currency: Currency!) {
|
|
1173
1250
|
value: repayWithSupplyQuote(request: $request) {
|
|
1174
1251
|
...RepayWithSupplyQuoteResult
|
|
1175
1252
|
}
|
|
1176
|
-
}`,[Se]),
|
|
1253
|
+
}`,[Se]),Sn=e(`query WithdrawSwapQuote($request: WithdrawSwapQuoteRequest!, $currency: Currency!) {
|
|
1177
1254
|
value: withdrawSwapQuote(request: $request) {
|
|
1178
1255
|
...WithdrawSwapQuoteResult
|
|
1179
1256
|
}
|
|
1180
|
-
}`,[de]),
|
|
1257
|
+
}`,[de]),dn=e(`query PreparePositionSwap($request: PreparePositionSwapRequest!) {
|
|
1181
1258
|
value: preparePositionSwap(request: $request) {
|
|
1182
1259
|
...PreparePositionSwapResult
|
|
1183
1260
|
}
|
|
1184
|
-
}`,[fe]);var
|
|
1261
|
+
}`,[fe]);var qn=e(`query Borrow($request: BorrowRequest!) {
|
|
1185
1262
|
value: borrow(request: $request) {
|
|
1186
1263
|
...ExecutionPlan
|
|
1187
1264
|
}
|
|
1188
|
-
}`,[
|
|
1265
|
+
}`,[C]),xn=e(`query Supply($request: SupplyRequest!) {
|
|
1189
1266
|
value: supply(request: $request) {
|
|
1190
1267
|
...ExecutionPlan
|
|
1191
1268
|
}
|
|
1192
|
-
}`,[
|
|
1269
|
+
}`,[C]),An=e(`query Repay($request: RepayRequest!) {
|
|
1193
1270
|
value: repay(request: $request) {
|
|
1194
1271
|
...ExecutionPlan
|
|
1195
1272
|
}
|
|
1196
|
-
}`,[
|
|
1273
|
+
}`,[C]),hn=e(`query Withdraw($request: WithdrawRequest!) {
|
|
1197
1274
|
value: withdraw(request: $request) {
|
|
1198
1275
|
...ExecutionPlan
|
|
1199
1276
|
}
|
|
1200
|
-
}`,[
|
|
1277
|
+
}`,[C]),Wt=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1201
1278
|
__typename
|
|
1202
1279
|
... on TransactionRequest {
|
|
1203
1280
|
...TransactionRequest
|
|
@@ -1208,27 +1285,27 @@
|
|
|
1208
1285
|
... on InsufficientBalanceError {
|
|
1209
1286
|
...InsufficientBalanceError
|
|
1210
1287
|
}
|
|
1211
|
-
}`,[m,
|
|
1288
|
+
}`,[m,L,A]),Pn=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1212
1289
|
value: liquidatePosition(request: $request) {
|
|
1213
1290
|
...LiquidatePositionExecutionPlan
|
|
1214
1291
|
}
|
|
1215
|
-
}`,[
|
|
1292
|
+
}`,[Wt]),Fn=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1216
1293
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1217
1294
|
...TransactionRequest
|
|
1218
1295
|
}
|
|
1219
|
-
}`,[m]),
|
|
1296
|
+
}`,[m]),In=e(`query SetUserSuppliesAsCollateral($request: SetUserSuppliesAsCollateralRequest!) {
|
|
1220
1297
|
value: setUserSuppliesAsCollateral(request: $request) {
|
|
1221
1298
|
...TransactionRequest
|
|
1222
1299
|
}
|
|
1223
|
-
}`,[m]),
|
|
1300
|
+
}`,[m]),Tn=e(`query RenounceSpokeUserPositionManager($request: RenounceSpokeUserPositionManagerRequest!) {
|
|
1224
1301
|
value: renounceSpokeUserPositionManager(request: $request) {
|
|
1225
1302
|
...TransactionRequest
|
|
1226
1303
|
}
|
|
1227
|
-
}`,[m]),
|
|
1304
|
+
}`,[m]),kn=e(`query UpdateUserPositionConditions($request: UpdateUserPositionConditionsRequest!) {
|
|
1228
1305
|
value: updateUserPositionConditions(request: $request) {
|
|
1229
1306
|
...TransactionRequest
|
|
1230
1307
|
}
|
|
1231
|
-
}`,[m])
|
|
1308
|
+
}`,[m]),$t=e(`fragment CollateralFactorVariation on CollateralFactorVariation {
|
|
1232
1309
|
__typename
|
|
1233
1310
|
reserveId
|
|
1234
1311
|
token {
|
|
@@ -1240,7 +1317,7 @@
|
|
|
1240
1317
|
after {
|
|
1241
1318
|
...PercentNumber
|
|
1242
1319
|
}
|
|
1243
|
-
}`,[l,a]),
|
|
1320
|
+
}`,[l,a]),Nt=e(`fragment LiquidationFeeVariation on LiquidationFeeVariation {
|
|
1244
1321
|
__typename
|
|
1245
1322
|
reserveId
|
|
1246
1323
|
token {
|
|
@@ -1252,7 +1329,7 @@
|
|
|
1252
1329
|
after {
|
|
1253
1330
|
...PercentNumber
|
|
1254
1331
|
}
|
|
1255
|
-
}`,[l,a]),
|
|
1332
|
+
}`,[l,a]),Dt=e(`fragment MaxLiquidationBonusVariation on MaxLiquidationBonusVariation {
|
|
1256
1333
|
__typename
|
|
1257
1334
|
reserveId
|
|
1258
1335
|
token {
|
|
@@ -1264,7 +1341,7 @@
|
|
|
1264
1341
|
after {
|
|
1265
1342
|
...PercentNumber
|
|
1266
1343
|
}
|
|
1267
|
-
}`,[l,a]),
|
|
1344
|
+
}`,[l,a]),Lt=e(`fragment UserPositionConditionVariation on UserPositionConditionVariation {
|
|
1268
1345
|
__typename
|
|
1269
1346
|
... on CollateralFactorVariation {
|
|
1270
1347
|
...CollateralFactorVariation
|
|
@@ -1275,7 +1352,7 @@
|
|
|
1275
1352
|
... on MaxLiquidationBonusVariation {
|
|
1276
1353
|
...MaxLiquidationBonusVariation
|
|
1277
1354
|
}
|
|
1278
|
-
}`,[
|
|
1355
|
+
}`,[$t,Nt,Dt]),Mt=e(`fragment PreviewUserPosition on PreviewUserPosition {
|
|
1279
1356
|
__typename
|
|
1280
1357
|
id
|
|
1281
1358
|
healthFactor {
|
|
@@ -1302,11 +1379,11 @@
|
|
|
1302
1379
|
otherConditions {
|
|
1303
1380
|
...UserPositionConditionVariation
|
|
1304
1381
|
}
|
|
1305
|
-
}`,[
|
|
1382
|
+
}`,[te,J,X,Lt]),vn=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD) {
|
|
1306
1383
|
value: preview(request: $request) {
|
|
1307
1384
|
...PreviewUserPosition
|
|
1308
1385
|
}
|
|
1309
|
-
}`,[
|
|
1386
|
+
}`,[Mt]),Fe=e(`fragment PercentNumberChangeSnapshot on PercentNumberChangeSnapshot {
|
|
1310
1387
|
__typename
|
|
1311
1388
|
before {
|
|
1312
1389
|
...PercentNumber
|
|
@@ -1314,7 +1391,7 @@
|
|
|
1314
1391
|
after {
|
|
1315
1392
|
...PercentNumber
|
|
1316
1393
|
}
|
|
1317
|
-
}`,[a]),
|
|
1394
|
+
}`,[a]),Vt=e(`fragment BorrowActivity on BorrowActivity {
|
|
1318
1395
|
__typename
|
|
1319
1396
|
id
|
|
1320
1397
|
user
|
|
@@ -1332,7 +1409,7 @@
|
|
|
1332
1409
|
chain {
|
|
1333
1410
|
...Chain
|
|
1334
1411
|
}
|
|
1335
|
-
}`,[
|
|
1412
|
+
}`,[u,s,d,n]),Kt=e(`fragment SupplyActivity on SupplyActivity {
|
|
1336
1413
|
__typename
|
|
1337
1414
|
id
|
|
1338
1415
|
user
|
|
@@ -1350,7 +1427,7 @@
|
|
|
1350
1427
|
chain {
|
|
1351
1428
|
...Chain
|
|
1352
1429
|
}
|
|
1353
|
-
}`,[
|
|
1430
|
+
}`,[u,s,d,n]),Gt=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1354
1431
|
__typename
|
|
1355
1432
|
id
|
|
1356
1433
|
user
|
|
@@ -1368,7 +1445,7 @@
|
|
|
1368
1445
|
chain {
|
|
1369
1446
|
...Chain
|
|
1370
1447
|
}
|
|
1371
|
-
}`,[
|
|
1448
|
+
}`,[u,s,d,n]),Yt=e(`fragment RepayActivity on RepayActivity {
|
|
1372
1449
|
__typename
|
|
1373
1450
|
id
|
|
1374
1451
|
user
|
|
@@ -1386,7 +1463,7 @@
|
|
|
1386
1463
|
chain {
|
|
1387
1464
|
...Chain
|
|
1388
1465
|
}
|
|
1389
|
-
}`,[
|
|
1466
|
+
}`,[u,s,d,n]),zt=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1390
1467
|
__typename
|
|
1391
1468
|
id
|
|
1392
1469
|
user
|
|
@@ -1411,7 +1488,7 @@
|
|
|
1411
1488
|
chain {
|
|
1412
1489
|
...Chain
|
|
1413
1490
|
}
|
|
1414
|
-
}`,[
|
|
1491
|
+
}`,[u,s,d,n]),Zt=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1415
1492
|
__typename
|
|
1416
1493
|
id
|
|
1417
1494
|
user
|
|
@@ -1427,7 +1504,7 @@
|
|
|
1427
1504
|
chain {
|
|
1428
1505
|
...Chain
|
|
1429
1506
|
}
|
|
1430
|
-
}`,[
|
|
1507
|
+
}`,[u,d,n]),jt=e(`fragment UpdatedDynamicConfigActivity on UpdatedDynamicConfigActivity {
|
|
1431
1508
|
__typename
|
|
1432
1509
|
id
|
|
1433
1510
|
user
|
|
@@ -1451,7 +1528,7 @@
|
|
|
1451
1528
|
chain {
|
|
1452
1529
|
...Chain
|
|
1453
1530
|
}
|
|
1454
|
-
}`,[
|
|
1531
|
+
}`,[u,d,Fe,n]),Jt=e(`fragment UpdatedRiskPremiumActivity on UpdatedRiskPremiumActivity {
|
|
1455
1532
|
__typename
|
|
1456
1533
|
id
|
|
1457
1534
|
user
|
|
@@ -1466,7 +1543,7 @@
|
|
|
1466
1543
|
chain {
|
|
1467
1544
|
...Chain
|
|
1468
1545
|
}
|
|
1469
|
-
}`,[
|
|
1546
|
+
}`,[u,Fe,n]),Xt=e(`fragment TokenSwapActivity on TokenSwapActivity {
|
|
1470
1547
|
__typename
|
|
1471
1548
|
id
|
|
1472
1549
|
user
|
|
@@ -1475,14 +1552,17 @@
|
|
|
1475
1552
|
chain {
|
|
1476
1553
|
...Chain
|
|
1477
1554
|
}
|
|
1478
|
-
|
|
1479
|
-
...
|
|
1555
|
+
sell {
|
|
1556
|
+
...TokenAmount
|
|
1480
1557
|
}
|
|
1481
|
-
|
|
1482
|
-
...
|
|
1558
|
+
buy {
|
|
1559
|
+
...TokenAmount
|
|
1483
1560
|
}
|
|
1484
1561
|
explorerUrl
|
|
1485
|
-
|
|
1562
|
+
orderClass
|
|
1563
|
+
kind
|
|
1564
|
+
status
|
|
1565
|
+
}`,[n,S]),er=e(`fragment SupplySwapActivity on SupplySwapActivity {
|
|
1486
1566
|
__typename
|
|
1487
1567
|
id
|
|
1488
1568
|
user
|
|
@@ -1491,14 +1571,17 @@
|
|
|
1491
1571
|
chain {
|
|
1492
1572
|
...Chain
|
|
1493
1573
|
}
|
|
1494
|
-
|
|
1495
|
-
...
|
|
1574
|
+
sell {
|
|
1575
|
+
...PositionAmount
|
|
1496
1576
|
}
|
|
1497
|
-
|
|
1498
|
-
...
|
|
1577
|
+
buy {
|
|
1578
|
+
...PositionAmount
|
|
1499
1579
|
}
|
|
1500
1580
|
explorerUrl
|
|
1501
|
-
|
|
1581
|
+
orderClass
|
|
1582
|
+
kind
|
|
1583
|
+
status
|
|
1584
|
+
}`,[n,w]),tr=e(`fragment BorrowSwapActivity on BorrowSwapActivity {
|
|
1502
1585
|
__typename
|
|
1503
1586
|
id
|
|
1504
1587
|
user
|
|
@@ -1507,14 +1590,17 @@
|
|
|
1507
1590
|
chain {
|
|
1508
1591
|
...Chain
|
|
1509
1592
|
}
|
|
1510
|
-
|
|
1511
|
-
...
|
|
1593
|
+
sell {
|
|
1594
|
+
...PositionAmount
|
|
1512
1595
|
}
|
|
1513
|
-
|
|
1514
|
-
...
|
|
1596
|
+
buy {
|
|
1597
|
+
...PositionAmount
|
|
1515
1598
|
}
|
|
1516
1599
|
explorerUrl
|
|
1517
|
-
|
|
1600
|
+
orderClass
|
|
1601
|
+
kind
|
|
1602
|
+
status
|
|
1603
|
+
}`,[n,w]),rr=e(`fragment RepayWithSupplyActivity on RepayWithSupplyActivity {
|
|
1518
1604
|
__typename
|
|
1519
1605
|
id
|
|
1520
1606
|
user
|
|
@@ -1523,14 +1609,17 @@
|
|
|
1523
1609
|
chain {
|
|
1524
1610
|
...Chain
|
|
1525
1611
|
}
|
|
1526
|
-
|
|
1527
|
-
...
|
|
1612
|
+
repay {
|
|
1613
|
+
...PositionAmount
|
|
1528
1614
|
}
|
|
1529
|
-
|
|
1530
|
-
...
|
|
1615
|
+
supply {
|
|
1616
|
+
...PositionAmount
|
|
1531
1617
|
}
|
|
1532
1618
|
explorerUrl
|
|
1533
|
-
|
|
1619
|
+
orderClass
|
|
1620
|
+
kind
|
|
1621
|
+
status
|
|
1622
|
+
}`,[n,w]),ar=e(`fragment WithdrawSwapActivity on WithdrawSwapActivity {
|
|
1534
1623
|
__typename
|
|
1535
1624
|
id
|
|
1536
1625
|
user
|
|
@@ -1539,14 +1628,17 @@
|
|
|
1539
1628
|
chain {
|
|
1540
1629
|
...Chain
|
|
1541
1630
|
}
|
|
1542
|
-
|
|
1543
|
-
...
|
|
1631
|
+
withdraw {
|
|
1632
|
+
...PositionAmount
|
|
1544
1633
|
}
|
|
1545
|
-
|
|
1546
|
-
...
|
|
1634
|
+
buy {
|
|
1635
|
+
...TokenAmount
|
|
1547
1636
|
}
|
|
1548
1637
|
explorerUrl
|
|
1549
|
-
|
|
1638
|
+
orderClass
|
|
1639
|
+
kind
|
|
1640
|
+
status
|
|
1641
|
+
}`,[n,w,S]),nr=e(`fragment ActivityItem on ActivityItem {
|
|
1550
1642
|
__typename
|
|
1551
1643
|
... on BorrowActivity {
|
|
1552
1644
|
...BorrowActivity
|
|
@@ -1587,7 +1679,7 @@
|
|
|
1587
1679
|
... on WithdrawSwapActivity {
|
|
1588
1680
|
...WithdrawSwapActivity
|
|
1589
1681
|
}
|
|
1590
|
-
}`,[
|
|
1682
|
+
}`,[Vt,Kt,Gt,Yt,zt,Zt,jt,Jt,Xt,er,tr,rr,ar]),or=e(`fragment PaginatedActivitiesResult on PaginatedActivitiesResult {
|
|
1591
1683
|
__typename
|
|
1592
1684
|
items {
|
|
1593
1685
|
...ActivityItem
|
|
@@ -1595,41 +1687,41 @@
|
|
|
1595
1687
|
pageInfo {
|
|
1596
1688
|
...PaginatedResultInfo
|
|
1597
1689
|
}
|
|
1598
|
-
}`,[
|
|
1690
|
+
}`,[nr,h]),En=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1599
1691
|
value: activities(request: $request) {
|
|
1600
1692
|
...PaginatedActivitiesResult
|
|
1601
1693
|
}
|
|
1602
|
-
}`,[
|
|
1694
|
+
}`,[or]);var On=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1603
1695
|
value: userSupplies(request: $request) {
|
|
1604
1696
|
...UserSupplyItem
|
|
1605
1697
|
}
|
|
1606
|
-
}`,[Re]),
|
|
1698
|
+
}`,[Re]),_n=e(`query UserBorrows($request: UserBorrowsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1607
1699
|
value: userBorrows(request: $request) {
|
|
1608
1700
|
...UserBorrowItem
|
|
1609
1701
|
}
|
|
1610
|
-
}`,[
|
|
1702
|
+
}`,[we]),Bn=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1611
1703
|
value: userSummary(request: $request) {
|
|
1612
1704
|
...UserSummary
|
|
1613
1705
|
}
|
|
1614
|
-
}`,[
|
|
1706
|
+
}`,[qe]),Hn=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1615
1707
|
value: userPositions(request: $request) {
|
|
1616
1708
|
...UserPosition
|
|
1617
1709
|
}
|
|
1618
|
-
}`,[
|
|
1710
|
+
}`,[K]),Qn=e(`query UserPosition($request: UserPositionRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1619
1711
|
value: userPosition(request: $request) {
|
|
1620
1712
|
...UserPosition
|
|
1621
1713
|
}
|
|
1622
|
-
}`,[
|
|
1714
|
+
}`,[K]),Wn=e(`query UserBalances($request: UserBalancesRequest!, $currency: Currency!) {
|
|
1623
1715
|
value: userBalances(request: $request) {
|
|
1624
1716
|
...UserBalance
|
|
1625
1717
|
}
|
|
1626
|
-
}`,[
|
|
1718
|
+
}`,[xe]),$n=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1627
1719
|
value: userSummaryHistory(request: $request) {
|
|
1628
1720
|
...UserSummaryHistoryItem
|
|
1629
1721
|
}
|
|
1630
|
-
}`,[Ae]),
|
|
1722
|
+
}`,[Ae]),Nn=e(`query UserRiskPremiumBreakdown($request: UserRiskPremiumBreakdownRequest!) {
|
|
1631
1723
|
value: userRiskPremiumBreakdown(request: $request) {
|
|
1632
1724
|
...UserRiskPremiumBreakdownItem
|
|
1633
1725
|
}
|
|
1634
|
-
}`,[
|
|
1726
|
+
}`,[V]);exports.ActivitiesQuery=En;exports.ActivityItemFragment=nr;exports.ActivityType=be;exports.ApyMetric=Ce;exports.ApySampleFragment=G;exports.AssetAmountWithChangeFragment=_t;exports.AssetBorrowHistoryQuery=Qa;exports.AssetBorrowSampleFragment=Ot;exports.AssetFragment=Ht;exports.AssetPriceHistoryQuery=Ba;exports.AssetPriceSampleFragment=Ct;exports.AssetQuery=_a;exports.AssetSampleBreakdownFragment=Pe;exports.AssetSummaryFragment=Bt;exports.AssetSupplyHistoryQuery=Ha;exports.AssetSupplySampleFragment=Ut;exports.BorrowActivityFragment=Vt;exports.BorrowApyHistoryQuery=La;exports.BorrowQuery=qn;exports.BorrowSwapActivityFragment=tr;exports.BorrowSwapFragment=gt;exports.BorrowSwapKind=Be;exports.BorrowSwapQuoteQuery=ln;exports.BorrowSwapQuoteResultFragment=ge;exports.CancelSwapExecutionPlanFragment=ye;exports.CancelSwapMutation=mn;exports.ChainFragment=n;exports.ChainQuery=Ta;exports.ChainsFilter=Ee;exports.ChainsQuery=ka;exports.CollateralFactorVariationFragment=$t;exports.CollateralMetric=Ue;exports.Currency=Oe;exports.DecimalNumberFragment=c;exports.DecimalNumberWithChangeFragment=Y;exports.DomainDataFragment=_;exports.Erc20AmountFragment=s;exports.Erc20ApprovalFragment=D;exports.Erc20ApprovalRequiredFragment=L;exports.Erc20TokenFragment=l;exports.ExchangeAmountFragment=i;exports.ExchangeAmountVariationFragment=X;exports.ExchangeAmountWithChangeFragment=x;exports.ExchangeRateQuery=ba;exports.ExecutionPlanFragment=C;exports.HasProcessedKnownTransactionQuery=va;exports.HealthFactorErrorFragment=Ze;exports.HealthFactorResultFragment=te;exports.HealthFactorVariationFragment=ze;exports.HealthFactorWithChangeFragment=ee;exports.HealthQuery=Ea;exports.HubAssetFragment=b;exports.HubAssetSettingsFragment=Xe;exports.HubAssetSummaryFragment=Je;exports.HubAssetUserStateFragment=et;exports.HubAssetsQuery=zr;exports.HubFragment=P;exports.HubQuery=Gr;exports.HubSummaryFragment=je;exports.HubSummaryHistoryQuery=Zr;exports.HubSummarySampleFragment=kt;exports.HubsQuery=Yr;exports.InsufficientBalanceErrorFragment=A;exports.InsufficientLiquidityErrorFragment=I;exports.LiquidatePositionExecutionPlanFragment=Wt;exports.LiquidatePositionQuery=Pn;exports.LiquidatedActivityFragment=zt;exports.LiquidationFeeVariationFragment=Nt;exports.MaxLiquidationBonusVariationFragment=Dt;exports.NativeAmountFragment=Ye;exports.NativeTokenFragment=z;exports.OperationType=ve;exports.OrderDirection=Ie;exports.PageSize=Te;exports.PaginatedActivitiesResultFragment=or;exports.PaginatedResultInfoFragment=h;exports.PaginatedSpokePositionManagerResultFragment=ae;exports.PaginatedSpokeUserPositionManagerResultFragment=ne;exports.PaginatedUserSwapsResultFragment=ce;exports.PercentNumberChangeSnapshotFragment=Fe;exports.PercentNumberFragment=a;exports.PercentNumberVariationFragment=J;exports.PercentNumberWithChangeFragment=j;exports.PermitTypedDataFragment=re;exports.PositionAmountFragment=w;exports.PositionSwapAdapterContractApprovalFragment=Pt;exports.PositionSwapApprovalFragment=It;exports.PositionSwapByIntentApprovalsRequiredFragment=Q;exports.PositionSwapPositionManagerApprovalFragment=Ft;exports.PreContractActionRequiredFragment=st;exports.PreparePositionSwapQuery=dn;exports.PreparePositionSwapResultFragment=fe;exports.PrepareSwapCancelQuery=un;exports.PrepareSwapCancelResultFragment=me;exports.PrepareSwapOrderFragment=oe;exports.PrepareTokenSwapQuery=on;exports.PrepareTokenSwapResultFragment=ie;exports.PreviewQuery=vn;exports.PreviewUserPositionFragment=Mt;exports.ProtocolHistoryQuery=Wa;exports.ProtocolHistorySampleFragment=Qt;exports.QuoteAccuracy=Le;exports.RenounceSpokeUserPositionManagerQuery=Tn;exports.RepayActivityFragment=Yt;exports.RepayQuery=An;exports.RepayWithSupplyActivityFragment=rr;exports.RepayWithSupplyFragment=St;exports.RepayWithSupplyKind=He;exports.RepayWithSupplyQuoteQuery=gn;exports.RepayWithSupplyQuoteResultFragment=Se;exports.ReserveFragment=T;exports.ReserveInfoFragment=d;exports.ReserveQuery=Va;exports.ReserveSettingsFragment=at;exports.ReserveStatusFragment=nt;exports.ReserveSummaryFragment=ot;exports.ReserveUserStateFragment=pt;exports.ReservesQuery=Ka;exports.ReservesRequestFilter=_e;exports.SetSpokeUserPositionManagerQuery=Fn;exports.SetUserSuppliesAsCollateralQuery=In;exports.SpokeFragment=u;exports.SpokePositionManagerFragment=tt;exports.SpokePositionManagersQuery=Ja;exports.SpokeQuery=Za;exports.SpokeUserPositionManagerFragment=rt;exports.SpokeUserPositionManagersQuery=Xa;exports.SpokesQuery=ja;exports.SupplyActivityFragment=Kt;exports.SupplyApyHistoryQuery=Ma;exports.SupplyQuery=xn;exports.SupplySwapActivityFragment=er;exports.SupplySwapFragment=lt;exports.SupplySwapKind=Qe;exports.SupplySwapQuoteQuery=cn;exports.SupplySwapQuoteResultFragment=le;exports.SwapActivityStatus=Ve;exports.SwapByIntentFragment=ut;exports.SwapByIntentWithApprovalRequiredFragment=mt;exports.SwapByTransactionFragment=yt;exports.SwapCancelledFragment=Rt;exports.SwapCancelledResultFragment=ht;exports.SwapExecutionPlanFragment=ue;exports.SwapExpiredFragment=wt;exports.SwapFulfilledFragment=At;exports.SwapMutation=sn;exports.SwapOpenFragment=qt;exports.SwapOperationFragment=U;exports.SwapOrderClass=Me;exports.SwapPendingSignatureFragment=xt;exports.SwapQuoteCostsFragment=it;exports.SwapQuoteFragment=B;exports.SwapReceiptFragment=pe;exports.SwapStatusFilter=$e;exports.SwapStatusFragment=M;exports.SwapStatusQuery=pn;exports.SwapTransactionRequestFragment=ct;exports.SwapTypedDataFragment=H;exports.SwappableTokensQuery=nn;exports.TimeWindow=ke;exports.TokenAmountFragment=S;exports.TokenCategory=Ne;exports.TokenFragment=Z;exports.TokenInfoFragment=E;exports.TokenSwapActivityFragment=Xt;exports.TokenSwapFragment=ft;exports.TokenSwapKind=Ke;exports.TokenSwapQuoteQuery=an;exports.TokenSwapQuoteResultFragment=se;exports.TransactionRequestFragment=m;exports.UpdateUserPositionConditionsQuery=kn;exports.UpdatedDynamicConfigActivityFragment=jt;exports.UpdatedRiskPremiumActivityFragment=Jt;exports.UserBalanceFragment=xe;exports.UserBalancesQuery=Wn;exports.UserBorrowItemFragment=we;exports.UserBorrowsQuery=_n;exports.UserPositionConditionVariationFragment=Lt;exports.UserPositionConditionsUpdate=De;exports.UserPositionFragment=K;exports.UserPositionQuery=Qn;exports.UserPositionRiskPremiumFragment=Tt;exports.UserPositionsQuery=Hn;exports.UserRiskPremiumBreakdownItemFragment=V;exports.UserRiskPremiumBreakdownQuery=Nn;exports.UserSummaryFragment=qe;exports.UserSummaryHistoryItemFragment=Ae;exports.UserSummaryHistoryQuery=$n;exports.UserSummaryQuery=Bn;exports.UserSuppliesQuery=On;exports.UserSupplyItemFragment=Re;exports.UserSwapsQuery=yn;exports.UsingAsCollateralActivityFragment=Zt;exports.WithdrawActivityFragment=Gt;exports.WithdrawQuery=hn;exports.WithdrawSwapActivityFragment=ar;exports.WithdrawSwapFragment=dt;exports.WithdrawSwapKind=We;exports.WithdrawSwapQuoteQuery=Sn;exports.WithdrawSwapQuoteResultFragment=de;exports.assetId=Xr;exports.decodeHubId=ta;exports.decodeReserveId=na;exports.decodeSpokeId=ya;exports.decodeUserPositionId=pa;exports.encodeHubId=ea;exports.encodeReserveId=oa;exports.encodeSpokeId=ma;exports.encodeUserPositionId=sa;exports.graphql=e;exports.hubAssetId=ra;exports.hubId=vt;exports.isChainIdsVariant=wa;exports.isERC20PermitSignature=qr;exports.isHubInputVariant=Ra;exports.isReserveInputVariant=Aa;exports.isSpokeInputVariant=xa;exports.isTokensVariant=qa;exports.isTxHashInputVariant=ha;exports.reserveId=aa;exports.spokeId=bt;exports.swapId=ia;exports.swapQuoteId=ua;exports.tokenInfoId=Sa;exports.userBalanceId=ca;exports.userBorrowItemId=la;exports.userPositionId=Et;exports.userSupplyItemId=ga;//# sourceMappingURL=index.cjs.map
|
|
1635
1727
|
//# sourceMappingURL=index.cjs.map
|