@aave/graphql 1.0.0-next.29 → 1.0.0-next.30
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 +303 -177
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14907 -6136
- package/dist/index.d.ts +14907 -6136
- package/dist/index.js +303 -177
- 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 +32 -18
- package/dist/testing.js +2 -2
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
'use strict';var gql_tada=require('gql.tada'),types=require('@aave/types');var
|
|
1
|
+
'use strict';var gql_tada=require('gql.tada'),types=require('@aave/types');var ve=(r=>(r.Asc="ASC",r.Desc="DESC",r))(ve||{}),be=(r=>(r.Ten="TEN",r.Fifty="FIFTY",r))(be||{}),Ce=(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))(Ce||{}),Ee=(d=>(d.SpokeBorrow="SPOKE_BORROW",d.SpokeRepay="SPOKE_REPAY",d.SpokeSupply="SPOKE_SUPPLY",d.SpokeWithdraw="SPOKE_WITHDRAW",d.SpokeUpdateUserRiskPremium="SPOKE_UPDATE_USER_RISK_PREMIUM",d.SpokeUpdateUserDynamicConfig="SPOKE_UPDATE_USER_DYNAMIC_CONFIG",d.SpokeSetUserUsingAsCollateral="SPOKE_SET_USER_USING_AS_COLLATERAL",d.SpokeSetUserPositionManager="SPOKE_SET_USER_POSITION_MANAGER",d.RenounceSpokeUserPositionManager="RENOUNCE_SPOKE_USER_POSITION_MANAGER",d.Liquidation="LIQUIDATION",d))(Ee||{}),Ue=(o=>(o.TESTNET_ONLY="TESTNET_ONLY",o.MAINNET_ONLY="MAINNET_ONLY",o.ALL="ALL",o))(Ue||{}),Oe=(c=>(c.Borrow="BORROW",c.Supply="SUPPLY",c.Withdraw="WITHDRAW",c.Repay="REPAY",c.Liquidated="LIQUIDATED",c.SetAsCollateral="SET_AS_COLLATERAL",c.UpdatedDynamicConfig="UPDATED_DYNAMIC_CONFIG",c.UpdatedRiskPremium="UPDATED_RISK_PREMIUM",c.TokenToTokenSwap="TOKEN_TO_TOKEN_SWAP",c.SupplySwap="SUPPLY_SWAP",c.BorrowSwap="BORROW_SWAP",c.RepayWithSupply="REPAY_WITH_SUPPLY",c.WithdrawSwap="WITHDRAW_SWAP",c))(Oe||{}),_e=(o=>(o.Highest="HIGHEST",o.Lowest="LOWEST",o.Average="AVERAGE",o))(_e||{}),Be=(r=>(r.Highest="HIGHEST",r.Lowest="LOWEST",r))(Be||{}),He=(o=>(o.Usd="USD",o.Eur="EUR",o.Gbp="GBP",o))(He||{}),Qe=(x=>(x.Supply="SUPPLY",x.Borrow="BORROW",x.Collateral="COLLATERAL",x.All="ALL",x))(Qe||{}),We=(r=>(r.Current="CURRENT",r.New="NEW",r))(We||{}),$e=(r=>(r.Repay="REPAY",r.Supply="SUPPLY",r))($e||{}),Ne=(r=>(r.Current="CURRENT",r.New="NEW",r))(Ne||{}),De=(r=>(r.Withdraw="WITHDRAW",r.Buy="BUY",r))(De||{}),Me=(v=>(v.Cancelled="CANCELLED",v.Expired="EXPIRED",v.Fulfilled="FULFILLED",v.Open="OPEN",v.PendingSignature="PENDING_SIGNATURE",v))(Me||{}),Le=(r=>(r.Stablecoin="STABLECOIN",r.EthCorrelated="ETH_CORRELATED",r))(Le||{}),Ve=(r=>(r.AllDynamicConfig="ALL_DYNAMIC_CONFIG",r.JustRiskPremium="JUST_RISK_PREMIUM",r))(Ve||{}),Ge=(r=>(r.Fast="FAST",r.Accurate="ACCURATE",r))(Ge||{}),Ke=(r=>(r.Market="MARKET",r.Limit="LIMIT",r))(Ke||{}),Ye=(o=>(o.Fulfilled="FULFILLED",o.Cancelled="CANCELLED",o.Expired="EXPIRED",o))(Ye||{}),ze=(r=>(r.Buy="BUY",r.Sell="SELL",r))(ze||{});var e=gql_tada.initGraphQLTada();var B=e(`fragment DomainData on DomainData {
|
|
2
2
|
name
|
|
3
3
|
version
|
|
4
4
|
chainId
|
|
5
5
|
verifyingContract
|
|
6
|
-
}`),
|
|
6
|
+
}`),l=e(`fragment DecimalNumber on DecimalNumber {
|
|
7
7
|
__typename
|
|
8
8
|
onChainValue
|
|
9
9
|
decimals
|
|
@@ -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
|
-
}`,[
|
|
25
|
+
}`,[l,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]),u=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]),Z=e(`fragment NativeToken on NativeToken {
|
|
66
66
|
__typename
|
|
67
67
|
info {
|
|
68
68
|
...TokenInfo
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
chain {
|
|
71
71
|
...Chain
|
|
72
72
|
}
|
|
73
|
-
}`,[
|
|
73
|
+
}`,[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,
|
|
87
|
+
}`,[u,l,i]),je=e(`fragment NativeAmount on NativeAmount {
|
|
88
88
|
__typename
|
|
89
89
|
token {
|
|
90
90
|
...NativeToken
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
exchangeRate(currency: $currency){
|
|
99
99
|
...DecimalNumber
|
|
100
100
|
}
|
|
101
|
-
}`,[
|
|
101
|
+
}`,[Z,l,i]),S=e(`fragment TokenAmount on TokenAmount {
|
|
102
102
|
__typename
|
|
103
103
|
... on Erc20Amount {
|
|
104
104
|
...Erc20Amount
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
... on NativeAmount {
|
|
107
107
|
...NativeAmount
|
|
108
108
|
}
|
|
109
|
-
}`,[
|
|
109
|
+
}`,[p,je]),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
|
-
}`,[
|
|
117
|
+
}`,[u,Z]),q=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
|
-
}`,[i,a]),
|
|
125
|
+
}`,[i,a]),J=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
|
+
}`),X=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]),ee=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
|
-
}`,[i]),
|
|
153
|
+
}`,[i]),te=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]),Je=e(`fragment HealthFactorVariation on HealthFactorVariation {
|
|
160
160
|
__typename
|
|
161
161
|
current
|
|
162
162
|
after
|
|
163
|
-
}`),
|
|
163
|
+
}`),Xe=e(`fragment HealthFactorError on HealthFactorError {
|
|
164
164
|
__typename
|
|
165
165
|
reason
|
|
166
166
|
current
|
|
167
167
|
after
|
|
168
|
-
}`),
|
|
168
|
+
}`),re=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
|
+
}`,[Je,Xe]),A=e(`fragment InsufficientBalanceError on InsufficientBalanceError {
|
|
177
177
|
__typename
|
|
178
178
|
required {
|
|
179
179
|
...DecimalNumber
|
|
@@ -181,10 +181,10 @@
|
|
|
181
181
|
available {
|
|
182
182
|
...DecimalNumber
|
|
183
183
|
}
|
|
184
|
-
}`,[
|
|
184
|
+
}`,[l]),I=e(`fragment InsufficientLiquidityError on InsufficientLiquidityError {
|
|
185
185
|
__typename
|
|
186
186
|
reason
|
|
187
|
-
}`);var
|
|
187
|
+
}`);var et=e(`fragment HubSummary on HubSummary {
|
|
188
188
|
__typename
|
|
189
189
|
totalBorrowed {
|
|
190
190
|
...ExchangeAmountWithChange
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
utilizationRate {
|
|
202
202
|
...PercentNumber
|
|
203
203
|
}
|
|
204
|
-
}`,[i,
|
|
204
|
+
}`,[i,q,a]),F=e(`fragment Hub on Hub {
|
|
205
205
|
__typename
|
|
206
206
|
id
|
|
207
207
|
name
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
summary(currency: $currency) {
|
|
213
213
|
...HubSummary
|
|
214
214
|
}
|
|
215
|
-
}`,[n,
|
|
215
|
+
}`,[n,et]);var tt=e(`fragment HubAssetSummary on HubAssetSummary {
|
|
216
216
|
__typename
|
|
217
217
|
supplied {
|
|
218
218
|
...Erc20Amount
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
utilizationRate {
|
|
236
236
|
...PercentNumber
|
|
237
237
|
}
|
|
238
|
-
}`,[
|
|
238
|
+
}`,[p,a]),rt=e(`fragment HubAssetSettings on HubAssetSettings {
|
|
239
239
|
__typename
|
|
240
240
|
feeReceiver
|
|
241
241
|
liquidityFee {
|
|
@@ -243,12 +243,12 @@
|
|
|
243
243
|
}
|
|
244
244
|
irStrategy
|
|
245
245
|
reinvestmentController
|
|
246
|
-
}`,[a]),
|
|
246
|
+
}`,[a]),at=e(`fragment HubAssetUserState on HubAssetUserState {
|
|
247
247
|
__typename
|
|
248
248
|
balance {
|
|
249
249
|
...Erc20Amount
|
|
250
250
|
}
|
|
251
|
-
}`,[
|
|
251
|
+
}`,[p]),C=e(`fragment HubAsset on HubAsset {
|
|
252
252
|
__typename
|
|
253
253
|
id
|
|
254
254
|
onchainAssetId
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
userState {
|
|
268
268
|
...HubAssetUserState
|
|
269
269
|
}
|
|
270
|
-
}`,[
|
|
270
|
+
}`,[F,u,tt,rt,at]);var ae=e(`fragment PermitTypedData on PermitTypedData {
|
|
271
271
|
__typename
|
|
272
272
|
types
|
|
273
273
|
primaryType
|
|
@@ -275,7 +275,69 @@
|
|
|
275
275
|
...DomainData
|
|
276
276
|
}
|
|
277
277
|
message
|
|
278
|
-
}`,[
|
|
278
|
+
}`,[B]);function Cr(t){return typeof t=="object"&&t!==null&&"deadline"in t&&"value"in t}var nt=e(`fragment MerklGenericCriteria on MerklGenericCriteria {
|
|
279
|
+
__typename
|
|
280
|
+
id
|
|
281
|
+
text
|
|
282
|
+
userPassed
|
|
283
|
+
}`),E=e(`fragment MerklCriteria on MerklCriteria {
|
|
284
|
+
__typename
|
|
285
|
+
... on MerklGenericCriteria {
|
|
286
|
+
...MerklGenericCriteria
|
|
287
|
+
}
|
|
288
|
+
}`,[nt]),ot=e(`fragment MerklSupplyReward on MerklSupplyReward {
|
|
289
|
+
__typename
|
|
290
|
+
id
|
|
291
|
+
startDate
|
|
292
|
+
endDate
|
|
293
|
+
extraApy {
|
|
294
|
+
...PercentNumber
|
|
295
|
+
}
|
|
296
|
+
payoutToken {
|
|
297
|
+
...Erc20Token
|
|
298
|
+
}
|
|
299
|
+
criteria {
|
|
300
|
+
...MerklCriteria
|
|
301
|
+
}
|
|
302
|
+
userEligible
|
|
303
|
+
}`,[a,u,E]),pt=e(`fragment MerklBorrowReward on MerklBorrowReward {
|
|
304
|
+
__typename
|
|
305
|
+
id
|
|
306
|
+
startDate
|
|
307
|
+
endDate
|
|
308
|
+
discountApy {
|
|
309
|
+
...PercentNumber
|
|
310
|
+
}
|
|
311
|
+
payoutToken {
|
|
312
|
+
...Erc20Token
|
|
313
|
+
}
|
|
314
|
+
criteria {
|
|
315
|
+
...MerklCriteria
|
|
316
|
+
}
|
|
317
|
+
userEligible
|
|
318
|
+
}`,[a,u,E]),ne=e(`fragment Reward on Reward {
|
|
319
|
+
__typename
|
|
320
|
+
... on MerklSupplyReward {
|
|
321
|
+
...MerklSupplyReward
|
|
322
|
+
}
|
|
323
|
+
... on MerklBorrowReward {
|
|
324
|
+
...MerklBorrowReward
|
|
325
|
+
}
|
|
326
|
+
}`,[ot,pt]),st=e(`fragment UserMerklClaimableReward on UserMerklClaimableReward {
|
|
327
|
+
__typename
|
|
328
|
+
id
|
|
329
|
+
claimable {
|
|
330
|
+
...Erc20Amount
|
|
331
|
+
}
|
|
332
|
+
startDate
|
|
333
|
+
endDate
|
|
334
|
+
claimUntil
|
|
335
|
+
}`,[p]),oe=e(`fragment UserClaimableReward on UserClaimableReward {
|
|
336
|
+
__typename
|
|
337
|
+
... on UserMerklClaimableReward {
|
|
338
|
+
...UserMerklClaimableReward
|
|
339
|
+
}
|
|
340
|
+
}`,[st]);var m=e(`fragment Spoke on Spoke {
|
|
279
341
|
__typename
|
|
280
342
|
id
|
|
281
343
|
name
|
|
@@ -283,12 +345,12 @@
|
|
|
283
345
|
chain {
|
|
284
346
|
...Chain
|
|
285
347
|
}
|
|
286
|
-
}`,[n]),
|
|
348
|
+
}`,[n]),it=e(`fragment SpokePositionManager on SpokePositionManager {
|
|
287
349
|
__typename
|
|
288
350
|
address
|
|
289
351
|
active
|
|
290
352
|
name
|
|
291
|
-
}`),
|
|
353
|
+
}`),pe=e(`fragment PaginatedSpokePositionManagerResult on PaginatedSpokePositionManagerResult {
|
|
292
354
|
__typename
|
|
293
355
|
items {
|
|
294
356
|
...SpokePositionManager
|
|
@@ -296,13 +358,13 @@
|
|
|
296
358
|
pageInfo {
|
|
297
359
|
...PaginatedResultInfo
|
|
298
360
|
}
|
|
299
|
-
}`,[
|
|
361
|
+
}`,[it,h]),ut=e(`fragment SpokeUserPositionManager on SpokeUserPositionManager {
|
|
300
362
|
__typename
|
|
301
363
|
address
|
|
302
364
|
approvedOn
|
|
303
365
|
active
|
|
304
366
|
name
|
|
305
|
-
}`),
|
|
367
|
+
}`),se=e(`fragment PaginatedSpokeUserPositionManagerResult on PaginatedSpokeUserPositionManagerResult {
|
|
306
368
|
__typename
|
|
307
369
|
items {
|
|
308
370
|
...SpokeUserPositionManager
|
|
@@ -310,7 +372,7 @@
|
|
|
310
372
|
pageInfo {
|
|
311
373
|
...PaginatedResultInfo
|
|
312
374
|
}
|
|
313
|
-
}`,[
|
|
375
|
+
}`,[ut,h]);var mt=e(`fragment ReserveSettings on ReserveSettings {
|
|
314
376
|
__typename
|
|
315
377
|
collateralFactor {
|
|
316
378
|
...PercentNumber
|
|
@@ -328,12 +390,12 @@
|
|
|
328
390
|
collateral
|
|
329
391
|
suppliable
|
|
330
392
|
latestDynamicConfigKey
|
|
331
|
-
}`,[a]),
|
|
393
|
+
}`,[a]),yt=e(`fragment ReserveStatus on ReserveStatus {
|
|
332
394
|
__typename
|
|
333
395
|
frozen
|
|
334
396
|
paused
|
|
335
397
|
active
|
|
336
|
-
}`),
|
|
398
|
+
}`),ct=e(`fragment ReserveSummary on ReserveSummary {
|
|
337
399
|
__typename
|
|
338
400
|
supplied {
|
|
339
401
|
...Erc20Amount
|
|
@@ -347,7 +409,10 @@
|
|
|
347
409
|
borrowApy {
|
|
348
410
|
...PercentNumber
|
|
349
411
|
}
|
|
350
|
-
|
|
412
|
+
rewards {
|
|
413
|
+
...Reward
|
|
414
|
+
}
|
|
415
|
+
}`,[p,a,ne]),lt=e(`fragment ReserveUserState on ReserveUserState {
|
|
351
416
|
__typename
|
|
352
417
|
balance {
|
|
353
418
|
...Erc20Amount
|
|
@@ -371,7 +436,7 @@
|
|
|
371
436
|
...PercentNumber
|
|
372
437
|
}
|
|
373
438
|
dynamicConfigKey
|
|
374
|
-
}`,[
|
|
439
|
+
}`,[p,a]),k=e(`fragment Reserve on Reserve {
|
|
375
440
|
__typename
|
|
376
441
|
id
|
|
377
442
|
onChainId
|
|
@@ -402,13 +467,13 @@
|
|
|
402
467
|
asset {
|
|
403
468
|
...HubAsset
|
|
404
469
|
}
|
|
405
|
-
}`,[
|
|
470
|
+
}`,[m,n,ct,mt,yt,lt,C]),g=e(`fragment ReserveInfo on ReserveInfo {
|
|
406
471
|
__typename
|
|
407
472
|
id
|
|
408
473
|
asset {
|
|
409
474
|
...HubAsset
|
|
410
475
|
}
|
|
411
|
-
}`,[
|
|
476
|
+
}`,[C]);var y=e(`fragment TransactionRequest on TransactionRequest {
|
|
412
477
|
__typename
|
|
413
478
|
to
|
|
414
479
|
from
|
|
@@ -416,7 +481,7 @@
|
|
|
416
481
|
value
|
|
417
482
|
chainId
|
|
418
483
|
operations
|
|
419
|
-
}`),
|
|
484
|
+
}`),M=e(`fragment Erc20Approval on Erc20Approval {
|
|
420
485
|
__typename
|
|
421
486
|
byTransaction {
|
|
422
487
|
...TransactionRequest
|
|
@@ -424,7 +489,7 @@
|
|
|
424
489
|
bySignature {
|
|
425
490
|
...PermitTypedData
|
|
426
491
|
}
|
|
427
|
-
}`,[
|
|
492
|
+
}`,[y,ae]),L=e(`fragment Erc20ApprovalRequired on Erc20ApprovalRequired {
|
|
428
493
|
__typename
|
|
429
494
|
approvals {
|
|
430
495
|
...Erc20Approval
|
|
@@ -439,7 +504,7 @@
|
|
|
439
504
|
originalTransaction {
|
|
440
505
|
...TransactionRequest
|
|
441
506
|
}
|
|
442
|
-
}`,[
|
|
507
|
+
}`,[y,M,l]),gt=e(`fragment PreContractActionRequired on PreContractActionRequired {
|
|
443
508
|
__typename
|
|
444
509
|
transaction {
|
|
445
510
|
...TransactionRequest
|
|
@@ -448,7 +513,7 @@
|
|
|
448
513
|
originalTransaction {
|
|
449
514
|
...TransactionRequest
|
|
450
515
|
}
|
|
451
|
-
}`,[
|
|
516
|
+
}`,[y]),U=e(`fragment ExecutionPlan on ExecutionPlan {
|
|
452
517
|
__typename
|
|
453
518
|
... on TransactionRequest {
|
|
454
519
|
...TransactionRequest
|
|
@@ -462,7 +527,7 @@
|
|
|
462
527
|
... on InsufficientBalanceError {
|
|
463
528
|
...InsufficientBalanceError
|
|
464
529
|
}
|
|
465
|
-
}`,[
|
|
530
|
+
}`,[y,L,gt,A]);var dt=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
466
531
|
__typename
|
|
467
532
|
networkCosts {
|
|
468
533
|
...TokenAmount
|
|
@@ -476,7 +541,7 @@
|
|
|
476
541
|
providerFee {
|
|
477
542
|
...TokenAmount
|
|
478
543
|
}
|
|
479
|
-
}`,[S]),
|
|
544
|
+
}`,[S]),H=e(`fragment SwapQuote on SwapQuote {
|
|
480
545
|
__typename
|
|
481
546
|
accuracy
|
|
482
547
|
quoteId
|
|
@@ -501,7 +566,7 @@
|
|
|
501
566
|
finalSell {
|
|
502
567
|
...TokenAmount
|
|
503
568
|
}
|
|
504
|
-
}`,[a,S,
|
|
569
|
+
}`,[a,S,dt]),Q=e(`fragment SwapTypedData on SwapTypedData {
|
|
505
570
|
__typename
|
|
506
571
|
primaryType
|
|
507
572
|
types
|
|
@@ -509,19 +574,19 @@
|
|
|
509
574
|
...DomainData
|
|
510
575
|
}
|
|
511
576
|
message
|
|
512
|
-
}`,[
|
|
577
|
+
}`,[B]),ie=e(`fragment PrepareSwapOrder on PrepareSwapOrder {
|
|
513
578
|
__typename
|
|
514
579
|
newQuoteId
|
|
515
580
|
data {
|
|
516
581
|
...SwapTypedData
|
|
517
582
|
}
|
|
518
|
-
}`,[
|
|
583
|
+
}`,[Q]),St=e(`fragment SwapByIntent on SwapByIntent {
|
|
519
584
|
__typename
|
|
520
585
|
quote {
|
|
521
586
|
...SwapQuote
|
|
522
587
|
}
|
|
523
588
|
|
|
524
|
-
}`,[
|
|
589
|
+
}`,[H]),ft=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
525
590
|
__typename
|
|
526
591
|
approvals {
|
|
527
592
|
...Erc20Approval
|
|
@@ -529,17 +594,17 @@
|
|
|
529
594
|
quote {
|
|
530
595
|
...SwapQuote
|
|
531
596
|
}
|
|
532
|
-
}`,[
|
|
597
|
+
}`,[M,H]),Rt=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
533
598
|
__typename
|
|
534
599
|
quote {
|
|
535
600
|
...SwapQuote
|
|
536
601
|
}
|
|
537
|
-
}`,[
|
|
602
|
+
}`,[H]),ue=e(`fragment SwapReceipt on SwapReceipt {
|
|
538
603
|
__typename
|
|
539
604
|
id
|
|
540
605
|
explorerUrl
|
|
541
606
|
createdAt
|
|
542
|
-
}`),
|
|
607
|
+
}`),me=e(`fragment TokenSwapQuoteResult on TokenSwapQuoteResult {
|
|
543
608
|
__typename
|
|
544
609
|
... on SwapByIntent {
|
|
545
610
|
...SwapByIntent
|
|
@@ -553,7 +618,7 @@
|
|
|
553
618
|
... on InsufficientLiquidityError {
|
|
554
619
|
...InsufficientLiquidityError
|
|
555
620
|
}
|
|
556
|
-
}`,[
|
|
621
|
+
}`,[St,ft,Rt,I]),ye=e(`fragment PrepareTokenSwapResult on PrepareTokenSwapResult {
|
|
557
622
|
__typename
|
|
558
623
|
... on PrepareSwapOrder {
|
|
559
624
|
...PrepareSwapOrder
|
|
@@ -561,7 +626,7 @@
|
|
|
561
626
|
... on InsufficientBalanceError {
|
|
562
627
|
...InsufficientBalanceError
|
|
563
628
|
}
|
|
564
|
-
}`,[
|
|
629
|
+
}`,[ie,A]),wt=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
565
630
|
__typename
|
|
566
631
|
transaction {
|
|
567
632
|
...TransactionRequest
|
|
@@ -569,7 +634,7 @@
|
|
|
569
634
|
orderReceipt {
|
|
570
635
|
...SwapReceipt
|
|
571
636
|
}
|
|
572
|
-
}`,[
|
|
637
|
+
}`,[y,ue]),ce=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
573
638
|
__typename
|
|
574
639
|
... on SwapTransactionRequest {
|
|
575
640
|
...SwapTransactionRequest
|
|
@@ -580,7 +645,7 @@
|
|
|
580
645
|
... on InsufficientBalanceError {
|
|
581
646
|
...InsufficientBalanceError
|
|
582
647
|
}
|
|
583
|
-
}`,[
|
|
648
|
+
}`,[wt,ue,A]),w=e(`fragment PositionAmount on PositionAmount {
|
|
584
649
|
__typename
|
|
585
650
|
reserve {
|
|
586
651
|
...ReserveInfo
|
|
@@ -588,7 +653,7 @@
|
|
|
588
653
|
amount {
|
|
589
654
|
...Erc20Amount
|
|
590
655
|
}
|
|
591
|
-
}`,[
|
|
656
|
+
}`,[g,p]),xt=e(`fragment SupplySwap on SupplySwap {
|
|
592
657
|
__typename
|
|
593
658
|
sell {
|
|
594
659
|
...PositionAmount
|
|
@@ -598,7 +663,7 @@
|
|
|
598
663
|
}
|
|
599
664
|
kind
|
|
600
665
|
orderClass
|
|
601
|
-
}`,[w]),
|
|
666
|
+
}`,[w]),qt=e(`fragment BorrowSwap on BorrowSwap {
|
|
602
667
|
__typename
|
|
603
668
|
sell {
|
|
604
669
|
...PositionAmount
|
|
@@ -608,7 +673,7 @@
|
|
|
608
673
|
}
|
|
609
674
|
kind
|
|
610
675
|
orderClass
|
|
611
|
-
}`,[w]),
|
|
676
|
+
}`,[w]),At=e(`fragment RepayWithSupply on RepayWithSupply {
|
|
612
677
|
__typename
|
|
613
678
|
repay {
|
|
614
679
|
...PositionAmount
|
|
@@ -618,7 +683,7 @@
|
|
|
618
683
|
}
|
|
619
684
|
kind
|
|
620
685
|
orderClass
|
|
621
|
-
}`,[w]),
|
|
686
|
+
}`,[w]),ht=e(`fragment WithdrawSwap on WithdrawSwap {
|
|
622
687
|
__typename
|
|
623
688
|
withdraw {
|
|
624
689
|
...PositionAmount
|
|
@@ -628,7 +693,7 @@
|
|
|
628
693
|
}
|
|
629
694
|
kind
|
|
630
695
|
orderClass
|
|
631
|
-
}`,[w,S]),
|
|
696
|
+
}`,[w,S]),Ft=e(`fragment TokenSwap on TokenSwap {
|
|
632
697
|
__typename
|
|
633
698
|
sell {
|
|
634
699
|
...TokenAmount
|
|
@@ -638,7 +703,7 @@
|
|
|
638
703
|
}
|
|
639
704
|
kind
|
|
640
705
|
orderClass
|
|
641
|
-
}`,[S]),
|
|
706
|
+
}`,[S]),O=e(`fragment SwapOperation on SwapOperation {
|
|
642
707
|
__typename
|
|
643
708
|
... on SupplySwap {
|
|
644
709
|
...SupplySwap
|
|
@@ -655,7 +720,7 @@
|
|
|
655
720
|
... on TokenSwap {
|
|
656
721
|
...TokenSwap
|
|
657
722
|
}
|
|
658
|
-
}`,[
|
|
723
|
+
}`,[xt,qt,At,ht,Ft]),Pt=e(`fragment SwapCancelled on SwapCancelled {
|
|
659
724
|
__typename
|
|
660
725
|
swapId
|
|
661
726
|
createdAt
|
|
@@ -664,7 +729,7 @@
|
|
|
664
729
|
operation {
|
|
665
730
|
...SwapOperation
|
|
666
731
|
}
|
|
667
|
-
}`,[
|
|
732
|
+
}`,[O]),It=e(`fragment SwapExpired on SwapExpired {
|
|
668
733
|
__typename
|
|
669
734
|
swapId
|
|
670
735
|
createdAt
|
|
@@ -673,7 +738,7 @@
|
|
|
673
738
|
operation {
|
|
674
739
|
...SwapOperation
|
|
675
740
|
}
|
|
676
|
-
}`,[
|
|
741
|
+
}`,[O]),kt=e(`fragment SwapOpen on SwapOpen {
|
|
677
742
|
__typename
|
|
678
743
|
swapId
|
|
679
744
|
createdAt
|
|
@@ -682,7 +747,7 @@
|
|
|
682
747
|
operation {
|
|
683
748
|
...SwapOperation
|
|
684
749
|
}
|
|
685
|
-
}`,[
|
|
750
|
+
}`,[O]),Tt=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
686
751
|
__typename
|
|
687
752
|
swapId
|
|
688
753
|
createdAt
|
|
@@ -691,7 +756,7 @@
|
|
|
691
756
|
operation {
|
|
692
757
|
...SwapOperation
|
|
693
758
|
}
|
|
694
|
-
}`,[
|
|
759
|
+
}`,[O]),vt=e(`fragment SwapFulfilled on SwapFulfilled {
|
|
695
760
|
__typename
|
|
696
761
|
swapId
|
|
697
762
|
txHash
|
|
@@ -702,7 +767,7 @@
|
|
|
702
767
|
operation {
|
|
703
768
|
...SwapOperation
|
|
704
769
|
}
|
|
705
|
-
}`,[
|
|
770
|
+
}`,[O]),V=e(`fragment SwapStatus on SwapStatus {
|
|
706
771
|
__typename
|
|
707
772
|
... on SwapOpen {
|
|
708
773
|
...SwapOpen
|
|
@@ -719,18 +784,18 @@
|
|
|
719
784
|
... on SwapFulfilled {
|
|
720
785
|
...SwapFulfilled
|
|
721
786
|
}
|
|
722
|
-
}`,[
|
|
787
|
+
}`,[kt,Tt,Pt,It,vt]),le=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
723
788
|
__typename
|
|
724
789
|
data {
|
|
725
790
|
...SwapTypedData
|
|
726
791
|
}
|
|
727
|
-
}`,[
|
|
792
|
+
}`,[Q]),bt=e(`fragment SwapCancelledResult on SwapCancelledResult {
|
|
728
793
|
__typename
|
|
729
794
|
swapId
|
|
730
795
|
createdAt
|
|
731
796
|
cancelledAt
|
|
732
797
|
explorerUrl
|
|
733
|
-
}`),
|
|
798
|
+
}`),ge=e(`fragment CancelSwapExecutionPlan on CancelSwapExecutionPlan {
|
|
734
799
|
__typename
|
|
735
800
|
... on TransactionRequest {
|
|
736
801
|
...TransactionRequest
|
|
@@ -738,7 +803,7 @@
|
|
|
738
803
|
... on SwapCancelledResult {
|
|
739
804
|
...SwapCancelledResult
|
|
740
805
|
}
|
|
741
|
-
}`,[
|
|
806
|
+
}`,[y,bt]),de=e(`fragment PaginatedUserSwapsResult on PaginatedUserSwapsResult {
|
|
742
807
|
__typename
|
|
743
808
|
items {
|
|
744
809
|
...SwapStatus
|
|
@@ -746,12 +811,12 @@
|
|
|
746
811
|
pageInfo {
|
|
747
812
|
...PaginatedResultInfo
|
|
748
813
|
}
|
|
749
|
-
}`,[
|
|
814
|
+
}`,[V,h]),Ct=e(`fragment PositionSwapAdapterContractApproval on PositionSwapAdapterContractApproval {
|
|
750
815
|
__typename
|
|
751
816
|
bySignature {
|
|
752
817
|
...SwapTypedData
|
|
753
818
|
}
|
|
754
|
-
}`,[
|
|
819
|
+
}`,[Q]),Et=e(`fragment PositionSwapPositionManagerApproval on PositionSwapPositionManagerApproval {
|
|
755
820
|
__typename
|
|
756
821
|
byTransaction {
|
|
757
822
|
...TransactionRequest
|
|
@@ -759,7 +824,7 @@
|
|
|
759
824
|
bySignature {
|
|
760
825
|
...SwapTypedData
|
|
761
826
|
}
|
|
762
|
-
}`,[
|
|
827
|
+
}`,[y,Q]),Ut=e(`fragment PositionSwapApproval on PositionSwapApproval {
|
|
763
828
|
__typename
|
|
764
829
|
... on PositionSwapAdapterContractApproval {
|
|
765
830
|
...PositionSwapAdapterContractApproval
|
|
@@ -767,7 +832,7 @@
|
|
|
767
832
|
... on PositionSwapPositionManagerApproval {
|
|
768
833
|
...PositionSwapPositionManagerApproval
|
|
769
834
|
}
|
|
770
|
-
}`,[
|
|
835
|
+
}`,[Ct,Et]),W=e(`fragment PositionSwapByIntentApprovalsRequired on PositionSwapByIntentApprovalsRequired {
|
|
771
836
|
__typename
|
|
772
837
|
quote {
|
|
773
838
|
...SwapQuote
|
|
@@ -775,7 +840,7 @@
|
|
|
775
840
|
approvals {
|
|
776
841
|
...PositionSwapApproval
|
|
777
842
|
}
|
|
778
|
-
}`,[
|
|
843
|
+
}`,[H,Ut]),Se=e(`fragment SupplySwapQuoteResult on SupplySwapQuoteResult {
|
|
779
844
|
__typename
|
|
780
845
|
... on PositionSwapByIntentApprovalsRequired {
|
|
781
846
|
...PositionSwapByIntentApprovalsRequired
|
|
@@ -783,7 +848,7 @@
|
|
|
783
848
|
... on InsufficientLiquidityError {
|
|
784
849
|
...InsufficientLiquidityError
|
|
785
850
|
}
|
|
786
|
-
}`,[
|
|
851
|
+
}`,[W,I]),fe=e(`fragment BorrowSwapQuoteResult on BorrowSwapQuoteResult {
|
|
787
852
|
__typename
|
|
788
853
|
... on PositionSwapByIntentApprovalsRequired {
|
|
789
854
|
...PositionSwapByIntentApprovalsRequired
|
|
@@ -791,7 +856,7 @@
|
|
|
791
856
|
... on InsufficientLiquidityError {
|
|
792
857
|
...InsufficientLiquidityError
|
|
793
858
|
}
|
|
794
|
-
}`,[
|
|
859
|
+
}`,[W,I]),Re=e(`fragment RepayWithSupplyQuoteResult on RepayWithSupplyQuoteResult {
|
|
795
860
|
__typename
|
|
796
861
|
... on PositionSwapByIntentApprovalsRequired {
|
|
797
862
|
...PositionSwapByIntentApprovalsRequired
|
|
@@ -799,7 +864,7 @@
|
|
|
799
864
|
... on InsufficientLiquidityError {
|
|
800
865
|
...InsufficientLiquidityError
|
|
801
866
|
}
|
|
802
|
-
}`,[
|
|
867
|
+
}`,[W,I]),we=e(`fragment WithdrawSwapQuoteResult on WithdrawSwapQuoteResult {
|
|
803
868
|
__typename
|
|
804
869
|
... on PositionSwapByIntentApprovalsRequired {
|
|
805
870
|
...PositionSwapByIntentApprovalsRequired
|
|
@@ -807,7 +872,7 @@
|
|
|
807
872
|
... on InsufficientLiquidityError {
|
|
808
873
|
...InsufficientLiquidityError
|
|
809
874
|
}
|
|
810
|
-
}`,[
|
|
875
|
+
}`,[W,I]),xe=e(`fragment PreparePositionSwapResult on PreparePositionSwapResult {
|
|
811
876
|
__typename
|
|
812
877
|
... on PrepareSwapOrder {
|
|
813
878
|
...PrepareSwapOrder
|
|
@@ -815,7 +880,7 @@
|
|
|
815
880
|
... on InsufficientBalanceError {
|
|
816
881
|
...InsufficientBalanceError
|
|
817
882
|
}
|
|
818
|
-
}`,[
|
|
883
|
+
}`,[ie,A]);var qe=e(`fragment UserSupplyItem on UserSupplyItem {
|
|
819
884
|
__typename
|
|
820
885
|
id
|
|
821
886
|
reserve {
|
|
@@ -832,7 +897,7 @@
|
|
|
832
897
|
}
|
|
833
898
|
isCollateral
|
|
834
899
|
createdAt
|
|
835
|
-
}`,[
|
|
900
|
+
}`,[p,k]),Ae=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
836
901
|
__typename
|
|
837
902
|
id
|
|
838
903
|
principal {
|
|
@@ -848,7 +913,7 @@
|
|
|
848
913
|
...Reserve
|
|
849
914
|
}
|
|
850
915
|
createdAt
|
|
851
|
-
}`,[
|
|
916
|
+
}`,[p,k]),he=e(`fragment UserSummary on UserSummary {
|
|
852
917
|
__typename
|
|
853
918
|
totalPositions
|
|
854
919
|
netBalance(currency: $currency) {
|
|
@@ -870,7 +935,7 @@
|
|
|
870
935
|
...ExchangeAmount
|
|
871
936
|
}
|
|
872
937
|
lowestHealthFactor
|
|
873
|
-
}`,[
|
|
938
|
+
}`,[q,i,a]),G=e(`fragment UserRiskPremiumBreakdownItem on UserRiskPremiumBreakdownItem {
|
|
874
939
|
__typename
|
|
875
940
|
token {
|
|
876
941
|
...Erc20Token
|
|
@@ -884,7 +949,7 @@
|
|
|
884
949
|
collateral {
|
|
885
950
|
...PercentNumber
|
|
886
951
|
}
|
|
887
|
-
}`,[
|
|
952
|
+
}`,[u,a]),Ot=e(`fragment UserPositionRiskPremium on UserPositionRiskPremium {
|
|
888
953
|
__typename
|
|
889
954
|
current {
|
|
890
955
|
...PercentNumber
|
|
@@ -895,7 +960,7 @@
|
|
|
895
960
|
breakdown {
|
|
896
961
|
...UserRiskPremiumBreakdownItem
|
|
897
962
|
}
|
|
898
|
-
}`,[a,
|
|
963
|
+
}`,[a,G]),K=e(`fragment UserPosition on UserPosition {
|
|
899
964
|
__typename
|
|
900
965
|
id
|
|
901
966
|
spoke {
|
|
@@ -949,7 +1014,7 @@
|
|
|
949
1014
|
averageCollateralFactor {
|
|
950
1015
|
...PercentNumber
|
|
951
1016
|
}
|
|
952
|
-
}`,[
|
|
1017
|
+
}`,[m,a,q,i,J,te,Ot]),Fe=e(`fragment UserBalance on UserBalance {
|
|
953
1018
|
__typename
|
|
954
1019
|
id
|
|
955
1020
|
info {
|
|
@@ -982,7 +1047,7 @@
|
|
|
982
1047
|
lowestCollateralFactor: collateralFactor(metric: LOWEST) {
|
|
983
1048
|
...PercentNumber
|
|
984
1049
|
}
|
|
985
|
-
}`,[
|
|
1050
|
+
}`,[b,l,S,i,a]),Pe=e(`fragment UserSummaryHistoryItem on UserSummaryHistoryItem {
|
|
986
1051
|
__typename
|
|
987
1052
|
netBalance(currency: $currency) {
|
|
988
1053
|
...ExchangeAmount
|
|
@@ -995,25 +1060,25 @@
|
|
|
995
1060
|
}
|
|
996
1061
|
healthFactor
|
|
997
1062
|
date
|
|
998
|
-
}`,[i]),
|
|
1063
|
+
}`,[i]),Y=e(`fragment ApySample on ApySample {
|
|
999
1064
|
__typename
|
|
1000
1065
|
date
|
|
1001
1066
|
avgRate {
|
|
1002
1067
|
...PercentNumber
|
|
1003
1068
|
}
|
|
1004
|
-
}`,[a]);var
|
|
1069
|
+
}`,[a]);var ia=e(`query Hub($request: HubRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1005
1070
|
value: hub(request: $request) {
|
|
1006
1071
|
...Hub
|
|
1007
1072
|
}
|
|
1008
|
-
}`,[
|
|
1073
|
+
}`,[F]),ua=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1009
1074
|
value: hubs(request: $request) {
|
|
1010
1075
|
...Hub
|
|
1011
1076
|
}
|
|
1012
|
-
}`,[
|
|
1077
|
+
}`,[F]),ma=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1013
1078
|
value: hubAssets(request: $request) {
|
|
1014
1079
|
...HubAsset
|
|
1015
1080
|
}
|
|
1016
|
-
}`,[
|
|
1081
|
+
}`,[C]),_t=e(`fragment HubSummarySample on HubSummarySample {
|
|
1017
1082
|
__typename
|
|
1018
1083
|
date
|
|
1019
1084
|
deposits {
|
|
@@ -1028,31 +1093,31 @@
|
|
|
1028
1093
|
utilizationRate {
|
|
1029
1094
|
...PercentNumber
|
|
1030
1095
|
}
|
|
1031
|
-
}`,[i,a]),
|
|
1096
|
+
}`,[i,a]),ya=e(`query HubSummaryHistory($request: HubSummaryHistoryRequest!) {
|
|
1032
1097
|
value: hubSummaryHistory(request: $request) {
|
|
1033
1098
|
...HubSummarySample
|
|
1034
1099
|
}
|
|
1035
|
-
}`,[
|
|
1100
|
+
}`,[_t]);function N(t){return new TextDecoder().decode(Uint8Array.from(atob(t),R=>R.charCodeAt(0)))}function D(t){return btoa(String.fromCharCode(...new TextEncoder().encode(t)))}var f="::";function ga(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 Bt(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 da(t){return Bt(D(`${t.chainId}${f}${t.address}`))}function Sa(t){let R=N(t),[r,o]=R.split(f);return {chainId:types.chainId(Number.parseInt(r,10)),address:types.evmAddress(o)}}function fa(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 Ra(t){return t}function wa(t){let R=N(t),[r,o,x]=R.split(f);return {chainId:types.chainId(Number.parseInt(r,10)),spoke:types.evmAddress(o),onChainId:x}}function xa(t){return D(`${t.chainId}${f}${t.spoke}${f}${t.onChainId}`)}function Ht(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid UserPositionId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserPositionId must be valid base64: ${t}`),t}function qa(t){let R=N(t),[r,o,x]=R.split(f);return {chainId:types.chainId(Number.parseInt(r,10)),spoke:types.evmAddress(o),user:types.evmAddress(x)}}function Aa(t){return Ht(D(`${t.chainId}${f}${t.spoke}${f}${t.user}`))}function ha(t){return types.invariant(types.isValidHexString(t),`Invalid SwapId: ${t}`),t}function Fa(t){return types.invariant(types.isValidHexString(t),`Invalid SwapQuoteId: ${t}`),t}function Pa(t){return Qt(D(`${t.chainId}${f}${t.address}`))}function Ia(t){let R=N(t),[r,o]=R.split(f);return {chainId:types.chainId(Number.parseInt(r,10)),address:types.evmAddress(o)}}function Qt(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 ka(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid UserBalanceId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserBalanceId must be valid base64: ${t}`),t}function Ta(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid UserBorrowItemId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserBorrowItemId must be valid base64: ${t}`),t}function va(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 ba(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid TokenInfoId: ${t}`),t}function Ua(t){return types.isObject(t)&&"hubInput"in t&&t.hubInput!=null}function Oa(t){return types.isObject(t)&&"chainIds"in t&&t.chainIds!=null}function _a(t){return types.isObject(t)&&"tokens"in t&&t.tokens!=null}function Ba(t){return types.isObject(t)&&"spoke"in t&&t.spoke!=null}function Ha(t){return types.isObject(t)&&"reserveInput"in t&&t.reserveInput!=null}function Qa(t){return types.isObject(t)&&"txHash"in t&&t.txHash!=null}var Da=e(`query Chain($request: ChainRequest!) {
|
|
1036
1101
|
value: chain(request: $request) {
|
|
1037
1102
|
...Chain
|
|
1038
1103
|
}
|
|
1039
|
-
}`,[n]),
|
|
1104
|
+
}`,[n]),Ma=e(`query Chains($request: ChainsRequest!) {
|
|
1040
1105
|
value: chains(request: $request) {
|
|
1041
1106
|
...Chain
|
|
1042
1107
|
}
|
|
1043
|
-
}`,[n]),
|
|
1108
|
+
}`,[n]),La=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
1044
1109
|
value: hasProcessedKnownTransaction(request: $request)
|
|
1045
|
-
}`),
|
|
1110
|
+
}`),Va=e(`query Health {
|
|
1046
1111
|
value: health
|
|
1047
|
-
}`),
|
|
1112
|
+
}`),Ga=e(`query ExchangeRate($request: ExchangeRateRequest!) {
|
|
1048
1113
|
value: exchangeRate(request: $request) {
|
|
1049
1114
|
...ExchangeAmount
|
|
1050
1115
|
}
|
|
1051
|
-
}`,[i]);var
|
|
1116
|
+
}`,[i]);var Wt=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
1052
1117
|
__typename
|
|
1053
1118
|
date
|
|
1054
1119
|
price
|
|
1055
|
-
}`),
|
|
1120
|
+
}`),ke=e(`fragment AssetSampleBreakdown on AssetSampleBreakdown {
|
|
1056
1121
|
__typename
|
|
1057
1122
|
amount {
|
|
1058
1123
|
...DecimalNumber
|
|
@@ -1063,7 +1128,7 @@
|
|
|
1063
1128
|
hub {
|
|
1064
1129
|
...Hub
|
|
1065
1130
|
}
|
|
1066
|
-
}`,[
|
|
1131
|
+
}`,[l,a,F]),$t=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
1067
1132
|
__typename
|
|
1068
1133
|
date
|
|
1069
1134
|
amount {
|
|
@@ -1081,7 +1146,7 @@
|
|
|
1081
1146
|
breakdown {
|
|
1082
1147
|
...AssetSampleBreakdown
|
|
1083
1148
|
}
|
|
1084
|
-
}`,[
|
|
1149
|
+
}`,[l,a,ke]),Nt=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
1085
1150
|
__typename
|
|
1086
1151
|
date
|
|
1087
1152
|
amount {
|
|
@@ -1099,7 +1164,7 @@
|
|
|
1099
1164
|
breakdown {
|
|
1100
1165
|
...AssetSampleBreakdown
|
|
1101
1166
|
}
|
|
1102
|
-
}`,[
|
|
1167
|
+
}`,[l,a,ke]),Dt=e(`fragment AssetAmountWithChange on AssetAmountWithChange {
|
|
1103
1168
|
__typename
|
|
1104
1169
|
amount {
|
|
1105
1170
|
...DecimalNumberWithChange
|
|
@@ -1107,7 +1172,7 @@
|
|
|
1107
1172
|
exchange(currency: $currency) {
|
|
1108
1173
|
...ExchangeAmountWithChange
|
|
1109
1174
|
}
|
|
1110
|
-
}`,[
|
|
1175
|
+
}`,[z,q]),Mt=e(`fragment AssetSummary on AssetSummary {
|
|
1111
1176
|
__typename
|
|
1112
1177
|
totalSupplyCap {
|
|
1113
1178
|
...AssetAmountWithChange
|
|
@@ -1133,7 +1198,7 @@
|
|
|
1133
1198
|
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
1134
1199
|
...PercentNumber
|
|
1135
1200
|
}
|
|
1136
|
-
}`,[
|
|
1201
|
+
}`,[Dt,a]),Lt=e(`fragment Asset on Asset {
|
|
1137
1202
|
__typename
|
|
1138
1203
|
id
|
|
1139
1204
|
token {
|
|
@@ -1145,23 +1210,23 @@
|
|
|
1145
1210
|
price(currency: $currency) {
|
|
1146
1211
|
...ExchangeAmountWithChange
|
|
1147
1212
|
}
|
|
1148
|
-
}`,[
|
|
1213
|
+
}`,[u,Mt,q]),Za=e(`query Asset($request: AssetRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1149
1214
|
value: asset(request: $request) {
|
|
1150
1215
|
...Asset
|
|
1151
1216
|
}
|
|
1152
|
-
}`,[
|
|
1217
|
+
}`,[Lt]),ja=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
1153
1218
|
value: assetPriceHistory(request: $request) {
|
|
1154
1219
|
...AssetPriceSample
|
|
1155
1220
|
}
|
|
1156
|
-
}`,[
|
|
1221
|
+
}`,[Wt]),Ja=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1157
1222
|
value: assetSupplyHistory(request: $request) {
|
|
1158
1223
|
...AssetSupplySample
|
|
1159
1224
|
}
|
|
1160
|
-
}`,[
|
|
1225
|
+
}`,[$t]),Xa=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1161
1226
|
value: assetBorrowHistory(request: $request) {
|
|
1162
1227
|
...AssetBorrowSample
|
|
1163
1228
|
}
|
|
1164
|
-
}`,[
|
|
1229
|
+
}`,[Nt]),Vt=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
1165
1230
|
__typename
|
|
1166
1231
|
date
|
|
1167
1232
|
deposits {
|
|
@@ -1170,111 +1235,119 @@
|
|
|
1170
1235
|
borrows {
|
|
1171
1236
|
...ExchangeAmount
|
|
1172
1237
|
}
|
|
1173
|
-
}`,[i]),
|
|
1238
|
+
}`,[i]),en=e(`query ProtocolHistory($request: ProtocolHistoryRequest!) {
|
|
1174
1239
|
value: protocolHistory(request: $request) {
|
|
1175
1240
|
...ProtocolHistorySample
|
|
1176
1241
|
}
|
|
1177
|
-
}`,[
|
|
1242
|
+
}`,[Vt]);var nn=e(`query BorrowApyHistory($request: BorrowApyHistoryRequest!) {
|
|
1178
1243
|
value: borrowApyHistory(request: $request) {
|
|
1179
1244
|
...ApySample
|
|
1180
1245
|
}
|
|
1181
|
-
}`,[
|
|
1246
|
+
}`,[Y]),on=e(`query SupplyApyHistory($request: SupplyApyHistoryRequest!) {
|
|
1182
1247
|
value: supplyApyHistory(request: $request) {
|
|
1183
1248
|
...ApySample
|
|
1184
1249
|
}
|
|
1185
|
-
}`,[
|
|
1250
|
+
}`,[Y]),pn=e(`query Reserve($request: ReserveRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1186
1251
|
value: reserve(request: $request) {
|
|
1187
1252
|
...Reserve
|
|
1188
1253
|
}
|
|
1189
|
-
}`,[
|
|
1254
|
+
}`,[k]),sn=e(`query Reserves($request: ReservesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1190
1255
|
value: reserves(request: $request) {
|
|
1191
1256
|
...Reserve
|
|
1192
1257
|
}
|
|
1193
|
-
}`,[
|
|
1258
|
+
}`,[k]);var cn=e(`query ClaimRewards($request: ClaimRewardsRequest!) {
|
|
1259
|
+
value: claimRewards(request: $request) {
|
|
1260
|
+
...TransactionRequest
|
|
1261
|
+
}
|
|
1262
|
+
}`,[y]),ln=e(`query UserClaimableRewards($request: UserClaimableRewardsRequest!, $currency: Currency! = USD) {
|
|
1263
|
+
value: userClaimableRewards(request: $request) {
|
|
1264
|
+
...UserClaimableReward
|
|
1265
|
+
}
|
|
1266
|
+
}`,[oe]);var fn=e(`query Spoke($request: SpokeRequest!) {
|
|
1194
1267
|
value: spoke(request: $request) {
|
|
1195
1268
|
...Spoke
|
|
1196
1269
|
}
|
|
1197
|
-
}`,[
|
|
1270
|
+
}`,[m]),Rn=e(`query Spokes($request: SpokesRequest!) {
|
|
1198
1271
|
value: spokes(request: $request) {
|
|
1199
1272
|
...Spoke
|
|
1200
1273
|
}
|
|
1201
|
-
}`,[
|
|
1274
|
+
}`,[m]),wn=e(`query SpokePositionManagers($request: SpokePositionManagersRequest!) {
|
|
1202
1275
|
value: spokePositionManagers(request: $request) {
|
|
1203
1276
|
...PaginatedSpokePositionManagerResult
|
|
1204
1277
|
}
|
|
1205
|
-
}`,[
|
|
1278
|
+
}`,[pe]),xn=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
1206
1279
|
value: spokeUserPositionManagers(request: $request) {
|
|
1207
1280
|
...PaginatedSpokeUserPositionManagerResult
|
|
1208
1281
|
}
|
|
1209
|
-
}`,[
|
|
1282
|
+
}`,[se]);var Fn=e(`query TokenSwapQuote($request: TokenSwapQuoteRequest!, $currency: Currency!) {
|
|
1210
1283
|
value: tokenSwapQuote(request: $request) {
|
|
1211
1284
|
...TokenSwapQuoteResult
|
|
1212
1285
|
}
|
|
1213
|
-
}`,[
|
|
1286
|
+
}`,[me]),Pn=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
1214
1287
|
value: swappableTokens(request: $request) {
|
|
1215
1288
|
...Token
|
|
1216
1289
|
}
|
|
1217
|
-
}`,[
|
|
1290
|
+
}`,[j]),In=e(`query PrepareTokenSwap($request: PrepareTokenSwapRequest!) {
|
|
1218
1291
|
value: prepareTokenSwap(request: $request) {
|
|
1219
1292
|
...PrepareTokenSwapResult
|
|
1220
1293
|
}
|
|
1221
|
-
}`,[
|
|
1294
|
+
}`,[ye]),kn=e(`query SwapStatus($request: SwapStatusRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1222
1295
|
value: swapStatus(request: $request) {
|
|
1223
1296
|
...SwapStatus
|
|
1224
1297
|
}
|
|
1225
|
-
}`,[
|
|
1298
|
+
}`,[V]),Tn=e(`mutation Swap($request: SwapRequest!) {
|
|
1226
1299
|
value: swap(request: $request) {
|
|
1227
1300
|
...SwapExecutionPlan
|
|
1228
1301
|
}
|
|
1229
|
-
}`,[
|
|
1302
|
+
}`,[ce]),vn=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
1230
1303
|
value: prepareSwapCancel(request: $request) {
|
|
1231
1304
|
...PrepareSwapCancelResult
|
|
1232
1305
|
}
|
|
1233
|
-
}`,[
|
|
1306
|
+
}`,[le]),bn=e(`mutation CancelSwap($request: CancelSwapRequest!) {
|
|
1234
1307
|
value: cancelSwap(request: $request) {
|
|
1235
1308
|
...CancelSwapExecutionPlan
|
|
1236
1309
|
}
|
|
1237
|
-
}`,[
|
|
1310
|
+
}`,[ge]),Cn=e(`query UserSwaps($request: UserSwapsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1238
1311
|
value: userSwaps(request: $request) {
|
|
1239
1312
|
...PaginatedUserSwapsResult
|
|
1240
1313
|
}
|
|
1241
|
-
}`,[
|
|
1314
|
+
}`,[de]),En=e(`query SupplySwapQuote($request: SupplySwapQuoteRequest!, $currency: Currency!) {
|
|
1242
1315
|
value: supplySwapQuote(request: $request) {
|
|
1243
1316
|
...SupplySwapQuoteResult
|
|
1244
1317
|
}
|
|
1245
|
-
}`,[
|
|
1318
|
+
}`,[Se]),Un=e(`query BorrowSwapQuote($request: BorrowSwapQuoteRequest!, $currency: Currency!) {
|
|
1246
1319
|
value: borrowSwapQuote(request: $request) {
|
|
1247
1320
|
...BorrowSwapQuoteResult
|
|
1248
1321
|
}
|
|
1249
|
-
}`,[
|
|
1322
|
+
}`,[fe]),On=e(`query RepayWithSupplyQuote($request: RepayWithSupplyQuoteRequest!, $currency: Currency!) {
|
|
1250
1323
|
value: repayWithSupplyQuote(request: $request) {
|
|
1251
1324
|
...RepayWithSupplyQuoteResult
|
|
1252
1325
|
}
|
|
1253
|
-
}`,[
|
|
1326
|
+
}`,[Re]),_n=e(`query WithdrawSwapQuote($request: WithdrawSwapQuoteRequest!, $currency: Currency!) {
|
|
1254
1327
|
value: withdrawSwapQuote(request: $request) {
|
|
1255
1328
|
...WithdrawSwapQuoteResult
|
|
1256
1329
|
}
|
|
1257
|
-
}`,[
|
|
1330
|
+
}`,[we]),Bn=e(`query PreparePositionSwap($request: PreparePositionSwapRequest!) {
|
|
1258
1331
|
value: preparePositionSwap(request: $request) {
|
|
1259
1332
|
...PreparePositionSwapResult
|
|
1260
1333
|
}
|
|
1261
|
-
}`,[
|
|
1334
|
+
}`,[xe]);var $n=e(`query Borrow($request: BorrowRequest!) {
|
|
1262
1335
|
value: borrow(request: $request) {
|
|
1263
1336
|
...ExecutionPlan
|
|
1264
1337
|
}
|
|
1265
|
-
}`,[
|
|
1338
|
+
}`,[U]),Nn=e(`query Supply($request: SupplyRequest!) {
|
|
1266
1339
|
value: supply(request: $request) {
|
|
1267
1340
|
...ExecutionPlan
|
|
1268
1341
|
}
|
|
1269
|
-
}`,[
|
|
1342
|
+
}`,[U]),Dn=e(`query Repay($request: RepayRequest!) {
|
|
1270
1343
|
value: repay(request: $request) {
|
|
1271
1344
|
...ExecutionPlan
|
|
1272
1345
|
}
|
|
1273
|
-
}`,[
|
|
1346
|
+
}`,[U]),Mn=e(`query Withdraw($request: WithdrawRequest!) {
|
|
1274
1347
|
value: withdraw(request: $request) {
|
|
1275
1348
|
...ExecutionPlan
|
|
1276
1349
|
}
|
|
1277
|
-
}`,[
|
|
1350
|
+
}`,[U]),Gt=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1278
1351
|
__typename
|
|
1279
1352
|
... on TransactionRequest {
|
|
1280
1353
|
...TransactionRequest
|
|
@@ -1285,27 +1358,27 @@
|
|
|
1285
1358
|
... on InsufficientBalanceError {
|
|
1286
1359
|
...InsufficientBalanceError
|
|
1287
1360
|
}
|
|
1288
|
-
}`,[
|
|
1361
|
+
}`,[y,L,A]),Ln=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1289
1362
|
value: liquidatePosition(request: $request) {
|
|
1290
1363
|
...LiquidatePositionExecutionPlan
|
|
1291
1364
|
}
|
|
1292
|
-
}`,[
|
|
1365
|
+
}`,[Gt]),Vn=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1293
1366
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1294
1367
|
...TransactionRequest
|
|
1295
1368
|
}
|
|
1296
|
-
}`,[
|
|
1369
|
+
}`,[y]),Gn=e(`query SetUserSuppliesAsCollateral($request: SetUserSuppliesAsCollateralRequest!) {
|
|
1297
1370
|
value: setUserSuppliesAsCollateral(request: $request) {
|
|
1298
1371
|
...TransactionRequest
|
|
1299
1372
|
}
|
|
1300
|
-
}`,[
|
|
1373
|
+
}`,[y]),Kn=e(`query RenounceSpokeUserPositionManager($request: RenounceSpokeUserPositionManagerRequest!) {
|
|
1301
1374
|
value: renounceSpokeUserPositionManager(request: $request) {
|
|
1302
1375
|
...TransactionRequest
|
|
1303
1376
|
}
|
|
1304
|
-
}`,[
|
|
1377
|
+
}`,[y]),Yn=e(`query UpdateUserPositionConditions($request: UpdateUserPositionConditionsRequest!) {
|
|
1305
1378
|
value: updateUserPositionConditions(request: $request) {
|
|
1306
1379
|
...TransactionRequest
|
|
1307
1380
|
}
|
|
1308
|
-
}`,[
|
|
1381
|
+
}`,[y]),Kt=e(`fragment CollateralFactorVariation on CollateralFactorVariation {
|
|
1309
1382
|
__typename
|
|
1310
1383
|
reserveId
|
|
1311
1384
|
token {
|
|
@@ -1317,7 +1390,7 @@
|
|
|
1317
1390
|
after {
|
|
1318
1391
|
...PercentNumber
|
|
1319
1392
|
}
|
|
1320
|
-
}`,[
|
|
1393
|
+
}`,[u,a]),Yt=e(`fragment LiquidationFeeVariation on LiquidationFeeVariation {
|
|
1321
1394
|
__typename
|
|
1322
1395
|
reserveId
|
|
1323
1396
|
token {
|
|
@@ -1329,7 +1402,7 @@
|
|
|
1329
1402
|
after {
|
|
1330
1403
|
...PercentNumber
|
|
1331
1404
|
}
|
|
1332
|
-
}`,[
|
|
1405
|
+
}`,[u,a]),zt=e(`fragment MaxLiquidationBonusVariation on MaxLiquidationBonusVariation {
|
|
1333
1406
|
__typename
|
|
1334
1407
|
reserveId
|
|
1335
1408
|
token {
|
|
@@ -1341,7 +1414,7 @@
|
|
|
1341
1414
|
after {
|
|
1342
1415
|
...PercentNumber
|
|
1343
1416
|
}
|
|
1344
|
-
}`,[
|
|
1417
|
+
}`,[u,a]),Zt=e(`fragment UserPositionConditionVariation on UserPositionConditionVariation {
|
|
1345
1418
|
__typename
|
|
1346
1419
|
... on CollateralFactorVariation {
|
|
1347
1420
|
...CollateralFactorVariation
|
|
@@ -1352,7 +1425,57 @@
|
|
|
1352
1425
|
... on MaxLiquidationBonusVariation {
|
|
1353
1426
|
...MaxLiquidationBonusVariation
|
|
1354
1427
|
}
|
|
1355
|
-
}`,[
|
|
1428
|
+
}`,[Kt,Yt,zt]),jt=e(`fragment PreviewMerklSupplyReward on PreviewMerklSupplyReward {
|
|
1429
|
+
__typename
|
|
1430
|
+
id
|
|
1431
|
+
startDate
|
|
1432
|
+
endDate
|
|
1433
|
+
extraApy {
|
|
1434
|
+
...PercentNumber
|
|
1435
|
+
}
|
|
1436
|
+
payoutToken {
|
|
1437
|
+
...Erc20Token
|
|
1438
|
+
}
|
|
1439
|
+
criteria {
|
|
1440
|
+
...MerklCriteria
|
|
1441
|
+
}
|
|
1442
|
+
reserve {
|
|
1443
|
+
...ReserveInfo
|
|
1444
|
+
}
|
|
1445
|
+
}`,[a,u,E,g]),Jt=e(`fragment PreviewMerklBorrowReward on PreviewMerklBorrowReward {
|
|
1446
|
+
__typename
|
|
1447
|
+
id
|
|
1448
|
+
startDate
|
|
1449
|
+
endDate
|
|
1450
|
+
discountApy {
|
|
1451
|
+
...PercentNumber
|
|
1452
|
+
}
|
|
1453
|
+
payoutToken {
|
|
1454
|
+
...Erc20Token
|
|
1455
|
+
}
|
|
1456
|
+
criteria {
|
|
1457
|
+
...MerklCriteria
|
|
1458
|
+
}
|
|
1459
|
+
reserve {
|
|
1460
|
+
...ReserveInfo
|
|
1461
|
+
}
|
|
1462
|
+
}`,[a,u,E,g]),Xt=e(`fragment PreviewReward on PreviewReward {
|
|
1463
|
+
__typename
|
|
1464
|
+
... on PreviewMerklSupplyReward {
|
|
1465
|
+
...PreviewMerklSupplyReward
|
|
1466
|
+
}
|
|
1467
|
+
... on PreviewMerklBorrowReward {
|
|
1468
|
+
...PreviewMerklBorrowReward
|
|
1469
|
+
}
|
|
1470
|
+
}`,[jt,Jt]),er=e(`fragment PreviewRewardOutcome on PreviewRewardOutcome {
|
|
1471
|
+
__typename
|
|
1472
|
+
lost {
|
|
1473
|
+
...PreviewReward
|
|
1474
|
+
}
|
|
1475
|
+
gained {
|
|
1476
|
+
...PreviewReward
|
|
1477
|
+
}
|
|
1478
|
+
}`,[Xt]),tr=e(`fragment PreviewUserPosition on PreviewUserPosition {
|
|
1356
1479
|
__typename
|
|
1357
1480
|
id
|
|
1358
1481
|
healthFactor {
|
|
@@ -1376,14 +1499,17 @@
|
|
|
1376
1499
|
borrowingPower {
|
|
1377
1500
|
...ExchangeAmountVariation
|
|
1378
1501
|
}
|
|
1502
|
+
rewards {
|
|
1503
|
+
...PreviewRewardOutcome
|
|
1504
|
+
}
|
|
1379
1505
|
otherConditions {
|
|
1380
1506
|
...UserPositionConditionVariation
|
|
1381
1507
|
}
|
|
1382
|
-
}`,[
|
|
1508
|
+
}`,[re,X,ee,er,Zt]),zn=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD, $timeWindow: TimeWindow! = LAST_WEEK) {
|
|
1383
1509
|
value: preview(request: $request) {
|
|
1384
1510
|
...PreviewUserPosition
|
|
1385
1511
|
}
|
|
1386
|
-
}`,[
|
|
1512
|
+
}`,[tr]),Te=e(`fragment PercentNumberChangeSnapshot on PercentNumberChangeSnapshot {
|
|
1387
1513
|
__typename
|
|
1388
1514
|
before {
|
|
1389
1515
|
...PercentNumber
|
|
@@ -1391,7 +1517,7 @@
|
|
|
1391
1517
|
after {
|
|
1392
1518
|
...PercentNumber
|
|
1393
1519
|
}
|
|
1394
|
-
}`,[a]),
|
|
1520
|
+
}`,[a]),rr=e(`fragment BorrowActivity on BorrowActivity {
|
|
1395
1521
|
__typename
|
|
1396
1522
|
id
|
|
1397
1523
|
user
|
|
@@ -1409,7 +1535,7 @@
|
|
|
1409
1535
|
chain {
|
|
1410
1536
|
...Chain
|
|
1411
1537
|
}
|
|
1412
|
-
}`,[
|
|
1538
|
+
}`,[m,p,g,n]),ar=e(`fragment SupplyActivity on SupplyActivity {
|
|
1413
1539
|
__typename
|
|
1414
1540
|
id
|
|
1415
1541
|
user
|
|
@@ -1427,7 +1553,7 @@
|
|
|
1427
1553
|
chain {
|
|
1428
1554
|
...Chain
|
|
1429
1555
|
}
|
|
1430
|
-
}`,[
|
|
1556
|
+
}`,[m,p,g,n]),nr=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1431
1557
|
__typename
|
|
1432
1558
|
id
|
|
1433
1559
|
user
|
|
@@ -1445,7 +1571,7 @@
|
|
|
1445
1571
|
chain {
|
|
1446
1572
|
...Chain
|
|
1447
1573
|
}
|
|
1448
|
-
}`,[
|
|
1574
|
+
}`,[m,p,g,n]),or=e(`fragment RepayActivity on RepayActivity {
|
|
1449
1575
|
__typename
|
|
1450
1576
|
id
|
|
1451
1577
|
user
|
|
@@ -1463,7 +1589,7 @@
|
|
|
1463
1589
|
chain {
|
|
1464
1590
|
...Chain
|
|
1465
1591
|
}
|
|
1466
|
-
}`,[
|
|
1592
|
+
}`,[m,p,g,n]),pr=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1467
1593
|
__typename
|
|
1468
1594
|
id
|
|
1469
1595
|
user
|
|
@@ -1488,7 +1614,7 @@
|
|
|
1488
1614
|
chain {
|
|
1489
1615
|
...Chain
|
|
1490
1616
|
}
|
|
1491
|
-
}`,[
|
|
1617
|
+
}`,[m,p,g,n]),sr=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1492
1618
|
__typename
|
|
1493
1619
|
id
|
|
1494
1620
|
user
|
|
@@ -1504,7 +1630,7 @@
|
|
|
1504
1630
|
chain {
|
|
1505
1631
|
...Chain
|
|
1506
1632
|
}
|
|
1507
|
-
}`,[
|
|
1633
|
+
}`,[m,g,n]),ir=e(`fragment UpdatedDynamicConfigActivity on UpdatedDynamicConfigActivity {
|
|
1508
1634
|
__typename
|
|
1509
1635
|
id
|
|
1510
1636
|
user
|
|
@@ -1528,7 +1654,7 @@
|
|
|
1528
1654
|
chain {
|
|
1529
1655
|
...Chain
|
|
1530
1656
|
}
|
|
1531
|
-
}`,[
|
|
1657
|
+
}`,[m,g,Te,n]),ur=e(`fragment UpdatedRiskPremiumActivity on UpdatedRiskPremiumActivity {
|
|
1532
1658
|
__typename
|
|
1533
1659
|
id
|
|
1534
1660
|
user
|
|
@@ -1543,7 +1669,7 @@
|
|
|
1543
1669
|
chain {
|
|
1544
1670
|
...Chain
|
|
1545
1671
|
}
|
|
1546
|
-
}`,[
|
|
1672
|
+
}`,[m,Te,n]),mr=e(`fragment TokenSwapActivity on TokenSwapActivity {
|
|
1547
1673
|
__typename
|
|
1548
1674
|
id
|
|
1549
1675
|
user
|
|
@@ -1562,7 +1688,7 @@
|
|
|
1562
1688
|
orderClass
|
|
1563
1689
|
kind
|
|
1564
1690
|
status
|
|
1565
|
-
}`,[n,S]),
|
|
1691
|
+
}`,[n,S]),yr=e(`fragment SupplySwapActivity on SupplySwapActivity {
|
|
1566
1692
|
__typename
|
|
1567
1693
|
id
|
|
1568
1694
|
user
|
|
@@ -1581,7 +1707,7 @@
|
|
|
1581
1707
|
orderClass
|
|
1582
1708
|
kind
|
|
1583
1709
|
status
|
|
1584
|
-
}`,[n,w]),
|
|
1710
|
+
}`,[n,w]),cr=e(`fragment BorrowSwapActivity on BorrowSwapActivity {
|
|
1585
1711
|
__typename
|
|
1586
1712
|
id
|
|
1587
1713
|
user
|
|
@@ -1600,7 +1726,7 @@
|
|
|
1600
1726
|
orderClass
|
|
1601
1727
|
kind
|
|
1602
1728
|
status
|
|
1603
|
-
}`,[n,w]),
|
|
1729
|
+
}`,[n,w]),lr=e(`fragment RepayWithSupplyActivity on RepayWithSupplyActivity {
|
|
1604
1730
|
__typename
|
|
1605
1731
|
id
|
|
1606
1732
|
user
|
|
@@ -1619,7 +1745,7 @@
|
|
|
1619
1745
|
orderClass
|
|
1620
1746
|
kind
|
|
1621
1747
|
status
|
|
1622
|
-
}`,[n,w]),
|
|
1748
|
+
}`,[n,w]),gr=e(`fragment WithdrawSwapActivity on WithdrawSwapActivity {
|
|
1623
1749
|
__typename
|
|
1624
1750
|
id
|
|
1625
1751
|
user
|
|
@@ -1638,7 +1764,7 @@
|
|
|
1638
1764
|
orderClass
|
|
1639
1765
|
kind
|
|
1640
1766
|
status
|
|
1641
|
-
}`,[n,w,S]),
|
|
1767
|
+
}`,[n,w,S]),dr=e(`fragment ActivityItem on ActivityItem {
|
|
1642
1768
|
__typename
|
|
1643
1769
|
... on BorrowActivity {
|
|
1644
1770
|
...BorrowActivity
|
|
@@ -1679,7 +1805,7 @@
|
|
|
1679
1805
|
... on WithdrawSwapActivity {
|
|
1680
1806
|
...WithdrawSwapActivity
|
|
1681
1807
|
}
|
|
1682
|
-
}`,[
|
|
1808
|
+
}`,[rr,ar,nr,or,pr,sr,ir,ur,mr,yr,cr,lr,gr]),Sr=e(`fragment PaginatedActivitiesResult on PaginatedActivitiesResult {
|
|
1683
1809
|
__typename
|
|
1684
1810
|
items {
|
|
1685
1811
|
...ActivityItem
|
|
@@ -1687,41 +1813,41 @@
|
|
|
1687
1813
|
pageInfo {
|
|
1688
1814
|
...PaginatedResultInfo
|
|
1689
1815
|
}
|
|
1690
|
-
}`,[
|
|
1816
|
+
}`,[dr,h]),Zn=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1691
1817
|
value: activities(request: $request) {
|
|
1692
1818
|
...PaginatedActivitiesResult
|
|
1693
1819
|
}
|
|
1694
|
-
}`,[
|
|
1820
|
+
}`,[Sr]);var eo=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1695
1821
|
value: userSupplies(request: $request) {
|
|
1696
1822
|
...UserSupplyItem
|
|
1697
1823
|
}
|
|
1698
|
-
}`,[
|
|
1824
|
+
}`,[qe]),to=e(`query UserBorrows($request: UserBorrowsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1699
1825
|
value: userBorrows(request: $request) {
|
|
1700
1826
|
...UserBorrowItem
|
|
1701
1827
|
}
|
|
1702
|
-
}`,[
|
|
1828
|
+
}`,[Ae]),ro=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1703
1829
|
value: userSummary(request: $request) {
|
|
1704
1830
|
...UserSummary
|
|
1705
1831
|
}
|
|
1706
|
-
}`,[
|
|
1832
|
+
}`,[he]),ao=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1707
1833
|
value: userPositions(request: $request) {
|
|
1708
1834
|
...UserPosition
|
|
1709
1835
|
}
|
|
1710
|
-
}`,[K]),
|
|
1836
|
+
}`,[K]),no=e(`query UserPosition($request: UserPositionRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1711
1837
|
value: userPosition(request: $request) {
|
|
1712
1838
|
...UserPosition
|
|
1713
1839
|
}
|
|
1714
|
-
}`,[K]),
|
|
1840
|
+
}`,[K]),oo=e(`query UserBalances($request: UserBalancesRequest!, $currency: Currency!) {
|
|
1715
1841
|
value: userBalances(request: $request) {
|
|
1716
1842
|
...UserBalance
|
|
1717
1843
|
}
|
|
1718
|
-
}`,[
|
|
1844
|
+
}`,[Fe]),po=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1719
1845
|
value: userSummaryHistory(request: $request) {
|
|
1720
1846
|
...UserSummaryHistoryItem
|
|
1721
1847
|
}
|
|
1722
|
-
}`,[
|
|
1848
|
+
}`,[Pe]),so=e(`query UserRiskPremiumBreakdown($request: UserRiskPremiumBreakdownRequest!) {
|
|
1723
1849
|
value: userRiskPremiumBreakdown(request: $request) {
|
|
1724
1850
|
...UserRiskPremiumBreakdownItem
|
|
1725
1851
|
}
|
|
1726
|
-
}`,[
|
|
1852
|
+
}`,[G]);exports.ActivitiesQuery=Zn;exports.ActivityItemFragment=dr;exports.ActivityType=Oe;exports.ApyMetric=_e;exports.ApySampleFragment=Y;exports.AssetAmountWithChangeFragment=Dt;exports.AssetBorrowHistoryQuery=Xa;exports.AssetBorrowSampleFragment=Nt;exports.AssetFragment=Lt;exports.AssetPriceHistoryQuery=ja;exports.AssetPriceSampleFragment=Wt;exports.AssetQuery=Za;exports.AssetSampleBreakdownFragment=ke;exports.AssetSummaryFragment=Mt;exports.AssetSupplyHistoryQuery=Ja;exports.AssetSupplySampleFragment=$t;exports.BorrowActivityFragment=rr;exports.BorrowApyHistoryQuery=nn;exports.BorrowQuery=$n;exports.BorrowSwapActivityFragment=cr;exports.BorrowSwapFragment=qt;exports.BorrowSwapKind=We;exports.BorrowSwapQuoteQuery=Un;exports.BorrowSwapQuoteResultFragment=fe;exports.CancelSwapExecutionPlanFragment=ge;exports.CancelSwapMutation=bn;exports.ChainFragment=n;exports.ChainQuery=Da;exports.ChainsFilter=Ue;exports.ChainsQuery=Ma;exports.ClaimRewardsQuery=cn;exports.CollateralFactorVariationFragment=Kt;exports.CollateralMetric=Be;exports.Currency=He;exports.DecimalNumberFragment=l;exports.DecimalNumberWithChangeFragment=z;exports.DomainDataFragment=B;exports.Erc20AmountFragment=p;exports.Erc20ApprovalFragment=M;exports.Erc20ApprovalRequiredFragment=L;exports.Erc20TokenFragment=u;exports.ExchangeAmountFragment=i;exports.ExchangeAmountVariationFragment=ee;exports.ExchangeAmountWithChangeFragment=q;exports.ExchangeRateQuery=Ga;exports.ExecutionPlanFragment=U;exports.HasProcessedKnownTransactionQuery=La;exports.HealthFactorErrorFragment=Xe;exports.HealthFactorResultFragment=re;exports.HealthFactorVariationFragment=Je;exports.HealthFactorWithChangeFragment=te;exports.HealthQuery=Va;exports.HubAssetFragment=C;exports.HubAssetSettingsFragment=rt;exports.HubAssetSummaryFragment=tt;exports.HubAssetUserStateFragment=at;exports.HubAssetsQuery=ma;exports.HubFragment=F;exports.HubQuery=ia;exports.HubSummaryFragment=et;exports.HubSummaryHistoryQuery=ya;exports.HubSummarySampleFragment=_t;exports.HubsQuery=ua;exports.InsufficientBalanceErrorFragment=A;exports.InsufficientLiquidityErrorFragment=I;exports.LiquidatePositionExecutionPlanFragment=Gt;exports.LiquidatePositionQuery=Ln;exports.LiquidatedActivityFragment=pr;exports.LiquidationFeeVariationFragment=Yt;exports.MaxLiquidationBonusVariationFragment=zt;exports.MerklBorrowRewardFragment=pt;exports.MerklCriteriaFragment=E;exports.MerklGenericCriteriaFragment=nt;exports.MerklSupplyRewardFragment=ot;exports.NativeAmountFragment=je;exports.NativeTokenFragment=Z;exports.OperationType=Ee;exports.OrderDirection=ve;exports.PageSize=be;exports.PaginatedActivitiesResultFragment=Sr;exports.PaginatedResultInfoFragment=h;exports.PaginatedSpokePositionManagerResultFragment=pe;exports.PaginatedSpokeUserPositionManagerResultFragment=se;exports.PaginatedUserSwapsResultFragment=de;exports.PercentNumberChangeSnapshotFragment=Te;exports.PercentNumberFragment=a;exports.PercentNumberVariationFragment=X;exports.PercentNumberWithChangeFragment=J;exports.PermitTypedDataFragment=ae;exports.PositionAmountFragment=w;exports.PositionSwapAdapterContractApprovalFragment=Ct;exports.PositionSwapApprovalFragment=Ut;exports.PositionSwapByIntentApprovalsRequiredFragment=W;exports.PositionSwapPositionManagerApprovalFragment=Et;exports.PreContractActionRequiredFragment=gt;exports.PreparePositionSwapQuery=Bn;exports.PreparePositionSwapResultFragment=xe;exports.PrepareSwapCancelQuery=vn;exports.PrepareSwapCancelResultFragment=le;exports.PrepareSwapOrderFragment=ie;exports.PrepareTokenSwapQuery=In;exports.PrepareTokenSwapResultFragment=ye;exports.PreviewMerklBorrowRewardFragment=Jt;exports.PreviewMerklSupplyRewardFragment=jt;exports.PreviewQuery=zn;exports.PreviewRewardFragment=Xt;exports.PreviewRewardOutcomeFragment=er;exports.PreviewUserPositionFragment=tr;exports.ProtocolHistoryQuery=en;exports.ProtocolHistorySampleFragment=Vt;exports.QuoteAccuracy=Ge;exports.RenounceSpokeUserPositionManagerQuery=Kn;exports.RepayActivityFragment=or;exports.RepayQuery=Dn;exports.RepayWithSupplyActivityFragment=lr;exports.RepayWithSupplyFragment=At;exports.RepayWithSupplyKind=$e;exports.RepayWithSupplyQuoteQuery=On;exports.RepayWithSupplyQuoteResultFragment=Re;exports.ReserveFragment=k;exports.ReserveInfoFragment=g;exports.ReserveQuery=pn;exports.ReserveSettingsFragment=mt;exports.ReserveStatusFragment=yt;exports.ReserveSummaryFragment=ct;exports.ReserveUserStateFragment=lt;exports.ReservesQuery=sn;exports.ReservesRequestFilter=Qe;exports.RewardFragment=ne;exports.SetSpokeUserPositionManagerQuery=Vn;exports.SetUserSuppliesAsCollateralQuery=Gn;exports.SpokeFragment=m;exports.SpokePositionManagerFragment=it;exports.SpokePositionManagersQuery=wn;exports.SpokeQuery=fn;exports.SpokeUserPositionManagerFragment=ut;exports.SpokeUserPositionManagersQuery=xn;exports.SpokesQuery=Rn;exports.SupplyActivityFragment=ar;exports.SupplyApyHistoryQuery=on;exports.SupplyQuery=Nn;exports.SupplySwapActivityFragment=yr;exports.SupplySwapFragment=xt;exports.SupplySwapKind=Ne;exports.SupplySwapQuoteQuery=En;exports.SupplySwapQuoteResultFragment=Se;exports.SwapActivityStatus=Ye;exports.SwapByIntentFragment=St;exports.SwapByIntentWithApprovalRequiredFragment=ft;exports.SwapByTransactionFragment=Rt;exports.SwapCancelledFragment=Pt;exports.SwapCancelledResultFragment=bt;exports.SwapExecutionPlanFragment=ce;exports.SwapExpiredFragment=It;exports.SwapFulfilledFragment=vt;exports.SwapMutation=Tn;exports.SwapOpenFragment=kt;exports.SwapOperationFragment=O;exports.SwapOrderClass=Ke;exports.SwapPendingSignatureFragment=Tt;exports.SwapQuoteCostsFragment=dt;exports.SwapQuoteFragment=H;exports.SwapReceiptFragment=ue;exports.SwapStatusFilter=Me;exports.SwapStatusFragment=V;exports.SwapStatusQuery=kn;exports.SwapTransactionRequestFragment=wt;exports.SwapTypedDataFragment=Q;exports.SwappableTokensQuery=Pn;exports.TimeWindow=Ce;exports.TokenAmountFragment=S;exports.TokenCategory=Le;exports.TokenFragment=j;exports.TokenInfoFragment=b;exports.TokenSwapActivityFragment=mr;exports.TokenSwapFragment=Ft;exports.TokenSwapKind=ze;exports.TokenSwapQuoteQuery=Fn;exports.TokenSwapQuoteResultFragment=me;exports.TransactionRequestFragment=y;exports.UpdateUserPositionConditionsQuery=Yn;exports.UpdatedDynamicConfigActivityFragment=ir;exports.UpdatedRiskPremiumActivityFragment=ur;exports.UserBalanceFragment=Fe;exports.UserBalancesQuery=oo;exports.UserBorrowItemFragment=Ae;exports.UserBorrowsQuery=to;exports.UserClaimableRewardFragment=oe;exports.UserClaimableRewardsQuery=ln;exports.UserMerklClaimableRewardFragment=st;exports.UserPositionConditionVariationFragment=Zt;exports.UserPositionConditionsUpdate=Ve;exports.UserPositionFragment=K;exports.UserPositionQuery=no;exports.UserPositionRiskPremiumFragment=Ot;exports.UserPositionsQuery=ao;exports.UserRiskPremiumBreakdownItemFragment=G;exports.UserRiskPremiumBreakdownQuery=so;exports.UserSummaryFragment=he;exports.UserSummaryHistoryItemFragment=Pe;exports.UserSummaryHistoryQuery=po;exports.UserSummaryQuery=ro;exports.UserSuppliesQuery=eo;exports.UserSupplyItemFragment=qe;exports.UserSwapsQuery=Cn;exports.UsingAsCollateralActivityFragment=sr;exports.WithdrawActivityFragment=nr;exports.WithdrawQuery=Mn;exports.WithdrawSwapActivityFragment=gr;exports.WithdrawSwapFragment=ht;exports.WithdrawSwapKind=De;exports.WithdrawSwapQuoteQuery=_n;exports.WithdrawSwapQuoteResultFragment=we;exports.assetId=ga;exports.decodeHubId=Sa;exports.decodeReserveId=wa;exports.decodeSpokeId=Ia;exports.decodeUserPositionId=qa;exports.encodeHubId=da;exports.encodeReserveId=xa;exports.encodeSpokeId=Pa;exports.encodeUserPositionId=Aa;exports.graphql=e;exports.hubAssetId=fa;exports.hubId=Bt;exports.isChainIdsVariant=Oa;exports.isERC20PermitSignature=Cr;exports.isHubInputVariant=Ua;exports.isReserveInputVariant=Ha;exports.isSpokeInputVariant=Ba;exports.isTokensVariant=_a;exports.isTxHashInputVariant=Qa;exports.reserveId=Ra;exports.spokeId=Qt;exports.swapId=ha;exports.swapQuoteId=Fa;exports.tokenInfoId=ba;exports.userBalanceId=ka;exports.userBorrowItemId=Ta;exports.userPositionId=Ht;exports.userSupplyItemId=va;//# sourceMappingURL=index.cjs.map
|
|
1727
1853
|
//# sourceMappingURL=index.cjs.map
|