@aave/graphql 1.0.0-next.1 → 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 +1446 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +41706 -0
- package/dist/index.d.ts +41706 -0
- package/dist/index.js +1446 -0
- package/dist/index.js.map +1 -0
- package/dist/schema.cjs +2 -0
- package/dist/schema.cjs.map +1 -0
- package/dist/schema.d.cts +250 -0
- package/dist/schema.d.ts +250 -0
- package/dist/schema.js +2 -0
- package/dist/schema.js.map +1 -0
- package/dist/test-utils.cjs +2215 -0
- package/dist/test-utils.cjs.map +1 -0
- package/dist/test-utils.d.cts +8 -0
- package/dist/test-utils.d.ts +8 -0
- package/dist/test-utils.js +2215 -0
- package/dist/test-utils.js.map +1 -0
- package/package.json +4 -4
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,1446 @@
|
|
|
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
|
+
__typename
|
|
3
|
+
onChainValue
|
|
4
|
+
decimals
|
|
5
|
+
value
|
|
6
|
+
}`),r=e(`fragment PercentNumber on PercentNumber {
|
|
7
|
+
__typename
|
|
8
|
+
onChainValue
|
|
9
|
+
decimals
|
|
10
|
+
value
|
|
11
|
+
normalized
|
|
12
|
+
}`),H=e(`fragment DecimalNumberWithChange on DecimalNumberWithChange {
|
|
13
|
+
__typename
|
|
14
|
+
current {
|
|
15
|
+
...DecimalNumber
|
|
16
|
+
}
|
|
17
|
+
change(window: $timeWindow) {
|
|
18
|
+
...PercentNumber
|
|
19
|
+
}
|
|
20
|
+
}`,[c,r]),p=e(`fragment ExchangeAmount on ExchangeAmount {
|
|
21
|
+
__typename
|
|
22
|
+
value
|
|
23
|
+
name
|
|
24
|
+
symbol
|
|
25
|
+
icon
|
|
26
|
+
decimals
|
|
27
|
+
}`),w=e(`fragment TokenInfo on TokenInfo {
|
|
28
|
+
__typename
|
|
29
|
+
id
|
|
30
|
+
name
|
|
31
|
+
symbol
|
|
32
|
+
icon
|
|
33
|
+
decimals
|
|
34
|
+
categories
|
|
35
|
+
}`),a=e(`fragment Chain on Chain {
|
|
36
|
+
__typename
|
|
37
|
+
name
|
|
38
|
+
icon
|
|
39
|
+
chainId
|
|
40
|
+
rpcUrl
|
|
41
|
+
explorerUrl
|
|
42
|
+
isTestnet
|
|
43
|
+
isFork
|
|
44
|
+
nativeWrappedToken
|
|
45
|
+
nativeGateway
|
|
46
|
+
signatureGateway
|
|
47
|
+
nativeInfo {
|
|
48
|
+
...TokenInfo
|
|
49
|
+
}
|
|
50
|
+
}`,[w]),y=e(`fragment Erc20Token on Erc20Token {
|
|
51
|
+
__typename
|
|
52
|
+
info {
|
|
53
|
+
...TokenInfo
|
|
54
|
+
}
|
|
55
|
+
address
|
|
56
|
+
chain {
|
|
57
|
+
...Chain
|
|
58
|
+
}
|
|
59
|
+
isWrappedNativeToken
|
|
60
|
+
permitSupported
|
|
61
|
+
}`,[w,a]),Q=e(`fragment NativeToken on NativeToken {
|
|
62
|
+
__typename
|
|
63
|
+
info {
|
|
64
|
+
...TokenInfo
|
|
65
|
+
}
|
|
66
|
+
chain {
|
|
67
|
+
...Chain
|
|
68
|
+
}
|
|
69
|
+
}`,[w,a]),i=e(`fragment Erc20Amount on Erc20Amount {
|
|
70
|
+
__typename
|
|
71
|
+
token {
|
|
72
|
+
...Erc20Token
|
|
73
|
+
}
|
|
74
|
+
amount {
|
|
75
|
+
...DecimalNumber
|
|
76
|
+
}
|
|
77
|
+
exchange(currency: $currency){
|
|
78
|
+
...ExchangeAmount
|
|
79
|
+
}
|
|
80
|
+
exchangeRate(currency: $currency){
|
|
81
|
+
...DecimalNumber
|
|
82
|
+
}
|
|
83
|
+
}`,[y,c,p]),ke=e(`fragment NativeAmount on NativeAmount {
|
|
84
|
+
__typename
|
|
85
|
+
token {
|
|
86
|
+
...NativeToken
|
|
87
|
+
}
|
|
88
|
+
amount {
|
|
89
|
+
...DecimalNumber
|
|
90
|
+
}
|
|
91
|
+
exchange(currency: $currency){
|
|
92
|
+
...ExchangeAmount
|
|
93
|
+
}
|
|
94
|
+
exchangeRate(currency: $currency){
|
|
95
|
+
...DecimalNumber
|
|
96
|
+
}
|
|
97
|
+
}`,[Q,c,p]),S=e(`fragment TokenAmount on TokenAmount {
|
|
98
|
+
__typename
|
|
99
|
+
... on Erc20Amount {
|
|
100
|
+
...Erc20Amount
|
|
101
|
+
}
|
|
102
|
+
... on NativeAmount {
|
|
103
|
+
...NativeAmount
|
|
104
|
+
}
|
|
105
|
+
}`,[i,ke]),W=e(`fragment Token on Token {
|
|
106
|
+
__typename
|
|
107
|
+
... on Erc20Token {
|
|
108
|
+
...Erc20Token
|
|
109
|
+
}
|
|
110
|
+
... on NativeToken {
|
|
111
|
+
...NativeToken
|
|
112
|
+
}
|
|
113
|
+
}`,[y,Q]),d=e(`fragment ExchangeAmountWithChange on ExchangeAmountWithChange {
|
|
114
|
+
__typename
|
|
115
|
+
current {
|
|
116
|
+
...ExchangeAmount
|
|
117
|
+
}
|
|
118
|
+
change(window: $timeWindow){
|
|
119
|
+
...PercentNumber
|
|
120
|
+
}
|
|
121
|
+
}`,[p,r]),L=e(`fragment PercentNumberWithChange on PercentNumberWithChange {
|
|
122
|
+
__typename
|
|
123
|
+
current {
|
|
124
|
+
...PercentNumber
|
|
125
|
+
}
|
|
126
|
+
change(window: $timeWindow){
|
|
127
|
+
...PercentNumber
|
|
128
|
+
}
|
|
129
|
+
}`,[r]),R=e(`fragment PaginatedResultInfo on PaginatedResultInfo {
|
|
130
|
+
__typename
|
|
131
|
+
prev
|
|
132
|
+
next
|
|
133
|
+
}`),M=e(`fragment PercentNumberVariation on PercentNumberVariation {
|
|
134
|
+
__typename
|
|
135
|
+
current {
|
|
136
|
+
...PercentNumber
|
|
137
|
+
}
|
|
138
|
+
after {
|
|
139
|
+
...PercentNumber
|
|
140
|
+
}
|
|
141
|
+
}`,[r]),V=e(`fragment ExchangeAmountVariation on ExchangeAmountVariation {
|
|
142
|
+
__typename
|
|
143
|
+
current {
|
|
144
|
+
...ExchangeAmount
|
|
145
|
+
}
|
|
146
|
+
after {
|
|
147
|
+
...ExchangeAmount
|
|
148
|
+
}
|
|
149
|
+
}`,[p]),G=e(`fragment HealthFactorWithChange on HealthFactorWithChange {
|
|
150
|
+
__typename
|
|
151
|
+
current
|
|
152
|
+
change(window: $timeWindow) {
|
|
153
|
+
...PercentNumber
|
|
154
|
+
}
|
|
155
|
+
}`,[r]),ve=e(`fragment HealthFactorVariation on HealthFactorVariation {
|
|
156
|
+
__typename
|
|
157
|
+
current
|
|
158
|
+
after
|
|
159
|
+
}`),He=e(`fragment HealthFactorError on HealthFactorError {
|
|
160
|
+
__typename
|
|
161
|
+
reason
|
|
162
|
+
current
|
|
163
|
+
after
|
|
164
|
+
}`),K=e(`fragment HealthFactorResult on HealthFactorResult {
|
|
165
|
+
__typename
|
|
166
|
+
... on HealthFactorVariation {
|
|
167
|
+
...HealthFactorVariation
|
|
168
|
+
}
|
|
169
|
+
... on HealthFactorError {
|
|
170
|
+
...HealthFactorError
|
|
171
|
+
}
|
|
172
|
+
}`,[ve,He]);var Oe=e(`fragment HubSummary on HubSummary {
|
|
173
|
+
__typename
|
|
174
|
+
totalBorrowed {
|
|
175
|
+
...ExchangeAmountWithChange
|
|
176
|
+
}
|
|
177
|
+
totalBorrowCap {
|
|
178
|
+
...ExchangeAmount
|
|
179
|
+
}
|
|
180
|
+
totalSupplied {
|
|
181
|
+
...ExchangeAmountWithChange
|
|
182
|
+
}
|
|
183
|
+
totalSupplyCap {
|
|
184
|
+
...ExchangeAmount
|
|
185
|
+
}
|
|
186
|
+
utilizationRate {
|
|
187
|
+
...PercentNumber
|
|
188
|
+
}
|
|
189
|
+
}`,[p,d,r]),T=e(`fragment Hub on Hub {
|
|
190
|
+
__typename
|
|
191
|
+
id
|
|
192
|
+
name
|
|
193
|
+
address
|
|
194
|
+
chain {
|
|
195
|
+
...Chain
|
|
196
|
+
}
|
|
197
|
+
summary(currency: $currency) {
|
|
198
|
+
...HubSummary
|
|
199
|
+
}
|
|
200
|
+
}`,[a,Oe]);var Be=e(`fragment HubAssetSummary on HubAssetSummary {
|
|
201
|
+
__typename
|
|
202
|
+
supplied {
|
|
203
|
+
...Erc20Amount
|
|
204
|
+
}
|
|
205
|
+
borrowed {
|
|
206
|
+
...Erc20Amount
|
|
207
|
+
}
|
|
208
|
+
availableLiquidity {
|
|
209
|
+
...Erc20Amount
|
|
210
|
+
}
|
|
211
|
+
supplyApy {
|
|
212
|
+
...PercentNumber
|
|
213
|
+
}
|
|
214
|
+
borrowApy {
|
|
215
|
+
...PercentNumber
|
|
216
|
+
}
|
|
217
|
+
netApy {
|
|
218
|
+
...PercentNumber
|
|
219
|
+
}
|
|
220
|
+
utilizationRate {
|
|
221
|
+
...PercentNumber
|
|
222
|
+
}
|
|
223
|
+
}`,[i,r]),_e=e(`fragment HubAssetSettings on HubAssetSettings {
|
|
224
|
+
__typename
|
|
225
|
+
feeReceiver
|
|
226
|
+
liquidityFee {
|
|
227
|
+
...PercentNumber
|
|
228
|
+
}
|
|
229
|
+
irStrategy
|
|
230
|
+
reinvestmentController
|
|
231
|
+
}`,[r]),$e=e(`fragment HubAssetUserState on HubAssetUserState {
|
|
232
|
+
__typename
|
|
233
|
+
balance {
|
|
234
|
+
...Erc20Amount
|
|
235
|
+
}
|
|
236
|
+
}`,[i]),b=e(`fragment HubAsset on HubAsset {
|
|
237
|
+
__typename
|
|
238
|
+
id
|
|
239
|
+
onchainAssetId
|
|
240
|
+
hub {
|
|
241
|
+
...Hub
|
|
242
|
+
}
|
|
243
|
+
underlying {
|
|
244
|
+
...Erc20Token
|
|
245
|
+
}
|
|
246
|
+
summary {
|
|
247
|
+
...HubAssetSummary
|
|
248
|
+
}
|
|
249
|
+
settings {
|
|
250
|
+
...HubAssetSettings
|
|
251
|
+
}
|
|
252
|
+
userState {
|
|
253
|
+
...HubAssetUserState
|
|
254
|
+
}
|
|
255
|
+
}`,[T,y,Be,_e,$e]);var u=e(`fragment Spoke on Spoke {
|
|
256
|
+
__typename
|
|
257
|
+
id
|
|
258
|
+
name
|
|
259
|
+
address
|
|
260
|
+
chain {
|
|
261
|
+
...Chain
|
|
262
|
+
}
|
|
263
|
+
}`,[a]),Ne=e(`fragment SpokePositionManager on SpokePositionManger {
|
|
264
|
+
__typename
|
|
265
|
+
address
|
|
266
|
+
active
|
|
267
|
+
name
|
|
268
|
+
}`),Y=e(`fragment PaginatedSpokePositionManagerResult on PaginatedSpokePositionManagerResult {
|
|
269
|
+
__typename
|
|
270
|
+
items {
|
|
271
|
+
...SpokePositionManager
|
|
272
|
+
}
|
|
273
|
+
pageInfo {
|
|
274
|
+
...PaginatedResultInfo
|
|
275
|
+
}
|
|
276
|
+
}`,[Ne,R]),De=e(`fragment SpokeUserPositionManager on SpokeUserPositionManager {
|
|
277
|
+
__typename
|
|
278
|
+
address
|
|
279
|
+
approvedOn
|
|
280
|
+
active
|
|
281
|
+
name
|
|
282
|
+
}`),z=e(`fragment PaginatedSpokeUserPositionManagerResult on PaginatedSpokeUserPositionManagerResult {
|
|
283
|
+
__typename
|
|
284
|
+
items {
|
|
285
|
+
...SpokeUserPositionManager
|
|
286
|
+
}
|
|
287
|
+
pageInfo {
|
|
288
|
+
...PaginatedResultInfo
|
|
289
|
+
}
|
|
290
|
+
}`,[De,R]);var Qe=e(`fragment ReserveSettings on ReserveSettings {
|
|
291
|
+
__typename
|
|
292
|
+
collateralFactor {
|
|
293
|
+
...PercentNumber
|
|
294
|
+
}
|
|
295
|
+
maxLiquidationBonus {
|
|
296
|
+
...PercentNumber
|
|
297
|
+
}
|
|
298
|
+
liquidationFee {
|
|
299
|
+
...PercentNumber
|
|
300
|
+
}
|
|
301
|
+
collateralRisk {
|
|
302
|
+
...PercentNumber
|
|
303
|
+
}
|
|
304
|
+
borrowable
|
|
305
|
+
collateral
|
|
306
|
+
suppliable
|
|
307
|
+
latestDynamicConfigKey
|
|
308
|
+
}`,[r]),We=e(`fragment ReserveStatus on ReserveStatus {
|
|
309
|
+
__typename
|
|
310
|
+
frozen
|
|
311
|
+
paused
|
|
312
|
+
active
|
|
313
|
+
}`),Le=e(`fragment ReserveSummary on ReserveSummary {
|
|
314
|
+
__typename
|
|
315
|
+
supplied {
|
|
316
|
+
...Erc20Amount
|
|
317
|
+
}
|
|
318
|
+
borrowed {
|
|
319
|
+
...Erc20Amount
|
|
320
|
+
}
|
|
321
|
+
supplyApy {
|
|
322
|
+
...PercentNumber
|
|
323
|
+
}
|
|
324
|
+
borrowApy {
|
|
325
|
+
...PercentNumber
|
|
326
|
+
}
|
|
327
|
+
}`,[i,r]),Me=e(`fragment ReserveUserState on ReserveUserState {
|
|
328
|
+
__typename
|
|
329
|
+
balance {
|
|
330
|
+
...Erc20Amount
|
|
331
|
+
}
|
|
332
|
+
suppliable {
|
|
333
|
+
...Erc20Amount
|
|
334
|
+
}
|
|
335
|
+
borrowable {
|
|
336
|
+
...Erc20Amount
|
|
337
|
+
}
|
|
338
|
+
borrowApy {
|
|
339
|
+
...PercentNumber
|
|
340
|
+
}
|
|
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 {
|
|
352
|
+
__typename
|
|
353
|
+
id
|
|
354
|
+
onChainId
|
|
355
|
+
spoke {
|
|
356
|
+
...Spoke
|
|
357
|
+
}
|
|
358
|
+
borrowCap
|
|
359
|
+
supplyCap
|
|
360
|
+
chain {
|
|
361
|
+
...Chain
|
|
362
|
+
}
|
|
363
|
+
summary {
|
|
364
|
+
...ReserveSummary
|
|
365
|
+
}
|
|
366
|
+
settings {
|
|
367
|
+
...ReserveSettings
|
|
368
|
+
}
|
|
369
|
+
status {
|
|
370
|
+
...ReserveStatus
|
|
371
|
+
}
|
|
372
|
+
canBorrow
|
|
373
|
+
canSupply
|
|
374
|
+
canUseAsCollateral
|
|
375
|
+
userState {
|
|
376
|
+
...ReserveUserState
|
|
377
|
+
}
|
|
378
|
+
asset {
|
|
379
|
+
...HubAsset
|
|
380
|
+
}
|
|
381
|
+
}`,[u,a,Le,Qe,We,Me,b]),f=e(`fragment ReserveInfo on ReserveInfo {
|
|
382
|
+
__typename
|
|
383
|
+
id
|
|
384
|
+
asset {
|
|
385
|
+
...HubAsset
|
|
386
|
+
}
|
|
387
|
+
}`,[b]);var U=e(`fragment TypeField on TypeField {
|
|
388
|
+
name
|
|
389
|
+
type
|
|
390
|
+
}`),Ve=e(`fragment TypeDefinition on TypeDefinition {
|
|
391
|
+
EIP712Domain {
|
|
392
|
+
...TypeField
|
|
393
|
+
}
|
|
394
|
+
Permit {
|
|
395
|
+
...TypeField
|
|
396
|
+
}
|
|
397
|
+
}`,[U]),k=e(`fragment DomainData on DomainData {
|
|
398
|
+
name
|
|
399
|
+
version
|
|
400
|
+
chainId
|
|
401
|
+
verifyingContract
|
|
402
|
+
}`),Ge=e(`fragment PermitMessageData on PermitMessageData {
|
|
403
|
+
owner
|
|
404
|
+
spender
|
|
405
|
+
value
|
|
406
|
+
nonce
|
|
407
|
+
deadline
|
|
408
|
+
}`),Ke=e(`fragment PermitTypedDataResponse on PermitTypedDataResponse {
|
|
409
|
+
types {
|
|
410
|
+
...TypeDefinition
|
|
411
|
+
}
|
|
412
|
+
primaryType
|
|
413
|
+
domain {
|
|
414
|
+
...DomainData
|
|
415
|
+
}
|
|
416
|
+
message {
|
|
417
|
+
...PermitMessageData
|
|
418
|
+
}
|
|
419
|
+
}`,[Ve,k,Ge]),tr=e(`query PermitTypedData($request: PermitRequest!) {
|
|
420
|
+
value: permitTypedData(request: $request) {
|
|
421
|
+
...PermitTypedDataResponse
|
|
422
|
+
}
|
|
423
|
+
}`,[Ke]);var m=e(`fragment TransactionRequest on TransactionRequest {
|
|
424
|
+
__typename
|
|
425
|
+
to
|
|
426
|
+
from
|
|
427
|
+
data
|
|
428
|
+
value
|
|
429
|
+
chainId
|
|
430
|
+
operations
|
|
431
|
+
}`),O=e(`fragment Erc20ApprovalRequired on Erc20ApprovalRequired {
|
|
432
|
+
__typename
|
|
433
|
+
transaction {
|
|
434
|
+
...TransactionRequest
|
|
435
|
+
}
|
|
436
|
+
reason
|
|
437
|
+
requiredAmount {
|
|
438
|
+
...DecimalNumber
|
|
439
|
+
}
|
|
440
|
+
currentAllowance {
|
|
441
|
+
...DecimalNumber
|
|
442
|
+
}
|
|
443
|
+
originalTransaction {
|
|
444
|
+
...TransactionRequest
|
|
445
|
+
}
|
|
446
|
+
}`,[m,c]),Ye=e(`fragment PreContractActionRequired on PreContractActionRequired {
|
|
447
|
+
__typename
|
|
448
|
+
transaction {
|
|
449
|
+
...TransactionRequest
|
|
450
|
+
}
|
|
451
|
+
reason
|
|
452
|
+
originalTransaction {
|
|
453
|
+
...TransactionRequest
|
|
454
|
+
}
|
|
455
|
+
}`,[m]),h=e(`fragment InsufficientBalanceError on InsufficientBalanceError {
|
|
456
|
+
__typename
|
|
457
|
+
required {
|
|
458
|
+
...DecimalNumber
|
|
459
|
+
}
|
|
460
|
+
available {
|
|
461
|
+
...DecimalNumber
|
|
462
|
+
}
|
|
463
|
+
}`,[c]),E=e(`fragment ExecutionPlan on ExecutionPlan {
|
|
464
|
+
__typename
|
|
465
|
+
... on TransactionRequest {
|
|
466
|
+
...TransactionRequest
|
|
467
|
+
}
|
|
468
|
+
... on Erc20ApprovalRequired {
|
|
469
|
+
...Erc20ApprovalRequired
|
|
470
|
+
}
|
|
471
|
+
... on PreContractActionRequired {
|
|
472
|
+
...PreContractActionRequired
|
|
473
|
+
}
|
|
474
|
+
... on InsufficientBalanceError {
|
|
475
|
+
...InsufficientBalanceError
|
|
476
|
+
}
|
|
477
|
+
}`,[m,O,Ye,h]);var ze=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
478
|
+
__typename
|
|
479
|
+
networkCosts {
|
|
480
|
+
...TokenAmount
|
|
481
|
+
}
|
|
482
|
+
partnerFee {
|
|
483
|
+
...TokenAmount
|
|
484
|
+
}
|
|
485
|
+
}`,[S]),C=e(`fragment SwapQuote on SwapQuote {
|
|
486
|
+
__typename
|
|
487
|
+
quoteId
|
|
488
|
+
suggestedSlippage {
|
|
489
|
+
...PercentNumber
|
|
490
|
+
}
|
|
491
|
+
desiredSell {
|
|
492
|
+
...TokenAmount
|
|
493
|
+
}
|
|
494
|
+
desiredBuy {
|
|
495
|
+
...TokenAmount
|
|
496
|
+
}
|
|
497
|
+
costs {
|
|
498
|
+
...SwapQuoteCosts
|
|
499
|
+
}
|
|
500
|
+
minimumReceived {
|
|
501
|
+
...TokenAmount
|
|
502
|
+
}
|
|
503
|
+
}`,[r,S,ze]),Ze=e(`fragment SwapByIntentTypeDefinition on SwapByIntentTypeDefinition {
|
|
504
|
+
EIP712Domain {
|
|
505
|
+
...TypeField
|
|
506
|
+
}
|
|
507
|
+
Order {
|
|
508
|
+
...TypeField
|
|
509
|
+
}
|
|
510
|
+
}`,[U]),Z=e(`fragment SwapByIntentTypedData on SwapByIntentTypedData {
|
|
511
|
+
__typename
|
|
512
|
+
types {
|
|
513
|
+
...SwapByIntentTypeDefinition
|
|
514
|
+
}
|
|
515
|
+
primaryType
|
|
516
|
+
domain {
|
|
517
|
+
...DomainData
|
|
518
|
+
}
|
|
519
|
+
message
|
|
520
|
+
}`,[Ze,k]),Je=e(`fragment SwapByIntent on SwapByIntent {
|
|
521
|
+
__typename
|
|
522
|
+
quote {
|
|
523
|
+
...SwapQuote
|
|
524
|
+
}
|
|
525
|
+
data {
|
|
526
|
+
...SwapByIntentTypedData
|
|
527
|
+
}
|
|
528
|
+
}`,[C,Z]),je=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
529
|
+
__typename
|
|
530
|
+
approval {
|
|
531
|
+
...TransactionRequest
|
|
532
|
+
}
|
|
533
|
+
quote {
|
|
534
|
+
...SwapQuote
|
|
535
|
+
}
|
|
536
|
+
data {
|
|
537
|
+
...SwapByIntentTypedData
|
|
538
|
+
}
|
|
539
|
+
}`,[m,C,Z]),Xe=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
540
|
+
__typename
|
|
541
|
+
quote {
|
|
542
|
+
...SwapQuote
|
|
543
|
+
}
|
|
544
|
+
}`,[C]),J=e(`fragment SwapReceipt on SwapReceipt {
|
|
545
|
+
__typename
|
|
546
|
+
id
|
|
547
|
+
explorerLink
|
|
548
|
+
createdAt
|
|
549
|
+
}`),j=e(`fragment PrepareSwapResult on PrepareSwapResult {
|
|
550
|
+
__typename
|
|
551
|
+
... on SwapByIntent {
|
|
552
|
+
...SwapByIntent
|
|
553
|
+
}
|
|
554
|
+
... on SwapByIntentWithApprovalRequired {
|
|
555
|
+
...SwapByIntentWithApprovalRequired
|
|
556
|
+
}
|
|
557
|
+
... on SwapByTransaction {
|
|
558
|
+
...SwapByTransaction
|
|
559
|
+
}
|
|
560
|
+
... on InsufficientBalanceError {
|
|
561
|
+
...InsufficientBalanceError
|
|
562
|
+
}
|
|
563
|
+
}`,[Je,je,Xe,h]),X=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
564
|
+
__typename
|
|
565
|
+
transaction {
|
|
566
|
+
...TransactionRequest
|
|
567
|
+
}
|
|
568
|
+
orderReceipt {
|
|
569
|
+
...SwapReceipt
|
|
570
|
+
}
|
|
571
|
+
}`,[m,J]),et=e(`fragment SwapApprovalRequired on SwapApprovalRequired {
|
|
572
|
+
__typename
|
|
573
|
+
approval {
|
|
574
|
+
...TransactionRequest
|
|
575
|
+
}
|
|
576
|
+
originalTransaction {
|
|
577
|
+
...SwapTransactionRequest
|
|
578
|
+
}
|
|
579
|
+
}`,[m,X]),ee=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
580
|
+
__typename
|
|
581
|
+
... on SwapTransactionRequest {
|
|
582
|
+
...SwapTransactionRequest
|
|
583
|
+
}
|
|
584
|
+
... on SwapApprovalRequired {
|
|
585
|
+
...SwapApprovalRequired
|
|
586
|
+
}
|
|
587
|
+
... on InsufficientBalanceError {
|
|
588
|
+
...InsufficientBalanceError
|
|
589
|
+
}
|
|
590
|
+
... on SwapReceipt {
|
|
591
|
+
...SwapReceipt
|
|
592
|
+
}
|
|
593
|
+
}`,[X,et,h,J]),te=e(`fragment SwapCancelled on SwapCancelled {
|
|
594
|
+
__typename
|
|
595
|
+
createdAt
|
|
596
|
+
cancelledAt
|
|
597
|
+
explorerLink
|
|
598
|
+
}`),tt=e(`fragment SwapExpired on SwapExpired {
|
|
599
|
+
__typename
|
|
600
|
+
createdAt
|
|
601
|
+
expiredAt
|
|
602
|
+
explorerLink
|
|
603
|
+
}`),rt=e(`fragment SwapOpen on SwapOpen {
|
|
604
|
+
__typename
|
|
605
|
+
swapId
|
|
606
|
+
createdAt
|
|
607
|
+
deadline
|
|
608
|
+
explorerLink
|
|
609
|
+
desiredSell {
|
|
610
|
+
...TokenAmount
|
|
611
|
+
}
|
|
612
|
+
desiredBuy {
|
|
613
|
+
...TokenAmount
|
|
614
|
+
}
|
|
615
|
+
}`,[S]),nt=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
616
|
+
__typename
|
|
617
|
+
createdAt
|
|
618
|
+
deadline
|
|
619
|
+
explorerLink
|
|
620
|
+
}`),at=e(`fragment SwapFulfilled on SwapFulfilled {
|
|
621
|
+
__typename
|
|
622
|
+
txHash
|
|
623
|
+
desiredSell {
|
|
624
|
+
...TokenAmount
|
|
625
|
+
}
|
|
626
|
+
desiredBuy {
|
|
627
|
+
...TokenAmount
|
|
628
|
+
}
|
|
629
|
+
sold {
|
|
630
|
+
...TokenAmount
|
|
631
|
+
}
|
|
632
|
+
bought {
|
|
633
|
+
...TokenAmount
|
|
634
|
+
}
|
|
635
|
+
createdAt
|
|
636
|
+
fulfilledAt
|
|
637
|
+
explorerLink
|
|
638
|
+
refundTxHash
|
|
639
|
+
}`,[S]),B=e(`fragment SwapStatus on SwapStatus {
|
|
640
|
+
__typename
|
|
641
|
+
... on SwapOpen {
|
|
642
|
+
...SwapOpen
|
|
643
|
+
}
|
|
644
|
+
... on SwapPendingSignature {
|
|
645
|
+
...SwapPendingSignature
|
|
646
|
+
}
|
|
647
|
+
... on SwapCancelled {
|
|
648
|
+
...SwapCancelled
|
|
649
|
+
}
|
|
650
|
+
... on SwapExpired {
|
|
651
|
+
...SwapExpired
|
|
652
|
+
}
|
|
653
|
+
... on SwapFulfilled {
|
|
654
|
+
...SwapFulfilled
|
|
655
|
+
}
|
|
656
|
+
}`,[rt,nt,te,tt,at]),ot=e(`fragment CancelSwapTypeDefinition on CancelSwapTypeDefinition {
|
|
657
|
+
OrderCancellations {
|
|
658
|
+
...TypeField
|
|
659
|
+
}
|
|
660
|
+
EIP712Domain {
|
|
661
|
+
...TypeField
|
|
662
|
+
}
|
|
663
|
+
}`,[U]),st=e(`fragment CancelSwapTypedData on CancelSwapTypedData {
|
|
664
|
+
types {
|
|
665
|
+
...CancelSwapTypeDefinition
|
|
666
|
+
}
|
|
667
|
+
primaryType
|
|
668
|
+
domain {
|
|
669
|
+
...DomainData
|
|
670
|
+
}
|
|
671
|
+
message
|
|
672
|
+
}`,[ot,k]),re=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
673
|
+
__typename
|
|
674
|
+
data {
|
|
675
|
+
...CancelSwapTypedData
|
|
676
|
+
}
|
|
677
|
+
}`,[st]),ne=e(`fragment CancelSwapExecutionPlan on CancelSwapExecutionPlan {
|
|
678
|
+
__typename
|
|
679
|
+
... on TransactionRequest {
|
|
680
|
+
...TransactionRequest
|
|
681
|
+
}
|
|
682
|
+
... on SwapCancelled {
|
|
683
|
+
...SwapCancelled
|
|
684
|
+
}
|
|
685
|
+
}`,[m,te]),ae=e(`fragment PaginatedUserSwapsResult on PaginatedUserSwapsResult {
|
|
686
|
+
__typename
|
|
687
|
+
items {
|
|
688
|
+
...SwapStatus
|
|
689
|
+
}
|
|
690
|
+
pageInfo {
|
|
691
|
+
...PaginatedResultInfo
|
|
692
|
+
}
|
|
693
|
+
}`,[B,R]);var oe=e(`fragment UserSupplyItem on UserSupplyItem {
|
|
694
|
+
__typename
|
|
695
|
+
id
|
|
696
|
+
reserve {
|
|
697
|
+
...Reserve
|
|
698
|
+
}
|
|
699
|
+
interest {
|
|
700
|
+
...Erc20Amount
|
|
701
|
+
}
|
|
702
|
+
principal {
|
|
703
|
+
...Erc20Amount
|
|
704
|
+
}
|
|
705
|
+
withdrawable {
|
|
706
|
+
...Erc20Amount
|
|
707
|
+
}
|
|
708
|
+
isCollateral
|
|
709
|
+
createdAt
|
|
710
|
+
}`,[i,A]),se=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
711
|
+
__typename
|
|
712
|
+
id
|
|
713
|
+
principal {
|
|
714
|
+
...Erc20Amount
|
|
715
|
+
}
|
|
716
|
+
interest {
|
|
717
|
+
...Erc20Amount
|
|
718
|
+
}
|
|
719
|
+
debt {
|
|
720
|
+
...Erc20Amount
|
|
721
|
+
}
|
|
722
|
+
reserve {
|
|
723
|
+
...Reserve
|
|
724
|
+
}
|
|
725
|
+
createdAt
|
|
726
|
+
}`,[i,A]),pe=e(`fragment UserSummary on UserSummary {
|
|
727
|
+
__typename
|
|
728
|
+
totalPositions
|
|
729
|
+
netBalance(currency: $currency) {
|
|
730
|
+
...ExchangeAmountWithChange
|
|
731
|
+
}
|
|
732
|
+
totalCollateral(currency: $currency) {
|
|
733
|
+
...ExchangeAmount
|
|
734
|
+
}
|
|
735
|
+
totalSupplied(currency: $currency) {
|
|
736
|
+
...ExchangeAmount
|
|
737
|
+
}
|
|
738
|
+
totalDebt(currency: $currency) {
|
|
739
|
+
...ExchangeAmount
|
|
740
|
+
}
|
|
741
|
+
netApy {
|
|
742
|
+
...PercentNumber
|
|
743
|
+
}
|
|
744
|
+
netFeeEarned {
|
|
745
|
+
...ExchangeAmount
|
|
746
|
+
}
|
|
747
|
+
lowestHealthFactor
|
|
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 {
|
|
774
|
+
__typename
|
|
775
|
+
id
|
|
776
|
+
spoke {
|
|
777
|
+
...Spoke
|
|
778
|
+
}
|
|
779
|
+
user
|
|
780
|
+
createdAt
|
|
781
|
+
netApy {
|
|
782
|
+
...PercentNumber
|
|
783
|
+
}
|
|
784
|
+
netCollateral(currency: $currency) {
|
|
785
|
+
...ExchangeAmountWithChange
|
|
786
|
+
}
|
|
787
|
+
netBalance(currency: $currency) {
|
|
788
|
+
...ExchangeAmountWithChange
|
|
789
|
+
}
|
|
790
|
+
totalCollateral(currency: $currency) {
|
|
791
|
+
...ExchangeAmountWithChange
|
|
792
|
+
}
|
|
793
|
+
totalSupplied(currency: $currency) {
|
|
794
|
+
...ExchangeAmountWithChange
|
|
795
|
+
}
|
|
796
|
+
totalDebt(currency: $currency) {
|
|
797
|
+
...ExchangeAmountWithChange
|
|
798
|
+
}
|
|
799
|
+
netSupplyApy {
|
|
800
|
+
...PercentNumberWithChange
|
|
801
|
+
}
|
|
802
|
+
netBorrowApy {
|
|
803
|
+
...PercentNumberWithChange
|
|
804
|
+
}
|
|
805
|
+
healthFactor {
|
|
806
|
+
...HealthFactorWithChange
|
|
807
|
+
}
|
|
808
|
+
riskPremium {
|
|
809
|
+
...UserPositionRiskPremium
|
|
810
|
+
}
|
|
811
|
+
liquidationPrice(currency: $currency) {
|
|
812
|
+
...ExchangeAmount
|
|
813
|
+
}
|
|
814
|
+
borrowingPower(currency: $currency) {
|
|
815
|
+
...ExchangeAmount
|
|
816
|
+
}
|
|
817
|
+
canUpdateDynamicConfig
|
|
818
|
+
netBalancePercentChange(window: $timeWindow) {
|
|
819
|
+
...PercentNumber
|
|
820
|
+
}
|
|
821
|
+
averageCollateralFactor {
|
|
822
|
+
...PercentNumber
|
|
823
|
+
}
|
|
824
|
+
}`,[u,r,d,p,L,G,pt]),ie=e(`fragment UserBalance on UserBalance {
|
|
825
|
+
__typename
|
|
826
|
+
id
|
|
827
|
+
info {
|
|
828
|
+
...TokenInfo
|
|
829
|
+
}
|
|
830
|
+
totalAmount {
|
|
831
|
+
...DecimalNumber
|
|
832
|
+
}
|
|
833
|
+
balances {
|
|
834
|
+
...TokenAmount
|
|
835
|
+
}
|
|
836
|
+
exchange(currency: $currency) {
|
|
837
|
+
...ExchangeAmount
|
|
838
|
+
}
|
|
839
|
+
highestSupplyApy: supplyApy(metric: HIGHEST) {
|
|
840
|
+
...PercentNumber
|
|
841
|
+
}
|
|
842
|
+
highestBorrowApy: borrowApy(metric: HIGHEST) {
|
|
843
|
+
...PercentNumber
|
|
844
|
+
}
|
|
845
|
+
lowestSupplyApy: supplyApy(metric: LOWEST) {
|
|
846
|
+
...PercentNumber
|
|
847
|
+
}
|
|
848
|
+
lowestBorrowApy: borrowApy(metric: LOWEST) {
|
|
849
|
+
...PercentNumber
|
|
850
|
+
}
|
|
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 {
|
|
858
|
+
__typename
|
|
859
|
+
netBalance(currency: $currency) {
|
|
860
|
+
...ExchangeAmount
|
|
861
|
+
}
|
|
862
|
+
borrows(currency: $currency) {
|
|
863
|
+
...ExchangeAmount
|
|
864
|
+
}
|
|
865
|
+
supplies(currency: $currency) {
|
|
866
|
+
...ExchangeAmount
|
|
867
|
+
}
|
|
868
|
+
healthFactor
|
|
869
|
+
date
|
|
870
|
+
}`,[p]),N=e(`fragment ApySample on ApySample {
|
|
871
|
+
__typename
|
|
872
|
+
date
|
|
873
|
+
avgRate {
|
|
874
|
+
...PercentNumber
|
|
875
|
+
}
|
|
876
|
+
}`,[r]);var qr=e(`query Hub($request: HubRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
877
|
+
value: hub(request: $request) {
|
|
878
|
+
...Hub
|
|
879
|
+
}
|
|
880
|
+
}`,[T]),xr=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
881
|
+
value: hubs(request: $request) {
|
|
882
|
+
...Hub
|
|
883
|
+
}
|
|
884
|
+
}`,[T]),Ar=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
885
|
+
value: hubAssets(request: $request) {
|
|
886
|
+
...HubAsset
|
|
887
|
+
}
|
|
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!) {
|
|
908
|
+
value: chain(request: $request) {
|
|
909
|
+
...Chain
|
|
910
|
+
}
|
|
911
|
+
}`,[a]),Zr=e(`query Chains($request: ChainsRequest!) {
|
|
912
|
+
value: chains(request: $request) {
|
|
913
|
+
...Chain
|
|
914
|
+
}
|
|
915
|
+
}`,[a]),Jr=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
916
|
+
value: hasProcessedKnownTransaction(request: $request)
|
|
917
|
+
}`),jr=e(`query Health {
|
|
918
|
+
value: health
|
|
919
|
+
}`),Xr=e(`query ExchangeRate($request: ExchangeRateRequest!) {
|
|
920
|
+
value: exchangeRate(request: $request) {
|
|
921
|
+
...ExchangeAmount
|
|
922
|
+
}
|
|
923
|
+
}`,[p]);var yt=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
924
|
+
__typename
|
|
925
|
+
date
|
|
926
|
+
price
|
|
927
|
+
}`),ct=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
928
|
+
__typename
|
|
929
|
+
date
|
|
930
|
+
amount {
|
|
931
|
+
...DecimalNumber
|
|
932
|
+
}
|
|
933
|
+
highestApy {
|
|
934
|
+
...PercentNumber
|
|
935
|
+
}
|
|
936
|
+
lowestApy {
|
|
937
|
+
...PercentNumber
|
|
938
|
+
}
|
|
939
|
+
}`,[c,r]),gt=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
940
|
+
__typename
|
|
941
|
+
date
|
|
942
|
+
amount {
|
|
943
|
+
...DecimalNumber
|
|
944
|
+
}
|
|
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 {
|
|
960
|
+
__typename
|
|
961
|
+
totalSupplyCap {
|
|
962
|
+
...DecimalNumberWithChange
|
|
963
|
+
}
|
|
964
|
+
totalSupplied {
|
|
965
|
+
...AssetAmountWithChange
|
|
966
|
+
}
|
|
967
|
+
totalSuppliable {
|
|
968
|
+
...AssetAmountWithChange
|
|
969
|
+
}
|
|
970
|
+
totalBorrowCap {
|
|
971
|
+
...DecimalNumberWithChange
|
|
972
|
+
}
|
|
973
|
+
totalBorrowed {
|
|
974
|
+
...AssetAmountWithChange
|
|
975
|
+
}
|
|
976
|
+
totalBorrowable {
|
|
977
|
+
...AssetAmountWithChange
|
|
978
|
+
}
|
|
979
|
+
averageBorrowApy: borrowApy(metric: AVERAGE) {
|
|
980
|
+
...PercentNumber
|
|
981
|
+
}
|
|
982
|
+
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
983
|
+
...PercentNumber
|
|
984
|
+
}
|
|
985
|
+
}`,[lt,H,r]),ft=e(`fragment Asset on Asset {
|
|
986
|
+
__typename
|
|
987
|
+
id
|
|
988
|
+
token {
|
|
989
|
+
...Erc20Token
|
|
990
|
+
}
|
|
991
|
+
summary {
|
|
992
|
+
...AssetSummary
|
|
993
|
+
}
|
|
994
|
+
price(currency: $currency) {
|
|
995
|
+
...ExchangeAmountWithChange
|
|
996
|
+
}
|
|
997
|
+
}`,[y,dt,d]),nn=e(`query Asset($request: AssetRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
998
|
+
value: asset(request: $request) {
|
|
999
|
+
...Asset
|
|
1000
|
+
}
|
|
1001
|
+
}`,[ft]),an=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
1002
|
+
value: assetPriceHistory(request: $request) {
|
|
1003
|
+
...AssetPriceSample
|
|
1004
|
+
}
|
|
1005
|
+
}`,[yt]),on=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!) {
|
|
1006
|
+
value: assetSupplyHistory(request: $request) {
|
|
1007
|
+
...AssetSupplySample
|
|
1008
|
+
}
|
|
1009
|
+
}`,[ct]),sn=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!) {
|
|
1010
|
+
value: assetBorrowHistory(request: $request) {
|
|
1011
|
+
...AssetBorrowSample
|
|
1012
|
+
}
|
|
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!) {
|
|
1027
|
+
value: borrowApyHistory(request: $request) {
|
|
1028
|
+
...ApySample
|
|
1029
|
+
}
|
|
1030
|
+
}`,[N]),gn=e(`query SupplyApyHistory($request: SupplyApyHistoryRequest!) {
|
|
1031
|
+
value: supplyApyHistory(request: $request) {
|
|
1032
|
+
...ApySample
|
|
1033
|
+
}
|
|
1034
|
+
}`,[N]),ln=e(`query Reserve($request: ReserveRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1035
|
+
value: reserve(request: $request) {
|
|
1036
|
+
...Reserve
|
|
1037
|
+
}
|
|
1038
|
+
}`,[A]),dn=e(`query Reserves($request: ReservesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1039
|
+
value: reserves(request: $request) {
|
|
1040
|
+
...Reserve
|
|
1041
|
+
}
|
|
1042
|
+
}`,[A]);var qn=e(`query Spoke($request: SpokeRequest!) {
|
|
1043
|
+
value: spoke(request: $request) {
|
|
1044
|
+
...Spoke
|
|
1045
|
+
}
|
|
1046
|
+
}`,[u]),xn=e(`query Spokes($request: SpokesRequest!) {
|
|
1047
|
+
value: spokes(request: $request) {
|
|
1048
|
+
...Spoke
|
|
1049
|
+
}
|
|
1050
|
+
}`,[u]),An=e(`query SpokePositionManagers($request: SpokePositionManagersRequest!) {
|
|
1051
|
+
value: spokePositionManagers(request: $request) {
|
|
1052
|
+
...PaginatedSpokePositionManagerResult
|
|
1053
|
+
}
|
|
1054
|
+
}`,[Y]),hn=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
1055
|
+
value: spokeUserPositionManagers(request: $request) {
|
|
1056
|
+
...PaginatedSpokeUserPositionManagerResult
|
|
1057
|
+
}
|
|
1058
|
+
}`,[z]);var wn=e(`query SwapQuote($request: SwapQuoteRequest!, $currency: Currency!) {
|
|
1059
|
+
value: swapQuote(request: $request) {
|
|
1060
|
+
...SwapQuote
|
|
1061
|
+
}
|
|
1062
|
+
}`,[C]),Tn=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
1063
|
+
value: swappableTokens(request: $request) {
|
|
1064
|
+
...Token
|
|
1065
|
+
}
|
|
1066
|
+
}`,[W]),bn=e(`query PrepareSwap($request: PrepareSwapRequest!, $currency: Currency!) {
|
|
1067
|
+
value: prepareSwap(request: $request) {
|
|
1068
|
+
...PrepareSwapResult
|
|
1069
|
+
}
|
|
1070
|
+
}`,[j]),En=e(`query SwapStatus($request: SwapStatusRequest!, $currency: Currency!) {
|
|
1071
|
+
value: swapStatus(request: $request) {
|
|
1072
|
+
...SwapStatus
|
|
1073
|
+
}
|
|
1074
|
+
}`,[B]),Cn=e(`query Swap($request: SwapRequest!) {
|
|
1075
|
+
value: swap(request: $request) {
|
|
1076
|
+
...SwapExecutionPlan
|
|
1077
|
+
}
|
|
1078
|
+
}`,[ee]),Un=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
1079
|
+
value: prepareSwapCancel(request: $request) {
|
|
1080
|
+
...PrepareSwapCancelResult
|
|
1081
|
+
}
|
|
1082
|
+
}`,[re]),kn=e(`query CancelSwap($request: CancelSwapRequest!) {
|
|
1083
|
+
value: cancelSwap(request: $request) {
|
|
1084
|
+
...CancelSwapExecutionPlan
|
|
1085
|
+
}
|
|
1086
|
+
}`,[ne]),vn=e(`query UserSwaps($request: UserSwapsRequest!, $currency: Currency!) {
|
|
1087
|
+
value: userSwaps(request: $request) {
|
|
1088
|
+
...PaginatedUserSwapsResult
|
|
1089
|
+
}
|
|
1090
|
+
}`,[ae]);var _n=e(`query Borrow($request: BorrowRequest!) {
|
|
1091
|
+
value: borrow(request: $request) {
|
|
1092
|
+
...ExecutionPlan
|
|
1093
|
+
}
|
|
1094
|
+
}`,[E]),$n=e(`query Supply($request: SupplyRequest!) {
|
|
1095
|
+
value: supply(request: $request) {
|
|
1096
|
+
...ExecutionPlan
|
|
1097
|
+
}
|
|
1098
|
+
}`,[E]),Nn=e(`query Repay($request: RepayRequest!) {
|
|
1099
|
+
value: repay(request: $request) {
|
|
1100
|
+
...ExecutionPlan
|
|
1101
|
+
}
|
|
1102
|
+
}`,[E]),Dn=e(`query Withdraw($request: WithdrawRequest!) {
|
|
1103
|
+
value: withdraw(request: $request) {
|
|
1104
|
+
...ExecutionPlan
|
|
1105
|
+
}
|
|
1106
|
+
}`,[E]),Rt=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1107
|
+
__typename
|
|
1108
|
+
... on TransactionRequest {
|
|
1109
|
+
...TransactionRequest
|
|
1110
|
+
}
|
|
1111
|
+
... on Erc20ApprovalRequired {
|
|
1112
|
+
...Erc20ApprovalRequired
|
|
1113
|
+
}
|
|
1114
|
+
... on InsufficientBalanceError {
|
|
1115
|
+
...InsufficientBalanceError
|
|
1116
|
+
}
|
|
1117
|
+
}`,[m,O,h]),Qn=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1118
|
+
value: liquidatePosition(request: $request) {
|
|
1119
|
+
...LiquidatePositionExecutionPlan
|
|
1120
|
+
}
|
|
1121
|
+
}`,[Rt]),Wn=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1122
|
+
value: setSpokeUserPositionManager(request: $request) {
|
|
1123
|
+
...TransactionRequest
|
|
1124
|
+
}
|
|
1125
|
+
}`,[m]),Ln=e(`query SetUserSuppliesAsCollateral($request: SetUserSuppliesAsCollateralRequest!) {
|
|
1126
|
+
value: setUserSuppliesAsCollateral(request: $request) {
|
|
1127
|
+
...TransactionRequest
|
|
1128
|
+
}
|
|
1129
|
+
}`,[m]),Mn=e(`query RenounceSpokeUserPositionManager($request: RenounceSpokeUserPositionManagerRequest!) {
|
|
1130
|
+
value: renounceSpokeUserPositionManager(request: $request) {
|
|
1131
|
+
...TransactionRequest
|
|
1132
|
+
}
|
|
1133
|
+
}`,[m]),Vn=e(`query UpdateUserPositionConditions($request: UpdateUserPositionConditionsRequest!) {
|
|
1134
|
+
value: updateUserPositionConditions(request: $request) {
|
|
1135
|
+
...TransactionRequest
|
|
1136
|
+
}
|
|
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 {
|
|
1185
|
+
__typename
|
|
1186
|
+
id
|
|
1187
|
+
healthFactor {
|
|
1188
|
+
...HealthFactorResult
|
|
1189
|
+
}
|
|
1190
|
+
netApy {
|
|
1191
|
+
...PercentNumberVariation
|
|
1192
|
+
}
|
|
1193
|
+
riskPremium {
|
|
1194
|
+
...PercentNumberVariation
|
|
1195
|
+
}
|
|
1196
|
+
netCollateral(currency: $currency) {
|
|
1197
|
+
...ExchangeAmountVariation
|
|
1198
|
+
}
|
|
1199
|
+
netBalance(currency: $currency) {
|
|
1200
|
+
...ExchangeAmountVariation
|
|
1201
|
+
}
|
|
1202
|
+
projectedEarnings(period: ANNUAL) {
|
|
1203
|
+
...ExchangeAmountVariation
|
|
1204
|
+
}
|
|
1205
|
+
borrowingPower {
|
|
1206
|
+
...ExchangeAmountVariation
|
|
1207
|
+
}
|
|
1208
|
+
otherConditions {
|
|
1209
|
+
...UserPositionConditionVariation
|
|
1210
|
+
}
|
|
1211
|
+
}`,[K,M,V,ht]),Gn=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD) {
|
|
1212
|
+
value: preview(request: $request) {
|
|
1213
|
+
...PreviewUserPosition
|
|
1214
|
+
}
|
|
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 {
|
|
1224
|
+
__typename
|
|
1225
|
+
id
|
|
1226
|
+
user
|
|
1227
|
+
timestamp
|
|
1228
|
+
txHash
|
|
1229
|
+
spoke {
|
|
1230
|
+
...Spoke
|
|
1231
|
+
}
|
|
1232
|
+
reserve {
|
|
1233
|
+
...ReserveInfo
|
|
1234
|
+
}
|
|
1235
|
+
borrowed {
|
|
1236
|
+
...Erc20Amount
|
|
1237
|
+
}
|
|
1238
|
+
chain {
|
|
1239
|
+
...Chain
|
|
1240
|
+
}
|
|
1241
|
+
}`,[u,i,f,a]),It=e(`fragment SupplyActivity on SupplyActivity {
|
|
1242
|
+
__typename
|
|
1243
|
+
id
|
|
1244
|
+
user
|
|
1245
|
+
timestamp
|
|
1246
|
+
txHash
|
|
1247
|
+
spoke {
|
|
1248
|
+
...Spoke
|
|
1249
|
+
}
|
|
1250
|
+
reserve {
|
|
1251
|
+
...ReserveInfo
|
|
1252
|
+
}
|
|
1253
|
+
supplied {
|
|
1254
|
+
...Erc20Amount
|
|
1255
|
+
}
|
|
1256
|
+
chain {
|
|
1257
|
+
...Chain
|
|
1258
|
+
}
|
|
1259
|
+
}`,[u,i,f,a]),wt=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1260
|
+
__typename
|
|
1261
|
+
id
|
|
1262
|
+
user
|
|
1263
|
+
timestamp
|
|
1264
|
+
txHash
|
|
1265
|
+
spoke {
|
|
1266
|
+
...Spoke
|
|
1267
|
+
}
|
|
1268
|
+
reserve {
|
|
1269
|
+
...ReserveInfo
|
|
1270
|
+
}
|
|
1271
|
+
withdrawn {
|
|
1272
|
+
...Erc20Amount
|
|
1273
|
+
}
|
|
1274
|
+
chain {
|
|
1275
|
+
...Chain
|
|
1276
|
+
}
|
|
1277
|
+
}`,[u,i,f,a]),Tt=e(`fragment RepayActivity on RepayActivity {
|
|
1278
|
+
__typename
|
|
1279
|
+
id
|
|
1280
|
+
user
|
|
1281
|
+
timestamp
|
|
1282
|
+
txHash
|
|
1283
|
+
spoke {
|
|
1284
|
+
...Spoke
|
|
1285
|
+
}
|
|
1286
|
+
reserve {
|
|
1287
|
+
...ReserveInfo
|
|
1288
|
+
}
|
|
1289
|
+
repaid {
|
|
1290
|
+
...Erc20Amount
|
|
1291
|
+
}
|
|
1292
|
+
chain {
|
|
1293
|
+
...Chain
|
|
1294
|
+
}
|
|
1295
|
+
}`,[u,i,f,a]),bt=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1296
|
+
__typename
|
|
1297
|
+
id
|
|
1298
|
+
user
|
|
1299
|
+
timestamp
|
|
1300
|
+
txHash
|
|
1301
|
+
spoke {
|
|
1302
|
+
...Spoke
|
|
1303
|
+
}
|
|
1304
|
+
collateralReserve {
|
|
1305
|
+
...ReserveInfo
|
|
1306
|
+
}
|
|
1307
|
+
debtReserve {
|
|
1308
|
+
...ReserveInfo
|
|
1309
|
+
}
|
|
1310
|
+
collateral {
|
|
1311
|
+
...Erc20Amount
|
|
1312
|
+
}
|
|
1313
|
+
debt {
|
|
1314
|
+
...Erc20Amount
|
|
1315
|
+
}
|
|
1316
|
+
liquidator
|
|
1317
|
+
chain {
|
|
1318
|
+
...Chain
|
|
1319
|
+
}
|
|
1320
|
+
}`,[u,i,f,a]),Et=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1321
|
+
__typename
|
|
1322
|
+
id
|
|
1323
|
+
user
|
|
1324
|
+
timestamp
|
|
1325
|
+
txHash
|
|
1326
|
+
spoke {
|
|
1327
|
+
...Spoke
|
|
1328
|
+
}
|
|
1329
|
+
reserve {
|
|
1330
|
+
...ReserveInfo
|
|
1331
|
+
}
|
|
1332
|
+
enabledAsCollateral
|
|
1333
|
+
chain {
|
|
1334
|
+
...Chain
|
|
1335
|
+
}
|
|
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 {
|
|
1376
|
+
__typename
|
|
1377
|
+
... on BorrowActivity {
|
|
1378
|
+
...BorrowActivity
|
|
1379
|
+
}
|
|
1380
|
+
... on SupplyActivity {
|
|
1381
|
+
...SupplyActivity
|
|
1382
|
+
}
|
|
1383
|
+
... on WithdrawActivity {
|
|
1384
|
+
...WithdrawActivity
|
|
1385
|
+
}
|
|
1386
|
+
... on RepayActivity {
|
|
1387
|
+
...RepayActivity
|
|
1388
|
+
}
|
|
1389
|
+
... on LiquidatedActivity {
|
|
1390
|
+
...LiquidatedActivity
|
|
1391
|
+
}
|
|
1392
|
+
... on UsingAsCollateralActivity {
|
|
1393
|
+
...UsingAsCollateralActivity
|
|
1394
|
+
}
|
|
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 {
|
|
1402
|
+
__typename
|
|
1403
|
+
items {
|
|
1404
|
+
...ActivityItem
|
|
1405
|
+
}
|
|
1406
|
+
pageInfo {
|
|
1407
|
+
...PaginatedResultInfo
|
|
1408
|
+
}
|
|
1409
|
+
}`,[kt,R]),Kn=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1410
|
+
value: activities(request: $request) {
|
|
1411
|
+
...PaginatedActivitiesResult
|
|
1412
|
+
}
|
|
1413
|
+
}`,[vt]);var Jn=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1414
|
+
value: userSupplies(request: $request) {
|
|
1415
|
+
...UserSupplyItem
|
|
1416
|
+
}
|
|
1417
|
+
}`,[oe]),jn=e(`query UserBorrows($request: UserBorrowsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1418
|
+
value: userBorrows(request: $request) {
|
|
1419
|
+
...UserBorrowItem
|
|
1420
|
+
}
|
|
1421
|
+
}`,[se]),Xn=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1422
|
+
value: userSummary(request: $request) {
|
|
1423
|
+
...UserSummary
|
|
1424
|
+
}
|
|
1425
|
+
}`,[pe]),ea=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1426
|
+
value: userPositions(request: $request) {
|
|
1427
|
+
...UserPosition
|
|
1428
|
+
}
|
|
1429
|
+
}`,[$]),ta=e(`query UserPosition($request: UserPositionRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1430
|
+
value: userPosition(request: $request) {
|
|
1431
|
+
...UserPosition
|
|
1432
|
+
}
|
|
1433
|
+
}`,[$]),ra=e(`query UserBalances($request: UserBalancesRequest!, $currency: Currency!) {
|
|
1434
|
+
value: userBalances(request: $request) {
|
|
1435
|
+
...UserBalance
|
|
1436
|
+
}
|
|
1437
|
+
}`,[ie]),na=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1438
|
+
value: userSummaryHistory(request: $request) {
|
|
1439
|
+
...UserSummaryHistoryItem
|
|
1440
|
+
}
|
|
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
|
|
1446
|
+
//# sourceMappingURL=index.cjs.map
|