@aave/graphql 1.0.0-next.25 → 1.0.0-next.27
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 +295 -196
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +102168 -22919
- package/dist/index.d.ts +102168 -22919
- package/dist/index.js +295 -196
- 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 +7424 -817
- package/dist/testing.js +2 -2
- package/dist/testing.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var gql_tada=require('gql.tada'),types=require('@aave/types');var
|
|
1
|
+
'use strict';var gql_tada=require('gql.tada'),types=require('@aave/types');var ke=(r=>(r.Asc="ASC",r.Desc="DESC",r))(ke||{}),ve=(r=>(r.Ten="TEN",r.Fifty="FIFTY",r))(ve||{}),be=(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))(be||{}),Ee=(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))(Ee||{}),Ce=(o=>(o.TESTNET_ONLY="TESTNET_ONLY",o.MAINNET_ONLY="MAINNET_ONLY",o.ALL="ALL",o))(Ce||{}),Ue=(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))(Ue||{}),Oe=(o=>(o.Highest="HIGHEST",o.Lowest="LOWEST",o.Average="AVERAGE",o))(Oe||{}),_e=(r=>(r.Highest="HIGHEST",r.Lowest="LOWEST",r))(_e||{}),Be=(o=>(o.Usd="USD",o.Eur="EUR",o.Gbp="GBP",o))(Be||{}),He=(R=>(R.Supply="SUPPLY",R.Borrow="BORROW",R.Collateral="COLLATERAL",R.All="ALL",R))(He||{}),Qe=(r=>(r.Current="CURRENT",r.New="NEW",r))(Qe||{}),We=(r=>(r.Repay="REPAY",r.Supply="SUPPLY",r))(We||{}),$e=(r=>(r.Current="CURRENT",r.New="NEW",r))($e||{}),Ne=(r=>(r.Withdraw="WITHDRAW",r.Buy="BUY",r))(Ne||{}),De=(v=>(v.Cancelled="CANCELLED",v.Expired="EXPIRED",v.Fulfilled="FULFILLED",v.Open="OPEN",v.PendingSignature="PENDING_SIGNATURE",v))(De||{}),Le=(r=>(r.Stablecoin="STABLECOIN",r.EthCorrelated="ETH_CORRELATED",r))(Le||{}),Me=(r=>(r.AllDynamicConfig="ALL_DYNAMIC_CONFIG",r.JustRiskPremium="JUST_RISK_PREMIUM",r))(Me||{}),Ve=(r=>(r.Fast="FAST",r.Accurate="ACCURATE",r))(Ve||{}),Ke=(r=>(r.Market="MARKET",r.Limit="LIMIT",r))(Ke||{}),Ge=(r=>(r.Buy="BUY",r.Sell="SELL",r))(Ge||{});var e=gql_tada.initGraphQLTada();var B=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
|
+
}`),Z=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
|
+
}`),b=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
|
+
}`,[b]),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
|
+
}`,[b,n]),j=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
|
+
}`,[b,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
|
-
}`,[l,c,
|
|
87
|
+
}`,[l,c,i]),L=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
|
+
}`,[j,c,i]),x=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,L]),J=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,j]),w=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]),X=e(`fragment PercentNumberWithChange on PercentNumberWithChange {
|
|
126
126
|
__typename
|
|
127
127
|
current {
|
|
128
128
|
...PercentNumber
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
__typename
|
|
135
135
|
prev
|
|
136
136
|
next
|
|
137
|
-
}`),
|
|
137
|
+
}`),ee=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]),te=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]),re=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
|
+
}`),ae=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]),q=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]),F=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,w,a]),h=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
|
-
}`,[p,a]),
|
|
238
|
+
}`,[p,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
|
-
}`,[p]),
|
|
251
|
+
}`,[p]),E=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
|
-
}`,[h,l,
|
|
270
|
+
}`,[h,l,Je,Xe,et]);var ne=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
|
+
}`,[B]);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
|
+
}`),oe=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,A]),rt=e(`fragment SpokeUserPositionManager on SpokeUserPositionManager {
|
|
297
300
|
__typename
|
|
298
301
|
address
|
|
299
302
|
approvedOn
|
|
300
303
|
active
|
|
301
304
|
name
|
|
302
|
-
}`),
|
|
305
|
+
}`),pe=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,A]);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
|
-
}`,[p,a]),
|
|
350
|
+
}`,[p,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
|
-
}`,[p,a]),
|
|
374
|
+
}`,[p,a]),I=e(`fragment Reserve on Reserve {
|
|
372
375
|
__typename
|
|
373
376
|
id
|
|
374
377
|
onChainId
|
|
@@ -392,19 +395,20 @@
|
|
|
392
395
|
canBorrow
|
|
393
396
|
canSupply
|
|
394
397
|
canUseAsCollateral
|
|
398
|
+
canSwapFrom
|
|
395
399
|
userState {
|
|
396
400
|
...ReserveUserState
|
|
397
401
|
}
|
|
398
402
|
asset {
|
|
399
403
|
...HubAsset
|
|
400
404
|
}
|
|
401
|
-
}`,[
|
|
405
|
+
}`,[u,n,ot,at,nt,pt,E]),S=e(`fragment ReserveInfo on ReserveInfo {
|
|
402
406
|
__typename
|
|
403
407
|
id
|
|
404
408
|
asset {
|
|
405
409
|
...HubAsset
|
|
406
410
|
}
|
|
407
|
-
}`,[
|
|
411
|
+
}`,[E]);var m=e(`fragment TransactionRequest on TransactionRequest {
|
|
408
412
|
__typename
|
|
409
413
|
to
|
|
410
414
|
from
|
|
@@ -412,7 +416,7 @@
|
|
|
412
416
|
value
|
|
413
417
|
chainId
|
|
414
418
|
operations
|
|
415
|
-
}`),
|
|
419
|
+
}`),M=e(`fragment Erc20Approval on Erc20Approval {
|
|
416
420
|
__typename
|
|
417
421
|
byTransaction {
|
|
418
422
|
...TransactionRequest
|
|
@@ -420,9 +424,9 @@
|
|
|
420
424
|
bySignature {
|
|
421
425
|
...PermitTypedData
|
|
422
426
|
}
|
|
423
|
-
}`,[m,
|
|
427
|
+
}`,[m,ne]),V=e(`fragment Erc20ApprovalRequired on Erc20ApprovalRequired {
|
|
424
428
|
__typename
|
|
425
|
-
|
|
429
|
+
approvals {
|
|
426
430
|
...Erc20Approval
|
|
427
431
|
}
|
|
428
432
|
reason
|
|
@@ -435,7 +439,7 @@
|
|
|
435
439
|
originalTransaction {
|
|
436
440
|
...TransactionRequest
|
|
437
441
|
}
|
|
438
|
-
}`,[m,
|
|
442
|
+
}`,[m,M,c]),st=e(`fragment PreContractActionRequired on PreContractActionRequired {
|
|
439
443
|
__typename
|
|
440
444
|
transaction {
|
|
441
445
|
...TransactionRequest
|
|
@@ -444,7 +448,7 @@
|
|
|
444
448
|
originalTransaction {
|
|
445
449
|
...TransactionRequest
|
|
446
450
|
}
|
|
447
|
-
}`,[m]),
|
|
451
|
+
}`,[m]),C=e(`fragment ExecutionPlan on ExecutionPlan {
|
|
448
452
|
__typename
|
|
449
453
|
... on TransactionRequest {
|
|
450
454
|
...TransactionRequest
|
|
@@ -458,7 +462,7 @@
|
|
|
458
462
|
... on InsufficientBalanceError {
|
|
459
463
|
...InsufficientBalanceError
|
|
460
464
|
}
|
|
461
|
-
}`,[m,
|
|
465
|
+
}`,[m,V,st,q]);var it=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
462
466
|
__typename
|
|
463
467
|
networkCosts {
|
|
464
468
|
...TokenAmount
|
|
@@ -472,7 +476,7 @@
|
|
|
472
476
|
providerFee {
|
|
473
477
|
...TokenAmount
|
|
474
478
|
}
|
|
475
|
-
}`,[
|
|
479
|
+
}`,[x]),H=e(`fragment SwapQuote on SwapQuote {
|
|
476
480
|
__typename
|
|
477
481
|
accuracy
|
|
478
482
|
quoteId
|
|
@@ -497,7 +501,7 @@
|
|
|
497
501
|
finalSell {
|
|
498
502
|
...TokenAmount
|
|
499
503
|
}
|
|
500
|
-
}`,[a,
|
|
504
|
+
}`,[a,x,it]),Q=e(`fragment SwapTypedData on SwapTypedData {
|
|
501
505
|
__typename
|
|
502
506
|
primaryType
|
|
503
507
|
types
|
|
@@ -505,37 +509,37 @@
|
|
|
505
509
|
...DomainData
|
|
506
510
|
}
|
|
507
511
|
message
|
|
508
|
-
}`,[
|
|
512
|
+
}`,[B]),se=e(`fragment PrepareSwapOrder on PrepareSwapOrder {
|
|
509
513
|
__typename
|
|
510
514
|
newQuoteId
|
|
511
515
|
data {
|
|
512
516
|
...SwapTypedData
|
|
513
517
|
}
|
|
514
|
-
}`,[
|
|
518
|
+
}`,[Q]),ut=e(`fragment SwapByIntent on SwapByIntent {
|
|
515
519
|
__typename
|
|
516
520
|
quote {
|
|
517
521
|
...SwapQuote
|
|
518
522
|
}
|
|
519
523
|
|
|
520
|
-
}`,[
|
|
524
|
+
}`,[H]),mt=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
521
525
|
__typename
|
|
522
|
-
|
|
526
|
+
approvals {
|
|
523
527
|
...Erc20Approval
|
|
524
528
|
}
|
|
525
529
|
quote {
|
|
526
530
|
...SwapQuote
|
|
527
531
|
}
|
|
528
|
-
}`,[
|
|
532
|
+
}`,[M,H]),yt=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
529
533
|
__typename
|
|
530
534
|
quote {
|
|
531
535
|
...SwapQuote
|
|
532
536
|
}
|
|
533
|
-
}`,[
|
|
537
|
+
}`,[H]),ie=e(`fragment SwapReceipt on SwapReceipt {
|
|
534
538
|
__typename
|
|
535
539
|
id
|
|
536
540
|
explorerUrl
|
|
537
541
|
createdAt
|
|
538
|
-
}`),
|
|
542
|
+
}`),ue=e(`fragment TokenSwapQuoteResult on TokenSwapQuoteResult {
|
|
539
543
|
__typename
|
|
540
544
|
... on SwapByIntent {
|
|
541
545
|
...SwapByIntent
|
|
@@ -546,7 +550,10 @@
|
|
|
546
550
|
... on SwapByTransaction {
|
|
547
551
|
...SwapByTransaction
|
|
548
552
|
}
|
|
549
|
-
|
|
553
|
+
... on InsufficientLiquidityError {
|
|
554
|
+
...InsufficientLiquidityError
|
|
555
|
+
}
|
|
556
|
+
}`,[ut,mt,yt,F]),me=e(`fragment PrepareTokenSwapResult on PrepareTokenSwapResult {
|
|
550
557
|
__typename
|
|
551
558
|
... on PrepareSwapOrder {
|
|
552
559
|
...PrepareSwapOrder
|
|
@@ -554,7 +561,7 @@
|
|
|
554
561
|
... on InsufficientBalanceError {
|
|
555
562
|
...InsufficientBalanceError
|
|
556
563
|
}
|
|
557
|
-
}`,[
|
|
564
|
+
}`,[se,q]),ct=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
558
565
|
__typename
|
|
559
566
|
transaction {
|
|
560
567
|
...TransactionRequest
|
|
@@ -562,7 +569,7 @@
|
|
|
562
569
|
orderReceipt {
|
|
563
570
|
...SwapReceipt
|
|
564
571
|
}
|
|
565
|
-
}`,[m,
|
|
572
|
+
}`,[m,ie]),ye=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
566
573
|
__typename
|
|
567
574
|
... on SwapTransactionRequest {
|
|
568
575
|
...SwapTransactionRequest
|
|
@@ -573,27 +580,100 @@
|
|
|
573
580
|
... on InsufficientBalanceError {
|
|
574
581
|
...InsufficientBalanceError
|
|
575
582
|
}
|
|
576
|
-
}`,[
|
|
583
|
+
}`,[ct,ie,q]),U=e(`fragment PositionAmount on PositionAmount {
|
|
584
|
+
__typename
|
|
585
|
+
reserve {
|
|
586
|
+
...ReserveInfo
|
|
587
|
+
}
|
|
588
|
+
amount {
|
|
589
|
+
...Erc20Amount
|
|
590
|
+
}
|
|
591
|
+
}`,[S,p]),lt=e(`fragment SupplySwap on SupplySwap {
|
|
592
|
+
__typename
|
|
593
|
+
sellPosition {
|
|
594
|
+
...PositionAmount
|
|
595
|
+
}
|
|
596
|
+
buyPosition {
|
|
597
|
+
...PositionAmount
|
|
598
|
+
}
|
|
599
|
+
kind
|
|
600
|
+
orderClass
|
|
601
|
+
}`,[U]),gt=e(`fragment BorrowSwap on BorrowSwap {
|
|
602
|
+
__typename
|
|
603
|
+
sellPosition {
|
|
604
|
+
...PositionAmount
|
|
605
|
+
}
|
|
606
|
+
buyPosition {
|
|
607
|
+
...PositionAmount
|
|
608
|
+
}
|
|
609
|
+
kind
|
|
610
|
+
orderClass
|
|
611
|
+
}`,[U]),St=e(`fragment RepayWithSupply on RepayWithSupply {
|
|
612
|
+
__typename
|
|
613
|
+
sellPosition {
|
|
614
|
+
...PositionAmount
|
|
615
|
+
}
|
|
616
|
+
buyPosition {
|
|
617
|
+
...PositionAmount
|
|
618
|
+
}
|
|
619
|
+
kind
|
|
620
|
+
orderClass
|
|
621
|
+
}`,[U]),dt=e(`fragment WithdrawSwap on WithdrawSwap {
|
|
622
|
+
__typename
|
|
623
|
+
sellPosition {
|
|
624
|
+
...PositionAmount
|
|
625
|
+
}
|
|
626
|
+
buyToken {
|
|
627
|
+
...TokenAmount
|
|
628
|
+
}
|
|
629
|
+
kind
|
|
630
|
+
orderClass
|
|
631
|
+
}`,[U,x]),ft=e(`fragment TokenSwap on TokenSwap {
|
|
632
|
+
__typename
|
|
633
|
+
sold {
|
|
634
|
+
...TokenAmount
|
|
635
|
+
}
|
|
636
|
+
bought {
|
|
637
|
+
...TokenAmount
|
|
638
|
+
}
|
|
639
|
+
kind
|
|
640
|
+
orderClass
|
|
641
|
+
}`,[x]),O=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
|
|
654
|
+
}
|
|
655
|
+
... on TokenSwap {
|
|
656
|
+
...TokenSwap
|
|
657
|
+
}
|
|
658
|
+
}`,[lt,gt,St,dt,ft]),Rt=e(`fragment SwapCancelled on SwapCancelled {
|
|
577
659
|
__typename
|
|
578
660
|
swapId
|
|
579
661
|
createdAt
|
|
580
662
|
cancelledAt
|
|
581
663
|
explorerUrl
|
|
582
|
-
|
|
664
|
+
operation {
|
|
665
|
+
...SwapOperation
|
|
666
|
+
}
|
|
667
|
+
}`,[O]),wt=e(`fragment SwapExpired on SwapExpired {
|
|
583
668
|
__typename
|
|
584
669
|
swapId
|
|
585
670
|
createdAt
|
|
586
671
|
expiredAt
|
|
587
672
|
explorerUrl
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
reserve {
|
|
591
|
-
...ReserveInfo
|
|
673
|
+
operation {
|
|
674
|
+
...SwapOperation
|
|
592
675
|
}
|
|
593
|
-
|
|
594
|
-
...Erc20Amount
|
|
595
|
-
}
|
|
596
|
-
}`,[S,p]),w=e(`fragment SwapAmount on SwapAmount {
|
|
676
|
+
}`,[O]),T=e(`fragment SwapAmount on SwapAmount {
|
|
597
677
|
__typename
|
|
598
678
|
... on PositionAmount {
|
|
599
679
|
...PositionAmount
|
|
@@ -604,45 +684,36 @@
|
|
|
604
684
|
... on Erc20Amount {
|
|
605
685
|
...Erc20Amount
|
|
606
686
|
}
|
|
607
|
-
}`,[
|
|
687
|
+
}`,[U,L,p]),qt=e(`fragment SwapOpen on SwapOpen {
|
|
608
688
|
__typename
|
|
609
689
|
swapId
|
|
610
690
|
createdAt
|
|
611
691
|
deadline
|
|
612
692
|
explorerUrl
|
|
613
|
-
|
|
614
|
-
...
|
|
615
|
-
}
|
|
616
|
-
desiredBuy {
|
|
617
|
-
...SwapAmount
|
|
693
|
+
operation {
|
|
694
|
+
...SwapOperation
|
|
618
695
|
}
|
|
619
|
-
}`,[
|
|
696
|
+
}`,[O]),xt=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
620
697
|
__typename
|
|
621
698
|
swapId
|
|
622
699
|
createdAt
|
|
623
700
|
deadline
|
|
624
701
|
explorerUrl
|
|
625
|
-
|
|
702
|
+
operation {
|
|
703
|
+
...SwapOperation
|
|
704
|
+
}
|
|
705
|
+
}`,[O]),At=e(`fragment SwapFulfilled on SwapFulfilled {
|
|
626
706
|
__typename
|
|
627
707
|
swapId
|
|
628
708
|
txHash
|
|
629
|
-
desiredSell {
|
|
630
|
-
...SwapAmount
|
|
631
|
-
}
|
|
632
|
-
desiredBuy {
|
|
633
|
-
...SwapAmount
|
|
634
|
-
}
|
|
635
|
-
sold {
|
|
636
|
-
...SwapAmount
|
|
637
|
-
}
|
|
638
|
-
bought {
|
|
639
|
-
...SwapAmount
|
|
640
|
-
}
|
|
641
709
|
createdAt
|
|
642
710
|
fulfilledAt
|
|
643
711
|
explorerUrl
|
|
644
712
|
refundTxHash
|
|
645
|
-
|
|
713
|
+
operation {
|
|
714
|
+
...SwapOperation
|
|
715
|
+
}
|
|
716
|
+
}`,[O]),K=e(`fragment SwapStatus on SwapStatus {
|
|
646
717
|
__typename
|
|
647
718
|
... on SwapOpen {
|
|
648
719
|
...SwapOpen
|
|
@@ -659,20 +730,26 @@
|
|
|
659
730
|
... on SwapFulfilled {
|
|
660
731
|
...SwapFulfilled
|
|
661
732
|
}
|
|
662
|
-
}`,[
|
|
733
|
+
}`,[qt,xt,Rt,wt,At]),ce=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
663
734
|
__typename
|
|
664
735
|
data {
|
|
665
736
|
...SwapTypedData
|
|
666
737
|
}
|
|
667
|
-
}`,[
|
|
738
|
+
}`,[Q]),ht=e(`fragment SwapCancelledResult on SwapCancelledResult {
|
|
739
|
+
__typename
|
|
740
|
+
swapId
|
|
741
|
+
createdAt
|
|
742
|
+
cancelledAt
|
|
743
|
+
explorerUrl
|
|
744
|
+
}`),le=e(`fragment CancelSwapExecutionPlan on CancelSwapExecutionPlan {
|
|
668
745
|
__typename
|
|
669
746
|
... on TransactionRequest {
|
|
670
747
|
...TransactionRequest
|
|
671
748
|
}
|
|
672
|
-
... on
|
|
673
|
-
...
|
|
749
|
+
... on SwapCancelledResult {
|
|
750
|
+
...SwapCancelledResult
|
|
674
751
|
}
|
|
675
|
-
}`,[m,
|
|
752
|
+
}`,[m,ht]),ge=e(`fragment PaginatedUserSwapsResult on PaginatedUserSwapsResult {
|
|
676
753
|
__typename
|
|
677
754
|
items {
|
|
678
755
|
...SwapStatus
|
|
@@ -680,12 +757,12 @@
|
|
|
680
757
|
pageInfo {
|
|
681
758
|
...PaginatedResultInfo
|
|
682
759
|
}
|
|
683
|
-
}`,[
|
|
760
|
+
}`,[K,A]),Pt=e(`fragment PositionSwapAdapterContractApproval on PositionSwapAdapterContractApproval {
|
|
684
761
|
__typename
|
|
685
762
|
bySignature {
|
|
686
763
|
...SwapTypedData
|
|
687
764
|
}
|
|
688
|
-
}`,[
|
|
765
|
+
}`,[Q]),Ft=e(`fragment PositionSwapPositionManagerApproval on PositionSwapPositionManagerApproval {
|
|
689
766
|
__typename
|
|
690
767
|
byTransaction {
|
|
691
768
|
...TransactionRequest
|
|
@@ -693,7 +770,7 @@
|
|
|
693
770
|
bySignature {
|
|
694
771
|
...SwapTypedData
|
|
695
772
|
}
|
|
696
|
-
}`,[m,
|
|
773
|
+
}`,[m,Q]),It=e(`fragment PositionSwapApproval on PositionSwapApproval {
|
|
697
774
|
__typename
|
|
698
775
|
... on PositionSwapAdapterContractApproval {
|
|
699
776
|
...PositionSwapAdapterContractApproval
|
|
@@ -701,7 +778,7 @@
|
|
|
701
778
|
... on PositionSwapPositionManagerApproval {
|
|
702
779
|
...PositionSwapPositionManagerApproval
|
|
703
780
|
}
|
|
704
|
-
}`,[
|
|
781
|
+
}`,[Pt,Ft]),W=e(`fragment PositionSwapByIntentApprovalsRequired on PositionSwapByIntentApprovalsRequired {
|
|
705
782
|
__typename
|
|
706
783
|
quote {
|
|
707
784
|
...SwapQuote
|
|
@@ -709,27 +786,39 @@
|
|
|
709
786
|
approvals {
|
|
710
787
|
...PositionSwapApproval
|
|
711
788
|
}
|
|
712
|
-
}`,[
|
|
789
|
+
}`,[H,It]),Se=e(`fragment SupplySwapQuoteResult on SupplySwapQuoteResult {
|
|
713
790
|
__typename
|
|
714
791
|
... on PositionSwapByIntentApprovalsRequired {
|
|
715
792
|
...PositionSwapByIntentApprovalsRequired
|
|
716
793
|
}
|
|
717
|
-
|
|
794
|
+
... on InsufficientLiquidityError {
|
|
795
|
+
...InsufficientLiquidityError
|
|
796
|
+
}
|
|
797
|
+
}`,[W,F]),de=e(`fragment BorrowSwapQuoteResult on BorrowSwapQuoteResult {
|
|
718
798
|
__typename
|
|
719
799
|
... on PositionSwapByIntentApprovalsRequired {
|
|
720
800
|
...PositionSwapByIntentApprovalsRequired
|
|
721
801
|
}
|
|
722
|
-
|
|
802
|
+
... on InsufficientLiquidityError {
|
|
803
|
+
...InsufficientLiquidityError
|
|
804
|
+
}
|
|
805
|
+
}`,[W,F]),fe=e(`fragment RepayWithSupplyQuoteResult on RepayWithSupplyQuoteResult {
|
|
723
806
|
__typename
|
|
724
807
|
... on PositionSwapByIntentApprovalsRequired {
|
|
725
808
|
...PositionSwapByIntentApprovalsRequired
|
|
726
809
|
}
|
|
727
|
-
|
|
810
|
+
... on InsufficientLiquidityError {
|
|
811
|
+
...InsufficientLiquidityError
|
|
812
|
+
}
|
|
813
|
+
}`,[W,F]),Re=e(`fragment WithdrawSwapQuoteResult on WithdrawSwapQuoteResult {
|
|
728
814
|
__typename
|
|
729
815
|
... on PositionSwapByIntentApprovalsRequired {
|
|
730
816
|
...PositionSwapByIntentApprovalsRequired
|
|
731
817
|
}
|
|
732
|
-
|
|
818
|
+
... on InsufficientLiquidityError {
|
|
819
|
+
...InsufficientLiquidityError
|
|
820
|
+
}
|
|
821
|
+
}`,[W,F]),we=e(`fragment PreparePositionSwapResult on PreparePositionSwapResult {
|
|
733
822
|
__typename
|
|
734
823
|
... on PrepareSwapOrder {
|
|
735
824
|
...PrepareSwapOrder
|
|
@@ -737,7 +826,7 @@
|
|
|
737
826
|
... on InsufficientBalanceError {
|
|
738
827
|
...InsufficientBalanceError
|
|
739
828
|
}
|
|
740
|
-
}`,[
|
|
829
|
+
}`,[se,q]);var qe=e(`fragment UserSupplyItem on UserSupplyItem {
|
|
741
830
|
__typename
|
|
742
831
|
id
|
|
743
832
|
reserve {
|
|
@@ -754,7 +843,7 @@
|
|
|
754
843
|
}
|
|
755
844
|
isCollateral
|
|
756
845
|
createdAt
|
|
757
|
-
}`,[p,
|
|
846
|
+
}`,[p,I]),xe=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
758
847
|
__typename
|
|
759
848
|
id
|
|
760
849
|
principal {
|
|
@@ -770,7 +859,7 @@
|
|
|
770
859
|
...Reserve
|
|
771
860
|
}
|
|
772
861
|
createdAt
|
|
773
|
-
}`,[p,
|
|
862
|
+
}`,[p,I]),Ae=e(`fragment UserSummary on UserSummary {
|
|
774
863
|
__typename
|
|
775
864
|
totalPositions
|
|
776
865
|
netBalance(currency: $currency) {
|
|
@@ -792,7 +881,7 @@
|
|
|
792
881
|
...ExchangeAmount
|
|
793
882
|
}
|
|
794
883
|
lowestHealthFactor
|
|
795
|
-
}`,[
|
|
884
|
+
}`,[w,i,a]),G=e(`fragment UserRiskPremiumBreakdownItem on UserRiskPremiumBreakdownItem {
|
|
796
885
|
__typename
|
|
797
886
|
token {
|
|
798
887
|
...Erc20Token
|
|
@@ -806,7 +895,7 @@
|
|
|
806
895
|
collateral {
|
|
807
896
|
...PercentNumber
|
|
808
897
|
}
|
|
809
|
-
}`,[l,a]),
|
|
898
|
+
}`,[l,a]),Tt=e(`fragment UserPositionRiskPremium on UserPositionRiskPremium {
|
|
810
899
|
__typename
|
|
811
900
|
current {
|
|
812
901
|
...PercentNumber
|
|
@@ -817,7 +906,7 @@
|
|
|
817
906
|
breakdown {
|
|
818
907
|
...UserRiskPremiumBreakdownItem
|
|
819
908
|
}
|
|
820
|
-
}`,[a,
|
|
909
|
+
}`,[a,G]),Y=e(`fragment UserPosition on UserPosition {
|
|
821
910
|
__typename
|
|
822
911
|
id
|
|
823
912
|
spoke {
|
|
@@ -871,7 +960,7 @@
|
|
|
871
960
|
averageCollateralFactor {
|
|
872
961
|
...PercentNumber
|
|
873
962
|
}
|
|
874
|
-
}`,[
|
|
963
|
+
}`,[u,a,w,i,X,re,Tt]),he=e(`fragment UserBalance on UserBalance {
|
|
875
964
|
__typename
|
|
876
965
|
id
|
|
877
966
|
info {
|
|
@@ -904,7 +993,7 @@
|
|
|
904
993
|
lowestCollateralFactor: collateralFactor(metric: LOWEST) {
|
|
905
994
|
...PercentNumber
|
|
906
995
|
}
|
|
907
|
-
}`,[
|
|
996
|
+
}`,[b,c,x,i,a]),Pe=e(`fragment UserSummaryHistoryItem on UserSummaryHistoryItem {
|
|
908
997
|
__typename
|
|
909
998
|
netBalance(currency: $currency) {
|
|
910
999
|
...ExchangeAmount
|
|
@@ -917,25 +1006,25 @@
|
|
|
917
1006
|
}
|
|
918
1007
|
healthFactor
|
|
919
1008
|
date
|
|
920
|
-
}`,[
|
|
1009
|
+
}`,[i]),z=e(`fragment ApySample on ApySample {
|
|
921
1010
|
__typename
|
|
922
1011
|
date
|
|
923
1012
|
avgRate {
|
|
924
1013
|
...PercentNumber
|
|
925
1014
|
}
|
|
926
|
-
}`,[a]);var
|
|
1015
|
+
}`,[a]);var Gr=e(`query Hub($request: HubRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
927
1016
|
value: hub(request: $request) {
|
|
928
1017
|
...Hub
|
|
929
1018
|
}
|
|
930
|
-
}`,[h])
|
|
1019
|
+
}`,[h]),Yr=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
931
1020
|
value: hubs(request: $request) {
|
|
932
1021
|
...Hub
|
|
933
1022
|
}
|
|
934
|
-
}`,[h]),
|
|
1023
|
+
}`,[h]),zr=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
935
1024
|
value: hubAssets(request: $request) {
|
|
936
1025
|
...HubAsset
|
|
937
1026
|
}
|
|
938
|
-
}`,[
|
|
1027
|
+
}`,[E]),kt=e(`fragment HubSummarySample on HubSummarySample {
|
|
939
1028
|
__typename
|
|
940
1029
|
date
|
|
941
1030
|
deposits {
|
|
@@ -950,31 +1039,31 @@
|
|
|
950
1039
|
utilizationRate {
|
|
951
1040
|
...PercentNumber
|
|
952
1041
|
}
|
|
953
|
-
}`,[
|
|
1042
|
+
}`,[i,a]),Zr=e(`query HubSummaryHistory($request: HubSummaryHistoryRequest!) {
|
|
954
1043
|
value: hubSummaryHistory(request: $request) {
|
|
955
1044
|
...HubSummarySample
|
|
956
1045
|
}
|
|
957
|
-
}`,[
|
|
1046
|
+
}`,[kt]);function N(t){return new TextDecoder().decode(Uint8Array.from(atob(t),f=>f.charCodeAt(0)))}function D(t){return btoa(String.fromCharCode(...new TextEncoder().encode(t)))}var d="::";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(D(`${t.chainId}${d}${t.address}`))}function ta(t){let f=N(t),[r,o]=f.split(d);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 f=N(t),[r,o,R]=f.split(d);return {chainId:types.chainId(Number.parseInt(r,10)),spoke:types.evmAddress(o),onChainId:R}}function oa(t){return D(`${t.chainId}${d}${t.spoke}${d}${t.onChainId}`)}function bt(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 f=N(t),[r,o,R]=f.split(d);return {chainId:types.chainId(Number.parseInt(r,10)),spoke:types.evmAddress(o),user:types.evmAddress(R)}}function sa(t){return bt(D(`${t.chainId}${d}${t.spoke}${d}${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 Et(D(`${t.chainId}${d}${t.address}`))}function ya(t){let f=N(t),[r,o]=f.split(d);return {chainId:types.chainId(Number.parseInt(r,10)),address:types.evmAddress(o)}}function Et(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!) {
|
|
958
1047
|
value: chain(request: $request) {
|
|
959
1048
|
...Chain
|
|
960
1049
|
}
|
|
961
|
-
}`,[n]),
|
|
1050
|
+
}`,[n]),ka=e(`query Chains($request: ChainsRequest!) {
|
|
962
1051
|
value: chains(request: $request) {
|
|
963
1052
|
...Chain
|
|
964
1053
|
}
|
|
965
|
-
}`,[n]),
|
|
1054
|
+
}`,[n]),va=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
966
1055
|
value: hasProcessedKnownTransaction(request: $request)
|
|
967
|
-
}`),
|
|
1056
|
+
}`),ba=e(`query Health {
|
|
968
1057
|
value: health
|
|
969
|
-
}`),
|
|
1058
|
+
}`),Ea=e(`query ExchangeRate($request: ExchangeRateRequest!) {
|
|
970
1059
|
value: exchangeRate(request: $request) {
|
|
971
1060
|
...ExchangeAmount
|
|
972
1061
|
}
|
|
973
|
-
}`,[
|
|
1062
|
+
}`,[i]);var Ct=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
974
1063
|
__typename
|
|
975
1064
|
date
|
|
976
1065
|
price
|
|
977
|
-
}`),
|
|
1066
|
+
}`),Ie=e(`fragment AssetSampleBreakdown on AssetSampleBreakdown {
|
|
978
1067
|
__typename
|
|
979
1068
|
amount {
|
|
980
1069
|
...DecimalNumber
|
|
@@ -985,7 +1074,7 @@
|
|
|
985
1074
|
hub {
|
|
986
1075
|
...Hub
|
|
987
1076
|
}
|
|
988
|
-
}`,[c,a,h]),
|
|
1077
|
+
}`,[c,a,h]),Ut=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
989
1078
|
__typename
|
|
990
1079
|
date
|
|
991
1080
|
amount {
|
|
@@ -1003,7 +1092,7 @@
|
|
|
1003
1092
|
breakdown {
|
|
1004
1093
|
...AssetSampleBreakdown
|
|
1005
1094
|
}
|
|
1006
|
-
}`,[c,a,
|
|
1095
|
+
}`,[c,a,Ie]),Ot=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
1007
1096
|
__typename
|
|
1008
1097
|
date
|
|
1009
1098
|
amount {
|
|
@@ -1021,7 +1110,7 @@
|
|
|
1021
1110
|
breakdown {
|
|
1022
1111
|
...AssetSampleBreakdown
|
|
1023
1112
|
}
|
|
1024
|
-
}`,[c,a,
|
|
1113
|
+
}`,[c,a,Ie]),_t=e(`fragment AssetAmountWithChange on AssetAmountWithChange {
|
|
1025
1114
|
__typename
|
|
1026
1115
|
amount {
|
|
1027
1116
|
...DecimalNumberWithChange
|
|
@@ -1029,7 +1118,7 @@
|
|
|
1029
1118
|
exchange(currency: $currency) {
|
|
1030
1119
|
...ExchangeAmountWithChange
|
|
1031
1120
|
}
|
|
1032
|
-
}`,[
|
|
1121
|
+
}`,[Z,w]),Bt=e(`fragment AssetSummary on AssetSummary {
|
|
1033
1122
|
__typename
|
|
1034
1123
|
totalSupplyCap {
|
|
1035
1124
|
...AssetAmountWithChange
|
|
@@ -1055,7 +1144,7 @@
|
|
|
1055
1144
|
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
1056
1145
|
...PercentNumber
|
|
1057
1146
|
}
|
|
1058
|
-
}`,[
|
|
1147
|
+
}`,[_t,a]),Ht=e(`fragment Asset on Asset {
|
|
1059
1148
|
__typename
|
|
1060
1149
|
id
|
|
1061
1150
|
token {
|
|
@@ -1067,23 +1156,23 @@
|
|
|
1067
1156
|
price(currency: $currency) {
|
|
1068
1157
|
...ExchangeAmountWithChange
|
|
1069
1158
|
}
|
|
1070
|
-
}`,[l,
|
|
1159
|
+
}`,[l,Bt,w]),_a=e(`query Asset($request: AssetRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1071
1160
|
value: asset(request: $request) {
|
|
1072
1161
|
...Asset
|
|
1073
1162
|
}
|
|
1074
|
-
}`,[
|
|
1163
|
+
}`,[Ht]),Ba=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
1075
1164
|
value: assetPriceHistory(request: $request) {
|
|
1076
1165
|
...AssetPriceSample
|
|
1077
1166
|
}
|
|
1078
|
-
}`,[
|
|
1167
|
+
}`,[Ct]),Ha=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1079
1168
|
value: assetSupplyHistory(request: $request) {
|
|
1080
1169
|
...AssetSupplySample
|
|
1081
1170
|
}
|
|
1082
|
-
}`,[
|
|
1171
|
+
}`,[Ut]),Qa=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1083
1172
|
value: assetBorrowHistory(request: $request) {
|
|
1084
1173
|
...AssetBorrowSample
|
|
1085
1174
|
}
|
|
1086
|
-
}`,[
|
|
1175
|
+
}`,[Ot]),Qt=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
1087
1176
|
__typename
|
|
1088
1177
|
date
|
|
1089
1178
|
deposits {
|
|
@@ -1092,111 +1181,111 @@
|
|
|
1092
1181
|
borrows {
|
|
1093
1182
|
...ExchangeAmount
|
|
1094
1183
|
}
|
|
1095
|
-
}`,[
|
|
1184
|
+
}`,[i]),Wa=e(`query ProtocolHistory($request: ProtocolHistoryRequest!) {
|
|
1096
1185
|
value: protocolHistory(request: $request) {
|
|
1097
1186
|
...ProtocolHistorySample
|
|
1098
1187
|
}
|
|
1099
|
-
}`,[
|
|
1188
|
+
}`,[Qt]);var La=e(`query BorrowApyHistory($request: BorrowApyHistoryRequest!) {
|
|
1100
1189
|
value: borrowApyHistory(request: $request) {
|
|
1101
1190
|
...ApySample
|
|
1102
1191
|
}
|
|
1103
|
-
}`,[
|
|
1192
|
+
}`,[z]),Ma=e(`query SupplyApyHistory($request: SupplyApyHistoryRequest!) {
|
|
1104
1193
|
value: supplyApyHistory(request: $request) {
|
|
1105
1194
|
...ApySample
|
|
1106
1195
|
}
|
|
1107
|
-
}`,[
|
|
1196
|
+
}`,[z]),Va=e(`query Reserve($request: ReserveRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1108
1197
|
value: reserve(request: $request) {
|
|
1109
1198
|
...Reserve
|
|
1110
1199
|
}
|
|
1111
|
-
}`,[
|
|
1200
|
+
}`,[I]),Ka=e(`query Reserves($request: ReservesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1112
1201
|
value: reserves(request: $request) {
|
|
1113
1202
|
...Reserve
|
|
1114
1203
|
}
|
|
1115
|
-
}`,[
|
|
1204
|
+
}`,[I]);var Za=e(`query Spoke($request: SpokeRequest!) {
|
|
1116
1205
|
value: spoke(request: $request) {
|
|
1117
1206
|
...Spoke
|
|
1118
1207
|
}
|
|
1119
|
-
}`,[
|
|
1208
|
+
}`,[u]),ja=e(`query Spokes($request: SpokesRequest!) {
|
|
1120
1209
|
value: spokes(request: $request) {
|
|
1121
1210
|
...Spoke
|
|
1122
1211
|
}
|
|
1123
|
-
}`,[
|
|
1212
|
+
}`,[u]),Ja=e(`query SpokePositionManagers($request: SpokePositionManagersRequest!) {
|
|
1124
1213
|
value: spokePositionManagers(request: $request) {
|
|
1125
1214
|
...PaginatedSpokePositionManagerResult
|
|
1126
1215
|
}
|
|
1127
|
-
}`,[
|
|
1216
|
+
}`,[oe]),Xa=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
1128
1217
|
value: spokeUserPositionManagers(request: $request) {
|
|
1129
1218
|
...PaginatedSpokeUserPositionManagerResult
|
|
1130
1219
|
}
|
|
1131
|
-
}`,[
|
|
1220
|
+
}`,[pe]);var an=e(`query TokenSwapQuote($request: TokenSwapQuoteRequest!, $currency: Currency!) {
|
|
1132
1221
|
value: tokenSwapQuote(request: $request) {
|
|
1133
1222
|
...TokenSwapQuoteResult
|
|
1134
1223
|
}
|
|
1135
|
-
}`,[
|
|
1224
|
+
}`,[ue]),nn=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
1136
1225
|
value: swappableTokens(request: $request) {
|
|
1137
1226
|
...Token
|
|
1138
1227
|
}
|
|
1139
|
-
}`,[
|
|
1228
|
+
}`,[J]),on=e(`query PrepareTokenSwap($request: PrepareTokenSwapRequest!) {
|
|
1140
1229
|
value: prepareTokenSwap(request: $request) {
|
|
1141
1230
|
...PrepareTokenSwapResult
|
|
1142
1231
|
}
|
|
1143
|
-
}`,[
|
|
1232
|
+
}`,[me]),pn=e(`query SwapStatus($request: SwapStatusRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1144
1233
|
value: swapStatus(request: $request) {
|
|
1145
1234
|
...SwapStatus
|
|
1146
1235
|
}
|
|
1147
|
-
}`,[
|
|
1236
|
+
}`,[K]),sn=e(`mutation Swap($request: SwapRequest!) {
|
|
1148
1237
|
value: swap(request: $request) {
|
|
1149
1238
|
...SwapExecutionPlan
|
|
1150
1239
|
}
|
|
1151
|
-
}`,[
|
|
1240
|
+
}`,[ye]),un=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
1152
1241
|
value: prepareSwapCancel(request: $request) {
|
|
1153
1242
|
...PrepareSwapCancelResult
|
|
1154
1243
|
}
|
|
1155
|
-
}`,[
|
|
1244
|
+
}`,[ce]),mn=e(`mutation CancelSwap($request: CancelSwapRequest!) {
|
|
1156
1245
|
value: cancelSwap(request: $request) {
|
|
1157
1246
|
...CancelSwapExecutionPlan
|
|
1158
1247
|
}
|
|
1159
|
-
}`,[
|
|
1248
|
+
}`,[le]),yn=e(`query UserSwaps($request: UserSwapsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1160
1249
|
value: userSwaps(request: $request) {
|
|
1161
1250
|
...PaginatedUserSwapsResult
|
|
1162
1251
|
}
|
|
1163
|
-
}`,[
|
|
1252
|
+
}`,[ge]),cn=e(`query SupplySwapQuote($request: SupplySwapQuoteRequest!, $currency: Currency!) {
|
|
1164
1253
|
value: supplySwapQuote(request: $request) {
|
|
1165
1254
|
...SupplySwapQuoteResult
|
|
1166
1255
|
}
|
|
1167
|
-
}`,[
|
|
1256
|
+
}`,[Se]),ln=e(`query BorrowSwapQuote($request: BorrowSwapQuoteRequest!, $currency: Currency!) {
|
|
1168
1257
|
value: borrowSwapQuote(request: $request) {
|
|
1169
1258
|
...BorrowSwapQuoteResult
|
|
1170
1259
|
}
|
|
1171
|
-
}`,[
|
|
1260
|
+
}`,[de]),gn=e(`query RepayWithSupplyQuote($request: RepayWithSupplyQuoteRequest!, $currency: Currency!) {
|
|
1172
1261
|
value: repayWithSupplyQuote(request: $request) {
|
|
1173
1262
|
...RepayWithSupplyQuoteResult
|
|
1174
1263
|
}
|
|
1175
|
-
}`,[
|
|
1264
|
+
}`,[fe]),Sn=e(`query WithdrawSwapQuote($request: WithdrawSwapQuoteRequest!, $currency: Currency!) {
|
|
1176
1265
|
value: withdrawSwapQuote(request: $request) {
|
|
1177
1266
|
...WithdrawSwapQuoteResult
|
|
1178
1267
|
}
|
|
1179
|
-
}`,[
|
|
1268
|
+
}`,[Re]),dn=e(`query PreparePositionSwap($request: PreparePositionSwapRequest!) {
|
|
1180
1269
|
value: preparePositionSwap(request: $request) {
|
|
1181
1270
|
...PreparePositionSwapResult
|
|
1182
1271
|
}
|
|
1183
|
-
}`,[
|
|
1272
|
+
}`,[we]);var qn=e(`query Borrow($request: BorrowRequest!) {
|
|
1184
1273
|
value: borrow(request: $request) {
|
|
1185
1274
|
...ExecutionPlan
|
|
1186
1275
|
}
|
|
1187
|
-
}`,[
|
|
1276
|
+
}`,[C]),xn=e(`query Supply($request: SupplyRequest!) {
|
|
1188
1277
|
value: supply(request: $request) {
|
|
1189
1278
|
...ExecutionPlan
|
|
1190
1279
|
}
|
|
1191
|
-
}`,[
|
|
1280
|
+
}`,[C]),An=e(`query Repay($request: RepayRequest!) {
|
|
1192
1281
|
value: repay(request: $request) {
|
|
1193
1282
|
...ExecutionPlan
|
|
1194
1283
|
}
|
|
1195
|
-
}`,[
|
|
1284
|
+
}`,[C]),hn=e(`query Withdraw($request: WithdrawRequest!) {
|
|
1196
1285
|
value: withdraw(request: $request) {
|
|
1197
1286
|
...ExecutionPlan
|
|
1198
1287
|
}
|
|
1199
|
-
}`,[
|
|
1288
|
+
}`,[C]),Wt=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1200
1289
|
__typename
|
|
1201
1290
|
... on TransactionRequest {
|
|
1202
1291
|
...TransactionRequest
|
|
@@ -1207,27 +1296,27 @@
|
|
|
1207
1296
|
... on InsufficientBalanceError {
|
|
1208
1297
|
...InsufficientBalanceError
|
|
1209
1298
|
}
|
|
1210
|
-
}`,[m,
|
|
1299
|
+
}`,[m,V,q]),Pn=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1211
1300
|
value: liquidatePosition(request: $request) {
|
|
1212
1301
|
...LiquidatePositionExecutionPlan
|
|
1213
1302
|
}
|
|
1214
|
-
}`,[
|
|
1303
|
+
}`,[Wt]),Fn=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1215
1304
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1216
1305
|
...TransactionRequest
|
|
1217
1306
|
}
|
|
1218
|
-
}`,[m]),
|
|
1307
|
+
}`,[m]),In=e(`query SetUserSuppliesAsCollateral($request: SetUserSuppliesAsCollateralRequest!) {
|
|
1219
1308
|
value: setUserSuppliesAsCollateral(request: $request) {
|
|
1220
1309
|
...TransactionRequest
|
|
1221
1310
|
}
|
|
1222
|
-
}`,[m]),
|
|
1311
|
+
}`,[m]),Tn=e(`query RenounceSpokeUserPositionManager($request: RenounceSpokeUserPositionManagerRequest!) {
|
|
1223
1312
|
value: renounceSpokeUserPositionManager(request: $request) {
|
|
1224
1313
|
...TransactionRequest
|
|
1225
1314
|
}
|
|
1226
|
-
}`,[m]),
|
|
1315
|
+
}`,[m]),kn=e(`query UpdateUserPositionConditions($request: UpdateUserPositionConditionsRequest!) {
|
|
1227
1316
|
value: updateUserPositionConditions(request: $request) {
|
|
1228
1317
|
...TransactionRequest
|
|
1229
1318
|
}
|
|
1230
|
-
}`,[m])
|
|
1319
|
+
}`,[m]),$t=e(`fragment CollateralFactorVariation on CollateralFactorVariation {
|
|
1231
1320
|
__typename
|
|
1232
1321
|
reserveId
|
|
1233
1322
|
token {
|
|
@@ -1239,7 +1328,7 @@
|
|
|
1239
1328
|
after {
|
|
1240
1329
|
...PercentNumber
|
|
1241
1330
|
}
|
|
1242
|
-
}`,[l,a]),
|
|
1331
|
+
}`,[l,a]),Nt=e(`fragment LiquidationFeeVariation on LiquidationFeeVariation {
|
|
1243
1332
|
__typename
|
|
1244
1333
|
reserveId
|
|
1245
1334
|
token {
|
|
@@ -1251,7 +1340,7 @@
|
|
|
1251
1340
|
after {
|
|
1252
1341
|
...PercentNumber
|
|
1253
1342
|
}
|
|
1254
|
-
}`,[l,a]),
|
|
1343
|
+
}`,[l,a]),Dt=e(`fragment MaxLiquidationBonusVariation on MaxLiquidationBonusVariation {
|
|
1255
1344
|
__typename
|
|
1256
1345
|
reserveId
|
|
1257
1346
|
token {
|
|
@@ -1263,7 +1352,7 @@
|
|
|
1263
1352
|
after {
|
|
1264
1353
|
...PercentNumber
|
|
1265
1354
|
}
|
|
1266
|
-
}`,[l,a]),
|
|
1355
|
+
}`,[l,a]),Lt=e(`fragment UserPositionConditionVariation on UserPositionConditionVariation {
|
|
1267
1356
|
__typename
|
|
1268
1357
|
... on CollateralFactorVariation {
|
|
1269
1358
|
...CollateralFactorVariation
|
|
@@ -1274,7 +1363,7 @@
|
|
|
1274
1363
|
... on MaxLiquidationBonusVariation {
|
|
1275
1364
|
...MaxLiquidationBonusVariation
|
|
1276
1365
|
}
|
|
1277
|
-
}`,[
|
|
1366
|
+
}`,[$t,Nt,Dt]),Mt=e(`fragment PreviewUserPosition on PreviewUserPosition {
|
|
1278
1367
|
__typename
|
|
1279
1368
|
id
|
|
1280
1369
|
healthFactor {
|
|
@@ -1301,11 +1390,11 @@
|
|
|
1301
1390
|
otherConditions {
|
|
1302
1391
|
...UserPositionConditionVariation
|
|
1303
1392
|
}
|
|
1304
|
-
}`,[ee,
|
|
1393
|
+
}`,[ae,ee,te,Lt]),vn=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD) {
|
|
1305
1394
|
value: preview(request: $request) {
|
|
1306
1395
|
...PreviewUserPosition
|
|
1307
1396
|
}
|
|
1308
|
-
}`,[
|
|
1397
|
+
}`,[Mt]),Te=e(`fragment PercentNumberChangeSnapshot on PercentNumberChangeSnapshot {
|
|
1309
1398
|
__typename
|
|
1310
1399
|
before {
|
|
1311
1400
|
...PercentNumber
|
|
@@ -1313,7 +1402,7 @@
|
|
|
1313
1402
|
after {
|
|
1314
1403
|
...PercentNumber
|
|
1315
1404
|
}
|
|
1316
|
-
}`,[a]),
|
|
1405
|
+
}`,[a]),Vt=e(`fragment BorrowActivity on BorrowActivity {
|
|
1317
1406
|
__typename
|
|
1318
1407
|
id
|
|
1319
1408
|
user
|
|
@@ -1331,7 +1420,7 @@
|
|
|
1331
1420
|
chain {
|
|
1332
1421
|
...Chain
|
|
1333
1422
|
}
|
|
1334
|
-
}`,[
|
|
1423
|
+
}`,[u,p,S,n]),Kt=e(`fragment SupplyActivity on SupplyActivity {
|
|
1335
1424
|
__typename
|
|
1336
1425
|
id
|
|
1337
1426
|
user
|
|
@@ -1349,7 +1438,7 @@
|
|
|
1349
1438
|
chain {
|
|
1350
1439
|
...Chain
|
|
1351
1440
|
}
|
|
1352
|
-
}`,[
|
|
1441
|
+
}`,[u,p,S,n]),Gt=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1353
1442
|
__typename
|
|
1354
1443
|
id
|
|
1355
1444
|
user
|
|
@@ -1367,7 +1456,7 @@
|
|
|
1367
1456
|
chain {
|
|
1368
1457
|
...Chain
|
|
1369
1458
|
}
|
|
1370
|
-
}`,[
|
|
1459
|
+
}`,[u,p,S,n]),Yt=e(`fragment RepayActivity on RepayActivity {
|
|
1371
1460
|
__typename
|
|
1372
1461
|
id
|
|
1373
1462
|
user
|
|
@@ -1385,7 +1474,7 @@
|
|
|
1385
1474
|
chain {
|
|
1386
1475
|
...Chain
|
|
1387
1476
|
}
|
|
1388
|
-
}`,[
|
|
1477
|
+
}`,[u,p,S,n]),zt=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1389
1478
|
__typename
|
|
1390
1479
|
id
|
|
1391
1480
|
user
|
|
@@ -1410,7 +1499,7 @@
|
|
|
1410
1499
|
chain {
|
|
1411
1500
|
...Chain
|
|
1412
1501
|
}
|
|
1413
|
-
}`,[
|
|
1502
|
+
}`,[u,p,S,n]),Zt=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1414
1503
|
__typename
|
|
1415
1504
|
id
|
|
1416
1505
|
user
|
|
@@ -1426,7 +1515,7 @@
|
|
|
1426
1515
|
chain {
|
|
1427
1516
|
...Chain
|
|
1428
1517
|
}
|
|
1429
|
-
}`,[
|
|
1518
|
+
}`,[u,S,n]),jt=e(`fragment UpdatedDynamicConfigActivity on UpdatedDynamicConfigActivity {
|
|
1430
1519
|
__typename
|
|
1431
1520
|
id
|
|
1432
1521
|
user
|
|
@@ -1450,7 +1539,7 @@
|
|
|
1450
1539
|
chain {
|
|
1451
1540
|
...Chain
|
|
1452
1541
|
}
|
|
1453
|
-
}`,[
|
|
1542
|
+
}`,[u,S,Te,n]),Jt=e(`fragment UpdatedRiskPremiumActivity on UpdatedRiskPremiumActivity {
|
|
1454
1543
|
__typename
|
|
1455
1544
|
id
|
|
1456
1545
|
user
|
|
@@ -1465,7 +1554,7 @@
|
|
|
1465
1554
|
chain {
|
|
1466
1555
|
...Chain
|
|
1467
1556
|
}
|
|
1468
|
-
}`,[
|
|
1557
|
+
}`,[u,Te,n]),Xt=e(`fragment TokenSwapActivity on TokenSwapActivity {
|
|
1469
1558
|
__typename
|
|
1470
1559
|
id
|
|
1471
1560
|
user
|
|
@@ -1481,7 +1570,9 @@
|
|
|
1481
1570
|
...SwapAmount
|
|
1482
1571
|
}
|
|
1483
1572
|
explorerUrl
|
|
1484
|
-
|
|
1573
|
+
orderClass
|
|
1574
|
+
kind
|
|
1575
|
+
}`,[n,T]),er=e(`fragment SupplySwapActivity on SupplySwapActivity {
|
|
1485
1576
|
__typename
|
|
1486
1577
|
id
|
|
1487
1578
|
user
|
|
@@ -1497,7 +1588,9 @@
|
|
|
1497
1588
|
...SwapAmount
|
|
1498
1589
|
}
|
|
1499
1590
|
explorerUrl
|
|
1500
|
-
|
|
1591
|
+
orderClass
|
|
1592
|
+
kind
|
|
1593
|
+
}`,[n,T]),tr=e(`fragment BorrowSwapActivity on BorrowSwapActivity {
|
|
1501
1594
|
__typename
|
|
1502
1595
|
id
|
|
1503
1596
|
user
|
|
@@ -1513,7 +1606,9 @@
|
|
|
1513
1606
|
...SwapAmount
|
|
1514
1607
|
}
|
|
1515
1608
|
explorerUrl
|
|
1516
|
-
|
|
1609
|
+
orderClass
|
|
1610
|
+
kind
|
|
1611
|
+
}`,[n,T]),rr=e(`fragment RepayWithSupplyActivity on RepayWithSupplyActivity {
|
|
1517
1612
|
__typename
|
|
1518
1613
|
id
|
|
1519
1614
|
user
|
|
@@ -1529,7 +1624,9 @@
|
|
|
1529
1624
|
...SwapAmount
|
|
1530
1625
|
}
|
|
1531
1626
|
explorerUrl
|
|
1532
|
-
|
|
1627
|
+
orderClass
|
|
1628
|
+
kind
|
|
1629
|
+
}`,[n,T]),ar=e(`fragment WithdrawSwapActivity on WithdrawSwapActivity {
|
|
1533
1630
|
__typename
|
|
1534
1631
|
id
|
|
1535
1632
|
user
|
|
@@ -1545,7 +1642,9 @@
|
|
|
1545
1642
|
...SwapAmount
|
|
1546
1643
|
}
|
|
1547
1644
|
explorerUrl
|
|
1548
|
-
|
|
1645
|
+
orderClass
|
|
1646
|
+
kind
|
|
1647
|
+
}`,[n,T]),nr=e(`fragment ActivityItem on ActivityItem {
|
|
1549
1648
|
__typename
|
|
1550
1649
|
... on BorrowActivity {
|
|
1551
1650
|
...BorrowActivity
|
|
@@ -1586,7 +1685,7 @@
|
|
|
1586
1685
|
... on WithdrawSwapActivity {
|
|
1587
1686
|
...WithdrawSwapActivity
|
|
1588
1687
|
}
|
|
1589
|
-
}`,[
|
|
1688
|
+
}`,[Vt,Kt,Gt,Yt,zt,Zt,jt,Jt,Xt,er,tr,rr,ar]),or=e(`fragment PaginatedActivitiesResult on PaginatedActivitiesResult {
|
|
1590
1689
|
__typename
|
|
1591
1690
|
items {
|
|
1592
1691
|
...ActivityItem
|
|
@@ -1594,41 +1693,41 @@
|
|
|
1594
1693
|
pageInfo {
|
|
1595
1694
|
...PaginatedResultInfo
|
|
1596
1695
|
}
|
|
1597
|
-
}`,[
|
|
1696
|
+
}`,[nr,A]),bn=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1598
1697
|
value: activities(request: $request) {
|
|
1599
1698
|
...PaginatedActivitiesResult
|
|
1600
1699
|
}
|
|
1601
|
-
}`,[
|
|
1700
|
+
}`,[or]);var On=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1602
1701
|
value: userSupplies(request: $request) {
|
|
1603
1702
|
...UserSupplyItem
|
|
1604
1703
|
}
|
|
1605
|
-
}`,[
|
|
1704
|
+
}`,[qe]),_n=e(`query UserBorrows($request: UserBorrowsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1606
1705
|
value: userBorrows(request: $request) {
|
|
1607
1706
|
...UserBorrowItem
|
|
1608
1707
|
}
|
|
1609
|
-
}`,[
|
|
1708
|
+
}`,[xe]),Bn=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1610
1709
|
value: userSummary(request: $request) {
|
|
1611
1710
|
...UserSummary
|
|
1612
1711
|
}
|
|
1613
|
-
}`,[
|
|
1712
|
+
}`,[Ae]),Hn=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1614
1713
|
value: userPositions(request: $request) {
|
|
1615
1714
|
...UserPosition
|
|
1616
1715
|
}
|
|
1617
|
-
}`,[
|
|
1716
|
+
}`,[Y]),Qn=e(`query UserPosition($request: UserPositionRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1618
1717
|
value: userPosition(request: $request) {
|
|
1619
1718
|
...UserPosition
|
|
1620
1719
|
}
|
|
1621
|
-
}`,[
|
|
1720
|
+
}`,[Y]),Wn=e(`query UserBalances($request: UserBalancesRequest!, $currency: Currency!) {
|
|
1622
1721
|
value: userBalances(request: $request) {
|
|
1623
1722
|
...UserBalance
|
|
1624
1723
|
}
|
|
1625
|
-
}`,[
|
|
1724
|
+
}`,[he]),$n=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1626
1725
|
value: userSummaryHistory(request: $request) {
|
|
1627
1726
|
...UserSummaryHistoryItem
|
|
1628
1727
|
}
|
|
1629
|
-
}`,[
|
|
1728
|
+
}`,[Pe]),Nn=e(`query UserRiskPremiumBreakdown($request: UserRiskPremiumBreakdownRequest!) {
|
|
1630
1729
|
value: userRiskPremiumBreakdown(request: $request) {
|
|
1631
1730
|
...UserRiskPremiumBreakdownItem
|
|
1632
1731
|
}
|
|
1633
|
-
}`,[
|
|
1732
|
+
}`,[G]);exports.ActivitiesQuery=bn;exports.ActivityItemFragment=nr;exports.ActivityType=Ue;exports.ApyMetric=Oe;exports.ApySampleFragment=z;exports.AssetAmountWithChangeFragment=_t;exports.AssetBorrowHistoryQuery=Qa;exports.AssetBorrowSampleFragment=Ot;exports.AssetFragment=Ht;exports.AssetPriceHistoryQuery=Ba;exports.AssetPriceSampleFragment=Ct;exports.AssetQuery=_a;exports.AssetSampleBreakdownFragment=Ie;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=Qe;exports.BorrowSwapQuoteQuery=ln;exports.BorrowSwapQuoteResultFragment=de;exports.CancelSwapExecutionPlanFragment=le;exports.CancelSwapMutation=mn;exports.ChainFragment=n;exports.ChainQuery=Ta;exports.ChainsFilter=Ce;exports.ChainsQuery=ka;exports.CollateralFactorVariationFragment=$t;exports.CollateralMetric=_e;exports.Currency=Be;exports.DecimalNumberFragment=c;exports.DecimalNumberWithChangeFragment=Z;exports.DomainDataFragment=B;exports.Erc20AmountFragment=p;exports.Erc20ApprovalFragment=M;exports.Erc20ApprovalRequiredFragment=V;exports.Erc20TokenFragment=l;exports.ExchangeAmountFragment=i;exports.ExchangeAmountVariationFragment=te;exports.ExchangeAmountWithChangeFragment=w;exports.ExchangeRateQuery=Ea;exports.ExecutionPlanFragment=C;exports.HasProcessedKnownTransactionQuery=va;exports.HealthFactorErrorFragment=Ze;exports.HealthFactorResultFragment=ae;exports.HealthFactorVariationFragment=ze;exports.HealthFactorWithChangeFragment=re;exports.HealthQuery=ba;exports.HubAssetFragment=E;exports.HubAssetSettingsFragment=Xe;exports.HubAssetSummaryFragment=Je;exports.HubAssetUserStateFragment=et;exports.HubAssetsQuery=zr;exports.HubFragment=h;exports.HubQuery=Gr;exports.HubSummaryFragment=je;exports.HubSummaryHistoryQuery=Zr;exports.HubSummarySampleFragment=kt;exports.HubsQuery=Yr;exports.InsufficientBalanceErrorFragment=q;exports.InsufficientLiquidityErrorFragment=F;exports.LiquidatePositionExecutionPlanFragment=Wt;exports.LiquidatePositionQuery=Pn;exports.LiquidatedActivityFragment=zt;exports.LiquidationFeeVariationFragment=Nt;exports.MaxLiquidationBonusVariationFragment=Dt;exports.NativeAmountFragment=L;exports.NativeTokenFragment=j;exports.OperationType=Ee;exports.OrderDirection=ke;exports.PageSize=ve;exports.PaginatedActivitiesResultFragment=or;exports.PaginatedResultInfoFragment=A;exports.PaginatedSpokePositionManagerResultFragment=oe;exports.PaginatedSpokeUserPositionManagerResultFragment=pe;exports.PaginatedUserSwapsResultFragment=ge;exports.PercentNumberChangeSnapshotFragment=Te;exports.PercentNumberFragment=a;exports.PercentNumberVariationFragment=ee;exports.PercentNumberWithChangeFragment=X;exports.PermitTypedDataFragment=ne;exports.PositionAmountFragment=U;exports.PositionSwapAdapterContractApprovalFragment=Pt;exports.PositionSwapApprovalFragment=It;exports.PositionSwapByIntentApprovalsRequiredFragment=W;exports.PositionSwapPositionManagerApprovalFragment=Ft;exports.PreContractActionRequiredFragment=st;exports.PreparePositionSwapQuery=dn;exports.PreparePositionSwapResultFragment=we;exports.PrepareSwapCancelQuery=un;exports.PrepareSwapCancelResultFragment=ce;exports.PrepareSwapOrderFragment=se;exports.PrepareTokenSwapQuery=on;exports.PrepareTokenSwapResultFragment=me;exports.PreviewQuery=vn;exports.PreviewUserPositionFragment=Mt;exports.ProtocolHistoryQuery=Wa;exports.ProtocolHistorySampleFragment=Qt;exports.QuoteAccuracy=Ve;exports.RenounceSpokeUserPositionManagerQuery=Tn;exports.RepayActivityFragment=Yt;exports.RepayQuery=An;exports.RepayWithSupplyActivityFragment=rr;exports.RepayWithSupplyFragment=St;exports.RepayWithSupplyKind=We;exports.RepayWithSupplyQuoteQuery=gn;exports.RepayWithSupplyQuoteResultFragment=fe;exports.ReserveFragment=I;exports.ReserveInfoFragment=S;exports.ReserveQuery=Va;exports.ReserveSettingsFragment=at;exports.ReserveStatusFragment=nt;exports.ReserveSummaryFragment=ot;exports.ReserveUserStateFragment=pt;exports.ReservesQuery=Ka;exports.ReservesRequestFilter=He;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=$e;exports.SupplySwapQuoteQuery=cn;exports.SupplySwapQuoteResultFragment=Se;exports.SwapAmountFragment=T;exports.SwapByIntentFragment=ut;exports.SwapByIntentWithApprovalRequiredFragment=mt;exports.SwapByTransactionFragment=yt;exports.SwapCancelledFragment=Rt;exports.SwapCancelledResultFragment=ht;exports.SwapExecutionPlanFragment=ye;exports.SwapExpiredFragment=wt;exports.SwapFulfilledFragment=At;exports.SwapMutation=sn;exports.SwapOpenFragment=qt;exports.SwapOperationFragment=O;exports.SwapOrderClass=Ke;exports.SwapPendingSignatureFragment=xt;exports.SwapQuoteCostsFragment=it;exports.SwapQuoteFragment=H;exports.SwapReceiptFragment=ie;exports.SwapStatusFilter=De;exports.SwapStatusFragment=K;exports.SwapStatusQuery=pn;exports.SwapTransactionRequestFragment=ct;exports.SwapTypedDataFragment=Q;exports.SwappableTokensQuery=nn;exports.TimeWindow=be;exports.TokenAmountFragment=x;exports.TokenCategory=Le;exports.TokenFragment=J;exports.TokenInfoFragment=b;exports.TokenSwapActivityFragment=Xt;exports.TokenSwapFragment=ft;exports.TokenSwapKind=Ge;exports.TokenSwapQuoteQuery=an;exports.TokenSwapQuoteResultFragment=ue;exports.TransactionRequestFragment=m;exports.UpdateUserPositionConditionsQuery=kn;exports.UpdatedDynamicConfigActivityFragment=jt;exports.UpdatedRiskPremiumActivityFragment=Jt;exports.UserBalanceFragment=he;exports.UserBalancesQuery=Wn;exports.UserBorrowItemFragment=xe;exports.UserBorrowsQuery=_n;exports.UserPositionConditionVariationFragment=Lt;exports.UserPositionConditionsUpdate=Me;exports.UserPositionFragment=Y;exports.UserPositionQuery=Qn;exports.UserPositionRiskPremiumFragment=Tt;exports.UserPositionsQuery=Hn;exports.UserRiskPremiumBreakdownItemFragment=G;exports.UserRiskPremiumBreakdownQuery=Nn;exports.UserSummaryFragment=Ae;exports.UserSummaryHistoryItemFragment=Pe;exports.UserSummaryHistoryQuery=$n;exports.UserSummaryQuery=Bn;exports.UserSuppliesQuery=On;exports.UserSupplyItemFragment=qe;exports.UserSwapsQuery=yn;exports.UsingAsCollateralActivityFragment=Zt;exports.WithdrawActivityFragment=Gt;exports.WithdrawQuery=hn;exports.WithdrawSwapActivityFragment=ar;exports.WithdrawSwapFragment=dt;exports.WithdrawSwapKind=Ne;exports.WithdrawSwapQuoteQuery=Sn;exports.WithdrawSwapQuoteResultFragment=Re;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=Et;exports.swapId=ia;exports.swapQuoteId=ua;exports.tokenInfoId=Sa;exports.userBalanceId=ca;exports.userBorrowItemId=la;exports.userPositionId=bt;exports.userSupplyItemId=ga;//# sourceMappingURL=index.cjs.map
|
|
1634
1733
|
//# sourceMappingURL=index.cjs.map
|