@aave/graphql 1.0.0-next.26 → 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 +292 -194
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +102144 -22902
- package/dist/index.d.ts +102144 -22902
- package/dist/index.js +292 -194
- 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 +7420 -813
- 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
|
|
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
|
|
@@ -399,13 +402,13 @@
|
|
|
399
402
|
asset {
|
|
400
403
|
...HubAsset
|
|
401
404
|
}
|
|
402
|
-
}`,[
|
|
405
|
+
}`,[u,n,ot,at,nt,pt,E]),S=e(`fragment ReserveInfo on ReserveInfo {
|
|
403
406
|
__typename
|
|
404
407
|
id
|
|
405
408
|
asset {
|
|
406
409
|
...HubAsset
|
|
407
410
|
}
|
|
408
|
-
}`,[
|
|
411
|
+
}`,[E]);var m=e(`fragment TransactionRequest on TransactionRequest {
|
|
409
412
|
__typename
|
|
410
413
|
to
|
|
411
414
|
from
|
|
@@ -413,7 +416,7 @@
|
|
|
413
416
|
value
|
|
414
417
|
chainId
|
|
415
418
|
operations
|
|
416
|
-
}`),
|
|
419
|
+
}`),M=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,ne]),V=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,M,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,V,st,q]);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
|
+
}`,[x]),H=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,x,it]),Q=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
|
+
}`,[B]),se=e(`fragment PrepareSwapOrder on PrepareSwapOrder {
|
|
510
513
|
__typename
|
|
511
514
|
newQuoteId
|
|
512
515
|
data {
|
|
513
516
|
...SwapTypedData
|
|
514
517
|
}
|
|
515
|
-
}`,[
|
|
518
|
+
}`,[Q]),ut=e(`fragment SwapByIntent on SwapByIntent {
|
|
516
519
|
__typename
|
|
517
520
|
quote {
|
|
518
521
|
...SwapQuote
|
|
519
522
|
}
|
|
520
523
|
|
|
521
|
-
}`,[
|
|
524
|
+
}`,[H]),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
|
+
}`,[M,H]),yt=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
530
533
|
__typename
|
|
531
534
|
quote {
|
|
532
535
|
...SwapQuote
|
|
533
536
|
}
|
|
534
|
-
}`,[
|
|
537
|
+
}`,[H]),ie=e(`fragment SwapReceipt on SwapReceipt {
|
|
535
538
|
__typename
|
|
536
539
|
id
|
|
537
540
|
explorerUrl
|
|
538
541
|
createdAt
|
|
539
|
-
}`),
|
|
542
|
+
}`),ue=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,F]),me=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
|
+
}`,[se,q]),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,ie]),ye=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
567
573
|
__typename
|
|
568
574
|
... on SwapTransactionRequest {
|
|
569
575
|
...SwapTransactionRequest
|
|
@@ -574,27 +580,100 @@
|
|
|
574
580
|
... on InsufficientBalanceError {
|
|
575
581
|
...InsufficientBalanceError
|
|
576
582
|
}
|
|
577
|
-
}`,[
|
|
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 {
|
|
578
659
|
__typename
|
|
579
660
|
swapId
|
|
580
661
|
createdAt
|
|
581
662
|
cancelledAt
|
|
582
663
|
explorerUrl
|
|
583
|
-
|
|
664
|
+
operation {
|
|
665
|
+
...SwapOperation
|
|
666
|
+
}
|
|
667
|
+
}`,[O]),wt=e(`fragment SwapExpired on SwapExpired {
|
|
584
668
|
__typename
|
|
585
669
|
swapId
|
|
586
670
|
createdAt
|
|
587
671
|
expiredAt
|
|
588
672
|
explorerUrl
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
reserve {
|
|
592
|
-
...ReserveInfo
|
|
673
|
+
operation {
|
|
674
|
+
...SwapOperation
|
|
593
675
|
}
|
|
594
|
-
|
|
595
|
-
...Erc20Amount
|
|
596
|
-
}
|
|
597
|
-
}`,[S,p]),w=e(`fragment SwapAmount on SwapAmount {
|
|
676
|
+
}`,[O]),T=e(`fragment SwapAmount on SwapAmount {
|
|
598
677
|
__typename
|
|
599
678
|
... on PositionAmount {
|
|
600
679
|
...PositionAmount
|
|
@@ -605,45 +684,36 @@
|
|
|
605
684
|
... on Erc20Amount {
|
|
606
685
|
...Erc20Amount
|
|
607
686
|
}
|
|
608
|
-
}`,[
|
|
687
|
+
}`,[U,L,p]),qt=e(`fragment SwapOpen on SwapOpen {
|
|
609
688
|
__typename
|
|
610
689
|
swapId
|
|
611
690
|
createdAt
|
|
612
691
|
deadline
|
|
613
692
|
explorerUrl
|
|
614
|
-
|
|
615
|
-
...
|
|
616
|
-
}
|
|
617
|
-
desiredBuy {
|
|
618
|
-
...SwapAmount
|
|
693
|
+
operation {
|
|
694
|
+
...SwapOperation
|
|
619
695
|
}
|
|
620
|
-
}`,[
|
|
696
|
+
}`,[O]),xt=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
621
697
|
__typename
|
|
622
698
|
swapId
|
|
623
699
|
createdAt
|
|
624
700
|
deadline
|
|
625
701
|
explorerUrl
|
|
626
|
-
|
|
702
|
+
operation {
|
|
703
|
+
...SwapOperation
|
|
704
|
+
}
|
|
705
|
+
}`,[O]),At=e(`fragment SwapFulfilled on SwapFulfilled {
|
|
627
706
|
__typename
|
|
628
707
|
swapId
|
|
629
708
|
txHash
|
|
630
|
-
desiredSell {
|
|
631
|
-
...SwapAmount
|
|
632
|
-
}
|
|
633
|
-
desiredBuy {
|
|
634
|
-
...SwapAmount
|
|
635
|
-
}
|
|
636
|
-
sold {
|
|
637
|
-
...SwapAmount
|
|
638
|
-
}
|
|
639
|
-
bought {
|
|
640
|
-
...SwapAmount
|
|
641
|
-
}
|
|
642
709
|
createdAt
|
|
643
710
|
fulfilledAt
|
|
644
711
|
explorerUrl
|
|
645
712
|
refundTxHash
|
|
646
|
-
|
|
713
|
+
operation {
|
|
714
|
+
...SwapOperation
|
|
715
|
+
}
|
|
716
|
+
}`,[O]),K=e(`fragment SwapStatus on SwapStatus {
|
|
647
717
|
__typename
|
|
648
718
|
... on SwapOpen {
|
|
649
719
|
...SwapOpen
|
|
@@ -660,20 +730,26 @@
|
|
|
660
730
|
... on SwapFulfilled {
|
|
661
731
|
...SwapFulfilled
|
|
662
732
|
}
|
|
663
|
-
}`,[
|
|
733
|
+
}`,[qt,xt,Rt,wt,At]),ce=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
664
734
|
__typename
|
|
665
735
|
data {
|
|
666
736
|
...SwapTypedData
|
|
667
737
|
}
|
|
668
|
-
}`,[
|
|
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 {
|
|
669
745
|
__typename
|
|
670
746
|
... on TransactionRequest {
|
|
671
747
|
...TransactionRequest
|
|
672
748
|
}
|
|
673
|
-
... on
|
|
674
|
-
...
|
|
749
|
+
... on SwapCancelledResult {
|
|
750
|
+
...SwapCancelledResult
|
|
675
751
|
}
|
|
676
|
-
}`,[m,
|
|
752
|
+
}`,[m,ht]),ge=e(`fragment PaginatedUserSwapsResult on PaginatedUserSwapsResult {
|
|
677
753
|
__typename
|
|
678
754
|
items {
|
|
679
755
|
...SwapStatus
|
|
@@ -681,12 +757,12 @@
|
|
|
681
757
|
pageInfo {
|
|
682
758
|
...PaginatedResultInfo
|
|
683
759
|
}
|
|
684
|
-
}`,[
|
|
760
|
+
}`,[K,A]),Pt=e(`fragment PositionSwapAdapterContractApproval on PositionSwapAdapterContractApproval {
|
|
685
761
|
__typename
|
|
686
762
|
bySignature {
|
|
687
763
|
...SwapTypedData
|
|
688
764
|
}
|
|
689
|
-
}`,[
|
|
765
|
+
}`,[Q]),Ft=e(`fragment PositionSwapPositionManagerApproval on PositionSwapPositionManagerApproval {
|
|
690
766
|
__typename
|
|
691
767
|
byTransaction {
|
|
692
768
|
...TransactionRequest
|
|
@@ -694,7 +770,7 @@
|
|
|
694
770
|
bySignature {
|
|
695
771
|
...SwapTypedData
|
|
696
772
|
}
|
|
697
|
-
}`,[m,
|
|
773
|
+
}`,[m,Q]),It=e(`fragment PositionSwapApproval on PositionSwapApproval {
|
|
698
774
|
__typename
|
|
699
775
|
... on PositionSwapAdapterContractApproval {
|
|
700
776
|
...PositionSwapAdapterContractApproval
|
|
@@ -702,7 +778,7 @@
|
|
|
702
778
|
... on PositionSwapPositionManagerApproval {
|
|
703
779
|
...PositionSwapPositionManagerApproval
|
|
704
780
|
}
|
|
705
|
-
}`,[
|
|
781
|
+
}`,[Pt,Ft]),W=e(`fragment PositionSwapByIntentApprovalsRequired on PositionSwapByIntentApprovalsRequired {
|
|
706
782
|
__typename
|
|
707
783
|
quote {
|
|
708
784
|
...SwapQuote
|
|
@@ -710,27 +786,39 @@
|
|
|
710
786
|
approvals {
|
|
711
787
|
...PositionSwapApproval
|
|
712
788
|
}
|
|
713
|
-
}`,[
|
|
789
|
+
}`,[H,It]),Se=e(`fragment SupplySwapQuoteResult on SupplySwapQuoteResult {
|
|
714
790
|
__typename
|
|
715
791
|
... on PositionSwapByIntentApprovalsRequired {
|
|
716
792
|
...PositionSwapByIntentApprovalsRequired
|
|
717
793
|
}
|
|
718
|
-
|
|
794
|
+
... on InsufficientLiquidityError {
|
|
795
|
+
...InsufficientLiquidityError
|
|
796
|
+
}
|
|
797
|
+
}`,[W,F]),de=e(`fragment BorrowSwapQuoteResult on BorrowSwapQuoteResult {
|
|
719
798
|
__typename
|
|
720
799
|
... on PositionSwapByIntentApprovalsRequired {
|
|
721
800
|
...PositionSwapByIntentApprovalsRequired
|
|
722
801
|
}
|
|
723
|
-
|
|
802
|
+
... on InsufficientLiquidityError {
|
|
803
|
+
...InsufficientLiquidityError
|
|
804
|
+
}
|
|
805
|
+
}`,[W,F]),fe=e(`fragment RepayWithSupplyQuoteResult on RepayWithSupplyQuoteResult {
|
|
724
806
|
__typename
|
|
725
807
|
... on PositionSwapByIntentApprovalsRequired {
|
|
726
808
|
...PositionSwapByIntentApprovalsRequired
|
|
727
809
|
}
|
|
728
|
-
|
|
810
|
+
... on InsufficientLiquidityError {
|
|
811
|
+
...InsufficientLiquidityError
|
|
812
|
+
}
|
|
813
|
+
}`,[W,F]),Re=e(`fragment WithdrawSwapQuoteResult on WithdrawSwapQuoteResult {
|
|
729
814
|
__typename
|
|
730
815
|
... on PositionSwapByIntentApprovalsRequired {
|
|
731
816
|
...PositionSwapByIntentApprovalsRequired
|
|
732
817
|
}
|
|
733
|
-
|
|
818
|
+
... on InsufficientLiquidityError {
|
|
819
|
+
...InsufficientLiquidityError
|
|
820
|
+
}
|
|
821
|
+
}`,[W,F]),we=e(`fragment PreparePositionSwapResult on PreparePositionSwapResult {
|
|
734
822
|
__typename
|
|
735
823
|
... on PrepareSwapOrder {
|
|
736
824
|
...PrepareSwapOrder
|
|
@@ -738,7 +826,7 @@
|
|
|
738
826
|
... on InsufficientBalanceError {
|
|
739
827
|
...InsufficientBalanceError
|
|
740
828
|
}
|
|
741
|
-
}`,[
|
|
829
|
+
}`,[se,q]);var qe=e(`fragment UserSupplyItem on UserSupplyItem {
|
|
742
830
|
__typename
|
|
743
831
|
id
|
|
744
832
|
reserve {
|
|
@@ -755,7 +843,7 @@
|
|
|
755
843
|
}
|
|
756
844
|
isCollateral
|
|
757
845
|
createdAt
|
|
758
|
-
}`,[p,
|
|
846
|
+
}`,[p,I]),xe=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
759
847
|
__typename
|
|
760
848
|
id
|
|
761
849
|
principal {
|
|
@@ -771,7 +859,7 @@
|
|
|
771
859
|
...Reserve
|
|
772
860
|
}
|
|
773
861
|
createdAt
|
|
774
|
-
}`,[p,
|
|
862
|
+
}`,[p,I]),Ae=e(`fragment UserSummary on UserSummary {
|
|
775
863
|
__typename
|
|
776
864
|
totalPositions
|
|
777
865
|
netBalance(currency: $currency) {
|
|
@@ -793,7 +881,7 @@
|
|
|
793
881
|
...ExchangeAmount
|
|
794
882
|
}
|
|
795
883
|
lowestHealthFactor
|
|
796
|
-
}`,[
|
|
884
|
+
}`,[w,i,a]),G=e(`fragment UserRiskPremiumBreakdownItem on UserRiskPremiumBreakdownItem {
|
|
797
885
|
__typename
|
|
798
886
|
token {
|
|
799
887
|
...Erc20Token
|
|
@@ -807,7 +895,7 @@
|
|
|
807
895
|
collateral {
|
|
808
896
|
...PercentNumber
|
|
809
897
|
}
|
|
810
|
-
}`,[l,a]),
|
|
898
|
+
}`,[l,a]),Tt=e(`fragment UserPositionRiskPremium on UserPositionRiskPremium {
|
|
811
899
|
__typename
|
|
812
900
|
current {
|
|
813
901
|
...PercentNumber
|
|
@@ -818,7 +906,7 @@
|
|
|
818
906
|
breakdown {
|
|
819
907
|
...UserRiskPremiumBreakdownItem
|
|
820
908
|
}
|
|
821
|
-
}`,[a,
|
|
909
|
+
}`,[a,G]),Y=e(`fragment UserPosition on UserPosition {
|
|
822
910
|
__typename
|
|
823
911
|
id
|
|
824
912
|
spoke {
|
|
@@ -872,7 +960,7 @@
|
|
|
872
960
|
averageCollateralFactor {
|
|
873
961
|
...PercentNumber
|
|
874
962
|
}
|
|
875
|
-
}`,[
|
|
963
|
+
}`,[u,a,w,i,X,re,Tt]),he=e(`fragment UserBalance on UserBalance {
|
|
876
964
|
__typename
|
|
877
965
|
id
|
|
878
966
|
info {
|
|
@@ -905,7 +993,7 @@
|
|
|
905
993
|
lowestCollateralFactor: collateralFactor(metric: LOWEST) {
|
|
906
994
|
...PercentNumber
|
|
907
995
|
}
|
|
908
|
-
}`,[
|
|
996
|
+
}`,[b,c,x,i,a]),Pe=e(`fragment UserSummaryHistoryItem on UserSummaryHistoryItem {
|
|
909
997
|
__typename
|
|
910
998
|
netBalance(currency: $currency) {
|
|
911
999
|
...ExchangeAmount
|
|
@@ -918,25 +1006,25 @@
|
|
|
918
1006
|
}
|
|
919
1007
|
healthFactor
|
|
920
1008
|
date
|
|
921
|
-
}`,[
|
|
1009
|
+
}`,[i]),z=e(`fragment ApySample on ApySample {
|
|
922
1010
|
__typename
|
|
923
1011
|
date
|
|
924
1012
|
avgRate {
|
|
925
1013
|
...PercentNumber
|
|
926
1014
|
}
|
|
927
|
-
}`,[a]);var
|
|
1015
|
+
}`,[a]);var Gr=e(`query Hub($request: HubRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
928
1016
|
value: hub(request: $request) {
|
|
929
1017
|
...Hub
|
|
930
1018
|
}
|
|
931
|
-
}`,[h])
|
|
1019
|
+
}`,[h]),Yr=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
932
1020
|
value: hubs(request: $request) {
|
|
933
1021
|
...Hub
|
|
934
1022
|
}
|
|
935
|
-
}`,[h]),
|
|
1023
|
+
}`,[h]),zr=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
936
1024
|
value: hubAssets(request: $request) {
|
|
937
1025
|
...HubAsset
|
|
938
1026
|
}
|
|
939
|
-
}`,[
|
|
1027
|
+
}`,[E]),kt=e(`fragment HubSummarySample on HubSummarySample {
|
|
940
1028
|
__typename
|
|
941
1029
|
date
|
|
942
1030
|
deposits {
|
|
@@ -951,31 +1039,31 @@
|
|
|
951
1039
|
utilizationRate {
|
|
952
1040
|
...PercentNumber
|
|
953
1041
|
}
|
|
954
|
-
}`,[
|
|
1042
|
+
}`,[i,a]),Zr=e(`query HubSummaryHistory($request: HubSummaryHistoryRequest!) {
|
|
955
1043
|
value: hubSummaryHistory(request: $request) {
|
|
956
1044
|
...HubSummarySample
|
|
957
1045
|
}
|
|
958
|
-
}`,[
|
|
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!) {
|
|
959
1047
|
value: chain(request: $request) {
|
|
960
1048
|
...Chain
|
|
961
1049
|
}
|
|
962
|
-
}`,[n]),
|
|
1050
|
+
}`,[n]),ka=e(`query Chains($request: ChainsRequest!) {
|
|
963
1051
|
value: chains(request: $request) {
|
|
964
1052
|
...Chain
|
|
965
1053
|
}
|
|
966
|
-
}`,[n]),
|
|
1054
|
+
}`,[n]),va=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
967
1055
|
value: hasProcessedKnownTransaction(request: $request)
|
|
968
|
-
}`),
|
|
1056
|
+
}`),ba=e(`query Health {
|
|
969
1057
|
value: health
|
|
970
|
-
}`),
|
|
1058
|
+
}`),Ea=e(`query ExchangeRate($request: ExchangeRateRequest!) {
|
|
971
1059
|
value: exchangeRate(request: $request) {
|
|
972
1060
|
...ExchangeAmount
|
|
973
1061
|
}
|
|
974
|
-
}`,[
|
|
1062
|
+
}`,[i]);var Ct=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
975
1063
|
__typename
|
|
976
1064
|
date
|
|
977
1065
|
price
|
|
978
|
-
}`),
|
|
1066
|
+
}`),Ie=e(`fragment AssetSampleBreakdown on AssetSampleBreakdown {
|
|
979
1067
|
__typename
|
|
980
1068
|
amount {
|
|
981
1069
|
...DecimalNumber
|
|
@@ -986,7 +1074,7 @@
|
|
|
986
1074
|
hub {
|
|
987
1075
|
...Hub
|
|
988
1076
|
}
|
|
989
|
-
}`,[c,a,h]),
|
|
1077
|
+
}`,[c,a,h]),Ut=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
990
1078
|
__typename
|
|
991
1079
|
date
|
|
992
1080
|
amount {
|
|
@@ -1004,7 +1092,7 @@
|
|
|
1004
1092
|
breakdown {
|
|
1005
1093
|
...AssetSampleBreakdown
|
|
1006
1094
|
}
|
|
1007
|
-
}`,[c,a,
|
|
1095
|
+
}`,[c,a,Ie]),Ot=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
1008
1096
|
__typename
|
|
1009
1097
|
date
|
|
1010
1098
|
amount {
|
|
@@ -1022,7 +1110,7 @@
|
|
|
1022
1110
|
breakdown {
|
|
1023
1111
|
...AssetSampleBreakdown
|
|
1024
1112
|
}
|
|
1025
|
-
}`,[c,a,
|
|
1113
|
+
}`,[c,a,Ie]),_t=e(`fragment AssetAmountWithChange on AssetAmountWithChange {
|
|
1026
1114
|
__typename
|
|
1027
1115
|
amount {
|
|
1028
1116
|
...DecimalNumberWithChange
|
|
@@ -1030,7 +1118,7 @@
|
|
|
1030
1118
|
exchange(currency: $currency) {
|
|
1031
1119
|
...ExchangeAmountWithChange
|
|
1032
1120
|
}
|
|
1033
|
-
}`,[
|
|
1121
|
+
}`,[Z,w]),Bt=e(`fragment AssetSummary on AssetSummary {
|
|
1034
1122
|
__typename
|
|
1035
1123
|
totalSupplyCap {
|
|
1036
1124
|
...AssetAmountWithChange
|
|
@@ -1056,7 +1144,7 @@
|
|
|
1056
1144
|
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
1057
1145
|
...PercentNumber
|
|
1058
1146
|
}
|
|
1059
|
-
}`,[
|
|
1147
|
+
}`,[_t,a]),Ht=e(`fragment Asset on Asset {
|
|
1060
1148
|
__typename
|
|
1061
1149
|
id
|
|
1062
1150
|
token {
|
|
@@ -1068,23 +1156,23 @@
|
|
|
1068
1156
|
price(currency: $currency) {
|
|
1069
1157
|
...ExchangeAmountWithChange
|
|
1070
1158
|
}
|
|
1071
|
-
}`,[l,
|
|
1159
|
+
}`,[l,Bt,w]),_a=e(`query Asset($request: AssetRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1072
1160
|
value: asset(request: $request) {
|
|
1073
1161
|
...Asset
|
|
1074
1162
|
}
|
|
1075
|
-
}`,[
|
|
1163
|
+
}`,[Ht]),Ba=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
1076
1164
|
value: assetPriceHistory(request: $request) {
|
|
1077
1165
|
...AssetPriceSample
|
|
1078
1166
|
}
|
|
1079
|
-
}`,[
|
|
1167
|
+
}`,[Ct]),Ha=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1080
1168
|
value: assetSupplyHistory(request: $request) {
|
|
1081
1169
|
...AssetSupplySample
|
|
1082
1170
|
}
|
|
1083
|
-
}`,[
|
|
1171
|
+
}`,[Ut]),Qa=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1084
1172
|
value: assetBorrowHistory(request: $request) {
|
|
1085
1173
|
...AssetBorrowSample
|
|
1086
1174
|
}
|
|
1087
|
-
}`,[
|
|
1175
|
+
}`,[Ot]),Qt=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
1088
1176
|
__typename
|
|
1089
1177
|
date
|
|
1090
1178
|
deposits {
|
|
@@ -1093,111 +1181,111 @@
|
|
|
1093
1181
|
borrows {
|
|
1094
1182
|
...ExchangeAmount
|
|
1095
1183
|
}
|
|
1096
|
-
}`,[
|
|
1184
|
+
}`,[i]),Wa=e(`query ProtocolHistory($request: ProtocolHistoryRequest!) {
|
|
1097
1185
|
value: protocolHistory(request: $request) {
|
|
1098
1186
|
...ProtocolHistorySample
|
|
1099
1187
|
}
|
|
1100
|
-
}`,[
|
|
1188
|
+
}`,[Qt]);var La=e(`query BorrowApyHistory($request: BorrowApyHistoryRequest!) {
|
|
1101
1189
|
value: borrowApyHistory(request: $request) {
|
|
1102
1190
|
...ApySample
|
|
1103
1191
|
}
|
|
1104
|
-
}`,[
|
|
1192
|
+
}`,[z]),Ma=e(`query SupplyApyHistory($request: SupplyApyHistoryRequest!) {
|
|
1105
1193
|
value: supplyApyHistory(request: $request) {
|
|
1106
1194
|
...ApySample
|
|
1107
1195
|
}
|
|
1108
|
-
}`,[
|
|
1196
|
+
}`,[z]),Va=e(`query Reserve($request: ReserveRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1109
1197
|
value: reserve(request: $request) {
|
|
1110
1198
|
...Reserve
|
|
1111
1199
|
}
|
|
1112
|
-
}`,[
|
|
1200
|
+
}`,[I]),Ka=e(`query Reserves($request: ReservesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1113
1201
|
value: reserves(request: $request) {
|
|
1114
1202
|
...Reserve
|
|
1115
1203
|
}
|
|
1116
|
-
}`,[
|
|
1204
|
+
}`,[I]);var Za=e(`query Spoke($request: SpokeRequest!) {
|
|
1117
1205
|
value: spoke(request: $request) {
|
|
1118
1206
|
...Spoke
|
|
1119
1207
|
}
|
|
1120
|
-
}`,[
|
|
1208
|
+
}`,[u]),ja=e(`query Spokes($request: SpokesRequest!) {
|
|
1121
1209
|
value: spokes(request: $request) {
|
|
1122
1210
|
...Spoke
|
|
1123
1211
|
}
|
|
1124
|
-
}`,[
|
|
1212
|
+
}`,[u]),Ja=e(`query SpokePositionManagers($request: SpokePositionManagersRequest!) {
|
|
1125
1213
|
value: spokePositionManagers(request: $request) {
|
|
1126
1214
|
...PaginatedSpokePositionManagerResult
|
|
1127
1215
|
}
|
|
1128
|
-
}`,[
|
|
1216
|
+
}`,[oe]),Xa=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
1129
1217
|
value: spokeUserPositionManagers(request: $request) {
|
|
1130
1218
|
...PaginatedSpokeUserPositionManagerResult
|
|
1131
1219
|
}
|
|
1132
|
-
}`,[
|
|
1220
|
+
}`,[pe]);var an=e(`query TokenSwapQuote($request: TokenSwapQuoteRequest!, $currency: Currency!) {
|
|
1133
1221
|
value: tokenSwapQuote(request: $request) {
|
|
1134
1222
|
...TokenSwapQuoteResult
|
|
1135
1223
|
}
|
|
1136
|
-
}`,[
|
|
1224
|
+
}`,[ue]),nn=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
1137
1225
|
value: swappableTokens(request: $request) {
|
|
1138
1226
|
...Token
|
|
1139
1227
|
}
|
|
1140
|
-
}`,[
|
|
1228
|
+
}`,[J]),on=e(`query PrepareTokenSwap($request: PrepareTokenSwapRequest!) {
|
|
1141
1229
|
value: prepareTokenSwap(request: $request) {
|
|
1142
1230
|
...PrepareTokenSwapResult
|
|
1143
1231
|
}
|
|
1144
|
-
}`,[
|
|
1232
|
+
}`,[me]),pn=e(`query SwapStatus($request: SwapStatusRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1145
1233
|
value: swapStatus(request: $request) {
|
|
1146
1234
|
...SwapStatus
|
|
1147
1235
|
}
|
|
1148
|
-
}`,[
|
|
1236
|
+
}`,[K]),sn=e(`mutation Swap($request: SwapRequest!) {
|
|
1149
1237
|
value: swap(request: $request) {
|
|
1150
1238
|
...SwapExecutionPlan
|
|
1151
1239
|
}
|
|
1152
|
-
}`,[
|
|
1240
|
+
}`,[ye]),un=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
1153
1241
|
value: prepareSwapCancel(request: $request) {
|
|
1154
1242
|
...PrepareSwapCancelResult
|
|
1155
1243
|
}
|
|
1156
|
-
}`,[
|
|
1244
|
+
}`,[ce]),mn=e(`mutation CancelSwap($request: CancelSwapRequest!) {
|
|
1157
1245
|
value: cancelSwap(request: $request) {
|
|
1158
1246
|
...CancelSwapExecutionPlan
|
|
1159
1247
|
}
|
|
1160
|
-
}`,[
|
|
1248
|
+
}`,[le]),yn=e(`query UserSwaps($request: UserSwapsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1161
1249
|
value: userSwaps(request: $request) {
|
|
1162
1250
|
...PaginatedUserSwapsResult
|
|
1163
1251
|
}
|
|
1164
|
-
}`,[
|
|
1252
|
+
}`,[ge]),cn=e(`query SupplySwapQuote($request: SupplySwapQuoteRequest!, $currency: Currency!) {
|
|
1165
1253
|
value: supplySwapQuote(request: $request) {
|
|
1166
1254
|
...SupplySwapQuoteResult
|
|
1167
1255
|
}
|
|
1168
|
-
}`,[
|
|
1256
|
+
}`,[Se]),ln=e(`query BorrowSwapQuote($request: BorrowSwapQuoteRequest!, $currency: Currency!) {
|
|
1169
1257
|
value: borrowSwapQuote(request: $request) {
|
|
1170
1258
|
...BorrowSwapQuoteResult
|
|
1171
1259
|
}
|
|
1172
|
-
}`,[
|
|
1260
|
+
}`,[de]),gn=e(`query RepayWithSupplyQuote($request: RepayWithSupplyQuoteRequest!, $currency: Currency!) {
|
|
1173
1261
|
value: repayWithSupplyQuote(request: $request) {
|
|
1174
1262
|
...RepayWithSupplyQuoteResult
|
|
1175
1263
|
}
|
|
1176
|
-
}`,[
|
|
1264
|
+
}`,[fe]),Sn=e(`query WithdrawSwapQuote($request: WithdrawSwapQuoteRequest!, $currency: Currency!) {
|
|
1177
1265
|
value: withdrawSwapQuote(request: $request) {
|
|
1178
1266
|
...WithdrawSwapQuoteResult
|
|
1179
1267
|
}
|
|
1180
|
-
}`,[
|
|
1268
|
+
}`,[Re]),dn=e(`query PreparePositionSwap($request: PreparePositionSwapRequest!) {
|
|
1181
1269
|
value: preparePositionSwap(request: $request) {
|
|
1182
1270
|
...PreparePositionSwapResult
|
|
1183
1271
|
}
|
|
1184
|
-
}`,[
|
|
1272
|
+
}`,[we]);var qn=e(`query Borrow($request: BorrowRequest!) {
|
|
1185
1273
|
value: borrow(request: $request) {
|
|
1186
1274
|
...ExecutionPlan
|
|
1187
1275
|
}
|
|
1188
|
-
}`,[
|
|
1276
|
+
}`,[C]),xn=e(`query Supply($request: SupplyRequest!) {
|
|
1189
1277
|
value: supply(request: $request) {
|
|
1190
1278
|
...ExecutionPlan
|
|
1191
1279
|
}
|
|
1192
|
-
}`,[
|
|
1280
|
+
}`,[C]),An=e(`query Repay($request: RepayRequest!) {
|
|
1193
1281
|
value: repay(request: $request) {
|
|
1194
1282
|
...ExecutionPlan
|
|
1195
1283
|
}
|
|
1196
|
-
}`,[
|
|
1284
|
+
}`,[C]),hn=e(`query Withdraw($request: WithdrawRequest!) {
|
|
1197
1285
|
value: withdraw(request: $request) {
|
|
1198
1286
|
...ExecutionPlan
|
|
1199
1287
|
}
|
|
1200
|
-
}`,[
|
|
1288
|
+
}`,[C]),Wt=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1201
1289
|
__typename
|
|
1202
1290
|
... on TransactionRequest {
|
|
1203
1291
|
...TransactionRequest
|
|
@@ -1208,27 +1296,27 @@
|
|
|
1208
1296
|
... on InsufficientBalanceError {
|
|
1209
1297
|
...InsufficientBalanceError
|
|
1210
1298
|
}
|
|
1211
|
-
}`,[m,
|
|
1299
|
+
}`,[m,V,q]),Pn=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1212
1300
|
value: liquidatePosition(request: $request) {
|
|
1213
1301
|
...LiquidatePositionExecutionPlan
|
|
1214
1302
|
}
|
|
1215
|
-
}`,[
|
|
1303
|
+
}`,[Wt]),Fn=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1216
1304
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1217
1305
|
...TransactionRequest
|
|
1218
1306
|
}
|
|
1219
|
-
}`,[m]),
|
|
1307
|
+
}`,[m]),In=e(`query SetUserSuppliesAsCollateral($request: SetUserSuppliesAsCollateralRequest!) {
|
|
1220
1308
|
value: setUserSuppliesAsCollateral(request: $request) {
|
|
1221
1309
|
...TransactionRequest
|
|
1222
1310
|
}
|
|
1223
|
-
}`,[m]),
|
|
1311
|
+
}`,[m]),Tn=e(`query RenounceSpokeUserPositionManager($request: RenounceSpokeUserPositionManagerRequest!) {
|
|
1224
1312
|
value: renounceSpokeUserPositionManager(request: $request) {
|
|
1225
1313
|
...TransactionRequest
|
|
1226
1314
|
}
|
|
1227
|
-
}`,[m]),
|
|
1315
|
+
}`,[m]),kn=e(`query UpdateUserPositionConditions($request: UpdateUserPositionConditionsRequest!) {
|
|
1228
1316
|
value: updateUserPositionConditions(request: $request) {
|
|
1229
1317
|
...TransactionRequest
|
|
1230
1318
|
}
|
|
1231
|
-
}`,[m])
|
|
1319
|
+
}`,[m]),$t=e(`fragment CollateralFactorVariation on CollateralFactorVariation {
|
|
1232
1320
|
__typename
|
|
1233
1321
|
reserveId
|
|
1234
1322
|
token {
|
|
@@ -1240,7 +1328,7 @@
|
|
|
1240
1328
|
after {
|
|
1241
1329
|
...PercentNumber
|
|
1242
1330
|
}
|
|
1243
|
-
}`,[l,a]),
|
|
1331
|
+
}`,[l,a]),Nt=e(`fragment LiquidationFeeVariation on LiquidationFeeVariation {
|
|
1244
1332
|
__typename
|
|
1245
1333
|
reserveId
|
|
1246
1334
|
token {
|
|
@@ -1252,7 +1340,7 @@
|
|
|
1252
1340
|
after {
|
|
1253
1341
|
...PercentNumber
|
|
1254
1342
|
}
|
|
1255
|
-
}`,[l,a]),
|
|
1343
|
+
}`,[l,a]),Dt=e(`fragment MaxLiquidationBonusVariation on MaxLiquidationBonusVariation {
|
|
1256
1344
|
__typename
|
|
1257
1345
|
reserveId
|
|
1258
1346
|
token {
|
|
@@ -1264,7 +1352,7 @@
|
|
|
1264
1352
|
after {
|
|
1265
1353
|
...PercentNumber
|
|
1266
1354
|
}
|
|
1267
|
-
}`,[l,a]),
|
|
1355
|
+
}`,[l,a]),Lt=e(`fragment UserPositionConditionVariation on UserPositionConditionVariation {
|
|
1268
1356
|
__typename
|
|
1269
1357
|
... on CollateralFactorVariation {
|
|
1270
1358
|
...CollateralFactorVariation
|
|
@@ -1275,7 +1363,7 @@
|
|
|
1275
1363
|
... on MaxLiquidationBonusVariation {
|
|
1276
1364
|
...MaxLiquidationBonusVariation
|
|
1277
1365
|
}
|
|
1278
|
-
}`,[
|
|
1366
|
+
}`,[$t,Nt,Dt]),Mt=e(`fragment PreviewUserPosition on PreviewUserPosition {
|
|
1279
1367
|
__typename
|
|
1280
1368
|
id
|
|
1281
1369
|
healthFactor {
|
|
@@ -1302,11 +1390,11 @@
|
|
|
1302
1390
|
otherConditions {
|
|
1303
1391
|
...UserPositionConditionVariation
|
|
1304
1392
|
}
|
|
1305
|
-
}`,[ee,
|
|
1393
|
+
}`,[ae,ee,te,Lt]),vn=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD) {
|
|
1306
1394
|
value: preview(request: $request) {
|
|
1307
1395
|
...PreviewUserPosition
|
|
1308
1396
|
}
|
|
1309
|
-
}`,[
|
|
1397
|
+
}`,[Mt]),Te=e(`fragment PercentNumberChangeSnapshot on PercentNumberChangeSnapshot {
|
|
1310
1398
|
__typename
|
|
1311
1399
|
before {
|
|
1312
1400
|
...PercentNumber
|
|
@@ -1314,7 +1402,7 @@
|
|
|
1314
1402
|
after {
|
|
1315
1403
|
...PercentNumber
|
|
1316
1404
|
}
|
|
1317
|
-
}`,[a]),
|
|
1405
|
+
}`,[a]),Vt=e(`fragment BorrowActivity on BorrowActivity {
|
|
1318
1406
|
__typename
|
|
1319
1407
|
id
|
|
1320
1408
|
user
|
|
@@ -1332,7 +1420,7 @@
|
|
|
1332
1420
|
chain {
|
|
1333
1421
|
...Chain
|
|
1334
1422
|
}
|
|
1335
|
-
}`,[
|
|
1423
|
+
}`,[u,p,S,n]),Kt=e(`fragment SupplyActivity on SupplyActivity {
|
|
1336
1424
|
__typename
|
|
1337
1425
|
id
|
|
1338
1426
|
user
|
|
@@ -1350,7 +1438,7 @@
|
|
|
1350
1438
|
chain {
|
|
1351
1439
|
...Chain
|
|
1352
1440
|
}
|
|
1353
|
-
}`,[
|
|
1441
|
+
}`,[u,p,S,n]),Gt=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1354
1442
|
__typename
|
|
1355
1443
|
id
|
|
1356
1444
|
user
|
|
@@ -1368,7 +1456,7 @@
|
|
|
1368
1456
|
chain {
|
|
1369
1457
|
...Chain
|
|
1370
1458
|
}
|
|
1371
|
-
}`,[
|
|
1459
|
+
}`,[u,p,S,n]),Yt=e(`fragment RepayActivity on RepayActivity {
|
|
1372
1460
|
__typename
|
|
1373
1461
|
id
|
|
1374
1462
|
user
|
|
@@ -1386,7 +1474,7 @@
|
|
|
1386
1474
|
chain {
|
|
1387
1475
|
...Chain
|
|
1388
1476
|
}
|
|
1389
|
-
}`,[
|
|
1477
|
+
}`,[u,p,S,n]),zt=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1390
1478
|
__typename
|
|
1391
1479
|
id
|
|
1392
1480
|
user
|
|
@@ -1411,7 +1499,7 @@
|
|
|
1411
1499
|
chain {
|
|
1412
1500
|
...Chain
|
|
1413
1501
|
}
|
|
1414
|
-
}`,[
|
|
1502
|
+
}`,[u,p,S,n]),Zt=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1415
1503
|
__typename
|
|
1416
1504
|
id
|
|
1417
1505
|
user
|
|
@@ -1427,7 +1515,7 @@
|
|
|
1427
1515
|
chain {
|
|
1428
1516
|
...Chain
|
|
1429
1517
|
}
|
|
1430
|
-
}`,[
|
|
1518
|
+
}`,[u,S,n]),jt=e(`fragment UpdatedDynamicConfigActivity on UpdatedDynamicConfigActivity {
|
|
1431
1519
|
__typename
|
|
1432
1520
|
id
|
|
1433
1521
|
user
|
|
@@ -1451,7 +1539,7 @@
|
|
|
1451
1539
|
chain {
|
|
1452
1540
|
...Chain
|
|
1453
1541
|
}
|
|
1454
|
-
}`,[
|
|
1542
|
+
}`,[u,S,Te,n]),Jt=e(`fragment UpdatedRiskPremiumActivity on UpdatedRiskPremiumActivity {
|
|
1455
1543
|
__typename
|
|
1456
1544
|
id
|
|
1457
1545
|
user
|
|
@@ -1466,7 +1554,7 @@
|
|
|
1466
1554
|
chain {
|
|
1467
1555
|
...Chain
|
|
1468
1556
|
}
|
|
1469
|
-
}`,[
|
|
1557
|
+
}`,[u,Te,n]),Xt=e(`fragment TokenSwapActivity on TokenSwapActivity {
|
|
1470
1558
|
__typename
|
|
1471
1559
|
id
|
|
1472
1560
|
user
|
|
@@ -1482,7 +1570,9 @@
|
|
|
1482
1570
|
...SwapAmount
|
|
1483
1571
|
}
|
|
1484
1572
|
explorerUrl
|
|
1485
|
-
|
|
1573
|
+
orderClass
|
|
1574
|
+
kind
|
|
1575
|
+
}`,[n,T]),er=e(`fragment SupplySwapActivity on SupplySwapActivity {
|
|
1486
1576
|
__typename
|
|
1487
1577
|
id
|
|
1488
1578
|
user
|
|
@@ -1498,7 +1588,9 @@
|
|
|
1498
1588
|
...SwapAmount
|
|
1499
1589
|
}
|
|
1500
1590
|
explorerUrl
|
|
1501
|
-
|
|
1591
|
+
orderClass
|
|
1592
|
+
kind
|
|
1593
|
+
}`,[n,T]),tr=e(`fragment BorrowSwapActivity on BorrowSwapActivity {
|
|
1502
1594
|
__typename
|
|
1503
1595
|
id
|
|
1504
1596
|
user
|
|
@@ -1514,7 +1606,9 @@
|
|
|
1514
1606
|
...SwapAmount
|
|
1515
1607
|
}
|
|
1516
1608
|
explorerUrl
|
|
1517
|
-
|
|
1609
|
+
orderClass
|
|
1610
|
+
kind
|
|
1611
|
+
}`,[n,T]),rr=e(`fragment RepayWithSupplyActivity on RepayWithSupplyActivity {
|
|
1518
1612
|
__typename
|
|
1519
1613
|
id
|
|
1520
1614
|
user
|
|
@@ -1530,7 +1624,9 @@
|
|
|
1530
1624
|
...SwapAmount
|
|
1531
1625
|
}
|
|
1532
1626
|
explorerUrl
|
|
1533
|
-
|
|
1627
|
+
orderClass
|
|
1628
|
+
kind
|
|
1629
|
+
}`,[n,T]),ar=e(`fragment WithdrawSwapActivity on WithdrawSwapActivity {
|
|
1534
1630
|
__typename
|
|
1535
1631
|
id
|
|
1536
1632
|
user
|
|
@@ -1546,7 +1642,9 @@
|
|
|
1546
1642
|
...SwapAmount
|
|
1547
1643
|
}
|
|
1548
1644
|
explorerUrl
|
|
1549
|
-
|
|
1645
|
+
orderClass
|
|
1646
|
+
kind
|
|
1647
|
+
}`,[n,T]),nr=e(`fragment ActivityItem on ActivityItem {
|
|
1550
1648
|
__typename
|
|
1551
1649
|
... on BorrowActivity {
|
|
1552
1650
|
...BorrowActivity
|
|
@@ -1587,7 +1685,7 @@
|
|
|
1587
1685
|
... on WithdrawSwapActivity {
|
|
1588
1686
|
...WithdrawSwapActivity
|
|
1589
1687
|
}
|
|
1590
|
-
}`,[
|
|
1688
|
+
}`,[Vt,Kt,Gt,Yt,zt,Zt,jt,Jt,Xt,er,tr,rr,ar]),or=e(`fragment PaginatedActivitiesResult on PaginatedActivitiesResult {
|
|
1591
1689
|
__typename
|
|
1592
1690
|
items {
|
|
1593
1691
|
...ActivityItem
|
|
@@ -1595,41 +1693,41 @@
|
|
|
1595
1693
|
pageInfo {
|
|
1596
1694
|
...PaginatedResultInfo
|
|
1597
1695
|
}
|
|
1598
|
-
}`,[
|
|
1696
|
+
}`,[nr,A]),bn=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1599
1697
|
value: activities(request: $request) {
|
|
1600
1698
|
...PaginatedActivitiesResult
|
|
1601
1699
|
}
|
|
1602
|
-
}`,[
|
|
1700
|
+
}`,[or]);var On=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1603
1701
|
value: userSupplies(request: $request) {
|
|
1604
1702
|
...UserSupplyItem
|
|
1605
1703
|
}
|
|
1606
|
-
}`,[
|
|
1704
|
+
}`,[qe]),_n=e(`query UserBorrows($request: UserBorrowsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1607
1705
|
value: userBorrows(request: $request) {
|
|
1608
1706
|
...UserBorrowItem
|
|
1609
1707
|
}
|
|
1610
|
-
}`,[
|
|
1708
|
+
}`,[xe]),Bn=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1611
1709
|
value: userSummary(request: $request) {
|
|
1612
1710
|
...UserSummary
|
|
1613
1711
|
}
|
|
1614
|
-
}`,[
|
|
1712
|
+
}`,[Ae]),Hn=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1615
1713
|
value: userPositions(request: $request) {
|
|
1616
1714
|
...UserPosition
|
|
1617
1715
|
}
|
|
1618
|
-
}`,[
|
|
1716
|
+
}`,[Y]),Qn=e(`query UserPosition($request: UserPositionRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1619
1717
|
value: userPosition(request: $request) {
|
|
1620
1718
|
...UserPosition
|
|
1621
1719
|
}
|
|
1622
|
-
}`,[
|
|
1720
|
+
}`,[Y]),Wn=e(`query UserBalances($request: UserBalancesRequest!, $currency: Currency!) {
|
|
1623
1721
|
value: userBalances(request: $request) {
|
|
1624
1722
|
...UserBalance
|
|
1625
1723
|
}
|
|
1626
|
-
}`,[
|
|
1724
|
+
}`,[he]),$n=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1627
1725
|
value: userSummaryHistory(request: $request) {
|
|
1628
1726
|
...UserSummaryHistoryItem
|
|
1629
1727
|
}
|
|
1630
|
-
}`,[
|
|
1728
|
+
}`,[Pe]),Nn=e(`query UserRiskPremiumBreakdown($request: UserRiskPremiumBreakdownRequest!) {
|
|
1631
1729
|
value: userRiskPremiumBreakdown(request: $request) {
|
|
1632
1730
|
...UserRiskPremiumBreakdownItem
|
|
1633
1731
|
}
|
|
1634
|
-
}`,[
|
|
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
|
|
1635
1733
|
//# sourceMappingURL=index.cjs.map
|