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