@aave/graphql 1.0.0-next.12 → 1.0.0-next.13
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 +236 -227
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7147 -2869
- package/dist/index.d.ts +7147 -2869
- package/dist/index.js +236 -227
- 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 +3586 -211
- 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 Pe=(r=>(r.Asc="ASC",r.Desc="DESC",r))(Pe||{}),Fe=(r=>(r.Ten="TEN",r.Fifty="FIFTY",r))(Fe||{}),Ie=(x=>(x.LastDay="LAST_DAY",x.LastWeek="LAST_WEEK",x.LastMonth="LAST_MONTH",x.LastSixMonths="LAST_SIX_MONTHS",x.LastYear="LAST_YEAR",x.All="ALL",x))(Ie||{}),Te=(l=>(l.SpokeBorrow="SPOKE_BORROW",l.SpokeRepay="SPOKE_REPAY",l.SpokeSupply="SPOKE_SUPPLY",l.SpokeWithdraw="SPOKE_WITHDRAW",l.SpokeUpdateUserRiskPremium="SPOKE_UPDATE_USER_RISK_PREMIUM",l.SpokeUpdateUserDynamicConfig="SPOKE_UPDATE_USER_DYNAMIC_CONFIG",l.SpokeSetUserUsingAsCollateral="SPOKE_SET_USER_USING_AS_COLLATERAL",l.SpokeSetUserPositionManager="SPOKE_SET_USER_POSITION_MANAGER",l.RenounceSpokeUserPositionManager="RENOUNCE_SPOKE_USER_POSITION_MANAGER",l.Liquidation="LIQUIDATION",l))(Te||{}),Ee=(o=>(o.TESTNET_ONLY="TESTNET_ONLY",o.MAINNET_ONLY="MAINNET_ONLY",o.ALL="ALL",o))(Ee||{}),ve=(o=>(o.Active="ACTIVE",o.Frozen="FROZEN",o.Paused="PAUSED",o))(ve||{}),be=(r=>(r.Balance="BALANCE",r.Name="NAME",r))(be||{}),ke=(S=>(S.Borrow="BORROW",S.Supply="SUPPLY",S.Withdraw="WITHDRAW",S.Repay="REPAY",S.Liquidated="LIQUIDATED",S.SetAsCollateral="SET_AS_COLLATERAL",S.UpdatedDynamicConfig="UPDATED_DYNAMIC_CONFIG",S.UpdatedRiskPremium="UPDATED_RISK_PREMIUM",S))(ke||{}),Ce=(o=>(o.Highest="HIGHEST",o.Lowest="LOWEST",o.Average="AVERAGE",o))(Ce||{}),Ue=(r=>(r.Highest="HIGHEST",r.Lowest="LOWEST",r))(Ue||{}),Be=(o=>(o.Usd="USD",o.Eur="EUR",o.Gbp="GBP",o))(Be||{}),Qe=(q=>(q.Supply="SUPPLY",q.Borrow="BORROW",q.Collateral="COLLATERAL",q.All="ALL",q))(Qe||{}),Oe=(r=>(r.Buy="BUY",r.Sell="SELL",r))(Oe||{}),He=(r=>(r.Current="CURRENT",r.New="NEW",r))(He||{}),_e=(r=>(r.Repay="REPAY",r.Supply="SUPPLY",r))(_e||{}),$e=(r=>(r.Current="CURRENT",r.New="NEW",r))($e||{}),Ne=(r=>(r.Withdraw="WITHDRAW",r.Buy="BUY",r))(Ne||{}),We=(P=>(P.Cancelled="CANCELLED",P.Expired="EXPIRED",P.Fulfilled="FULFILLED",P.Open="OPEN",P.PendingSignature="PENDING_SIGNATURE",P))(We||{}),De=(r=>(r.Stablecoin="STABLECOIN",r.EthCorrelated="ETH_CORRELATED",r))(De||{}),Le=(r=>(r.AllDynamicConfig="ALL_DYNAMIC_CONFIG",r.JustRiskPremium="JUST_RISK_PREMIUM",r))(Le||{});var e=gql_tada.initGraphQLTada();var k=e(`fragment DomainData on DomainData {
|
|
2
2
|
name
|
|
3
3
|
version
|
|
4
4
|
chainId
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
onChainValue
|
|
9
9
|
decimals
|
|
10
10
|
value
|
|
11
|
-
}`),
|
|
11
|
+
}`),a=e(`fragment PercentNumber on PercentNumber {
|
|
12
12
|
__typename
|
|
13
13
|
onChainValue
|
|
14
14
|
decimals
|
|
15
15
|
value
|
|
16
16
|
normalized
|
|
17
|
-
}`),
|
|
17
|
+
}`),Q=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,
|
|
25
|
+
}`,[c,a]),u=e(`fragment ExchangeAmount on ExchangeAmount {
|
|
26
26
|
__typename
|
|
27
27
|
value
|
|
28
28
|
name
|
|
29
29
|
symbol
|
|
30
30
|
icon
|
|
31
31
|
decimals
|
|
32
|
-
}`),
|
|
32
|
+
}`),F=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
|
+
}`,[F]),y=e(`fragment Erc20Token on Erc20Token {
|
|
56
56
|
__typename
|
|
57
57
|
info {
|
|
58
58
|
...TokenInfo
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
isWrappedNativeToken
|
|
65
65
|
permitSupported
|
|
66
|
-
}`,[
|
|
66
|
+
}`,[F,n]),V=e(`fragment NativeToken on NativeToken {
|
|
67
67
|
__typename
|
|
68
68
|
info {
|
|
69
69
|
...TokenInfo
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
chain {
|
|
72
72
|
...Chain
|
|
73
73
|
}
|
|
74
|
-
}`,[
|
|
74
|
+
}`,[F,n]),p=e(`fragment Erc20Amount on Erc20Amount {
|
|
75
75
|
__typename
|
|
76
76
|
token {
|
|
77
77
|
...Erc20Token
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
exchangeRate(currency: $currency){
|
|
86
86
|
...DecimalNumber
|
|
87
87
|
}
|
|
88
|
-
}`,[y,c,
|
|
88
|
+
}`,[y,c,u]),O=e(`fragment NativeAmount on NativeAmount {
|
|
89
89
|
__typename
|
|
90
90
|
token {
|
|
91
91
|
...NativeToken
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
exchangeRate(currency: $currency){
|
|
100
100
|
...DecimalNumber
|
|
101
101
|
}
|
|
102
|
-
}`,[
|
|
102
|
+
}`,[V,c,u]),I=e(`fragment TokenAmount on TokenAmount {
|
|
103
103
|
__typename
|
|
104
104
|
... on Erc20Amount {
|
|
105
105
|
...Erc20Amount
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
... on NativeAmount {
|
|
108
108
|
...NativeAmount
|
|
109
109
|
}
|
|
110
|
-
}`,[p,O]),
|
|
110
|
+
}`,[p,O]),K=e(`fragment Token on Token {
|
|
111
111
|
__typename
|
|
112
112
|
... on Erc20Token {
|
|
113
113
|
...Erc20Token
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
... on NativeToken {
|
|
116
116
|
...NativeToken
|
|
117
117
|
}
|
|
118
|
-
}`,[y,
|
|
118
|
+
}`,[y,V]),d=e(`fragment ExchangeAmountWithChange on ExchangeAmountWithChange {
|
|
119
119
|
__typename
|
|
120
120
|
current {
|
|
121
121
|
...ExchangeAmount
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
change(window: $timeWindow){
|
|
124
124
|
...PercentNumber
|
|
125
125
|
}
|
|
126
|
-
}`,[
|
|
126
|
+
}`,[u,a]),G=e(`fragment PercentNumberWithChange on PercentNumberWithChange {
|
|
127
127
|
__typename
|
|
128
128
|
current {
|
|
129
129
|
...PercentNumber
|
|
@@ -131,11 +131,11 @@
|
|
|
131
131
|
change(window: $timeWindow){
|
|
132
132
|
...PercentNumber
|
|
133
133
|
}
|
|
134
|
-
}`,[
|
|
134
|
+
}`,[a]),R=e(`fragment PaginatedResultInfo on PaginatedResultInfo {
|
|
135
135
|
__typename
|
|
136
136
|
prev
|
|
137
137
|
next
|
|
138
|
-
}`),
|
|
138
|
+
}`),Y=e(`fragment PercentNumberVariation on PercentNumberVariation {
|
|
139
139
|
__typename
|
|
140
140
|
current {
|
|
141
141
|
...PercentNumber
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
after {
|
|
144
144
|
...PercentNumber
|
|
145
145
|
}
|
|
146
|
-
}`,[
|
|
146
|
+
}`,[a]),z=e(`fragment ExchangeAmountVariation on ExchangeAmountVariation {
|
|
147
147
|
__typename
|
|
148
148
|
current {
|
|
149
149
|
...ExchangeAmount
|
|
@@ -151,22 +151,22 @@
|
|
|
151
151
|
after {
|
|
152
152
|
...ExchangeAmount
|
|
153
153
|
}
|
|
154
|
-
}`,[
|
|
154
|
+
}`,[u]),Z=e(`fragment HealthFactorWithChange on HealthFactorWithChange {
|
|
155
155
|
__typename
|
|
156
156
|
current
|
|
157
157
|
change(window: $timeWindow) {
|
|
158
158
|
...PercentNumber
|
|
159
159
|
}
|
|
160
|
-
}`,[
|
|
160
|
+
}`,[a]),Ve=e(`fragment HealthFactorVariation on HealthFactorVariation {
|
|
161
161
|
__typename
|
|
162
162
|
current
|
|
163
163
|
after
|
|
164
|
-
}`),
|
|
164
|
+
}`),Ke=e(`fragment HealthFactorError on HealthFactorError {
|
|
165
165
|
__typename
|
|
166
166
|
reason
|
|
167
167
|
current
|
|
168
168
|
after
|
|
169
|
-
}`),
|
|
169
|
+
}`),j=e(`fragment HealthFactorResult on HealthFactorResult {
|
|
170
170
|
__typename
|
|
171
171
|
... on HealthFactorVariation {
|
|
172
172
|
...HealthFactorVariation
|
|
@@ -174,7 +174,15 @@
|
|
|
174
174
|
... on HealthFactorError {
|
|
175
175
|
...HealthFactorError
|
|
176
176
|
}
|
|
177
|
-
}`,[
|
|
177
|
+
}`,[Ve,Ke]),f=e(`fragment InsufficientBalanceError on InsufficientBalanceError {
|
|
178
|
+
__typename
|
|
179
|
+
required {
|
|
180
|
+
...DecimalNumber
|
|
181
|
+
}
|
|
182
|
+
available {
|
|
183
|
+
...DecimalNumber
|
|
184
|
+
}
|
|
185
|
+
}`,[c]);var Ge=e(`fragment HubSummary on HubSummary {
|
|
178
186
|
__typename
|
|
179
187
|
totalBorrowed {
|
|
180
188
|
...ExchangeAmountWithChange
|
|
@@ -191,7 +199,7 @@
|
|
|
191
199
|
utilizationRate {
|
|
192
200
|
...PercentNumber
|
|
193
201
|
}
|
|
194
|
-
}`,[
|
|
202
|
+
}`,[u,d,a]),T=e(`fragment Hub on Hub {
|
|
195
203
|
__typename
|
|
196
204
|
id
|
|
197
205
|
name
|
|
@@ -202,7 +210,7 @@
|
|
|
202
210
|
summary(currency: $currency) {
|
|
203
211
|
...HubSummary
|
|
204
212
|
}
|
|
205
|
-
}`,[n,
|
|
213
|
+
}`,[n,Ge]);var Ye=e(`fragment HubAssetSummary on HubAssetSummary {
|
|
206
214
|
__typename
|
|
207
215
|
supplied {
|
|
208
216
|
...Erc20Amount
|
|
@@ -225,7 +233,7 @@
|
|
|
225
233
|
utilizationRate {
|
|
226
234
|
...PercentNumber
|
|
227
235
|
}
|
|
228
|
-
}`,[p,
|
|
236
|
+
}`,[p,a]),ze=e(`fragment HubAssetSettings on HubAssetSettings {
|
|
229
237
|
__typename
|
|
230
238
|
feeReceiver
|
|
231
239
|
liquidityFee {
|
|
@@ -233,12 +241,12 @@
|
|
|
233
241
|
}
|
|
234
242
|
irStrategy
|
|
235
243
|
reinvestmentController
|
|
236
|
-
}`,[
|
|
244
|
+
}`,[a]),Ze=e(`fragment HubAssetUserState on HubAssetUserState {
|
|
237
245
|
__typename
|
|
238
246
|
balance {
|
|
239
247
|
...Erc20Amount
|
|
240
248
|
}
|
|
241
|
-
}`,[p]),
|
|
249
|
+
}`,[p]),E=e(`fragment HubAsset on HubAsset {
|
|
242
250
|
__typename
|
|
243
251
|
id
|
|
244
252
|
onchainAssetId
|
|
@@ -257,7 +265,7 @@
|
|
|
257
265
|
userState {
|
|
258
266
|
...HubAssetUserState
|
|
259
267
|
}
|
|
260
|
-
}`,[
|
|
268
|
+
}`,[T,y,Ye,ze,Ze]);var i=e(`fragment Spoke on Spoke {
|
|
261
269
|
__typename
|
|
262
270
|
id
|
|
263
271
|
name
|
|
@@ -265,12 +273,12 @@
|
|
|
265
273
|
chain {
|
|
266
274
|
...Chain
|
|
267
275
|
}
|
|
268
|
-
}`,[n]),
|
|
276
|
+
}`,[n]),je=e(`fragment SpokePositionManager on SpokePositionManger {
|
|
269
277
|
__typename
|
|
270
278
|
address
|
|
271
279
|
active
|
|
272
280
|
name
|
|
273
|
-
}`),
|
|
281
|
+
}`),J=e(`fragment PaginatedSpokePositionManagerResult on PaginatedSpokePositionManagerResult {
|
|
274
282
|
__typename
|
|
275
283
|
items {
|
|
276
284
|
...SpokePositionManager
|
|
@@ -278,13 +286,13 @@
|
|
|
278
286
|
pageInfo {
|
|
279
287
|
...PaginatedResultInfo
|
|
280
288
|
}
|
|
281
|
-
}`,[
|
|
289
|
+
}`,[je,R]),Je=e(`fragment SpokeUserPositionManager on SpokeUserPositionManager {
|
|
282
290
|
__typename
|
|
283
291
|
address
|
|
284
292
|
approvedOn
|
|
285
293
|
active
|
|
286
294
|
name
|
|
287
|
-
}`),
|
|
295
|
+
}`),X=e(`fragment PaginatedSpokeUserPositionManagerResult on PaginatedSpokeUserPositionManagerResult {
|
|
288
296
|
__typename
|
|
289
297
|
items {
|
|
290
298
|
...SpokeUserPositionManager
|
|
@@ -292,7 +300,7 @@
|
|
|
292
300
|
pageInfo {
|
|
293
301
|
...PaginatedResultInfo
|
|
294
302
|
}
|
|
295
|
-
}`,[
|
|
303
|
+
}`,[Je,R]);var Xe=e(`fragment ReserveSettings on ReserveSettings {
|
|
296
304
|
__typename
|
|
297
305
|
collateralFactor {
|
|
298
306
|
...PercentNumber
|
|
@@ -310,12 +318,12 @@
|
|
|
310
318
|
collateral
|
|
311
319
|
suppliable
|
|
312
320
|
latestDynamicConfigKey
|
|
313
|
-
}`,[
|
|
321
|
+
}`,[a]),et=e(`fragment ReserveStatus on ReserveStatus {
|
|
314
322
|
__typename
|
|
315
323
|
frozen
|
|
316
324
|
paused
|
|
317
325
|
active
|
|
318
|
-
}`),
|
|
326
|
+
}`),tt=e(`fragment ReserveSummary on ReserveSummary {
|
|
319
327
|
__typename
|
|
320
328
|
supplied {
|
|
321
329
|
...Erc20Amount
|
|
@@ -329,7 +337,7 @@
|
|
|
329
337
|
borrowApy {
|
|
330
338
|
...PercentNumber
|
|
331
339
|
}
|
|
332
|
-
}`,[p,
|
|
340
|
+
}`,[p,a]),rt=e(`fragment ReserveUserState on ReserveUserState {
|
|
333
341
|
__typename
|
|
334
342
|
balance {
|
|
335
343
|
...Erc20Amount
|
|
@@ -353,7 +361,7 @@
|
|
|
353
361
|
...PercentNumber
|
|
354
362
|
}
|
|
355
363
|
dynamicConfigKey
|
|
356
|
-
}`,[p,
|
|
364
|
+
}`,[p,a]),A=e(`fragment Reserve on Reserve {
|
|
357
365
|
__typename
|
|
358
366
|
id
|
|
359
367
|
onChainId
|
|
@@ -383,13 +391,45 @@
|
|
|
383
391
|
asset {
|
|
384
392
|
...HubAsset
|
|
385
393
|
}
|
|
386
|
-
}`,[
|
|
394
|
+
}`,[i,n,tt,Xe,et,rt,E]),g=e(`fragment ReserveInfo on ReserveInfo {
|
|
387
395
|
__typename
|
|
388
396
|
id
|
|
389
397
|
asset {
|
|
390
398
|
...HubAsset
|
|
391
399
|
}
|
|
392
|
-
}`,[
|
|
400
|
+
}`,[E]);var at=e(`fragment TypeField on TypeField {
|
|
401
|
+
name
|
|
402
|
+
type
|
|
403
|
+
}`),nt=e(`fragment TypeDefinition on TypeDefinition {
|
|
404
|
+
EIP712Domain {
|
|
405
|
+
...TypeField
|
|
406
|
+
}
|
|
407
|
+
Permit {
|
|
408
|
+
...TypeField
|
|
409
|
+
}
|
|
410
|
+
}`,[at]),ot=e(`fragment PermitMessageData on PermitMessageData {
|
|
411
|
+
owner
|
|
412
|
+
spender
|
|
413
|
+
value
|
|
414
|
+
nonce
|
|
415
|
+
deadline
|
|
416
|
+
}`),H=e(`fragment PermitTypedDataResponse on PermitTypedDataResponse {
|
|
417
|
+
__typename
|
|
418
|
+
types {
|
|
419
|
+
...TypeDefinition
|
|
420
|
+
}
|
|
421
|
+
primaryType
|
|
422
|
+
domain {
|
|
423
|
+
...DomainData
|
|
424
|
+
}
|
|
425
|
+
message {
|
|
426
|
+
...PermitMessageData
|
|
427
|
+
}
|
|
428
|
+
}`,[nt,k,ot]);function Sr(t){return typeof t=="object"&&t!==null&&"deadline"in t&&"value"in t}var dr=e(`query PermitTypedData($request: PermitRequest!) {
|
|
429
|
+
value: permitTypedData(request: $request) {
|
|
430
|
+
...PermitTypedDataResponse
|
|
431
|
+
}
|
|
432
|
+
}`,[H]);var m=e(`fragment TransactionRequest on TransactionRequest {
|
|
393
433
|
__typename
|
|
394
434
|
to
|
|
395
435
|
from
|
|
@@ -412,7 +452,7 @@
|
|
|
412
452
|
originalTransaction {
|
|
413
453
|
...TransactionRequest
|
|
414
454
|
}
|
|
415
|
-
}`,[m,c]),
|
|
455
|
+
}`,[m,c]),pt=e(`fragment PreContractActionRequired on PreContractActionRequired {
|
|
416
456
|
__typename
|
|
417
457
|
transaction {
|
|
418
458
|
...TransactionRequest
|
|
@@ -421,15 +461,7 @@
|
|
|
421
461
|
originalTransaction {
|
|
422
462
|
...TransactionRequest
|
|
423
463
|
}
|
|
424
|
-
}`,[m]),
|
|
425
|
-
__typename
|
|
426
|
-
required {
|
|
427
|
-
...DecimalNumber
|
|
428
|
-
}
|
|
429
|
-
available {
|
|
430
|
-
...DecimalNumber
|
|
431
|
-
}
|
|
432
|
-
}`,[c]),E=e(`fragment ExecutionPlan on ExecutionPlan {
|
|
464
|
+
}`,[m]),v=e(`fragment ExecutionPlan on ExecutionPlan {
|
|
433
465
|
__typename
|
|
434
466
|
... on TransactionRequest {
|
|
435
467
|
...TransactionRequest
|
|
@@ -443,7 +475,15 @@
|
|
|
443
475
|
... on InsufficientBalanceError {
|
|
444
476
|
...InsufficientBalanceError
|
|
445
477
|
}
|
|
446
|
-
}`,[m,_,
|
|
478
|
+
}`,[m,_,pt,f]);var st=e(`fragment Erc20Approval on Erc20Approval {
|
|
479
|
+
__typename
|
|
480
|
+
byTransaction {
|
|
481
|
+
...TransactionRequest
|
|
482
|
+
}
|
|
483
|
+
bySignature {
|
|
484
|
+
...PermitTypedDataResponse
|
|
485
|
+
}
|
|
486
|
+
}`,[m,H]),ut=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
447
487
|
__typename
|
|
448
488
|
networkCosts {
|
|
449
489
|
...TokenAmount
|
|
@@ -451,25 +491,34 @@
|
|
|
451
491
|
partnerFee {
|
|
452
492
|
...TokenAmount
|
|
453
493
|
}
|
|
454
|
-
|
|
494
|
+
flashloanFee {
|
|
495
|
+
...TokenAmount
|
|
496
|
+
}
|
|
497
|
+
providerFee {
|
|
498
|
+
...TokenAmount
|
|
499
|
+
}
|
|
500
|
+
}`,[I]),C=e(`fragment SwapQuote on SwapQuote {
|
|
455
501
|
__typename
|
|
456
502
|
quoteId
|
|
457
503
|
suggestedSlippage {
|
|
458
504
|
...PercentNumber
|
|
459
505
|
}
|
|
460
|
-
|
|
506
|
+
spotBuy {
|
|
461
507
|
...TokenAmount
|
|
462
508
|
}
|
|
463
|
-
|
|
509
|
+
spotSell {
|
|
464
510
|
...TokenAmount
|
|
465
511
|
}
|
|
466
512
|
costs {
|
|
467
513
|
...SwapQuoteCosts
|
|
468
514
|
}
|
|
469
|
-
|
|
515
|
+
finalBuy {
|
|
470
516
|
...TokenAmount
|
|
471
517
|
}
|
|
472
|
-
|
|
518
|
+
finalSell {
|
|
519
|
+
...TokenAmount
|
|
520
|
+
}
|
|
521
|
+
}`,[a,I,ut]),b=e(`fragment SwapTypedData on SwapTypedData {
|
|
473
522
|
__typename
|
|
474
523
|
primaryType
|
|
475
524
|
types
|
|
@@ -477,7 +526,7 @@
|
|
|
477
526
|
...DomainData
|
|
478
527
|
}
|
|
479
528
|
message
|
|
480
|
-
}`,[
|
|
529
|
+
}`,[k]),$=e(`fragment SwapByIntent on SwapByIntent {
|
|
481
530
|
__typename
|
|
482
531
|
quote {
|
|
483
532
|
...SwapQuote
|
|
@@ -485,28 +534,25 @@
|
|
|
485
534
|
data {
|
|
486
535
|
...SwapTypedData
|
|
487
536
|
}
|
|
488
|
-
}`,[
|
|
537
|
+
}`,[C,b]),it=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
489
538
|
__typename
|
|
490
539
|
approval {
|
|
491
|
-
...
|
|
540
|
+
...Erc20Approval
|
|
492
541
|
}
|
|
493
542
|
quote {
|
|
494
543
|
...SwapQuote
|
|
495
544
|
}
|
|
496
|
-
|
|
497
|
-
...SwapTypedData
|
|
498
|
-
}
|
|
499
|
-
}`,[m,P,C]),tt=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
545
|
+
}`,[st,C,b]),mt=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
500
546
|
__typename
|
|
501
547
|
quote {
|
|
502
548
|
...SwapQuote
|
|
503
549
|
}
|
|
504
|
-
}`,[
|
|
550
|
+
}`,[C]),ee=e(`fragment SwapReceipt on SwapReceipt {
|
|
505
551
|
__typename
|
|
506
552
|
id
|
|
507
553
|
explorerLink
|
|
508
554
|
createdAt
|
|
509
|
-
}`),
|
|
555
|
+
}`),te=e(`fragment TokenSwapQuoteResult on TokenSwapQuoteResult {
|
|
510
556
|
__typename
|
|
511
557
|
... on SwapByIntent {
|
|
512
558
|
...SwapByIntent
|
|
@@ -517,10 +563,15 @@
|
|
|
517
563
|
... on SwapByTransaction {
|
|
518
564
|
...SwapByTransaction
|
|
519
565
|
}
|
|
566
|
+
}`,[$,it,mt]),re=e(`fragment PrepareTokenSwapResult on PrepareTokenSwapResult {
|
|
567
|
+
__typename
|
|
568
|
+
... on SwapByIntent {
|
|
569
|
+
...SwapByIntent
|
|
570
|
+
}
|
|
520
571
|
... on InsufficientBalanceError {
|
|
521
572
|
...InsufficientBalanceError
|
|
522
573
|
}
|
|
523
|
-
}`,[
|
|
574
|
+
}`,[$,f]),yt=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
524
575
|
__typename
|
|
525
576
|
transaction {
|
|
526
577
|
...TransactionRequest
|
|
@@ -528,39 +579,28 @@
|
|
|
528
579
|
orderReceipt {
|
|
529
580
|
...SwapReceipt
|
|
530
581
|
}
|
|
531
|
-
}`,[m,
|
|
532
|
-
__typename
|
|
533
|
-
approval {
|
|
534
|
-
...TransactionRequest
|
|
535
|
-
}
|
|
536
|
-
originalTransaction {
|
|
537
|
-
...SwapTransactionRequest
|
|
538
|
-
}
|
|
539
|
-
}`,[m,te]),re=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
582
|
+
}`,[m,ee]),ae=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
540
583
|
__typename
|
|
541
584
|
... on SwapTransactionRequest {
|
|
542
585
|
...SwapTransactionRequest
|
|
543
586
|
}
|
|
544
|
-
... on
|
|
545
|
-
...
|
|
587
|
+
... on SwapReceipt {
|
|
588
|
+
...SwapReceipt
|
|
546
589
|
}
|
|
547
590
|
... on InsufficientBalanceError {
|
|
548
591
|
...InsufficientBalanceError
|
|
549
592
|
}
|
|
550
|
-
|
|
551
|
-
...SwapReceipt
|
|
552
|
-
}
|
|
553
|
-
}`,[te,rt,A,X]),ae=e(`fragment SwapCancelled on SwapCancelled {
|
|
593
|
+
}`,[yt,ee,f]),ne=e(`fragment SwapCancelled on SwapCancelled {
|
|
554
594
|
__typename
|
|
555
595
|
createdAt
|
|
556
596
|
cancelledAt
|
|
557
597
|
explorerLink
|
|
558
|
-
}`),
|
|
598
|
+
}`),ct=e(`fragment SwapExpired on SwapExpired {
|
|
559
599
|
__typename
|
|
560
600
|
createdAt
|
|
561
601
|
expiredAt
|
|
562
602
|
explorerLink
|
|
563
|
-
}`),
|
|
603
|
+
}`),lt=e(`fragment PositionAmount on PositionAmount {
|
|
564
604
|
__typename
|
|
565
605
|
reserve {
|
|
566
606
|
...ReserveInfo
|
|
@@ -568,7 +608,7 @@
|
|
|
568
608
|
amount {
|
|
569
609
|
...Erc20Amount
|
|
570
610
|
}
|
|
571
|
-
}`,[g,p]),
|
|
611
|
+
}`,[g,p]),oe=e(`fragment SwapAmount on SwapAmount {
|
|
572
612
|
__typename
|
|
573
613
|
... on PositionAmount {
|
|
574
614
|
...PositionAmount
|
|
@@ -579,7 +619,7 @@
|
|
|
579
619
|
... on Erc20Amount {
|
|
580
620
|
...Erc20Amount
|
|
581
621
|
}
|
|
582
|
-
}`,[
|
|
622
|
+
}`,[lt,O,p]),gt=e(`fragment SwapOpen on SwapOpen {
|
|
583
623
|
__typename
|
|
584
624
|
swapId
|
|
585
625
|
createdAt
|
|
@@ -591,12 +631,12 @@
|
|
|
591
631
|
desiredBuy {
|
|
592
632
|
...SwapAmount
|
|
593
633
|
}
|
|
594
|
-
}`,[
|
|
634
|
+
}`,[oe]),St=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
595
635
|
__typename
|
|
596
636
|
createdAt
|
|
597
637
|
deadline
|
|
598
638
|
explorerLink
|
|
599
|
-
}`),
|
|
639
|
+
}`),dt=e(`fragment SwapFulfilled on SwapFulfilled {
|
|
600
640
|
__typename
|
|
601
641
|
txHash
|
|
602
642
|
desiredSell {
|
|
@@ -615,7 +655,7 @@
|
|
|
615
655
|
fulfilledAt
|
|
616
656
|
explorerLink
|
|
617
657
|
refundTxHash
|
|
618
|
-
}`,[
|
|
658
|
+
}`,[oe]),N=e(`fragment SwapStatus on SwapStatus {
|
|
619
659
|
__typename
|
|
620
660
|
... on SwapOpen {
|
|
621
661
|
...SwapOpen
|
|
@@ -632,12 +672,12 @@
|
|
|
632
672
|
... on SwapFulfilled {
|
|
633
673
|
...SwapFulfilled
|
|
634
674
|
}
|
|
635
|
-
}`,[
|
|
675
|
+
}`,[gt,St,ne,ct,dt]),pe=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
636
676
|
__typename
|
|
637
677
|
data {
|
|
638
678
|
...SwapTypedData
|
|
639
679
|
}
|
|
640
|
-
}`,[
|
|
680
|
+
}`,[b]),se=e(`fragment CancelSwapExecutionPlan on CancelSwapExecutionPlan {
|
|
641
681
|
__typename
|
|
642
682
|
... on TransactionRequest {
|
|
643
683
|
...TransactionRequest
|
|
@@ -645,7 +685,7 @@
|
|
|
645
685
|
... on SwapCancelled {
|
|
646
686
|
...SwapCancelled
|
|
647
687
|
}
|
|
648
|
-
}`,[m,
|
|
688
|
+
}`,[m,ne]),ue=e(`fragment PaginatedUserSwapsResult on PaginatedUserSwapsResult {
|
|
649
689
|
__typename
|
|
650
690
|
items {
|
|
651
691
|
...SwapStatus
|
|
@@ -653,15 +693,12 @@
|
|
|
653
693
|
pageInfo {
|
|
654
694
|
...PaginatedResultInfo
|
|
655
695
|
}
|
|
656
|
-
}`,[
|
|
696
|
+
}`,[N,R]),ft=e(`fragment PositionSwapAdapterContractApproval on PositionSwapAdapterContractApproval {
|
|
657
697
|
__typename
|
|
658
|
-
byTransaction {
|
|
659
|
-
...TransactionRequest
|
|
660
|
-
}
|
|
661
698
|
bySignature {
|
|
662
699
|
...SwapTypedData
|
|
663
700
|
}
|
|
664
|
-
}`,[
|
|
701
|
+
}`,[b]),Rt=e(`fragment PositionSwapPositionManagerApproval on PositionSwapPositionManagerApproval {
|
|
665
702
|
__typename
|
|
666
703
|
byTransaction {
|
|
667
704
|
...TransactionRequest
|
|
@@ -669,7 +706,7 @@
|
|
|
669
706
|
bySignature {
|
|
670
707
|
...SwapTypedData
|
|
671
708
|
}
|
|
672
|
-
}`,[m,
|
|
709
|
+
}`,[m,b]),qt=e(`fragment PositionSwapApproval on PositionSwapApproval {
|
|
673
710
|
__typename
|
|
674
711
|
... on PositionSwapAdapterContractApproval {
|
|
675
712
|
...PositionSwapAdapterContractApproval
|
|
@@ -677,7 +714,7 @@
|
|
|
677
714
|
... on PositionSwapPositionManagerApproval {
|
|
678
715
|
...PositionSwapPositionManagerApproval
|
|
679
716
|
}
|
|
680
|
-
}`,[
|
|
717
|
+
}`,[ft,Rt]),U=e(`fragment PositionSwapByIntentApprovalsRequired on PositionSwapByIntentApprovalsRequired {
|
|
681
718
|
__typename
|
|
682
719
|
quote {
|
|
683
720
|
...SwapQuote
|
|
@@ -685,32 +722,35 @@
|
|
|
685
722
|
approvals {
|
|
686
723
|
...PositionSwapApproval
|
|
687
724
|
}
|
|
688
|
-
}`,[
|
|
725
|
+
}`,[C,qt]),ie=e(`fragment SupplySwapQuoteResult on SupplySwapQuoteResult {
|
|
689
726
|
__typename
|
|
690
727
|
... on PositionSwapByIntentApprovalsRequired {
|
|
691
728
|
...PositionSwapByIntentApprovalsRequired
|
|
692
729
|
}
|
|
693
|
-
}`,[
|
|
730
|
+
}`,[U]),me=e(`fragment BorrowSwapQuoteResult on BorrowSwapQuoteResult {
|
|
694
731
|
__typename
|
|
695
732
|
... on PositionSwapByIntentApprovalsRequired {
|
|
696
733
|
...PositionSwapByIntentApprovalsRequired
|
|
697
734
|
}
|
|
698
|
-
}`,[
|
|
735
|
+
}`,[U]),ye=e(`fragment RepayWithSupplyQuoteResult on RepayWithSupplyQuoteResult {
|
|
699
736
|
__typename
|
|
700
737
|
... on PositionSwapByIntentApprovalsRequired {
|
|
701
738
|
...PositionSwapByIntentApprovalsRequired
|
|
702
739
|
}
|
|
703
|
-
}`,[
|
|
740
|
+
}`,[U]),ce=e(`fragment WithdrawSwapQuoteResult on WithdrawSwapQuoteResult {
|
|
704
741
|
__typename
|
|
705
742
|
... on PositionSwapByIntentApprovalsRequired {
|
|
706
743
|
...PositionSwapByIntentApprovalsRequired
|
|
707
744
|
}
|
|
708
|
-
}`,[
|
|
745
|
+
}`,[U]),le=e(`fragment PreparePositionSwapResult on PreparePositionSwapResult {
|
|
709
746
|
__typename
|
|
710
747
|
... on SwapByIntent {
|
|
711
748
|
...SwapByIntent
|
|
712
749
|
}
|
|
713
|
-
|
|
750
|
+
... on InsufficientBalanceError {
|
|
751
|
+
...InsufficientBalanceError
|
|
752
|
+
}
|
|
753
|
+
}`,[$,f]);var ge=e(`fragment UserSupplyItem on UserSupplyItem {
|
|
714
754
|
__typename
|
|
715
755
|
id
|
|
716
756
|
reserve {
|
|
@@ -727,7 +767,7 @@
|
|
|
727
767
|
}
|
|
728
768
|
isCollateral
|
|
729
769
|
createdAt
|
|
730
|
-
}`,[p,
|
|
770
|
+
}`,[p,A]),Se=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
731
771
|
__typename
|
|
732
772
|
id
|
|
733
773
|
principal {
|
|
@@ -743,7 +783,7 @@
|
|
|
743
783
|
...Reserve
|
|
744
784
|
}
|
|
745
785
|
createdAt
|
|
746
|
-
}`,[p,
|
|
786
|
+
}`,[p,A]),de=e(`fragment UserSummary on UserSummary {
|
|
747
787
|
__typename
|
|
748
788
|
totalPositions
|
|
749
789
|
netBalance(currency: $currency) {
|
|
@@ -765,7 +805,7 @@
|
|
|
765
805
|
...ExchangeAmount
|
|
766
806
|
}
|
|
767
807
|
lowestHealthFactor
|
|
768
|
-
}`,[
|
|
808
|
+
}`,[d,u,a]),W=e(`fragment UserRiskPremiumBreakdownItem on UserRiskPremiumBreakdownItem {
|
|
769
809
|
__typename
|
|
770
810
|
token {
|
|
771
811
|
...Erc20Token
|
|
@@ -779,7 +819,7 @@
|
|
|
779
819
|
collateral {
|
|
780
820
|
...PercentNumber
|
|
781
821
|
}
|
|
782
|
-
}`,[y,
|
|
822
|
+
}`,[y,a]),xt=e(`fragment UserPositionRiskPremium on UserPositionRiskPremium {
|
|
783
823
|
__typename
|
|
784
824
|
current {
|
|
785
825
|
...PercentNumber
|
|
@@ -790,7 +830,7 @@
|
|
|
790
830
|
breakdown {
|
|
791
831
|
...UserRiskPremiumBreakdownItem
|
|
792
832
|
}
|
|
793
|
-
}`,[
|
|
833
|
+
}`,[a,W]),D=e(`fragment UserPosition on UserPosition {
|
|
794
834
|
__typename
|
|
795
835
|
id
|
|
796
836
|
spoke {
|
|
@@ -841,7 +881,7 @@
|
|
|
841
881
|
averageCollateralFactor {
|
|
842
882
|
...PercentNumber
|
|
843
883
|
}
|
|
844
|
-
}`,[
|
|
884
|
+
}`,[i,a,d,u,G,Z,xt]),fe=e(`fragment UserBalance on UserBalance {
|
|
845
885
|
__typename
|
|
846
886
|
id
|
|
847
887
|
info {
|
|
@@ -874,7 +914,7 @@
|
|
|
874
914
|
lowestCollateralFactor: collateralFactor(metric: LOWEST) {
|
|
875
915
|
...PercentNumber
|
|
876
916
|
}
|
|
877
|
-
}`,[
|
|
917
|
+
}`,[F,c,I,u,a]),Re=e(`fragment UserSummaryHistoryItem on UserSummaryHistoryItem {
|
|
878
918
|
__typename
|
|
879
919
|
netBalance(currency: $currency) {
|
|
880
920
|
...ExchangeAmount
|
|
@@ -887,25 +927,25 @@
|
|
|
887
927
|
}
|
|
888
928
|
healthFactor
|
|
889
929
|
date
|
|
890
|
-
}`,[
|
|
930
|
+
}`,[u]),L=e(`fragment ApySample on ApySample {
|
|
891
931
|
__typename
|
|
892
932
|
date
|
|
893
933
|
avgRate {
|
|
894
934
|
...PercentNumber
|
|
895
935
|
}
|
|
896
|
-
}`,[
|
|
936
|
+
}`,[a]);var Qr=e(`query Hub($request: HubRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
897
937
|
value: hub(request: $request) {
|
|
898
938
|
...Hub
|
|
899
939
|
}
|
|
900
|
-
}`,[
|
|
940
|
+
}`,[T]),Or=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
901
941
|
value: hubs(request: $request) {
|
|
902
942
|
...Hub
|
|
903
943
|
}
|
|
904
|
-
}`,[
|
|
944
|
+
}`,[T]),Hr=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
905
945
|
value: hubAssets(request: $request) {
|
|
906
946
|
...HubAsset
|
|
907
947
|
}
|
|
908
|
-
}`,[
|
|
948
|
+
}`,[E]),At=e(`fragment HubSummarySample on HubSummarySample {
|
|
909
949
|
__typename
|
|
910
950
|
date
|
|
911
951
|
deposits {
|
|
@@ -920,62 +960,31 @@
|
|
|
920
960
|
utilizationRate {
|
|
921
961
|
...PercentNumber
|
|
922
962
|
}
|
|
923
|
-
}`,[
|
|
963
|
+
}`,[u,a]),_r=e(`query HubSummaryHistory($request: HubSummaryHistoryRequest!) {
|
|
924
964
|
value: hubSummaryHistory(request: $request) {
|
|
925
965
|
...HubSummarySample
|
|
926
966
|
}
|
|
927
|
-
}`,[
|
|
967
|
+
}`,[At]);function we(t){return new TextDecoder().decode(Uint8Array.from(atob(t),h=>h.charCodeAt(0)))}function M(t){return btoa(String.fromCharCode(...new TextEncoder().encode(t)))}var w="::";function Wr(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 wt(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 Dr(t){return wt(M(`${t.chainId}${w}${t.address}`))}function Lr(t){let h=we(t),[r,o]=h.split(w);return {chainId:types.chainId(Number.parseInt(r,10)),address:types.evmAddress(o)}}function Mr(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 Vr(t){return t}function Kr(t){let h=we(t),[r,o,q]=h.split(w);return {chainId:types.chainId(Number.parseInt(r,10)),spoke:types.evmAddress(o),onChainId:q}}function Gr(t){return M(`${t.chainId}${w}${t.spoke}${w}${t.onChainId}`)}function Yr(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 zr(t){return types.invariant(types.isValidHexString(t),`Invalid SwapId: ${t}`),t}function Zr(t){return types.invariant(types.isValidHexString(t),`Invalid SwapQuoteId: ${t}`),t}function jr(t){return ht(M(`${t.chainId}${w}${t.address}`))}function ht(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 Jr(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 Xr(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 ea(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 ta(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid TokenInfoId: ${t}`),t}function na(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 pa(t){return types.isObject(t)&&"spoke"in t&&t.spoke!=null}function sa(t){return types.isObject(t)&&"txHash"in t&&t.txHash!=null}var ya=e(`query Chain($request: ChainRequest!) {
|
|
928
968
|
value: chain(request: $request) {
|
|
929
969
|
...Chain
|
|
930
970
|
}
|
|
931
|
-
}`,[n]),
|
|
971
|
+
}`,[n]),ca=e(`query Chains($request: ChainsRequest!) {
|
|
932
972
|
value: chains(request: $request) {
|
|
933
973
|
...Chain
|
|
934
974
|
}
|
|
935
|
-
}`,[n]),
|
|
975
|
+
}`,[n]),la=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
936
976
|
value: hasProcessedKnownTransaction(request: $request)
|
|
937
|
-
}`),
|
|
977
|
+
}`),ga=e(`query Health {
|
|
938
978
|
value: health
|
|
939
|
-
}`),
|
|
979
|
+
}`),Sa=e(`query ExchangeRate($request: ExchangeRateRequest!) {
|
|
940
980
|
value: exchangeRate(request: $request) {
|
|
941
981
|
...ExchangeAmount
|
|
942
982
|
}
|
|
943
|
-
}`,[
|
|
944
|
-
name
|
|
945
|
-
type
|
|
946
|
-
}`),St=e(`fragment TypeDefinition on TypeDefinition {
|
|
947
|
-
EIP712Domain {
|
|
948
|
-
...TypeField
|
|
949
|
-
}
|
|
950
|
-
Permit {
|
|
951
|
-
...TypeField
|
|
952
|
-
}
|
|
953
|
-
}`,[dt]),ft=e(`fragment PermitMessageData on PermitMessageData {
|
|
954
|
-
owner
|
|
955
|
-
spender
|
|
956
|
-
value
|
|
957
|
-
nonce
|
|
958
|
-
deadline
|
|
959
|
-
}`),Rt=e(`fragment PermitTypedDataResponse on PermitTypedDataResponse {
|
|
960
|
-
types {
|
|
961
|
-
...TypeDefinition
|
|
962
|
-
}
|
|
963
|
-
primaryType
|
|
964
|
-
domain {
|
|
965
|
-
...DomainData
|
|
966
|
-
}
|
|
967
|
-
message {
|
|
968
|
-
...PermitMessageData
|
|
969
|
-
}
|
|
970
|
-
}`,[St,U,ft]),ia=e(`query PermitTypedData($request: PermitRequest!) {
|
|
971
|
-
value: permitTypedData(request: $request) {
|
|
972
|
-
...PermitTypedDataResponse
|
|
973
|
-
}
|
|
974
|
-
}`,[Rt]);var qt=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
983
|
+
}`,[u]);var Pt=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
975
984
|
__typename
|
|
976
985
|
date
|
|
977
986
|
price
|
|
978
|
-
}`),
|
|
987
|
+
}`),Ft=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
979
988
|
__typename
|
|
980
989
|
date
|
|
981
990
|
amount {
|
|
@@ -987,7 +996,7 @@
|
|
|
987
996
|
lowestApy {
|
|
988
997
|
...PercentNumber
|
|
989
998
|
}
|
|
990
|
-
}`,[c,
|
|
999
|
+
}`,[c,a]),It=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
991
1000
|
__typename
|
|
992
1001
|
date
|
|
993
1002
|
amount {
|
|
@@ -999,7 +1008,7 @@
|
|
|
999
1008
|
lowestApy {
|
|
1000
1009
|
...PercentNumber
|
|
1001
1010
|
}
|
|
1002
|
-
}`,[c,
|
|
1011
|
+
}`,[c,a]),Tt=e(`fragment AssetAmountWithChange on AssetAmountWithChange {
|
|
1003
1012
|
__typename
|
|
1004
1013
|
amount {
|
|
1005
1014
|
...DecimalNumberWithChange
|
|
@@ -1007,7 +1016,7 @@
|
|
|
1007
1016
|
exchange(currency: $currency) {
|
|
1008
1017
|
...ExchangeAmountWithChange
|
|
1009
1018
|
}
|
|
1010
|
-
}`,[
|
|
1019
|
+
}`,[Q,d]),Et=e(`fragment AssetSummary on AssetSummary {
|
|
1011
1020
|
__typename
|
|
1012
1021
|
totalSupplyCap {
|
|
1013
1022
|
...DecimalNumberWithChange
|
|
@@ -1033,7 +1042,7 @@
|
|
|
1033
1042
|
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
1034
1043
|
...PercentNumber
|
|
1035
1044
|
}
|
|
1036
|
-
}`,[
|
|
1045
|
+
}`,[Tt,Q,a]),vt=e(`fragment Asset on Asset {
|
|
1037
1046
|
__typename
|
|
1038
1047
|
id
|
|
1039
1048
|
token {
|
|
@@ -1045,23 +1054,23 @@
|
|
|
1045
1054
|
price(currency: $currency) {
|
|
1046
1055
|
...ExchangeAmountWithChange
|
|
1047
1056
|
}
|
|
1048
|
-
}`,[y,
|
|
1057
|
+
}`,[y,Et,d]),qa=e(`query Asset($request: AssetRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1049
1058
|
value: asset(request: $request) {
|
|
1050
1059
|
...Asset
|
|
1051
1060
|
}
|
|
1052
|
-
}`,[
|
|
1061
|
+
}`,[vt]),xa=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
1053
1062
|
value: assetPriceHistory(request: $request) {
|
|
1054
1063
|
...AssetPriceSample
|
|
1055
1064
|
}
|
|
1056
|
-
}`,[
|
|
1065
|
+
}`,[Pt]),Aa=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!) {
|
|
1057
1066
|
value: assetSupplyHistory(request: $request) {
|
|
1058
1067
|
...AssetSupplySample
|
|
1059
1068
|
}
|
|
1060
|
-
}`,[
|
|
1069
|
+
}`,[Ft]),wa=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!) {
|
|
1061
1070
|
value: assetBorrowHistory(request: $request) {
|
|
1062
1071
|
...AssetBorrowSample
|
|
1063
1072
|
}
|
|
1064
|
-
}`,[
|
|
1073
|
+
}`,[It]),bt=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
1065
1074
|
__typename
|
|
1066
1075
|
date
|
|
1067
1076
|
deposits {
|
|
@@ -1070,111 +1079,111 @@
|
|
|
1070
1079
|
borrows {
|
|
1071
1080
|
...ExchangeAmount
|
|
1072
1081
|
}
|
|
1073
|
-
}`,[
|
|
1082
|
+
}`,[u]),ha=e(`query ProtocolHistory($request: ProtocolHistoryRequest!) {
|
|
1074
1083
|
value: protocolHistory(request: $request) {
|
|
1075
1084
|
...ProtocolHistorySample
|
|
1076
1085
|
}
|
|
1077
|
-
}`,[
|
|
1086
|
+
}`,[bt]);var Ta=e(`query BorrowApyHistory($request: BorrowApyHistoryRequest!) {
|
|
1078
1087
|
value: borrowApyHistory(request: $request) {
|
|
1079
1088
|
...ApySample
|
|
1080
1089
|
}
|
|
1081
|
-
}`,[
|
|
1090
|
+
}`,[L]),Ea=e(`query SupplyApyHistory($request: SupplyApyHistoryRequest!) {
|
|
1082
1091
|
value: supplyApyHistory(request: $request) {
|
|
1083
1092
|
...ApySample
|
|
1084
1093
|
}
|
|
1085
|
-
}`,[
|
|
1094
|
+
}`,[L]),va=e(`query Reserve($request: ReserveRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1086
1095
|
value: reserve(request: $request) {
|
|
1087
1096
|
...Reserve
|
|
1088
1097
|
}
|
|
1089
|
-
}`,[
|
|
1098
|
+
}`,[A]),ba=e(`query Reserves($request: ReservesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1090
1099
|
value: reserves(request: $request) {
|
|
1091
1100
|
...Reserve
|
|
1092
1101
|
}
|
|
1093
|
-
}`,[
|
|
1102
|
+
}`,[A]);var Ba=e(`query Spoke($request: SpokeRequest!) {
|
|
1094
1103
|
value: spoke(request: $request) {
|
|
1095
1104
|
...Spoke
|
|
1096
1105
|
}
|
|
1097
|
-
}`,[
|
|
1106
|
+
}`,[i]),Qa=e(`query Spokes($request: SpokesRequest!) {
|
|
1098
1107
|
value: spokes(request: $request) {
|
|
1099
1108
|
...Spoke
|
|
1100
1109
|
}
|
|
1101
|
-
}`,[
|
|
1110
|
+
}`,[i]),Oa=e(`query SpokePositionManagers($request: SpokePositionManagersRequest!) {
|
|
1102
1111
|
value: spokePositionManagers(request: $request) {
|
|
1103
1112
|
...PaginatedSpokePositionManagerResult
|
|
1104
1113
|
}
|
|
1105
|
-
}`,[
|
|
1114
|
+
}`,[J]),Ha=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
1106
1115
|
value: spokeUserPositionManagers(request: $request) {
|
|
1107
1116
|
...PaginatedSpokeUserPositionManagerResult
|
|
1108
1117
|
}
|
|
1109
|
-
}`,[
|
|
1110
|
-
value:
|
|
1111
|
-
...
|
|
1118
|
+
}`,[X]);var Wa=e(`query TokenSwapQuote($request: TokenSwapQuoteRequest!, $currency: Currency!) {
|
|
1119
|
+
value: tokenSwapQuote(request: $request) {
|
|
1120
|
+
...TokenSwapQuoteResult
|
|
1112
1121
|
}
|
|
1113
|
-
}`,[
|
|
1122
|
+
}`,[te]),Da=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
1114
1123
|
value: swappableTokens(request: $request) {
|
|
1115
1124
|
...Token
|
|
1116
1125
|
}
|
|
1117
|
-
}`,[
|
|
1126
|
+
}`,[K]),La=e(`query PrepareTokenSwap($request: PrepareTokenSwapRequest!, $currency: Currency!) {
|
|
1118
1127
|
value: prepareTokenSwap(request: $request) {
|
|
1119
1128
|
...PrepareTokenSwapResult
|
|
1120
1129
|
}
|
|
1121
|
-
}`,[
|
|
1130
|
+
}`,[re]),Ma=e(`query SwapStatus($request: SwapStatusRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1122
1131
|
value: swapStatus(request: $request) {
|
|
1123
1132
|
...SwapStatus
|
|
1124
1133
|
}
|
|
1125
|
-
}`,[
|
|
1134
|
+
}`,[N]),Va=e(`mutation Swap($request: SwapRequest!) {
|
|
1126
1135
|
value: swap(request: $request) {
|
|
1127
1136
|
...SwapExecutionPlan
|
|
1128
1137
|
}
|
|
1129
|
-
}`,[
|
|
1138
|
+
}`,[ae]),Ka=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
1130
1139
|
value: prepareSwapCancel(request: $request) {
|
|
1131
1140
|
...PrepareSwapCancelResult
|
|
1132
1141
|
}
|
|
1133
|
-
}`,[
|
|
1142
|
+
}`,[pe]),Ga=e(`mutation CancelSwap($request: CancelSwapRequest!) {
|
|
1134
1143
|
value: cancelSwap(request: $request) {
|
|
1135
1144
|
...CancelSwapExecutionPlan
|
|
1136
1145
|
}
|
|
1137
|
-
}`,[
|
|
1146
|
+
}`,[se]),Ya=e(`query UserSwaps($request: UserSwapsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1138
1147
|
value: userSwaps(request: $request) {
|
|
1139
1148
|
...PaginatedUserSwapsResult
|
|
1140
1149
|
}
|
|
1141
|
-
}`,[
|
|
1150
|
+
}`,[ue]),za=e(`query SupplySwapQuote($request: SupplySwapQuoteRequest!, $currency: Currency!) {
|
|
1142
1151
|
value: supplySwapQuote(request: $request) {
|
|
1143
|
-
...
|
|
1152
|
+
...SupplySwapQuoteResult
|
|
1144
1153
|
}
|
|
1145
|
-
}`,[ie]),
|
|
1154
|
+
}`,[ie]),Za=e(`query BorrowSwapQuote($request: BorrowSwapQuoteRequest!, $currency: Currency!) {
|
|
1146
1155
|
value: borrowSwapQuote(request: $request) {
|
|
1147
|
-
...
|
|
1156
|
+
...BorrowSwapQuoteResult
|
|
1148
1157
|
}
|
|
1149
|
-
}`,[
|
|
1158
|
+
}`,[me]),ja=e(`query RepayWithSupplyQuote($request: RepayWithSupplyQuoteRequest!, $currency: Currency!) {
|
|
1150
1159
|
value: repayWithSupplyQuote(request: $request) {
|
|
1151
|
-
...
|
|
1160
|
+
...RepayWithSupplyQuoteResult
|
|
1152
1161
|
}
|
|
1153
|
-
}`,[
|
|
1162
|
+
}`,[ye]),Ja=e(`query WithdrawSwapQuote($request: WithdrawSwapQuoteRequest!, $currency: Currency!) {
|
|
1154
1163
|
value: withdrawSwapQuote(request: $request) {
|
|
1155
|
-
...
|
|
1164
|
+
...WithdrawSwapQuoteResult
|
|
1156
1165
|
}
|
|
1157
|
-
}`,[
|
|
1166
|
+
}`,[ce]),Xa=e(`query PreparePositionSwap($request: PreparePositionSwapRequest!, $currency: Currency!) {
|
|
1158
1167
|
value: preparePositionSwap(request: $request) {
|
|
1159
1168
|
...PreparePositionSwapResult
|
|
1160
1169
|
}
|
|
1161
|
-
}`,[
|
|
1170
|
+
}`,[le]);var an=e(`query Borrow($request: BorrowRequest!) {
|
|
1162
1171
|
value: borrow(request: $request) {
|
|
1163
1172
|
...ExecutionPlan
|
|
1164
1173
|
}
|
|
1165
|
-
}`,[
|
|
1174
|
+
}`,[v]),nn=e(`query Supply($request: SupplyRequest!) {
|
|
1166
1175
|
value: supply(request: $request) {
|
|
1167
1176
|
...ExecutionPlan
|
|
1168
1177
|
}
|
|
1169
|
-
}`,[
|
|
1178
|
+
}`,[v]),on=e(`query Repay($request: RepayRequest!) {
|
|
1170
1179
|
value: repay(request: $request) {
|
|
1171
1180
|
...ExecutionPlan
|
|
1172
1181
|
}
|
|
1173
|
-
}`,[
|
|
1182
|
+
}`,[v]),pn=e(`query Withdraw($request: WithdrawRequest!) {
|
|
1174
1183
|
value: withdraw(request: $request) {
|
|
1175
1184
|
...ExecutionPlan
|
|
1176
1185
|
}
|
|
1177
|
-
}`,[
|
|
1186
|
+
}`,[v]),kt=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1178
1187
|
__typename
|
|
1179
1188
|
... on TransactionRequest {
|
|
1180
1189
|
...TransactionRequest
|
|
@@ -1185,27 +1194,27 @@
|
|
|
1185
1194
|
... on InsufficientBalanceError {
|
|
1186
1195
|
...InsufficientBalanceError
|
|
1187
1196
|
}
|
|
1188
|
-
}`,[m,_,
|
|
1197
|
+
}`,[m,_,f]),sn=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1189
1198
|
value: liquidatePosition(request: $request) {
|
|
1190
1199
|
...LiquidatePositionExecutionPlan
|
|
1191
1200
|
}
|
|
1192
|
-
}`,[
|
|
1201
|
+
}`,[kt]),un=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1193
1202
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1194
1203
|
...TransactionRequest
|
|
1195
1204
|
}
|
|
1196
|
-
}`,[m]),
|
|
1205
|
+
}`,[m]),mn=e(`query SetUserSuppliesAsCollateral($request: SetUserSuppliesAsCollateralRequest!) {
|
|
1197
1206
|
value: setUserSuppliesAsCollateral(request: $request) {
|
|
1198
1207
|
...TransactionRequest
|
|
1199
1208
|
}
|
|
1200
|
-
}`,[m]),
|
|
1209
|
+
}`,[m]),yn=e(`query RenounceSpokeUserPositionManager($request: RenounceSpokeUserPositionManagerRequest!) {
|
|
1201
1210
|
value: renounceSpokeUserPositionManager(request: $request) {
|
|
1202
1211
|
...TransactionRequest
|
|
1203
1212
|
}
|
|
1204
|
-
}`,[m]),
|
|
1213
|
+
}`,[m]),cn=e(`query UpdateUserPositionConditions($request: UpdateUserPositionConditionsRequest!) {
|
|
1205
1214
|
value: updateUserPositionConditions(request: $request) {
|
|
1206
1215
|
...TransactionRequest
|
|
1207
1216
|
}
|
|
1208
|
-
}`,[m]),
|
|
1217
|
+
}`,[m]),Ct=e(`fragment CollateralFactorVariation on CollateralFactorVariation {
|
|
1209
1218
|
__typename
|
|
1210
1219
|
reserveId
|
|
1211
1220
|
token {
|
|
@@ -1217,7 +1226,7 @@
|
|
|
1217
1226
|
after {
|
|
1218
1227
|
...PercentNumber
|
|
1219
1228
|
}
|
|
1220
|
-
}`,[y,
|
|
1229
|
+
}`,[y,a]),Ut=e(`fragment LiquidationFeeVariation on LiquidationFeeVariation {
|
|
1221
1230
|
__typename
|
|
1222
1231
|
reserveId
|
|
1223
1232
|
token {
|
|
@@ -1229,7 +1238,7 @@
|
|
|
1229
1238
|
after {
|
|
1230
1239
|
...PercentNumber
|
|
1231
1240
|
}
|
|
1232
|
-
}`,[y,
|
|
1241
|
+
}`,[y,a]),Bt=e(`fragment MaxLiquidationBonusVariation on MaxLiquidationBonusVariation {
|
|
1233
1242
|
__typename
|
|
1234
1243
|
reserveId
|
|
1235
1244
|
token {
|
|
@@ -1241,7 +1250,7 @@
|
|
|
1241
1250
|
after {
|
|
1242
1251
|
...PercentNumber
|
|
1243
1252
|
}
|
|
1244
|
-
}`,[y,
|
|
1253
|
+
}`,[y,a]),Qt=e(`fragment UserPositionConditionVariation on UserPositionConditionVariation {
|
|
1245
1254
|
__typename
|
|
1246
1255
|
... on CollateralFactorVariation {
|
|
1247
1256
|
...CollateralFactorVariation
|
|
@@ -1252,7 +1261,7 @@
|
|
|
1252
1261
|
... on MaxLiquidationBonusVariation {
|
|
1253
1262
|
...MaxLiquidationBonusVariation
|
|
1254
1263
|
}
|
|
1255
|
-
}`,[
|
|
1264
|
+
}`,[Ct,Ut,Bt]),Ot=e(`fragment PreviewUserPosition on PreviewUserPosition {
|
|
1256
1265
|
__typename
|
|
1257
1266
|
id
|
|
1258
1267
|
healthFactor {
|
|
@@ -1279,11 +1288,11 @@
|
|
|
1279
1288
|
otherConditions {
|
|
1280
1289
|
...UserPositionConditionVariation
|
|
1281
1290
|
}
|
|
1282
|
-
}`,[
|
|
1291
|
+
}`,[j,Y,z,Qt]),ln=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD) {
|
|
1283
1292
|
value: preview(request: $request) {
|
|
1284
1293
|
...PreviewUserPosition
|
|
1285
1294
|
}
|
|
1286
|
-
}`,[
|
|
1295
|
+
}`,[Ot]),he=e(`fragment PercentNumberChangeSnapshot on PercentNumberChangeSnapshot {
|
|
1287
1296
|
__typename
|
|
1288
1297
|
before {
|
|
1289
1298
|
...PercentNumber
|
|
@@ -1291,7 +1300,7 @@
|
|
|
1291
1300
|
after {
|
|
1292
1301
|
...PercentNumber
|
|
1293
1302
|
}
|
|
1294
|
-
}`,[
|
|
1303
|
+
}`,[a]),Ht=e(`fragment BorrowActivity on BorrowActivity {
|
|
1295
1304
|
__typename
|
|
1296
1305
|
id
|
|
1297
1306
|
user
|
|
@@ -1309,7 +1318,7 @@
|
|
|
1309
1318
|
chain {
|
|
1310
1319
|
...Chain
|
|
1311
1320
|
}
|
|
1312
|
-
}`,[
|
|
1321
|
+
}`,[i,p,g,n]),_t=e(`fragment SupplyActivity on SupplyActivity {
|
|
1313
1322
|
__typename
|
|
1314
1323
|
id
|
|
1315
1324
|
user
|
|
@@ -1327,7 +1336,7 @@
|
|
|
1327
1336
|
chain {
|
|
1328
1337
|
...Chain
|
|
1329
1338
|
}
|
|
1330
|
-
}`,[
|
|
1339
|
+
}`,[i,p,g,n]),$t=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1331
1340
|
__typename
|
|
1332
1341
|
id
|
|
1333
1342
|
user
|
|
@@ -1345,7 +1354,7 @@
|
|
|
1345
1354
|
chain {
|
|
1346
1355
|
...Chain
|
|
1347
1356
|
}
|
|
1348
|
-
}`,[
|
|
1357
|
+
}`,[i,p,g,n]),Nt=e(`fragment RepayActivity on RepayActivity {
|
|
1349
1358
|
__typename
|
|
1350
1359
|
id
|
|
1351
1360
|
user
|
|
@@ -1363,7 +1372,7 @@
|
|
|
1363
1372
|
chain {
|
|
1364
1373
|
...Chain
|
|
1365
1374
|
}
|
|
1366
|
-
}`,[
|
|
1375
|
+
}`,[i,p,g,n]),Wt=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1367
1376
|
__typename
|
|
1368
1377
|
id
|
|
1369
1378
|
user
|
|
@@ -1388,7 +1397,7 @@
|
|
|
1388
1397
|
chain {
|
|
1389
1398
|
...Chain
|
|
1390
1399
|
}
|
|
1391
|
-
}`,[
|
|
1400
|
+
}`,[i,p,g,n]),Dt=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1392
1401
|
__typename
|
|
1393
1402
|
id
|
|
1394
1403
|
user
|
|
@@ -1404,7 +1413,7 @@
|
|
|
1404
1413
|
chain {
|
|
1405
1414
|
...Chain
|
|
1406
1415
|
}
|
|
1407
|
-
}`,[
|
|
1416
|
+
}`,[i,g,n]),Lt=e(`fragment UpdatedDynamicConfigActivity on UpdatedDynamicConfigActivity {
|
|
1408
1417
|
__typename
|
|
1409
1418
|
id
|
|
1410
1419
|
user
|
|
@@ -1428,7 +1437,7 @@
|
|
|
1428
1437
|
chain {
|
|
1429
1438
|
...Chain
|
|
1430
1439
|
}
|
|
1431
|
-
}`,[
|
|
1440
|
+
}`,[i,g,he,n]),Mt=e(`fragment UpdatedRiskPremiumActivity on UpdatedRiskPremiumActivity {
|
|
1432
1441
|
__typename
|
|
1433
1442
|
id
|
|
1434
1443
|
user
|
|
@@ -1443,7 +1452,7 @@
|
|
|
1443
1452
|
chain {
|
|
1444
1453
|
...Chain
|
|
1445
1454
|
}
|
|
1446
|
-
}`,[
|
|
1455
|
+
}`,[i,he,n]),Vt=e(`fragment ActivityItem on ActivityItem {
|
|
1447
1456
|
__typename
|
|
1448
1457
|
... on BorrowActivity {
|
|
1449
1458
|
...BorrowActivity
|
|
@@ -1469,7 +1478,7 @@
|
|
|
1469
1478
|
... on UpdatedRiskPremiumActivity {
|
|
1470
1479
|
...UpdatedRiskPremiumActivity
|
|
1471
1480
|
}
|
|
1472
|
-
}`,[
|
|
1481
|
+
}`,[Ht,_t,$t,Nt,Wt,Dt,Lt,Mt]),Kt=e(`fragment PaginatedActivitiesResult on PaginatedActivitiesResult {
|
|
1473
1482
|
__typename
|
|
1474
1483
|
items {
|
|
1475
1484
|
...ActivityItem
|
|
@@ -1477,41 +1486,41 @@
|
|
|
1477
1486
|
pageInfo {
|
|
1478
1487
|
...PaginatedResultInfo
|
|
1479
1488
|
}
|
|
1480
|
-
}`,[
|
|
1489
|
+
}`,[Vt,R]),gn=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1481
1490
|
value: activities(request: $request) {
|
|
1482
1491
|
...PaginatedActivitiesResult
|
|
1483
1492
|
}
|
|
1484
|
-
}`,[
|
|
1493
|
+
}`,[Kt]);var Rn=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1485
1494
|
value: userSupplies(request: $request) {
|
|
1486
1495
|
...UserSupplyItem
|
|
1487
1496
|
}
|
|
1488
|
-
}`,[
|
|
1497
|
+
}`,[ge]),qn=e(`query UserBorrows($request: UserBorrowsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1489
1498
|
value: userBorrows(request: $request) {
|
|
1490
1499
|
...UserBorrowItem
|
|
1491
1500
|
}
|
|
1492
|
-
}`,[
|
|
1501
|
+
}`,[Se]),xn=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1493
1502
|
value: userSummary(request: $request) {
|
|
1494
1503
|
...UserSummary
|
|
1495
1504
|
}
|
|
1496
|
-
}`,[de]),
|
|
1505
|
+
}`,[de]),An=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1497
1506
|
value: userPositions(request: $request) {
|
|
1498
1507
|
...UserPosition
|
|
1499
1508
|
}
|
|
1500
|
-
}`,[
|
|
1509
|
+
}`,[D]),wn=e(`query UserPosition($request: UserPositionRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1501
1510
|
value: userPosition(request: $request) {
|
|
1502
1511
|
...UserPosition
|
|
1503
1512
|
}
|
|
1504
|
-
}`,[
|
|
1513
|
+
}`,[D]),hn=e(`query UserBalances($request: UserBalancesRequest!, $currency: Currency!) {
|
|
1505
1514
|
value: userBalances(request: $request) {
|
|
1506
1515
|
...UserBalance
|
|
1507
1516
|
}
|
|
1508
|
-
}`,[
|
|
1517
|
+
}`,[fe]),Pn=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1509
1518
|
value: userSummaryHistory(request: $request) {
|
|
1510
1519
|
...UserSummaryHistoryItem
|
|
1511
1520
|
}
|
|
1512
|
-
}`,[
|
|
1521
|
+
}`,[Re]),Fn=e(`query UserRiskPremiumBreakdown($request: UserRiskPremiumBreakdownRequest!) {
|
|
1513
1522
|
value: userRiskPremiumBreakdown(request: $request) {
|
|
1514
1523
|
...UserRiskPremiumBreakdownItem
|
|
1515
1524
|
}
|
|
1516
|
-
}`,[
|
|
1525
|
+
}`,[W]);exports.ActivitiesQuery=gn;exports.ActivityItemFragment=Vt;exports.ActivityType=ke;exports.ApyMetric=Ce;exports.ApySampleFragment=L;exports.AssetAmountWithChangeFragment=Tt;exports.AssetBorrowHistoryQuery=wa;exports.AssetBorrowSampleFragment=It;exports.AssetFragment=vt;exports.AssetPriceHistoryQuery=xa;exports.AssetPriceSampleFragment=Pt;exports.AssetQuery=qa;exports.AssetSummaryFragment=Et;exports.AssetSupplyHistoryQuery=Aa;exports.AssetSupplySampleFragment=Ft;exports.BorrowActivityFragment=Ht;exports.BorrowApyHistoryQuery=Ta;exports.BorrowQuery=an;exports.BorrowSwapKind=He;exports.BorrowSwapQuoteQuery=Za;exports.BorrowSwapQuoteResultFragment=me;exports.CancelSwapExecutionPlanFragment=se;exports.CancelSwapMutation=Ga;exports.ChainFragment=n;exports.ChainQuery=ya;exports.ChainsFilter=Ee;exports.ChainsQuery=ca;exports.CollateralFactorVariationFragment=Ct;exports.CollateralMetric=Ue;exports.Currency=Be;exports.DecimalNumberFragment=c;exports.DecimalNumberWithChangeFragment=Q;exports.DomainDataFragment=k;exports.Erc20AmountFragment=p;exports.Erc20ApprovalFragment=st;exports.Erc20ApprovalRequiredFragment=_;exports.Erc20TokenFragment=y;exports.ExchangeAmountFragment=u;exports.ExchangeAmountVariationFragment=z;exports.ExchangeAmountWithChangeFragment=d;exports.ExchangeRateQuery=Sa;exports.ExecutionPlanFragment=v;exports.HasProcessedKnownTransactionQuery=la;exports.HealthFactorErrorFragment=Ke;exports.HealthFactorResultFragment=j;exports.HealthFactorVariationFragment=Ve;exports.HealthFactorWithChangeFragment=Z;exports.HealthQuery=ga;exports.HubAssetFragment=E;exports.HubAssetSettingsFragment=ze;exports.HubAssetStatusType=ve;exports.HubAssetSummaryFragment=Ye;exports.HubAssetUserStateFragment=Ze;exports.HubAssetsQuery=Hr;exports.HubAssetsRequestOrderBy=be;exports.HubFragment=T;exports.HubQuery=Qr;exports.HubSummaryFragment=Ge;exports.HubSummaryHistoryQuery=_r;exports.HubSummarySampleFragment=At;exports.HubsQuery=Or;exports.InsufficientBalanceErrorFragment=f;exports.LiquidatePositionExecutionPlanFragment=kt;exports.LiquidatePositionQuery=sn;exports.LiquidatedActivityFragment=Wt;exports.LiquidationFeeVariationFragment=Ut;exports.MaxLiquidationBonusVariationFragment=Bt;exports.NativeAmountFragment=O;exports.NativeTokenFragment=V;exports.OperationType=Te;exports.OrderDirection=Pe;exports.PageSize=Fe;exports.PaginatedActivitiesResultFragment=Kt;exports.PaginatedResultInfoFragment=R;exports.PaginatedSpokePositionManagerResultFragment=J;exports.PaginatedSpokeUserPositionManagerResultFragment=X;exports.PaginatedUserSwapsResultFragment=ue;exports.PercentNumberChangeSnapshotFragment=he;exports.PercentNumberFragment=a;exports.PercentNumberVariationFragment=Y;exports.PercentNumberWithChangeFragment=G;exports.PermitMessageDataFragment=ot;exports.PermitTypedDataQuery=dr;exports.PermitTypedDataResponseFragment=H;exports.PositionAmountFragment=lt;exports.PositionSwapAdapterContractApprovalFragment=ft;exports.PositionSwapApprovalFragment=qt;exports.PositionSwapByIntentApprovalsRequiredFragment=U;exports.PositionSwapPositionManagerApprovalFragment=Rt;exports.PreContractActionRequiredFragment=pt;exports.PreparePositionSwapQuery=Xa;exports.PreparePositionSwapResultFragment=le;exports.PrepareSwapCancelQuery=Ka;exports.PrepareSwapCancelResultFragment=pe;exports.PrepareTokenSwapQuery=La;exports.PrepareTokenSwapResultFragment=re;exports.PreviewQuery=ln;exports.PreviewUserPositionFragment=Ot;exports.ProtocolHistoryQuery=ha;exports.ProtocolHistorySampleFragment=bt;exports.RenounceSpokeUserPositionManagerQuery=yn;exports.RepayActivityFragment=Nt;exports.RepayQuery=on;exports.RepayWithSupplyKind=_e;exports.RepayWithSupplyQuoteQuery=ja;exports.RepayWithSupplyQuoteResultFragment=ye;exports.ReserveFragment=A;exports.ReserveInfoFragment=g;exports.ReserveQuery=va;exports.ReserveSettingsFragment=Xe;exports.ReserveStatusFragment=et;exports.ReserveSummaryFragment=tt;exports.ReserveUserStateFragment=rt;exports.ReservesQuery=ba;exports.ReservesRequestFilter=Qe;exports.SetSpokeUserPositionManagerQuery=un;exports.SetUserSuppliesAsCollateralQuery=mn;exports.SpokeFragment=i;exports.SpokePositionManagerFragment=je;exports.SpokePositionManagersQuery=Oa;exports.SpokeQuery=Ba;exports.SpokeUserPositionManagerFragment=Je;exports.SpokeUserPositionManagersQuery=Ha;exports.SpokesQuery=Qa;exports.SupplyActivityFragment=_t;exports.SupplyApyHistoryQuery=Ea;exports.SupplyQuery=nn;exports.SupplySwapKind=$e;exports.SupplySwapQuoteQuery=za;exports.SupplySwapQuoteResultFragment=ie;exports.SwapAmountFragment=oe;exports.SwapByIntentFragment=$;exports.SwapByIntentWithApprovalRequiredFragment=it;exports.SwapByTransactionFragment=mt;exports.SwapCancelledFragment=ne;exports.SwapExecutionPlanFragment=ae;exports.SwapExpiredFragment=ct;exports.SwapFulfilledFragment=dt;exports.SwapKind=Oe;exports.SwapMutation=Va;exports.SwapOpenFragment=gt;exports.SwapPendingSignatureFragment=St;exports.SwapQuoteCostsFragment=ut;exports.SwapQuoteFragment=C;exports.SwapReceiptFragment=ee;exports.SwapStatusFilter=We;exports.SwapStatusFragment=N;exports.SwapStatusQuery=Ma;exports.SwapTransactionRequestFragment=yt;exports.SwapTypedDataFragment=b;exports.SwappableTokensQuery=Da;exports.TimeWindow=Ie;exports.TokenAmountFragment=I;exports.TokenCategory=De;exports.TokenFragment=K;exports.TokenInfoFragment=F;exports.TokenSwapQuoteQuery=Wa;exports.TokenSwapQuoteResultFragment=te;exports.TransactionRequestFragment=m;exports.TypeDefinitionFragment=nt;exports.TypeFieldFragment=at;exports.UpdateUserPositionConditionsQuery=cn;exports.UpdatedDynamicConfigActivityFragment=Lt;exports.UpdatedRiskPremiumActivityFragment=Mt;exports.UserBalanceFragment=fe;exports.UserBalancesQuery=hn;exports.UserBorrowItemFragment=Se;exports.UserBorrowsQuery=qn;exports.UserPositionConditionVariationFragment=Qt;exports.UserPositionConditionsUpdate=Le;exports.UserPositionFragment=D;exports.UserPositionQuery=wn;exports.UserPositionRiskPremiumFragment=xt;exports.UserPositionsQuery=An;exports.UserRiskPremiumBreakdownItemFragment=W;exports.UserRiskPremiumBreakdownQuery=Fn;exports.UserSummaryFragment=de;exports.UserSummaryHistoryItemFragment=Re;exports.UserSummaryHistoryQuery=Pn;exports.UserSummaryQuery=xn;exports.UserSuppliesQuery=Rn;exports.UserSupplyItemFragment=ge;exports.UserSwapsQuery=Ya;exports.UsingAsCollateralActivityFragment=Dt;exports.WithdrawActivityFragment=$t;exports.WithdrawQuery=pn;exports.WithdrawSwapKind=Ne;exports.WithdrawSwapQuoteQuery=Ja;exports.WithdrawSwapQuoteResultFragment=ce;exports.assetId=Wr;exports.decodeHubId=Lr;exports.decodeReserveId=Kr;exports.encodeHubId=Dr;exports.encodeReserveId=Gr;exports.encodeSpokeId=jr;exports.graphql=e;exports.hubAssetId=Mr;exports.hubId=wt;exports.isChainIdsVariant=oa;exports.isERC20PermitSignature=Sr;exports.isHubInputVariant=na;exports.isSpokeInputVariant=pa;exports.isTxHashInputVariant=sa;exports.reserveId=Vr;exports.spokeId=ht;exports.swapId=zr;exports.swapQuoteId=Zr;exports.tokenInfoId=ta;exports.userBalanceId=Jr;exports.userBorrowItemId=Xr;exports.userPositionId=Yr;exports.userSupplyItemId=ea;//# sourceMappingURL=index.cjs.map
|
|
1517
1526
|
//# sourceMappingURL=index.cjs.map
|