@aave/graphql 1.0.0-next.0 → 1.0.0-next.10
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 +415 -200
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13446 -3714
- package/dist/index.d.ts +13446 -3714
- package/dist/index.js +415 -200
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs +1 -1
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.cts +34 -0
- package/dist/schema.d.ts +34 -0
- package/dist/schema.js +1 -1
- package/dist/schema.js.map +1 -1
- package/dist/test-utils.cjs +394 -137
- package/dist/test-utils.cjs.map +1 -1
- package/dist/test-utils.js +394 -137
- package/dist/test-utils.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1,47 +1,53 @@
|
|
|
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 de=(n=>(n.Asc="ASC",n.Desc="DESC",n))(de||{}),fe=(n=>(n.Ten="TEN",n.Fifty="FIFTY",n))(fe||{}),Se=(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))(Se||{}),Re=(g=>(g.SpokeBorrow="SPOKE_BORROW",g.SpokeRepay="SPOKE_REPAY",g.SpokeSupply="SPOKE_SUPPLY",g.SpokeWithdraw="SPOKE_WITHDRAW",g.SpokeUpdateUserRiskPremium="SPOKE_UPDATE_USER_RISK_PREMIUM",g.SpokeSetUserUsingAsCollateral="SPOKE_SET_USER_USING_AS_COLLATERAL",g.SpokeSetUserPositionManager="SPOKE_SET_USER_POSITION_MANAGER",g.RenounceSpokeUserPositionManager="RENOUNCE_SPOKE_USER_POSITION_MANAGER",g.Liquidation="LIQUIDATION",g))(Re||{}),qe=(o=>(o.TESTNET_ONLY="TESTNET_ONLY",o.MAINNET_ONLY="MAINNET_ONLY",o.ALL="ALL",o))(qe||{}),xe=(o=>(o.Active="ACTIVE",o.Frozen="FROZEN",o.Paused="PAUSED",o))(xe||{}),Ae=(n=>(n.Balance="BALANCE",n.Name="NAME",n))(Ae||{}),he=(l=>(l.Borrow="BORROW",l.Supply="SUPPLY",l.Withdraw="WITHDRAW",l.Repay="REPAY",l.Liquidated="LIQUIDATED",l.SetAsCollateral="SET_AS_COLLATERAL",l.UpdatedDynamicConfig="UPDATED_DYNAMIC_CONFIG",l.UpdatedRiskPremium="UPDATED_RISK_PREMIUM",l))(he||{}),Fe=(o=>(o.Highest="HIGHEST",o.Lowest="LOWEST",o.Average="AVERAGE",o))(Fe||{}),Pe=(n=>(n.Highest="HIGHEST",n.Lowest="LOWEST",n))(Pe||{}),Ie=(o=>(o.Usd="USD",o.Eur="EUR",o.Gbp="GBP",o))(Ie||{}),we=(q=>(q.Supply="SUPPLY",q.Borrow="BORROW",q.Collateral="COLLATERAL",q.All="ALL",q))(we||{}),Te=(n=>(n.Buy="BUY",n.Sell="SELL",n))(Te||{}),be=(I=>(I.Cancelled="CANCELLED",I.Expired="EXPIRED",I.Fulfilled="FULFILLED",I.Open="OPEN",I.PendingSignature="PENDING_SIGNATURE",I))(be||{}),Ee=(n=>(n.Stablecoin="STABLECOIN",n.EthCorrelated="ETH_CORRELATED",n))(Ee||{}),Ce=(n=>(n.AllDynamicConfig="ALL_DYNAMIC_CONFIG",n.JustRiskPremium="JUST_RISK_PREMIUM",n))(Ce||{});var e=gql_tada.initGraphQLTada();var c=e(`fragment DecimalNumber on DecimalNumber {
|
|
2
2
|
__typename
|
|
3
3
|
onChainValue
|
|
4
4
|
decimals
|
|
5
5
|
value
|
|
6
|
-
}`),
|
|
6
|
+
}`),r=e(`fragment PercentNumber on PercentNumber {
|
|
7
|
+
__typename
|
|
8
|
+
onChainValue
|
|
9
|
+
decimals
|
|
10
|
+
value
|
|
11
|
+
normalized
|
|
12
|
+
}`),H=e(`fragment DecimalNumberWithChange on DecimalNumberWithChange {
|
|
7
13
|
__typename
|
|
8
14
|
current {
|
|
9
15
|
...DecimalNumber
|
|
10
16
|
}
|
|
11
17
|
change(window: $timeWindow) {
|
|
12
|
-
...
|
|
18
|
+
...PercentNumber
|
|
13
19
|
}
|
|
14
|
-
}`,[c]),
|
|
15
|
-
__typename
|
|
16
|
-
onChainValue
|
|
17
|
-
decimals
|
|
18
|
-
value
|
|
19
|
-
normalized
|
|
20
|
-
}`),y=e(`fragment FiatAmount on FiatAmount {
|
|
20
|
+
}`,[c,r]),p=e(`fragment ExchangeAmount on ExchangeAmount {
|
|
21
21
|
__typename
|
|
22
22
|
value
|
|
23
23
|
name
|
|
24
24
|
symbol
|
|
25
|
+
icon
|
|
26
|
+
decimals
|
|
25
27
|
}`),w=e(`fragment TokenInfo on TokenInfo {
|
|
26
28
|
__typename
|
|
29
|
+
id
|
|
27
30
|
name
|
|
28
31
|
symbol
|
|
29
32
|
icon
|
|
30
33
|
decimals
|
|
31
|
-
|
|
34
|
+
categories
|
|
35
|
+
}`),a=e(`fragment Chain on Chain {
|
|
32
36
|
__typename
|
|
33
37
|
name
|
|
34
38
|
icon
|
|
35
39
|
chainId
|
|
40
|
+
rpcUrl
|
|
36
41
|
explorerUrl
|
|
37
42
|
isTestnet
|
|
43
|
+
isFork
|
|
38
44
|
nativeWrappedToken
|
|
39
45
|
nativeGateway
|
|
40
46
|
signatureGateway
|
|
41
47
|
nativeInfo {
|
|
42
48
|
...TokenInfo
|
|
43
49
|
}
|
|
44
|
-
}`,[w]),
|
|
50
|
+
}`,[w]),y=e(`fragment Erc20Token on Erc20Token {
|
|
45
51
|
__typename
|
|
46
52
|
info {
|
|
47
53
|
...TokenInfo
|
|
@@ -52,7 +58,7 @@
|
|
|
52
58
|
}
|
|
53
59
|
isWrappedNativeToken
|
|
54
60
|
permitSupported
|
|
55
|
-
}`,[w,
|
|
61
|
+
}`,[w,a]),Q=e(`fragment NativeToken on NativeToken {
|
|
56
62
|
__typename
|
|
57
63
|
info {
|
|
58
64
|
...TokenInfo
|
|
@@ -60,7 +66,7 @@
|
|
|
60
66
|
chain {
|
|
61
67
|
...Chain
|
|
62
68
|
}
|
|
63
|
-
}`,[w,
|
|
69
|
+
}`,[w,a]),i=e(`fragment Erc20Amount on Erc20Amount {
|
|
64
70
|
__typename
|
|
65
71
|
token {
|
|
66
72
|
...Erc20Token
|
|
@@ -68,13 +74,13 @@
|
|
|
68
74
|
amount {
|
|
69
75
|
...DecimalNumber
|
|
70
76
|
}
|
|
71
|
-
|
|
72
|
-
...
|
|
77
|
+
exchange(currency: $currency){
|
|
78
|
+
...ExchangeAmount
|
|
73
79
|
}
|
|
74
|
-
|
|
80
|
+
exchangeRate(currency: $currency){
|
|
75
81
|
...DecimalNumber
|
|
76
82
|
}
|
|
77
|
-
}`,[
|
|
83
|
+
}`,[y,c,p]),ke=e(`fragment NativeAmount on NativeAmount {
|
|
78
84
|
__typename
|
|
79
85
|
token {
|
|
80
86
|
...NativeToken
|
|
@@ -82,13 +88,13 @@
|
|
|
82
88
|
amount {
|
|
83
89
|
...DecimalNumber
|
|
84
90
|
}
|
|
85
|
-
|
|
86
|
-
...
|
|
91
|
+
exchange(currency: $currency){
|
|
92
|
+
...ExchangeAmount
|
|
87
93
|
}
|
|
88
|
-
|
|
94
|
+
exchangeRate(currency: $currency){
|
|
89
95
|
...DecimalNumber
|
|
90
96
|
}
|
|
91
|
-
}`,[
|
|
97
|
+
}`,[Q,c,p]),S=e(`fragment TokenAmount on TokenAmount {
|
|
92
98
|
__typename
|
|
93
99
|
... on Erc20Amount {
|
|
94
100
|
...Erc20Amount
|
|
@@ -96,7 +102,7 @@
|
|
|
96
102
|
... on NativeAmount {
|
|
97
103
|
...NativeAmount
|
|
98
104
|
}
|
|
99
|
-
}`,[
|
|
105
|
+
}`,[i,ke]),W=e(`fragment Token on Token {
|
|
100
106
|
__typename
|
|
101
107
|
... on Erc20Token {
|
|
102
108
|
...Erc20Token
|
|
@@ -104,15 +110,15 @@
|
|
|
104
110
|
... on NativeToken {
|
|
105
111
|
...NativeToken
|
|
106
112
|
}
|
|
107
|
-
}`,[
|
|
113
|
+
}`,[y,Q]),d=e(`fragment ExchangeAmountWithChange on ExchangeAmountWithChange {
|
|
108
114
|
__typename
|
|
109
115
|
current {
|
|
110
|
-
...
|
|
116
|
+
...ExchangeAmount
|
|
111
117
|
}
|
|
112
118
|
change(window: $timeWindow){
|
|
113
119
|
...PercentNumber
|
|
114
120
|
}
|
|
115
|
-
}`,[
|
|
121
|
+
}`,[p,r]),L=e(`fragment PercentNumberWithChange on PercentNumberWithChange {
|
|
116
122
|
__typename
|
|
117
123
|
current {
|
|
118
124
|
...PercentNumber
|
|
@@ -120,11 +126,11 @@
|
|
|
120
126
|
change(window: $timeWindow){
|
|
121
127
|
...PercentNumber
|
|
122
128
|
}
|
|
123
|
-
}`,[
|
|
129
|
+
}`,[r]),R=e(`fragment PaginatedResultInfo on PaginatedResultInfo {
|
|
124
130
|
__typename
|
|
125
131
|
prev
|
|
126
132
|
next
|
|
127
|
-
}`),
|
|
133
|
+
}`),M=e(`fragment PercentNumberVariation on PercentNumberVariation {
|
|
128
134
|
__typename
|
|
129
135
|
current {
|
|
130
136
|
...PercentNumber
|
|
@@ -132,30 +138,30 @@
|
|
|
132
138
|
after {
|
|
133
139
|
...PercentNumber
|
|
134
140
|
}
|
|
135
|
-
}`,[
|
|
141
|
+
}`,[r]),V=e(`fragment ExchangeAmountVariation on ExchangeAmountVariation {
|
|
136
142
|
__typename
|
|
137
143
|
current {
|
|
138
|
-
...
|
|
144
|
+
...ExchangeAmount
|
|
139
145
|
}
|
|
140
146
|
after {
|
|
141
|
-
...
|
|
147
|
+
...ExchangeAmount
|
|
142
148
|
}
|
|
143
|
-
}`,[
|
|
149
|
+
}`,[p]),G=e(`fragment HealthFactorWithChange on HealthFactorWithChange {
|
|
144
150
|
__typename
|
|
145
151
|
current
|
|
146
152
|
change(window: $timeWindow) {
|
|
147
153
|
...PercentNumber
|
|
148
154
|
}
|
|
149
|
-
}`,[
|
|
155
|
+
}`,[r]),ve=e(`fragment HealthFactorVariation on HealthFactorVariation {
|
|
150
156
|
__typename
|
|
151
157
|
current
|
|
152
158
|
after
|
|
153
|
-
}`),
|
|
159
|
+
}`),He=e(`fragment HealthFactorError on HealthFactorError {
|
|
154
160
|
__typename
|
|
155
161
|
reason
|
|
156
162
|
current
|
|
157
163
|
after
|
|
158
|
-
}`),
|
|
164
|
+
}`),K=e(`fragment HealthFactorResult on HealthFactorResult {
|
|
159
165
|
__typename
|
|
160
166
|
... on HealthFactorVariation {
|
|
161
167
|
...HealthFactorVariation
|
|
@@ -163,22 +169,24 @@
|
|
|
163
169
|
... on HealthFactorError {
|
|
164
170
|
...HealthFactorError
|
|
165
171
|
}
|
|
166
|
-
}`,[
|
|
172
|
+
}`,[ve,He]);var Oe=e(`fragment HubSummary on HubSummary {
|
|
167
173
|
__typename
|
|
168
174
|
totalBorrowed {
|
|
169
|
-
...
|
|
175
|
+
...ExchangeAmountWithChange
|
|
170
176
|
}
|
|
171
177
|
totalBorrowCap {
|
|
172
|
-
...
|
|
178
|
+
...ExchangeAmount
|
|
173
179
|
}
|
|
174
180
|
totalSupplied {
|
|
175
|
-
...
|
|
181
|
+
...ExchangeAmountWithChange
|
|
176
182
|
}
|
|
177
183
|
totalSupplyCap {
|
|
178
|
-
...
|
|
184
|
+
...ExchangeAmount
|
|
185
|
+
}
|
|
186
|
+
utilizationRate {
|
|
187
|
+
...PercentNumber
|
|
179
188
|
}
|
|
180
|
-
|
|
181
|
-
}`,[y]),P=e(`fragment Hub on Hub {
|
|
189
|
+
}`,[p,d,r]),T=e(`fragment Hub on Hub {
|
|
182
190
|
__typename
|
|
183
191
|
id
|
|
184
192
|
name
|
|
@@ -189,7 +197,7 @@
|
|
|
189
197
|
summary(currency: $currency) {
|
|
190
198
|
...HubSummary
|
|
191
199
|
}
|
|
192
|
-
}`,[
|
|
200
|
+
}`,[a,Oe]);var Be=e(`fragment HubAssetSummary on HubAssetSummary {
|
|
193
201
|
__typename
|
|
194
202
|
supplied {
|
|
195
203
|
...Erc20Amount
|
|
@@ -212,7 +220,7 @@
|
|
|
212
220
|
utilizationRate {
|
|
213
221
|
...PercentNumber
|
|
214
222
|
}
|
|
215
|
-
}`,[
|
|
223
|
+
}`,[i,r]),_e=e(`fragment HubAssetSettings on HubAssetSettings {
|
|
216
224
|
__typename
|
|
217
225
|
feeReceiver
|
|
218
226
|
liquidityFee {
|
|
@@ -220,12 +228,12 @@
|
|
|
220
228
|
}
|
|
221
229
|
irStrategy
|
|
222
230
|
reinvestmentController
|
|
223
|
-
}`,[
|
|
231
|
+
}`,[r]),$e=e(`fragment HubAssetUserState on HubAssetUserState {
|
|
224
232
|
__typename
|
|
225
233
|
balance {
|
|
226
234
|
...Erc20Amount
|
|
227
235
|
}
|
|
228
|
-
}`,[
|
|
236
|
+
}`,[i]),b=e(`fragment HubAsset on HubAsset {
|
|
229
237
|
__typename
|
|
230
238
|
id
|
|
231
239
|
onchainAssetId
|
|
@@ -244,7 +252,7 @@
|
|
|
244
252
|
userState {
|
|
245
253
|
...HubAssetUserState
|
|
246
254
|
}
|
|
247
|
-
}`,[
|
|
255
|
+
}`,[T,y,Be,_e,$e]);var u=e(`fragment Spoke on Spoke {
|
|
248
256
|
__typename
|
|
249
257
|
id
|
|
250
258
|
name
|
|
@@ -252,12 +260,12 @@
|
|
|
252
260
|
chain {
|
|
253
261
|
...Chain
|
|
254
262
|
}
|
|
255
|
-
}`,[
|
|
263
|
+
}`,[a]),Ne=e(`fragment SpokePositionManager on SpokePositionManger {
|
|
256
264
|
__typename
|
|
257
265
|
address
|
|
258
266
|
active
|
|
259
267
|
name
|
|
260
|
-
}`),
|
|
268
|
+
}`),Y=e(`fragment PaginatedSpokePositionManagerResult on PaginatedSpokePositionManagerResult {
|
|
261
269
|
__typename
|
|
262
270
|
items {
|
|
263
271
|
...SpokePositionManager
|
|
@@ -265,13 +273,13 @@
|
|
|
265
273
|
pageInfo {
|
|
266
274
|
...PaginatedResultInfo
|
|
267
275
|
}
|
|
268
|
-
}`,[
|
|
276
|
+
}`,[Ne,R]),De=e(`fragment SpokeUserPositionManager on SpokeUserPositionManager {
|
|
269
277
|
__typename
|
|
270
278
|
address
|
|
271
279
|
approvedOn
|
|
272
280
|
active
|
|
273
281
|
name
|
|
274
|
-
}`),
|
|
282
|
+
}`),z=e(`fragment PaginatedSpokeUserPositionManagerResult on PaginatedSpokeUserPositionManagerResult {
|
|
275
283
|
__typename
|
|
276
284
|
items {
|
|
277
285
|
...SpokeUserPositionManager
|
|
@@ -279,7 +287,7 @@
|
|
|
279
287
|
pageInfo {
|
|
280
288
|
...PaginatedResultInfo
|
|
281
289
|
}
|
|
282
|
-
}`,[
|
|
290
|
+
}`,[De,R]);var Qe=e(`fragment ReserveSettings on ReserveSettings {
|
|
283
291
|
__typename
|
|
284
292
|
collateralFactor {
|
|
285
293
|
...PercentNumber
|
|
@@ -287,18 +295,22 @@
|
|
|
287
295
|
maxLiquidationBonus {
|
|
288
296
|
...PercentNumber
|
|
289
297
|
}
|
|
298
|
+
liquidationFee {
|
|
299
|
+
...PercentNumber
|
|
300
|
+
}
|
|
290
301
|
collateralRisk {
|
|
291
302
|
...PercentNumber
|
|
292
303
|
}
|
|
293
304
|
borrowable
|
|
294
305
|
collateral
|
|
295
306
|
suppliable
|
|
296
|
-
|
|
307
|
+
latestDynamicConfigKey
|
|
308
|
+
}`,[r]),We=e(`fragment ReserveStatus on ReserveStatus {
|
|
297
309
|
__typename
|
|
298
310
|
frozen
|
|
299
311
|
paused
|
|
300
312
|
active
|
|
301
|
-
}`),
|
|
313
|
+
}`),Le=e(`fragment ReserveSummary on ReserveSummary {
|
|
302
314
|
__typename
|
|
303
315
|
supplied {
|
|
304
316
|
...Erc20Amount
|
|
@@ -312,7 +324,7 @@
|
|
|
312
324
|
borrowApy {
|
|
313
325
|
...PercentNumber
|
|
314
326
|
}
|
|
315
|
-
}`,[
|
|
327
|
+
}`,[i,r]),Me=e(`fragment ReserveUserState on ReserveUserState {
|
|
316
328
|
__typename
|
|
317
329
|
balance {
|
|
318
330
|
...Erc20Amount
|
|
@@ -326,7 +338,17 @@
|
|
|
326
338
|
borrowApy {
|
|
327
339
|
...PercentNumber
|
|
328
340
|
}
|
|
329
|
-
|
|
341
|
+
collateralFactor {
|
|
342
|
+
...PercentNumber
|
|
343
|
+
}
|
|
344
|
+
maxLiquidationBonus {
|
|
345
|
+
...PercentNumber
|
|
346
|
+
}
|
|
347
|
+
liquidationFee {
|
|
348
|
+
...PercentNumber
|
|
349
|
+
}
|
|
350
|
+
dynamicConfigKey
|
|
351
|
+
}`,[i,r]),A=e(`fragment Reserve on Reserve {
|
|
330
352
|
__typename
|
|
331
353
|
id
|
|
332
354
|
onChainId
|
|
@@ -356,34 +378,34 @@
|
|
|
356
378
|
asset {
|
|
357
379
|
...HubAsset
|
|
358
380
|
}
|
|
359
|
-
}`,[
|
|
381
|
+
}`,[u,a,Le,Qe,We,Me,b]),f=e(`fragment ReserveInfo on ReserveInfo {
|
|
360
382
|
__typename
|
|
361
383
|
id
|
|
362
384
|
asset {
|
|
363
385
|
...HubAsset
|
|
364
386
|
}
|
|
365
|
-
}`,[
|
|
387
|
+
}`,[b]);var U=e(`fragment TypeField on TypeField {
|
|
366
388
|
name
|
|
367
389
|
type
|
|
368
|
-
}`),
|
|
390
|
+
}`),Ve=e(`fragment TypeDefinition on TypeDefinition {
|
|
369
391
|
EIP712Domain {
|
|
370
392
|
...TypeField
|
|
371
393
|
}
|
|
372
394
|
Permit {
|
|
373
395
|
...TypeField
|
|
374
396
|
}
|
|
375
|
-
}`,[
|
|
397
|
+
}`,[U]),k=e(`fragment DomainData on DomainData {
|
|
376
398
|
name
|
|
377
399
|
version
|
|
378
400
|
chainId
|
|
379
401
|
verifyingContract
|
|
380
|
-
}`),
|
|
402
|
+
}`),Ge=e(`fragment PermitMessageData on PermitMessageData {
|
|
381
403
|
owner
|
|
382
404
|
spender
|
|
383
405
|
value
|
|
384
406
|
nonce
|
|
385
407
|
deadline
|
|
386
|
-
}`),
|
|
408
|
+
}`),Ke=e(`fragment PermitTypedDataResponse on PermitTypedDataResponse {
|
|
387
409
|
types {
|
|
388
410
|
...TypeDefinition
|
|
389
411
|
}
|
|
@@ -394,11 +416,11 @@
|
|
|
394
416
|
message {
|
|
395
417
|
...PermitMessageData
|
|
396
418
|
}
|
|
397
|
-
}`,[
|
|
419
|
+
}`,[Ve,k,Ge]),tr=e(`query PermitTypedData($request: PermitRequest!) {
|
|
398
420
|
value: permitTypedData(request: $request) {
|
|
399
421
|
...PermitTypedDataResponse
|
|
400
422
|
}
|
|
401
|
-
}`,[
|
|
423
|
+
}`,[Ke]);var m=e(`fragment TransactionRequest on TransactionRequest {
|
|
402
424
|
__typename
|
|
403
425
|
to
|
|
404
426
|
from
|
|
@@ -406,7 +428,7 @@
|
|
|
406
428
|
value
|
|
407
429
|
chainId
|
|
408
430
|
operations
|
|
409
|
-
}`),
|
|
431
|
+
}`),O=e(`fragment Erc20ApprovalRequired on Erc20ApprovalRequired {
|
|
410
432
|
__typename
|
|
411
433
|
transaction {
|
|
412
434
|
...TransactionRequest
|
|
@@ -421,7 +443,7 @@
|
|
|
421
443
|
originalTransaction {
|
|
422
444
|
...TransactionRequest
|
|
423
445
|
}
|
|
424
|
-
}`,[
|
|
446
|
+
}`,[m,c]),Ye=e(`fragment PreContractActionRequired on PreContractActionRequired {
|
|
425
447
|
__typename
|
|
426
448
|
transaction {
|
|
427
449
|
...TransactionRequest
|
|
@@ -430,7 +452,7 @@
|
|
|
430
452
|
originalTransaction {
|
|
431
453
|
...TransactionRequest
|
|
432
454
|
}
|
|
433
|
-
}`,[
|
|
455
|
+
}`,[m]),h=e(`fragment InsufficientBalanceError on InsufficientBalanceError {
|
|
434
456
|
__typename
|
|
435
457
|
required {
|
|
436
458
|
...DecimalNumber
|
|
@@ -438,7 +460,7 @@
|
|
|
438
460
|
available {
|
|
439
461
|
...DecimalNumber
|
|
440
462
|
}
|
|
441
|
-
}`,[c]),
|
|
463
|
+
}`,[c]),E=e(`fragment ExecutionPlan on ExecutionPlan {
|
|
442
464
|
__typename
|
|
443
465
|
... on TransactionRequest {
|
|
444
466
|
...TransactionRequest
|
|
@@ -452,7 +474,7 @@
|
|
|
452
474
|
... on InsufficientBalanceError {
|
|
453
475
|
...InsufficientBalanceError
|
|
454
476
|
}
|
|
455
|
-
}`,[
|
|
477
|
+
}`,[m,O,Ye,h]);var ze=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
456
478
|
__typename
|
|
457
479
|
networkCosts {
|
|
458
480
|
...TokenAmount
|
|
@@ -460,7 +482,7 @@
|
|
|
460
482
|
partnerFee {
|
|
461
483
|
...TokenAmount
|
|
462
484
|
}
|
|
463
|
-
}`,[
|
|
485
|
+
}`,[S]),C=e(`fragment SwapQuote on SwapQuote {
|
|
464
486
|
__typename
|
|
465
487
|
quoteId
|
|
466
488
|
suggestedSlippage {
|
|
@@ -478,14 +500,14 @@
|
|
|
478
500
|
minimumReceived {
|
|
479
501
|
...TokenAmount
|
|
480
502
|
}
|
|
481
|
-
}`,[
|
|
503
|
+
}`,[r,S,ze]),Ze=e(`fragment SwapByIntentTypeDefinition on SwapByIntentTypeDefinition {
|
|
482
504
|
EIP712Domain {
|
|
483
505
|
...TypeField
|
|
484
506
|
}
|
|
485
507
|
Order {
|
|
486
508
|
...TypeField
|
|
487
509
|
}
|
|
488
|
-
}`,[
|
|
510
|
+
}`,[U]),Z=e(`fragment SwapByIntentTypedData on SwapByIntentTypedData {
|
|
489
511
|
__typename
|
|
490
512
|
types {
|
|
491
513
|
...SwapByIntentTypeDefinition
|
|
@@ -495,7 +517,7 @@
|
|
|
495
517
|
...DomainData
|
|
496
518
|
}
|
|
497
519
|
message
|
|
498
|
-
}`,[
|
|
520
|
+
}`,[Ze,k]),Je=e(`fragment SwapByIntent on SwapByIntent {
|
|
499
521
|
__typename
|
|
500
522
|
quote {
|
|
501
523
|
...SwapQuote
|
|
@@ -503,7 +525,7 @@
|
|
|
503
525
|
data {
|
|
504
526
|
...SwapByIntentTypedData
|
|
505
527
|
}
|
|
506
|
-
}`,[
|
|
528
|
+
}`,[C,Z]),je=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
507
529
|
__typename
|
|
508
530
|
approval {
|
|
509
531
|
...TransactionRequest
|
|
@@ -514,17 +536,17 @@
|
|
|
514
536
|
data {
|
|
515
537
|
...SwapByIntentTypedData
|
|
516
538
|
}
|
|
517
|
-
}`,[
|
|
539
|
+
}`,[m,C,Z]),Xe=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
518
540
|
__typename
|
|
519
541
|
quote {
|
|
520
542
|
...SwapQuote
|
|
521
543
|
}
|
|
522
|
-
}`,[
|
|
544
|
+
}`,[C]),J=e(`fragment SwapReceipt on SwapReceipt {
|
|
523
545
|
__typename
|
|
524
546
|
id
|
|
525
547
|
explorerLink
|
|
526
548
|
createdAt
|
|
527
|
-
}`),
|
|
549
|
+
}`),j=e(`fragment PrepareSwapResult on PrepareSwapResult {
|
|
528
550
|
__typename
|
|
529
551
|
... on SwapByIntent {
|
|
530
552
|
...SwapByIntent
|
|
@@ -538,7 +560,7 @@
|
|
|
538
560
|
... on InsufficientBalanceError {
|
|
539
561
|
...InsufficientBalanceError
|
|
540
562
|
}
|
|
541
|
-
}`,[
|
|
563
|
+
}`,[Je,je,Xe,h]),X=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
542
564
|
__typename
|
|
543
565
|
transaction {
|
|
544
566
|
...TransactionRequest
|
|
@@ -546,7 +568,7 @@
|
|
|
546
568
|
orderReceipt {
|
|
547
569
|
...SwapReceipt
|
|
548
570
|
}
|
|
549
|
-
}`,[
|
|
571
|
+
}`,[m,J]),et=e(`fragment SwapApprovalRequired on SwapApprovalRequired {
|
|
550
572
|
__typename
|
|
551
573
|
approval {
|
|
552
574
|
...TransactionRequest
|
|
@@ -554,7 +576,7 @@
|
|
|
554
576
|
originalTransaction {
|
|
555
577
|
...SwapTransactionRequest
|
|
556
578
|
}
|
|
557
|
-
}`,[
|
|
579
|
+
}`,[m,X]),ee=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
558
580
|
__typename
|
|
559
581
|
... on SwapTransactionRequest {
|
|
560
582
|
...SwapTransactionRequest
|
|
@@ -568,17 +590,17 @@
|
|
|
568
590
|
... on SwapReceipt {
|
|
569
591
|
...SwapReceipt
|
|
570
592
|
}
|
|
571
|
-
}`,[
|
|
593
|
+
}`,[X,et,h,J]),te=e(`fragment SwapCancelled on SwapCancelled {
|
|
572
594
|
__typename
|
|
573
595
|
createdAt
|
|
574
596
|
cancelledAt
|
|
575
597
|
explorerLink
|
|
576
|
-
}`),
|
|
598
|
+
}`),tt=e(`fragment SwapExpired on SwapExpired {
|
|
577
599
|
__typename
|
|
578
600
|
createdAt
|
|
579
601
|
expiredAt
|
|
580
602
|
explorerLink
|
|
581
|
-
}`),
|
|
603
|
+
}`),rt=e(`fragment SwapOpen on SwapOpen {
|
|
582
604
|
__typename
|
|
583
605
|
swapId
|
|
584
606
|
createdAt
|
|
@@ -590,12 +612,12 @@
|
|
|
590
612
|
desiredBuy {
|
|
591
613
|
...TokenAmount
|
|
592
614
|
}
|
|
593
|
-
}`,[
|
|
615
|
+
}`,[S]),nt=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
594
616
|
__typename
|
|
595
617
|
createdAt
|
|
596
618
|
deadline
|
|
597
619
|
explorerLink
|
|
598
|
-
}`),
|
|
620
|
+
}`),at=e(`fragment SwapFulfilled on SwapFulfilled {
|
|
599
621
|
__typename
|
|
600
622
|
txHash
|
|
601
623
|
desiredSell {
|
|
@@ -614,7 +636,7 @@
|
|
|
614
636
|
fulfilledAt
|
|
615
637
|
explorerLink
|
|
616
638
|
refundTxHash
|
|
617
|
-
}`,[
|
|
639
|
+
}`,[S]),B=e(`fragment SwapStatus on SwapStatus {
|
|
618
640
|
__typename
|
|
619
641
|
... on SwapOpen {
|
|
620
642
|
...SwapOpen
|
|
@@ -631,14 +653,14 @@
|
|
|
631
653
|
... on SwapFulfilled {
|
|
632
654
|
...SwapFulfilled
|
|
633
655
|
}
|
|
634
|
-
}`,[
|
|
656
|
+
}`,[rt,nt,te,tt,at]),ot=e(`fragment CancelSwapTypeDefinition on CancelSwapTypeDefinition {
|
|
635
657
|
OrderCancellations {
|
|
636
658
|
...TypeField
|
|
637
659
|
}
|
|
638
660
|
EIP712Domain {
|
|
639
661
|
...TypeField
|
|
640
662
|
}
|
|
641
|
-
}`,[
|
|
663
|
+
}`,[U]),st=e(`fragment CancelSwapTypedData on CancelSwapTypedData {
|
|
642
664
|
types {
|
|
643
665
|
...CancelSwapTypeDefinition
|
|
644
666
|
}
|
|
@@ -647,12 +669,12 @@
|
|
|
647
669
|
...DomainData
|
|
648
670
|
}
|
|
649
671
|
message
|
|
650
|
-
}`,[
|
|
672
|
+
}`,[ot,k]),re=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
651
673
|
__typename
|
|
652
674
|
data {
|
|
653
675
|
...CancelSwapTypedData
|
|
654
676
|
}
|
|
655
|
-
}`,[
|
|
677
|
+
}`,[st]),ne=e(`fragment CancelSwapExecutionPlan on CancelSwapExecutionPlan {
|
|
656
678
|
__typename
|
|
657
679
|
... on TransactionRequest {
|
|
658
680
|
...TransactionRequest
|
|
@@ -660,7 +682,7 @@
|
|
|
660
682
|
... on SwapCancelled {
|
|
661
683
|
...SwapCancelled
|
|
662
684
|
}
|
|
663
|
-
}`,[
|
|
685
|
+
}`,[m,te]),ae=e(`fragment PaginatedUserSwapsResult on PaginatedUserSwapsResult {
|
|
664
686
|
__typename
|
|
665
687
|
items {
|
|
666
688
|
...SwapStatus
|
|
@@ -668,7 +690,7 @@
|
|
|
668
690
|
pageInfo {
|
|
669
691
|
...PaginatedResultInfo
|
|
670
692
|
}
|
|
671
|
-
}`,[
|
|
693
|
+
}`,[B,R]);var oe=e(`fragment UserSupplyItem on UserSupplyItem {
|
|
672
694
|
__typename
|
|
673
695
|
id
|
|
674
696
|
reserve {
|
|
@@ -685,7 +707,7 @@
|
|
|
685
707
|
}
|
|
686
708
|
isCollateral
|
|
687
709
|
createdAt
|
|
688
|
-
}`,[
|
|
710
|
+
}`,[i,A]),se=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
689
711
|
__typename
|
|
690
712
|
id
|
|
691
713
|
principal {
|
|
@@ -701,29 +723,54 @@
|
|
|
701
723
|
...Reserve
|
|
702
724
|
}
|
|
703
725
|
createdAt
|
|
704
|
-
}`,[
|
|
726
|
+
}`,[i,A]),pe=e(`fragment UserSummary on UserSummary {
|
|
705
727
|
__typename
|
|
706
728
|
totalPositions
|
|
707
729
|
netBalance(currency: $currency) {
|
|
708
|
-
...
|
|
730
|
+
...ExchangeAmountWithChange
|
|
709
731
|
}
|
|
710
732
|
totalCollateral(currency: $currency) {
|
|
711
|
-
...
|
|
733
|
+
...ExchangeAmount
|
|
712
734
|
}
|
|
713
735
|
totalSupplied(currency: $currency) {
|
|
714
|
-
...
|
|
736
|
+
...ExchangeAmount
|
|
715
737
|
}
|
|
716
738
|
totalDebt(currency: $currency) {
|
|
717
|
-
...
|
|
739
|
+
...ExchangeAmount
|
|
718
740
|
}
|
|
719
741
|
netApy {
|
|
720
742
|
...PercentNumber
|
|
721
743
|
}
|
|
722
744
|
netFeeEarned {
|
|
723
|
-
...
|
|
745
|
+
...ExchangeAmount
|
|
724
746
|
}
|
|
725
747
|
lowestHealthFactor
|
|
726
|
-
}`,[
|
|
748
|
+
}`,[d,p,r]),_=e(`fragment UserRiskPremiumBreakdownItem on UserRiskPremiumBreakdownItem {
|
|
749
|
+
__typename
|
|
750
|
+
token {
|
|
751
|
+
...Erc20Token
|
|
752
|
+
}
|
|
753
|
+
currentRiskPremiumWeight {
|
|
754
|
+
...PercentNumber
|
|
755
|
+
}
|
|
756
|
+
latestRiskPremiumWeight {
|
|
757
|
+
...PercentNumber
|
|
758
|
+
}
|
|
759
|
+
collateral {
|
|
760
|
+
...PercentNumber
|
|
761
|
+
}
|
|
762
|
+
}`,[y,r]),pt=e(`fragment UserPositionRiskPremium on UserPositionRiskPremium {
|
|
763
|
+
__typename
|
|
764
|
+
current {
|
|
765
|
+
...PercentNumber
|
|
766
|
+
}
|
|
767
|
+
latest {
|
|
768
|
+
...PercentNumber
|
|
769
|
+
}
|
|
770
|
+
breakdown {
|
|
771
|
+
...UserRiskPremiumBreakdownItem
|
|
772
|
+
}
|
|
773
|
+
}`,[r,_]),$=e(`fragment UserPosition on UserPosition {
|
|
727
774
|
__typename
|
|
728
775
|
id
|
|
729
776
|
spoke {
|
|
@@ -735,19 +782,19 @@
|
|
|
735
782
|
...PercentNumber
|
|
736
783
|
}
|
|
737
784
|
netCollateral(currency: $currency) {
|
|
738
|
-
...
|
|
785
|
+
...ExchangeAmountWithChange
|
|
739
786
|
}
|
|
740
787
|
netBalance(currency: $currency) {
|
|
741
|
-
...
|
|
788
|
+
...ExchangeAmountWithChange
|
|
742
789
|
}
|
|
743
790
|
totalCollateral(currency: $currency) {
|
|
744
|
-
...
|
|
791
|
+
...ExchangeAmountWithChange
|
|
745
792
|
}
|
|
746
793
|
totalSupplied(currency: $currency) {
|
|
747
|
-
...
|
|
794
|
+
...ExchangeAmountWithChange
|
|
748
795
|
}
|
|
749
796
|
totalDebt(currency: $currency) {
|
|
750
|
-
...
|
|
797
|
+
...ExchangeAmountWithChange
|
|
751
798
|
}
|
|
752
799
|
netSupplyApy {
|
|
753
800
|
...PercentNumberWithChange
|
|
@@ -759,15 +806,22 @@
|
|
|
759
806
|
...HealthFactorWithChange
|
|
760
807
|
}
|
|
761
808
|
riskPremium {
|
|
762
|
-
...
|
|
809
|
+
...UserPositionRiskPremium
|
|
810
|
+
}
|
|
811
|
+
liquidationPrice(currency: $currency) {
|
|
812
|
+
...ExchangeAmount
|
|
763
813
|
}
|
|
764
|
-
|
|
814
|
+
borrowingPower(currency: $currency) {
|
|
815
|
+
...ExchangeAmount
|
|
816
|
+
}
|
|
817
|
+
canUpdateDynamicConfig
|
|
818
|
+
netBalancePercentChange(window: $timeWindow) {
|
|
765
819
|
...PercentNumber
|
|
766
820
|
}
|
|
767
821
|
averageCollateralFactor {
|
|
768
822
|
...PercentNumber
|
|
769
823
|
}
|
|
770
|
-
}`,[
|
|
824
|
+
}`,[u,r,d,p,L,G,pt]),ie=e(`fragment UserBalance on UserBalance {
|
|
771
825
|
__typename
|
|
772
826
|
id
|
|
773
827
|
info {
|
|
@@ -779,8 +833,8 @@
|
|
|
779
833
|
balances {
|
|
780
834
|
...TokenAmount
|
|
781
835
|
}
|
|
782
|
-
|
|
783
|
-
...
|
|
836
|
+
exchange(currency: $currency) {
|
|
837
|
+
...ExchangeAmount
|
|
784
838
|
}
|
|
785
839
|
highestSupplyApy: supplyApy(metric: HIGHEST) {
|
|
786
840
|
...PercentNumber
|
|
@@ -794,94 +848,133 @@
|
|
|
794
848
|
lowestBorrowApy: borrowApy(metric: LOWEST) {
|
|
795
849
|
...PercentNumber
|
|
796
850
|
}
|
|
797
|
-
|
|
851
|
+
highestCollateralFactor: collateralFactor(metric: HIGHEST) {
|
|
852
|
+
...PercentNumber
|
|
853
|
+
}
|
|
854
|
+
lowestCollateralFactor: collateralFactor(metric: LOWEST) {
|
|
855
|
+
...PercentNumber
|
|
856
|
+
}
|
|
857
|
+
}`,[w,c,S,p,r]),ue=e(`fragment UserSummaryHistoryItem on UserSummaryHistoryItem {
|
|
798
858
|
__typename
|
|
799
859
|
netBalance(currency: $currency) {
|
|
800
|
-
...
|
|
860
|
+
...ExchangeAmount
|
|
801
861
|
}
|
|
802
862
|
borrows(currency: $currency) {
|
|
803
|
-
...
|
|
863
|
+
...ExchangeAmount
|
|
804
864
|
}
|
|
805
865
|
supplies(currency: $currency) {
|
|
806
|
-
...
|
|
866
|
+
...ExchangeAmount
|
|
807
867
|
}
|
|
808
868
|
healthFactor
|
|
809
869
|
date
|
|
810
|
-
}`,[
|
|
870
|
+
}`,[p]),N=e(`fragment ApySample on ApySample {
|
|
811
871
|
__typename
|
|
812
872
|
date
|
|
813
873
|
avgRate {
|
|
814
874
|
...PercentNumber
|
|
815
875
|
}
|
|
816
|
-
}`,[
|
|
876
|
+
}`,[r]);var qr=e(`query Hub($request: HubRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
817
877
|
value: hub(request: $request) {
|
|
818
878
|
...Hub
|
|
819
879
|
}
|
|
820
|
-
}`,[
|
|
880
|
+
}`,[T]),xr=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
821
881
|
value: hubs(request: $request) {
|
|
822
882
|
...Hub
|
|
823
883
|
}
|
|
824
|
-
}`,[
|
|
884
|
+
}`,[T]),Ar=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
825
885
|
value: hubAssets(request: $request) {
|
|
826
886
|
...HubAsset
|
|
827
887
|
}
|
|
828
|
-
}`,[
|
|
888
|
+
}`,[b]),it=e(`fragment HubSummarySample on HubSummarySample {
|
|
889
|
+
__typename
|
|
890
|
+
date
|
|
891
|
+
deposits {
|
|
892
|
+
...ExchangeAmount
|
|
893
|
+
}
|
|
894
|
+
borrows {
|
|
895
|
+
...ExchangeAmount
|
|
896
|
+
}
|
|
897
|
+
availableLiquidity {
|
|
898
|
+
...ExchangeAmount
|
|
899
|
+
}
|
|
900
|
+
utilizationRate {
|
|
901
|
+
...PercentNumber
|
|
902
|
+
}
|
|
903
|
+
}`,[p,r]),hr=e(`query HubSummaryHistory($request: HubSummaryHistoryRequest!) {
|
|
904
|
+
value: hubSummaryHistory(request: $request) {
|
|
905
|
+
...HubSummarySample
|
|
906
|
+
}
|
|
907
|
+
}`,[it]);function ge(t){return new TextDecoder().decode(Uint8Array.from(atob(t),P=>P.charCodeAt(0)))}function D(t){return btoa(String.fromCharCode(...new TextEncoder().encode(t)))}var F="::";function Ir(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 ut(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 wr(t){return ut(D(`${t.chainId}${F}${t.address}`))}function Tr(t){let P=ge(t),[n,o]=P.split(F);return {chainId:types.chainId(Number.parseInt(n,10)),address:types.evmAddress(o)}}function br(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 Er(t){return t}function Cr(t){let P=ge(t),[n,o,q]=P.split(F);return {chainId:types.chainId(Number.parseInt(n,10)),spoke:types.evmAddress(o),onChainId:q}}function Ur(t){return D(`${t.chainId}${F}${t.spoke}${F}${t.onChainId}`)}function kr(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 vr(t){return types.invariant(types.isValidHexString(t),`Invalid SwapId: ${t}`),t}function Hr(t){return types.invariant(types.isValidHexString(t),`Invalid SwapQuoteId: ${t}`),t}function Or(t){return mt(D(`${t.chainId}${F}${t.address}`))}function mt(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 Br(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 _r(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 $r(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 Nr(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid TokenInfoId: ${t}`),t}function Wr(t){return types.isObject(t)&&"hubInput"in t&&t.hubInput!=null}function Lr(t){return types.isObject(t)&&"chainIds"in t&&t.chainIds!=null}function Mr(t){return types.isObject(t)&&"spoke"in t&&t.spoke!=null}function Vr(t){return types.isObject(t)&&"txHash"in t&&t.txHash!=null}var zr=e(`query Chain($request: ChainRequest!) {
|
|
829
908
|
value: chain(request: $request) {
|
|
830
909
|
...Chain
|
|
831
910
|
}
|
|
832
|
-
}`,[
|
|
833
|
-
value: chains(
|
|
911
|
+
}`,[a]),Zr=e(`query Chains($request: ChainsRequest!) {
|
|
912
|
+
value: chains(request: $request) {
|
|
834
913
|
...Chain
|
|
835
914
|
}
|
|
836
|
-
}`,[
|
|
915
|
+
}`,[a]),Jr=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
837
916
|
value: hasProcessedKnownTransaction(request: $request)
|
|
838
|
-
}`),
|
|
917
|
+
}`),jr=e(`query Health {
|
|
839
918
|
value: health
|
|
840
|
-
}`),
|
|
919
|
+
}`),Xr=e(`query ExchangeRate($request: ExchangeRateRequest!) {
|
|
841
920
|
value: exchangeRate(request: $request) {
|
|
842
|
-
...
|
|
921
|
+
...ExchangeAmount
|
|
843
922
|
}
|
|
844
|
-
}`,[
|
|
923
|
+
}`,[p]);var yt=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
845
924
|
__typename
|
|
846
925
|
date
|
|
847
926
|
price
|
|
848
|
-
}`),
|
|
927
|
+
}`),ct=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
849
928
|
__typename
|
|
850
929
|
date
|
|
851
930
|
amount {
|
|
852
931
|
...DecimalNumber
|
|
853
932
|
}
|
|
854
|
-
|
|
933
|
+
highestApy {
|
|
934
|
+
...PercentNumber
|
|
935
|
+
}
|
|
936
|
+
lowestApy {
|
|
937
|
+
...PercentNumber
|
|
938
|
+
}
|
|
939
|
+
}`,[c,r]),gt=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
855
940
|
__typename
|
|
856
941
|
date
|
|
857
942
|
amount {
|
|
858
943
|
...DecimalNumber
|
|
859
944
|
}
|
|
860
|
-
|
|
945
|
+
highestApy {
|
|
946
|
+
...PercentNumber
|
|
947
|
+
}
|
|
948
|
+
lowestApy {
|
|
949
|
+
...PercentNumber
|
|
950
|
+
}
|
|
951
|
+
}`,[c,r]),lt=e(`fragment AssetAmountWithChange on AssetAmountWithChange {
|
|
952
|
+
__typename
|
|
953
|
+
amount {
|
|
954
|
+
...DecimalNumberWithChange
|
|
955
|
+
}
|
|
956
|
+
exchange(currency: $currency) {
|
|
957
|
+
...ExchangeAmountWithChange
|
|
958
|
+
}
|
|
959
|
+
}`,[H,d]),dt=e(`fragment AssetSummary on AssetSummary {
|
|
861
960
|
__typename
|
|
862
961
|
totalSupplyCap {
|
|
863
962
|
...DecimalNumberWithChange
|
|
864
963
|
}
|
|
865
964
|
totalSupplied {
|
|
866
|
-
...
|
|
965
|
+
...AssetAmountWithChange
|
|
867
966
|
}
|
|
868
967
|
totalSuppliable {
|
|
869
|
-
...
|
|
968
|
+
...AssetAmountWithChange
|
|
870
969
|
}
|
|
871
970
|
totalBorrowCap {
|
|
872
971
|
...DecimalNumberWithChange
|
|
873
972
|
}
|
|
874
973
|
totalBorrowed {
|
|
875
|
-
...
|
|
974
|
+
...AssetAmountWithChange
|
|
876
975
|
}
|
|
877
976
|
totalBorrowable {
|
|
878
|
-
...
|
|
879
|
-
}
|
|
880
|
-
totalSuppliedFiat(currency: $currency) {
|
|
881
|
-
...FiatAmountWithChange
|
|
882
|
-
}
|
|
883
|
-
totalBorrowedFiat(currency: $currency) {
|
|
884
|
-
...FiatAmountWithChange
|
|
977
|
+
...AssetAmountWithChange
|
|
885
978
|
}
|
|
886
979
|
averageBorrowApy: borrowApy(metric: AVERAGE) {
|
|
887
980
|
...PercentNumber
|
|
@@ -889,7 +982,7 @@
|
|
|
889
982
|
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
890
983
|
...PercentNumber
|
|
891
984
|
}
|
|
892
|
-
}`,[
|
|
985
|
+
}`,[lt,H,r]),ft=e(`fragment Asset on Asset {
|
|
893
986
|
__typename
|
|
894
987
|
id
|
|
895
988
|
token {
|
|
@@ -899,105 +992,118 @@
|
|
|
899
992
|
...AssetSummary
|
|
900
993
|
}
|
|
901
994
|
price(currency: $currency) {
|
|
902
|
-
...
|
|
995
|
+
...ExchangeAmountWithChange
|
|
903
996
|
}
|
|
904
|
-
}`,[
|
|
997
|
+
}`,[y,dt,d]),nn=e(`query Asset($request: AssetRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
905
998
|
value: asset(request: $request) {
|
|
906
999
|
...Asset
|
|
907
1000
|
}
|
|
908
|
-
}`,[
|
|
1001
|
+
}`,[ft]),an=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
909
1002
|
value: assetPriceHistory(request: $request) {
|
|
910
1003
|
...AssetPriceSample
|
|
911
1004
|
}
|
|
912
|
-
}`,[
|
|
1005
|
+
}`,[yt]),on=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!) {
|
|
913
1006
|
value: assetSupplyHistory(request: $request) {
|
|
914
1007
|
...AssetSupplySample
|
|
915
1008
|
}
|
|
916
|
-
}`,[
|
|
1009
|
+
}`,[ct]),sn=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!) {
|
|
917
1010
|
value: assetBorrowHistory(request: $request) {
|
|
918
1011
|
...AssetBorrowSample
|
|
919
1012
|
}
|
|
920
|
-
}`,[
|
|
1013
|
+
}`,[gt]),St=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
1014
|
+
__typename
|
|
1015
|
+
date
|
|
1016
|
+
deposits {
|
|
1017
|
+
...ExchangeAmount
|
|
1018
|
+
}
|
|
1019
|
+
borrows {
|
|
1020
|
+
...ExchangeAmount
|
|
1021
|
+
}
|
|
1022
|
+
}`,[p]),pn=e(`query ProtocolHistory($request: ProtocolHistoryRequest!) {
|
|
1023
|
+
value: protocolHistory(request: $request) {
|
|
1024
|
+
...ProtocolHistorySample
|
|
1025
|
+
}
|
|
1026
|
+
}`,[St]);var cn=e(`query BorrowApyHistory($request: BorrowApyHistoryRequest!) {
|
|
921
1027
|
value: borrowApyHistory(request: $request) {
|
|
922
|
-
...
|
|
1028
|
+
...ApySample
|
|
923
1029
|
}
|
|
924
|
-
}`,[
|
|
1030
|
+
}`,[N]),gn=e(`query SupplyApyHistory($request: SupplyApyHistoryRequest!) {
|
|
925
1031
|
value: supplyApyHistory(request: $request) {
|
|
926
|
-
...
|
|
1032
|
+
...ApySample
|
|
927
1033
|
}
|
|
928
|
-
}`,[
|
|
1034
|
+
}`,[N]),ln=e(`query Reserve($request: ReserveRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
929
1035
|
value: reserve(request: $request) {
|
|
930
1036
|
...Reserve
|
|
931
1037
|
}
|
|
932
|
-
}`,[
|
|
1038
|
+
}`,[A]),dn=e(`query Reserves($request: ReservesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
933
1039
|
value: reserves(request: $request) {
|
|
934
1040
|
...Reserve
|
|
935
1041
|
}
|
|
936
|
-
}`,[
|
|
1042
|
+
}`,[A]);var qn=e(`query Spoke($request: SpokeRequest!) {
|
|
937
1043
|
value: spoke(request: $request) {
|
|
938
1044
|
...Spoke
|
|
939
1045
|
}
|
|
940
|
-
}`,[
|
|
1046
|
+
}`,[u]),xn=e(`query Spokes($request: SpokesRequest!) {
|
|
941
1047
|
value: spokes(request: $request) {
|
|
942
1048
|
...Spoke
|
|
943
1049
|
}
|
|
944
|
-
}`,[
|
|
1050
|
+
}`,[u]),An=e(`query SpokePositionManagers($request: SpokePositionManagersRequest!) {
|
|
945
1051
|
value: spokePositionManagers(request: $request) {
|
|
946
1052
|
...PaginatedSpokePositionManagerResult
|
|
947
1053
|
}
|
|
948
|
-
}`,[
|
|
1054
|
+
}`,[Y]),hn=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
949
1055
|
value: spokeUserPositionManagers(request: $request) {
|
|
950
1056
|
...PaginatedSpokeUserPositionManagerResult
|
|
951
1057
|
}
|
|
952
|
-
}`,[
|
|
1058
|
+
}`,[z]);var wn=e(`query SwapQuote($request: SwapQuoteRequest!, $currency: Currency!) {
|
|
953
1059
|
value: swapQuote(request: $request) {
|
|
954
1060
|
...SwapQuote
|
|
955
1061
|
}
|
|
956
|
-
}`,[
|
|
1062
|
+
}`,[C]),Tn=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
957
1063
|
value: swappableTokens(request: $request) {
|
|
958
1064
|
...Token
|
|
959
1065
|
}
|
|
960
|
-
}`,[
|
|
1066
|
+
}`,[W]),bn=e(`query PrepareSwap($request: PrepareSwapRequest!, $currency: Currency!) {
|
|
961
1067
|
value: prepareSwap(request: $request) {
|
|
962
1068
|
...PrepareSwapResult
|
|
963
1069
|
}
|
|
964
|
-
}`,[
|
|
1070
|
+
}`,[j]),En=e(`query SwapStatus($request: SwapStatusRequest!, $currency: Currency!) {
|
|
965
1071
|
value: swapStatus(request: $request) {
|
|
966
1072
|
...SwapStatus
|
|
967
1073
|
}
|
|
968
|
-
}`,[
|
|
1074
|
+
}`,[B]),Cn=e(`query Swap($request: SwapRequest!) {
|
|
969
1075
|
value: swap(request: $request) {
|
|
970
1076
|
...SwapExecutionPlan
|
|
971
1077
|
}
|
|
972
|
-
}`,[
|
|
1078
|
+
}`,[ee]),Un=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
973
1079
|
value: prepareSwapCancel(request: $request) {
|
|
974
1080
|
...PrepareSwapCancelResult
|
|
975
1081
|
}
|
|
976
|
-
}`,[
|
|
1082
|
+
}`,[re]),kn=e(`query CancelSwap($request: CancelSwapRequest!) {
|
|
977
1083
|
value: cancelSwap(request: $request) {
|
|
978
1084
|
...CancelSwapExecutionPlan
|
|
979
1085
|
}
|
|
980
|
-
}`,[
|
|
1086
|
+
}`,[ne]),vn=e(`query UserSwaps($request: UserSwapsRequest!, $currency: Currency!) {
|
|
981
1087
|
value: userSwaps(request: $request) {
|
|
982
1088
|
...PaginatedUserSwapsResult
|
|
983
1089
|
}
|
|
984
|
-
}`,[
|
|
1090
|
+
}`,[ae]);var _n=e(`query Borrow($request: BorrowRequest!) {
|
|
985
1091
|
value: borrow(request: $request) {
|
|
986
1092
|
...ExecutionPlan
|
|
987
1093
|
}
|
|
988
|
-
}`,[
|
|
1094
|
+
}`,[E]),$n=e(`query Supply($request: SupplyRequest!) {
|
|
989
1095
|
value: supply(request: $request) {
|
|
990
1096
|
...ExecutionPlan
|
|
991
1097
|
}
|
|
992
|
-
}`,[
|
|
1098
|
+
}`,[E]),Nn=e(`query Repay($request: RepayRequest!) {
|
|
993
1099
|
value: repay(request: $request) {
|
|
994
1100
|
...ExecutionPlan
|
|
995
1101
|
}
|
|
996
|
-
}`,[
|
|
1102
|
+
}`,[E]),Dn=e(`query Withdraw($request: WithdrawRequest!) {
|
|
997
1103
|
value: withdraw(request: $request) {
|
|
998
1104
|
...ExecutionPlan
|
|
999
1105
|
}
|
|
1000
|
-
}`,[
|
|
1106
|
+
}`,[E]),Rt=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1001
1107
|
__typename
|
|
1002
1108
|
... on TransactionRequest {
|
|
1003
1109
|
...TransactionRequest
|
|
@@ -1008,27 +1114,74 @@
|
|
|
1008
1114
|
... on InsufficientBalanceError {
|
|
1009
1115
|
...InsufficientBalanceError
|
|
1010
1116
|
}
|
|
1011
|
-
}`,[
|
|
1117
|
+
}`,[m,O,h]),Qn=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1012
1118
|
value: liquidatePosition(request: $request) {
|
|
1013
1119
|
...LiquidatePositionExecutionPlan
|
|
1014
1120
|
}
|
|
1015
|
-
}`,[
|
|
1121
|
+
}`,[Rt]),Wn=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1016
1122
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1017
1123
|
...TransactionRequest
|
|
1018
1124
|
}
|
|
1019
|
-
}`,[
|
|
1020
|
-
value:
|
|
1125
|
+
}`,[m]),Ln=e(`query SetUserSuppliesAsCollateral($request: SetUserSuppliesAsCollateralRequest!) {
|
|
1126
|
+
value: setUserSuppliesAsCollateral(request: $request) {
|
|
1021
1127
|
...TransactionRequest
|
|
1022
1128
|
}
|
|
1023
|
-
}`,[
|
|
1129
|
+
}`,[m]),Mn=e(`query RenounceSpokeUserPositionManager($request: RenounceSpokeUserPositionManagerRequest!) {
|
|
1024
1130
|
value: renounceSpokeUserPositionManager(request: $request) {
|
|
1025
1131
|
...TransactionRequest
|
|
1026
1132
|
}
|
|
1027
|
-
}`,[
|
|
1028
|
-
value:
|
|
1133
|
+
}`,[m]),Vn=e(`query UpdateUserPositionConditions($request: UpdateUserPositionConditionsRequest!) {
|
|
1134
|
+
value: updateUserPositionConditions(request: $request) {
|
|
1029
1135
|
...TransactionRequest
|
|
1030
1136
|
}
|
|
1031
|
-
}`,[
|
|
1137
|
+
}`,[m]),qt=e(`fragment CollateralFactorVariation on CollateralFactorVariation {
|
|
1138
|
+
__typename
|
|
1139
|
+
reserveId
|
|
1140
|
+
token {
|
|
1141
|
+
...Erc20Token
|
|
1142
|
+
}
|
|
1143
|
+
current {
|
|
1144
|
+
...PercentNumber
|
|
1145
|
+
}
|
|
1146
|
+
after {
|
|
1147
|
+
...PercentNumber
|
|
1148
|
+
}
|
|
1149
|
+
}`,[y,r]),xt=e(`fragment LiquidationFeeVariation on LiquidationFeeVariation {
|
|
1150
|
+
__typename
|
|
1151
|
+
reserveId
|
|
1152
|
+
token {
|
|
1153
|
+
...Erc20Token
|
|
1154
|
+
}
|
|
1155
|
+
current {
|
|
1156
|
+
...PercentNumber
|
|
1157
|
+
}
|
|
1158
|
+
after {
|
|
1159
|
+
...PercentNumber
|
|
1160
|
+
}
|
|
1161
|
+
}`,[y,r]),At=e(`fragment MaxLiquidationBonusVariation on MaxLiquidationBonusVariation {
|
|
1162
|
+
__typename
|
|
1163
|
+
reserveId
|
|
1164
|
+
token {
|
|
1165
|
+
...Erc20Token
|
|
1166
|
+
}
|
|
1167
|
+
current {
|
|
1168
|
+
...PercentNumber
|
|
1169
|
+
}
|
|
1170
|
+
after {
|
|
1171
|
+
...PercentNumber
|
|
1172
|
+
}
|
|
1173
|
+
}`,[y,r]),ht=e(`fragment UserPositionConditionVariation on UserPositionConditionVariation {
|
|
1174
|
+
__typename
|
|
1175
|
+
... on CollateralFactorVariation {
|
|
1176
|
+
...CollateralFactorVariation
|
|
1177
|
+
}
|
|
1178
|
+
... on LiquidationFeeVariation {
|
|
1179
|
+
...LiquidationFeeVariation
|
|
1180
|
+
}
|
|
1181
|
+
... on MaxLiquidationBonusVariation {
|
|
1182
|
+
...MaxLiquidationBonusVariation
|
|
1183
|
+
}
|
|
1184
|
+
}`,[qt,xt,At]),Ft=e(`fragment PreviewUserPosition on PreviewUserPosition {
|
|
1032
1185
|
__typename
|
|
1033
1186
|
id
|
|
1034
1187
|
healthFactor {
|
|
@@ -1041,20 +1194,33 @@
|
|
|
1041
1194
|
...PercentNumberVariation
|
|
1042
1195
|
}
|
|
1043
1196
|
netCollateral(currency: $currency) {
|
|
1044
|
-
...
|
|
1197
|
+
...ExchangeAmountVariation
|
|
1045
1198
|
}
|
|
1046
1199
|
netBalance(currency: $currency) {
|
|
1047
|
-
...
|
|
1200
|
+
...ExchangeAmountVariation
|
|
1201
|
+
}
|
|
1202
|
+
projectedEarnings(period: ANNUAL) {
|
|
1203
|
+
...ExchangeAmountVariation
|
|
1204
|
+
}
|
|
1205
|
+
borrowingPower {
|
|
1206
|
+
...ExchangeAmountVariation
|
|
1048
1207
|
}
|
|
1049
|
-
|
|
1208
|
+
otherConditions {
|
|
1209
|
+
...UserPositionConditionVariation
|
|
1210
|
+
}
|
|
1211
|
+
}`,[K,M,V,ht]),Gn=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD) {
|
|
1050
1212
|
value: preview(request: $request) {
|
|
1051
1213
|
...PreviewUserPosition
|
|
1052
1214
|
}
|
|
1053
|
-
}`,[
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1215
|
+
}`,[Ft]),le=e(`fragment PercentNumberChangeSnapshot on PercentNumberChangeSnapshot {
|
|
1216
|
+
__typename
|
|
1217
|
+
before {
|
|
1218
|
+
...PercentNumber
|
|
1219
|
+
}
|
|
1220
|
+
after {
|
|
1221
|
+
...PercentNumber
|
|
1222
|
+
}
|
|
1223
|
+
}`,[r]),Pt=e(`fragment BorrowActivity on BorrowActivity {
|
|
1058
1224
|
__typename
|
|
1059
1225
|
id
|
|
1060
1226
|
user
|
|
@@ -1072,7 +1238,7 @@
|
|
|
1072
1238
|
chain {
|
|
1073
1239
|
...Chain
|
|
1074
1240
|
}
|
|
1075
|
-
}`,[i,
|
|
1241
|
+
}`,[u,i,f,a]),It=e(`fragment SupplyActivity on SupplyActivity {
|
|
1076
1242
|
__typename
|
|
1077
1243
|
id
|
|
1078
1244
|
user
|
|
@@ -1090,7 +1256,7 @@
|
|
|
1090
1256
|
chain {
|
|
1091
1257
|
...Chain
|
|
1092
1258
|
}
|
|
1093
|
-
}`,[i,
|
|
1259
|
+
}`,[u,i,f,a]),wt=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1094
1260
|
__typename
|
|
1095
1261
|
id
|
|
1096
1262
|
user
|
|
@@ -1108,7 +1274,7 @@
|
|
|
1108
1274
|
chain {
|
|
1109
1275
|
...Chain
|
|
1110
1276
|
}
|
|
1111
|
-
}`,[i,
|
|
1277
|
+
}`,[u,i,f,a]),Tt=e(`fragment RepayActivity on RepayActivity {
|
|
1112
1278
|
__typename
|
|
1113
1279
|
id
|
|
1114
1280
|
user
|
|
@@ -1126,7 +1292,7 @@
|
|
|
1126
1292
|
chain {
|
|
1127
1293
|
...Chain
|
|
1128
1294
|
}
|
|
1129
|
-
}`,[i,
|
|
1295
|
+
}`,[u,i,f,a]),bt=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1130
1296
|
__typename
|
|
1131
1297
|
id
|
|
1132
1298
|
user
|
|
@@ -1151,7 +1317,7 @@
|
|
|
1151
1317
|
chain {
|
|
1152
1318
|
...Chain
|
|
1153
1319
|
}
|
|
1154
|
-
}`,[i,
|
|
1320
|
+
}`,[u,i,f,a]),Et=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1155
1321
|
__typename
|
|
1156
1322
|
id
|
|
1157
1323
|
user
|
|
@@ -1167,7 +1333,46 @@
|
|
|
1167
1333
|
chain {
|
|
1168
1334
|
...Chain
|
|
1169
1335
|
}
|
|
1170
|
-
}`,[
|
|
1336
|
+
}`,[u,f,a]),Ct=e(`fragment UpdatedDynamicConfigActivity on UpdatedDynamicConfigActivity {
|
|
1337
|
+
__typename
|
|
1338
|
+
id
|
|
1339
|
+
user
|
|
1340
|
+
timestamp
|
|
1341
|
+
txHash
|
|
1342
|
+
spoke {
|
|
1343
|
+
...Spoke
|
|
1344
|
+
}
|
|
1345
|
+
reserve {
|
|
1346
|
+
...ReserveInfo
|
|
1347
|
+
}
|
|
1348
|
+
collateralFactor {
|
|
1349
|
+
...PercentNumberChangeSnapshot
|
|
1350
|
+
}
|
|
1351
|
+
maxLiquidationBonus {
|
|
1352
|
+
...PercentNumberChangeSnapshot
|
|
1353
|
+
}
|
|
1354
|
+
liquidationFee {
|
|
1355
|
+
...PercentNumberChangeSnapshot
|
|
1356
|
+
}
|
|
1357
|
+
chain {
|
|
1358
|
+
...Chain
|
|
1359
|
+
}
|
|
1360
|
+
}`,[u,f,le,a]),Ut=e(`fragment UpdatedRiskPremiumActivity on UpdatedRiskPremiumActivity {
|
|
1361
|
+
__typename
|
|
1362
|
+
id
|
|
1363
|
+
user
|
|
1364
|
+
timestamp
|
|
1365
|
+
txHash
|
|
1366
|
+
spoke {
|
|
1367
|
+
...Spoke
|
|
1368
|
+
}
|
|
1369
|
+
premium {
|
|
1370
|
+
...PercentNumberChangeSnapshot
|
|
1371
|
+
}
|
|
1372
|
+
chain {
|
|
1373
|
+
...Chain
|
|
1374
|
+
}
|
|
1375
|
+
}`,[u,le,a]),kt=e(`fragment ActivityItem on ActivityItem {
|
|
1171
1376
|
__typename
|
|
1172
1377
|
... on BorrowActivity {
|
|
1173
1378
|
...BorrowActivity
|
|
@@ -1187,7 +1392,13 @@
|
|
|
1187
1392
|
... on UsingAsCollateralActivity {
|
|
1188
1393
|
...UsingAsCollateralActivity
|
|
1189
1394
|
}
|
|
1190
|
-
|
|
1395
|
+
... on UpdatedDynamicConfigActivity {
|
|
1396
|
+
...UpdatedDynamicConfigActivity
|
|
1397
|
+
}
|
|
1398
|
+
... on UpdatedRiskPremiumActivity {
|
|
1399
|
+
...UpdatedRiskPremiumActivity
|
|
1400
|
+
}
|
|
1401
|
+
}`,[Pt,It,wt,Tt,bt,Et,Ct,Ut]),vt=e(`fragment PaginatedActivitiesResult on PaginatedActivitiesResult {
|
|
1191
1402
|
__typename
|
|
1192
1403
|
items {
|
|
1193
1404
|
...ActivityItem
|
|
@@ -1195,37 +1406,41 @@
|
|
|
1195
1406
|
pageInfo {
|
|
1196
1407
|
...PaginatedResultInfo
|
|
1197
1408
|
}
|
|
1198
|
-
}`,[
|
|
1409
|
+
}`,[kt,R]),Kn=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1199
1410
|
value: activities(request: $request) {
|
|
1200
1411
|
...PaginatedActivitiesResult
|
|
1201
1412
|
}
|
|
1202
|
-
}`,[
|
|
1413
|
+
}`,[vt]);var Jn=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1203
1414
|
value: userSupplies(request: $request) {
|
|
1204
1415
|
...UserSupplyItem
|
|
1205
1416
|
}
|
|
1206
|
-
}`,[
|
|
1417
|
+
}`,[oe]),jn=e(`query UserBorrows($request: UserBorrowsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1207
1418
|
value: userBorrows(request: $request) {
|
|
1208
1419
|
...UserBorrowItem
|
|
1209
1420
|
}
|
|
1210
|
-
}`,[
|
|
1421
|
+
}`,[se]),Xn=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1211
1422
|
value: userSummary(request: $request) {
|
|
1212
1423
|
...UserSummary
|
|
1213
1424
|
}
|
|
1214
|
-
}`,[
|
|
1425
|
+
}`,[pe]),ea=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1215
1426
|
value: userPositions(request: $request) {
|
|
1216
1427
|
...UserPosition
|
|
1217
1428
|
}
|
|
1218
|
-
}`,[
|
|
1429
|
+
}`,[$]),ta=e(`query UserPosition($request: UserPositionRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1219
1430
|
value: userPosition(request: $request) {
|
|
1220
1431
|
...UserPosition
|
|
1221
1432
|
}
|
|
1222
|
-
}`,[
|
|
1433
|
+
}`,[$]),ra=e(`query UserBalances($request: UserBalancesRequest!, $currency: Currency!) {
|
|
1223
1434
|
value: userBalances(request: $request) {
|
|
1224
1435
|
...UserBalance
|
|
1225
1436
|
}
|
|
1226
|
-
}`,[
|
|
1437
|
+
}`,[ie]),na=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1227
1438
|
value: userSummaryHistory(request: $request) {
|
|
1228
1439
|
...UserSummaryHistoryItem
|
|
1229
1440
|
}
|
|
1230
|
-
}`,[
|
|
1441
|
+
}`,[ue]),aa=e(`query UserRiskPremiumBreakdown($request: UserRiskPremiumBreakdownRequest!) {
|
|
1442
|
+
value: userRiskPremiumBreakdown(request: $request) {
|
|
1443
|
+
...UserRiskPremiumBreakdownItem
|
|
1444
|
+
}
|
|
1445
|
+
}`,[_]);exports.ActivitiesQuery=Kn;exports.ActivityItemFragment=kt;exports.ActivityType=he;exports.ApyMetric=Fe;exports.ApySampleFragment=N;exports.AssetAmountWithChangeFragment=lt;exports.AssetBorrowHistoryQuery=sn;exports.AssetBorrowSampleFragment=gt;exports.AssetFragment=ft;exports.AssetPriceHistoryQuery=an;exports.AssetPriceSampleFragment=yt;exports.AssetQuery=nn;exports.AssetSummaryFragment=dt;exports.AssetSupplyHistoryQuery=on;exports.AssetSupplySampleFragment=ct;exports.BorrowActivityFragment=Pt;exports.BorrowApyHistoryQuery=cn;exports.BorrowQuery=_n;exports.CancelSwapExecutionPlanFragment=ne;exports.CancelSwapQuery=kn;exports.CancelSwapTypeDefinitionFragment=ot;exports.CancelSwapTypedDataFragment=st;exports.ChainFragment=a;exports.ChainQuery=zr;exports.ChainsFilter=qe;exports.ChainsQuery=Zr;exports.CollateralFactorVariationFragment=qt;exports.CollateralMetric=Pe;exports.Currency=Ie;exports.DecimalNumberFragment=c;exports.DecimalNumberWithChangeFragment=H;exports.DomainDataFragment=k;exports.Erc20AmountFragment=i;exports.Erc20ApprovalRequiredFragment=O;exports.Erc20TokenFragment=y;exports.ExchangeAmountFragment=p;exports.ExchangeAmountVariationFragment=V;exports.ExchangeAmountWithChangeFragment=d;exports.ExchangeRateQuery=Xr;exports.ExecutionPlanFragment=E;exports.HasProcessedKnownTransactionQuery=Jr;exports.HealthFactorErrorFragment=He;exports.HealthFactorResultFragment=K;exports.HealthFactorVariationFragment=ve;exports.HealthFactorWithChangeFragment=G;exports.HealthQuery=jr;exports.HubAssetFragment=b;exports.HubAssetSettingsFragment=_e;exports.HubAssetStatusType=xe;exports.HubAssetSummaryFragment=Be;exports.HubAssetUserStateFragment=$e;exports.HubAssetsQuery=Ar;exports.HubAssetsRequestOrderBy=Ae;exports.HubFragment=T;exports.HubQuery=qr;exports.HubSummaryFragment=Oe;exports.HubSummaryHistoryQuery=hr;exports.HubSummarySampleFragment=it;exports.HubsQuery=xr;exports.InsufficientBalanceErrorFragment=h;exports.LiquidatePositionExecutionPlanFragment=Rt;exports.LiquidatePositionQuery=Qn;exports.LiquidatedActivityFragment=bt;exports.LiquidationFeeVariationFragment=xt;exports.MaxLiquidationBonusVariationFragment=At;exports.NativeAmountFragment=ke;exports.NativeTokenFragment=Q;exports.OperationType=Re;exports.OrderDirection=de;exports.PageSize=fe;exports.PaginatedActivitiesResultFragment=vt;exports.PaginatedResultInfoFragment=R;exports.PaginatedSpokePositionManagerResultFragment=Y;exports.PaginatedSpokeUserPositionManagerResultFragment=z;exports.PaginatedUserSwapsResultFragment=ae;exports.PercentNumberChangeSnapshotFragment=le;exports.PercentNumberFragment=r;exports.PercentNumberVariationFragment=M;exports.PercentNumberWithChangeFragment=L;exports.PermitMessageDataFragment=Ge;exports.PermitTypedDataQuery=tr;exports.PermitTypedDataResponseFragment=Ke;exports.PreContractActionRequiredFragment=Ye;exports.PrepareSwapCancelQuery=Un;exports.PrepareSwapCancelResultFragment=re;exports.PrepareSwapQuery=bn;exports.PrepareSwapResultFragment=j;exports.PreviewQuery=Gn;exports.PreviewUserPositionFragment=Ft;exports.ProtocolHistoryQuery=pn;exports.ProtocolHistorySampleFragment=St;exports.RenounceSpokeUserPositionManagerQuery=Mn;exports.RepayActivityFragment=Tt;exports.RepayQuery=Nn;exports.ReserveFragment=A;exports.ReserveInfoFragment=f;exports.ReserveQuery=ln;exports.ReserveSettingsFragment=Qe;exports.ReserveStatusFragment=We;exports.ReserveSummaryFragment=Le;exports.ReserveUserStateFragment=Me;exports.ReservesQuery=dn;exports.ReservesRequestFilter=we;exports.SetSpokeUserPositionManagerQuery=Wn;exports.SetUserSuppliesAsCollateralQuery=Ln;exports.SpokeFragment=u;exports.SpokePositionManagerFragment=Ne;exports.SpokePositionManagersQuery=An;exports.SpokeQuery=qn;exports.SpokeUserPositionManagerFragment=De;exports.SpokeUserPositionManagersQuery=hn;exports.SpokesQuery=xn;exports.SupplyActivityFragment=It;exports.SupplyApyHistoryQuery=gn;exports.SupplyQuery=$n;exports.SwapApprovalRequiredFragment=et;exports.SwapByIntentFragment=Je;exports.SwapByIntentTypeDefinitionFragment=Ze;exports.SwapByIntentTypedDataFragment=Z;exports.SwapByIntentWithApprovalRequiredFragment=je;exports.SwapByTransactionFragment=Xe;exports.SwapCancelledFragment=te;exports.SwapExecutionPlanFragment=ee;exports.SwapExpiredFragment=tt;exports.SwapFulfilledFragment=at;exports.SwapKind=Te;exports.SwapOpenFragment=rt;exports.SwapPendingSignatureFragment=nt;exports.SwapQuery=Cn;exports.SwapQuoteCostsFragment=ze;exports.SwapQuoteFragment=C;exports.SwapQuoteQuery=wn;exports.SwapReceiptFragment=J;exports.SwapStatusFilter=be;exports.SwapStatusFragment=B;exports.SwapStatusQuery=En;exports.SwapTransactionRequestFragment=X;exports.SwappableTokensQuery=Tn;exports.TimeWindow=Se;exports.TokenAmountFragment=S;exports.TokenCategory=Ee;exports.TokenFragment=W;exports.TokenInfoFragment=w;exports.TransactionRequestFragment=m;exports.TypeDefinitionFragment=Ve;exports.TypeFieldFragment=U;exports.UpdateUserPositionConditionsQuery=Vn;exports.UpdatedDynamicConfigActivityFragment=Ct;exports.UpdatedRiskPremiumActivityFragment=Ut;exports.UserBalanceFragment=ie;exports.UserBalancesQuery=ra;exports.UserBorrowItemFragment=se;exports.UserBorrowsQuery=jn;exports.UserPositionConditionVariationFragment=ht;exports.UserPositionConditionsUpdate=Ce;exports.UserPositionFragment=$;exports.UserPositionQuery=ta;exports.UserPositionRiskPremiumFragment=pt;exports.UserPositionsQuery=ea;exports.UserRiskPremiumBreakdownItemFragment=_;exports.UserRiskPremiumBreakdownQuery=aa;exports.UserSummaryFragment=pe;exports.UserSummaryHistoryItemFragment=ue;exports.UserSummaryHistoryQuery=na;exports.UserSummaryQuery=Xn;exports.UserSuppliesQuery=Jn;exports.UserSupplyItemFragment=oe;exports.UserSwapsQuery=vn;exports.UsingAsCollateralActivityFragment=Et;exports.WithdrawActivityFragment=wt;exports.WithdrawQuery=Dn;exports.assetId=Ir;exports.decodeHubId=Tr;exports.decodeReserveId=Cr;exports.encodeHubId=wr;exports.encodeReserveId=Ur;exports.encodeSpokeId=Or;exports.graphql=e;exports.hubAssetId=br;exports.hubId=ut;exports.isChainIdsVariant=Lr;exports.isHubInputVariant=Wr;exports.isSpokeInputVariant=Mr;exports.isTxHashInputVariant=Vr;exports.reserveId=Er;exports.spokeId=mt;exports.swapId=vr;exports.swapQuoteId=Hr;exports.tokenInfoId=Nr;exports.userBalanceId=Br;exports.userBorrowItemId=_r;exports.userPositionId=kr;exports.userSupplyItemId=$r;//# sourceMappingURL=index.cjs.map
|
|
1231
1446
|
//# sourceMappingURL=index.cjs.map
|