@aave/graphql 1.0.0-next.9 → 1.0.1
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 +1069 -312
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +192144 -24028
- package/dist/index.d.ts +192144 -24028
- package/dist/index.js +1069 -312
- 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 +88 -0
- package/dist/schema.d.ts +88 -0
- package/dist/schema.js +1 -1
- package/dist/schema.js.map +1 -1
- package/dist/testing.d.ts +36880 -0
- package/dist/testing.js +3 -0
- package/dist/testing.js.map +1 -0
- package/package.json +8 -9
- package/dist/test-utils.cjs +0 -2215
- 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 -2215
- package/dist/test-utils.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isValidHexString,isObject}from'@aave/types';var
|
|
1
|
+
import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isValidHexString,isObject}from'@aave/types';var We=(r=>(r.Asc="ASC",r.Desc="DESC",r))(We||{}),He=(r=>(r.Ten="TEN",r.Fifty="FIFTY",r))(He||{}),Ve=(F=>(F.LastDay="LAST_DAY",F.LastWeek="LAST_WEEK",F.LastMonth="LAST_MONTH",F.LastSixMonths="LAST_SIX_MONTHS",F.LastYear="LAST_YEAR",F.All="ALL",F))(Ve||{}),Me=(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))(Me||{}),$e=(n=>(n.TESTNET_ONLY="TESTNET_ONLY",n.MAINNET_ONLY="MAINNET_ONLY",n.ALL="ALL",n))($e||{}),Ne=(g=>(g.Borrow="BORROW",g.Supply="SUPPLY",g.Withdraw="WITHDRAW",g.Repay="REPAY",g.Liquidated="LIQUIDATED",g.SetAsCollateral="SET_AS_COLLATERAL",g.UpdatedDynamicConfig="UPDATED_DYNAMIC_CONFIG",g.UpdatedRiskPremium="UPDATED_RISK_PREMIUM",g.TokenToTokenSwap="TOKEN_TO_TOKEN_SWAP",g.SupplySwap="SUPPLY_SWAP",g.BorrowSwap="BORROW_SWAP",g.RepayWithSupply="REPAY_WITH_SUPPLY",g.WithdrawSwap="WITHDRAW_SWAP",g))(Ne||{}),De=(n=>(n.Highest="HIGHEST",n.Lowest="LOWEST",n.Average="AVERAGE",n))(De||{}),Le=(r=>(r.Highest="HIGHEST",r.Lowest="LOWEST",r))(Le||{}),Ge=(n=>(n.Usd="USD",n.Eur="EUR",n.Gbp="GBP",n))(Ge||{}),Ke=(P=>(P.Supply="SUPPLY",P.Borrow="BORROW",P.Collateral="COLLATERAL",P.All="ALL",P))(Ke||{}),Ye=(r=>(r.Current="CURRENT",r.New="NEW",r))(Ye||{}),ze=(r=>(r.Repay="REPAY",r.Supply="SUPPLY",r))(ze||{}),Ze=(n=>(n.Ready="READY",n.Pending="PENDING",n.Unknown="UNKNOWN",n))(Ze||{}),je=(r=>(r.Current="CURRENT",r.New="NEW",r))(je||{}),Je=(r=>(r.Withdraw="WITHDRAW",r.Buy="BUY",r))(Je||{}),Xe=(k=>(k.Cancelled="CANCELLED",k.Expired="EXPIRED",k.Fulfilled="FULFILLED",k.Open="OPEN",k.PendingSignature="PENDING_SIGNATURE",k))(Xe||{}),et=(r=>(r.Stablecoin="STABLECOIN",r.EthCorrelated="ETH_CORRELATED",r))(et||{}),tt=(r=>(r.Pending="PENDING",r.Done="DONE",r))(tt||{}),rt=(r=>(r.AllDynamicConfig="ALL_DYNAMIC_CONFIG",r.JustRiskPremium="JUST_RISK_PREMIUM",r))(rt||{}),at=(r=>(r.Fast="FAST",r.Accurate="ACCURATE",r))(at||{}),nt=(r=>(r.Market="MARKET",r.Limit="LIMIT",r))(nt||{}),ot=(n=>(n.Fulfilled="FULFILLED",n.Cancelled="CANCELLED",n.Expired="EXPIRED",n))(ot||{}),pt=(r=>(r.Buy="BUY",r.Sell="SELL",r))(pt||{});var e=initGraphQLTada();var V=e(`fragment DomainData on DomainData {
|
|
2
|
+
name
|
|
3
|
+
version
|
|
4
|
+
chainId
|
|
5
|
+
verifyingContract
|
|
6
|
+
}`),y=e(`fragment DecimalNumber on DecimalNumber {
|
|
2
7
|
__typename
|
|
3
8
|
onChainValue
|
|
4
9
|
decimals
|
|
5
10
|
value
|
|
6
|
-
}`),
|
|
11
|
+
}`),a=e(`fragment PercentNumber on PercentNumber {
|
|
7
12
|
__typename
|
|
8
13
|
onChainValue
|
|
9
14
|
decimals
|
|
10
15
|
value
|
|
11
16
|
normalized
|
|
12
|
-
}`),
|
|
17
|
+
}`),j=e(`fragment DecimalNumberWithChange on DecimalNumberWithChange {
|
|
13
18
|
__typename
|
|
14
19
|
current {
|
|
15
20
|
...DecimalNumber
|
|
@@ -17,14 +22,14 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
17
22
|
change(window: $timeWindow) {
|
|
18
23
|
...PercentNumber
|
|
19
24
|
}
|
|
20
|
-
}`,[
|
|
25
|
+
}`,[y,a]),m=e(`fragment ExchangeAmount on ExchangeAmount {
|
|
21
26
|
__typename
|
|
22
27
|
value
|
|
23
28
|
name
|
|
24
29
|
symbol
|
|
25
30
|
icon
|
|
26
31
|
decimals
|
|
27
|
-
}`),
|
|
32
|
+
}`),v=e(`fragment TokenInfo on TokenInfo {
|
|
28
33
|
__typename
|
|
29
34
|
id
|
|
30
35
|
name
|
|
@@ -32,7 +37,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
32
37
|
icon
|
|
33
38
|
decimals
|
|
34
39
|
categories
|
|
35
|
-
}`),
|
|
40
|
+
}`),o=e(`fragment Chain on Chain {
|
|
36
41
|
__typename
|
|
37
42
|
name
|
|
38
43
|
icon
|
|
@@ -47,7 +52,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
47
52
|
nativeInfo {
|
|
48
53
|
...TokenInfo
|
|
49
54
|
}
|
|
50
|
-
}`,[
|
|
55
|
+
}`,[v]),s=e(`fragment Erc20Token on Erc20Token {
|
|
51
56
|
__typename
|
|
52
57
|
info {
|
|
53
58
|
...TokenInfo
|
|
@@ -57,8 +62,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
57
62
|
...Chain
|
|
58
63
|
}
|
|
59
64
|
isWrappedNativeToken
|
|
60
|
-
|
|
61
|
-
}`,[I,a]),Q=e(`fragment NativeToken on NativeToken {
|
|
65
|
+
}`,[v,o]),J=e(`fragment NativeToken on NativeToken {
|
|
62
66
|
__typename
|
|
63
67
|
info {
|
|
64
68
|
...TokenInfo
|
|
@@ -66,7 +70,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
66
70
|
chain {
|
|
67
71
|
...Chain
|
|
68
72
|
}
|
|
69
|
-
}`,[
|
|
73
|
+
}`,[v,o]),u=e(`fragment Erc20Amount on Erc20Amount {
|
|
70
74
|
__typename
|
|
71
75
|
token {
|
|
72
76
|
...Erc20Token
|
|
@@ -80,7 +84,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
80
84
|
exchangeRate(currency: $currency){
|
|
81
85
|
...DecimalNumber
|
|
82
86
|
}
|
|
83
|
-
}`,[y,
|
|
87
|
+
}`,[s,y,m]),it=e(`fragment NativeAmount on NativeAmount {
|
|
84
88
|
__typename
|
|
85
89
|
token {
|
|
86
90
|
...NativeToken
|
|
@@ -94,7 +98,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
94
98
|
exchangeRate(currency: $currency){
|
|
95
99
|
...DecimalNumber
|
|
96
100
|
}
|
|
97
|
-
}`,[
|
|
101
|
+
}`,[J,y,m]),S=e(`fragment TokenAmount on TokenAmount {
|
|
98
102
|
__typename
|
|
99
103
|
... on Erc20Amount {
|
|
100
104
|
...Erc20Amount
|
|
@@ -102,7 +106,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
102
106
|
... on NativeAmount {
|
|
103
107
|
...NativeAmount
|
|
104
108
|
}
|
|
105
|
-
}`,[
|
|
109
|
+
}`,[u,it]),X=e(`fragment Token on Token {
|
|
106
110
|
__typename
|
|
107
111
|
... on Erc20Token {
|
|
108
112
|
...Erc20Token
|
|
@@ -110,7 +114,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
110
114
|
... on NativeToken {
|
|
111
115
|
...NativeToken
|
|
112
116
|
}
|
|
113
|
-
}`,[
|
|
117
|
+
}`,[s,J]),h=e(`fragment ExchangeAmountWithChange on ExchangeAmountWithChange {
|
|
114
118
|
__typename
|
|
115
119
|
current {
|
|
116
120
|
...ExchangeAmount
|
|
@@ -118,7 +122,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
118
122
|
change(window: $timeWindow){
|
|
119
123
|
...PercentNumber
|
|
120
124
|
}
|
|
121
|
-
}`,[
|
|
125
|
+
}`,[m,a]),ee=e(`fragment PercentNumberWithChange on PercentNumberWithChange {
|
|
122
126
|
__typename
|
|
123
127
|
current {
|
|
124
128
|
...PercentNumber
|
|
@@ -126,11 +130,11 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
126
130
|
change(window: $timeWindow){
|
|
127
131
|
...PercentNumber
|
|
128
132
|
}
|
|
129
|
-
}`,[
|
|
133
|
+
}`,[a]),R=e(`fragment PaginatedResultInfo on PaginatedResultInfo {
|
|
130
134
|
__typename
|
|
131
135
|
prev
|
|
132
136
|
next
|
|
133
|
-
}`),
|
|
137
|
+
}`),te=e(`fragment PercentNumberVariation on PercentNumberVariation {
|
|
134
138
|
__typename
|
|
135
139
|
current {
|
|
136
140
|
...PercentNumber
|
|
@@ -138,7 +142,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
138
142
|
after {
|
|
139
143
|
...PercentNumber
|
|
140
144
|
}
|
|
141
|
-
}`,[
|
|
145
|
+
}`,[a]),re=e(`fragment ExchangeAmountVariation on ExchangeAmountVariation {
|
|
142
146
|
__typename
|
|
143
147
|
current {
|
|
144
148
|
...ExchangeAmount
|
|
@@ -146,22 +150,22 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
146
150
|
after {
|
|
147
151
|
...ExchangeAmount
|
|
148
152
|
}
|
|
149
|
-
}`,[
|
|
153
|
+
}`,[m]),ae=e(`fragment HealthFactorWithChange on HealthFactorWithChange {
|
|
150
154
|
__typename
|
|
151
155
|
current
|
|
152
156
|
change(window: $timeWindow) {
|
|
153
157
|
...PercentNumber
|
|
154
158
|
}
|
|
155
|
-
}`,[
|
|
159
|
+
}`,[a]),ut=e(`fragment HealthFactorVariation on HealthFactorVariation {
|
|
156
160
|
__typename
|
|
157
161
|
current
|
|
158
162
|
after
|
|
159
|
-
}`),
|
|
163
|
+
}`),mt=e(`fragment HealthFactorError on HealthFactorError {
|
|
160
164
|
__typename
|
|
161
165
|
reason
|
|
162
166
|
current
|
|
163
167
|
after
|
|
164
|
-
}`),
|
|
168
|
+
}`),ne=e(`fragment HealthFactorResult on HealthFactorResult {
|
|
165
169
|
__typename
|
|
166
170
|
... on HealthFactorVariation {
|
|
167
171
|
...HealthFactorVariation
|
|
@@ -169,7 +173,18 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
169
173
|
... on HealthFactorError {
|
|
170
174
|
...HealthFactorError
|
|
171
175
|
}
|
|
172
|
-
}`,[
|
|
176
|
+
}`,[ut,mt]),f=e(`fragment InsufficientBalanceError on InsufficientBalanceError {
|
|
177
|
+
__typename
|
|
178
|
+
required {
|
|
179
|
+
...DecimalNumber
|
|
180
|
+
}
|
|
181
|
+
available {
|
|
182
|
+
...DecimalNumber
|
|
183
|
+
}
|
|
184
|
+
}`,[y]),b=e(`fragment InsufficientLiquidityError on InsufficientLiquidityError {
|
|
185
|
+
__typename
|
|
186
|
+
reason
|
|
187
|
+
}`);var lt=e(`fragment HubSummary on HubSummary {
|
|
173
188
|
__typename
|
|
174
189
|
totalBorrowed {
|
|
175
190
|
...ExchangeAmountWithChange
|
|
@@ -186,7 +201,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
186
201
|
utilizationRate {
|
|
187
202
|
...PercentNumber
|
|
188
203
|
}
|
|
189
|
-
}`,[
|
|
204
|
+
}`,[m,h,a]),A=e(`fragment Hub on Hub {
|
|
190
205
|
__typename
|
|
191
206
|
id
|
|
192
207
|
name
|
|
@@ -197,7 +212,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
197
212
|
summary(currency: $currency) {
|
|
198
213
|
...HubSummary
|
|
199
214
|
}
|
|
200
|
-
}`,[
|
|
215
|
+
}`,[o,lt]);var yt=e(`fragment HubAssetSummary on HubAssetSummary {
|
|
201
216
|
__typename
|
|
202
217
|
supplied {
|
|
203
218
|
...Erc20Amount
|
|
@@ -220,7 +235,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
220
235
|
utilizationRate {
|
|
221
236
|
...PercentNumber
|
|
222
237
|
}
|
|
223
|
-
}`,[
|
|
238
|
+
}`,[u,a]),ct=e(`fragment HubAssetSettings on HubAssetSettings {
|
|
224
239
|
__typename
|
|
225
240
|
feeReceiver
|
|
226
241
|
liquidityFee {
|
|
@@ -228,12 +243,24 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
228
243
|
}
|
|
229
244
|
irStrategy
|
|
230
245
|
reinvestmentController
|
|
231
|
-
|
|
246
|
+
optimalUtilizationRate {
|
|
247
|
+
...PercentNumber
|
|
248
|
+
}
|
|
249
|
+
baseBorrowRate {
|
|
250
|
+
...PercentNumber
|
|
251
|
+
}
|
|
252
|
+
slopeBelowOptimal {
|
|
253
|
+
...PercentNumber
|
|
254
|
+
}
|
|
255
|
+
slopeAboveOptimal {
|
|
256
|
+
...PercentNumber
|
|
257
|
+
}
|
|
258
|
+
}`,[a]),gt=e(`fragment HubAssetUserState on HubAssetUserState {
|
|
232
259
|
__typename
|
|
233
260
|
balance {
|
|
234
261
|
...Erc20Amount
|
|
235
262
|
}
|
|
236
|
-
}`,[
|
|
263
|
+
}`,[u]),C=e(`fragment HubAsset on HubAsset {
|
|
237
264
|
__typename
|
|
238
265
|
id
|
|
239
266
|
onchainAssetId
|
|
@@ -252,7 +279,128 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
252
279
|
userState {
|
|
253
280
|
...HubAssetUserState
|
|
254
281
|
}
|
|
255
|
-
}`,[
|
|
282
|
+
}`,[A,s,yt,ct,gt]);var oe=e(`fragment PermitTypedData on PermitTypedData {
|
|
283
|
+
__typename
|
|
284
|
+
types
|
|
285
|
+
primaryType
|
|
286
|
+
domain {
|
|
287
|
+
...DomainData
|
|
288
|
+
}
|
|
289
|
+
message
|
|
290
|
+
signedAmount
|
|
291
|
+
}`,[V]);function ia(t){return typeof t=="object"&&t!==null&&"deadline"in t&&"value"in t}var dt=e(`fragment MerklGenericCriteria on MerklGenericCriteria {
|
|
292
|
+
__typename
|
|
293
|
+
id
|
|
294
|
+
text
|
|
295
|
+
userPassed
|
|
296
|
+
}`),E=e(`fragment MerklCriteria on MerklCriteria {
|
|
297
|
+
__typename
|
|
298
|
+
... on MerklGenericCriteria {
|
|
299
|
+
...MerklGenericCriteria
|
|
300
|
+
}
|
|
301
|
+
}`,[dt]),St=e(`fragment PointsGenericCriteria on PointsGenericCriteria {
|
|
302
|
+
__typename
|
|
303
|
+
id
|
|
304
|
+
text
|
|
305
|
+
userPassed
|
|
306
|
+
}`),U=e(`fragment PointsCriteria on PointsCriteria {
|
|
307
|
+
__typename
|
|
308
|
+
... on PointsGenericCriteria {
|
|
309
|
+
...PointsGenericCriteria
|
|
310
|
+
}
|
|
311
|
+
}`,[St]),O=e(`fragment PointsProgram on PointsProgram {
|
|
312
|
+
__typename
|
|
313
|
+
id
|
|
314
|
+
name
|
|
315
|
+
externalUrl
|
|
316
|
+
iconUrl
|
|
317
|
+
}`),Rt=e(`fragment MerklSupplyReward on MerklSupplyReward {
|
|
318
|
+
__typename
|
|
319
|
+
id
|
|
320
|
+
startDate
|
|
321
|
+
endDate
|
|
322
|
+
extraApy {
|
|
323
|
+
...PercentNumber
|
|
324
|
+
}
|
|
325
|
+
payoutToken {
|
|
326
|
+
...Erc20Token
|
|
327
|
+
}
|
|
328
|
+
criteria {
|
|
329
|
+
...MerklCriteria
|
|
330
|
+
}
|
|
331
|
+
userEligible
|
|
332
|
+
}`,[a,s,E]),ft=e(`fragment MerklBorrowReward on MerklBorrowReward {
|
|
333
|
+
__typename
|
|
334
|
+
id
|
|
335
|
+
startDate
|
|
336
|
+
endDate
|
|
337
|
+
discountApy {
|
|
338
|
+
...PercentNumber
|
|
339
|
+
}
|
|
340
|
+
payoutToken {
|
|
341
|
+
...Erc20Token
|
|
342
|
+
}
|
|
343
|
+
criteria {
|
|
344
|
+
...MerklCriteria
|
|
345
|
+
}
|
|
346
|
+
userEligible
|
|
347
|
+
}`,[a,s,E]),wt=e(`fragment SupplyPoints on SupplyPointsReward {
|
|
348
|
+
__typename
|
|
349
|
+
id
|
|
350
|
+
program {
|
|
351
|
+
...PointsProgram
|
|
352
|
+
}
|
|
353
|
+
name
|
|
354
|
+
startDate
|
|
355
|
+
endDate
|
|
356
|
+
multiplier
|
|
357
|
+
criteria {
|
|
358
|
+
...PointsCriteria
|
|
359
|
+
}
|
|
360
|
+
userEligible
|
|
361
|
+
}`,[O,U]),qt=e(`fragment BorrowPoints on BorrowPointsReward {
|
|
362
|
+
__typename
|
|
363
|
+
id
|
|
364
|
+
program {
|
|
365
|
+
...PointsProgram
|
|
366
|
+
}
|
|
367
|
+
name
|
|
368
|
+
startDate
|
|
369
|
+
endDate
|
|
370
|
+
multiplier
|
|
371
|
+
criteria {
|
|
372
|
+
...PointsCriteria
|
|
373
|
+
}
|
|
374
|
+
userEligible
|
|
375
|
+
}`,[O,U]),pe=e(`fragment Reward on Reward {
|
|
376
|
+
__typename
|
|
377
|
+
... on MerklSupplyReward {
|
|
378
|
+
...MerklSupplyReward
|
|
379
|
+
}
|
|
380
|
+
... on MerklBorrowReward {
|
|
381
|
+
...MerklBorrowReward
|
|
382
|
+
}
|
|
383
|
+
... on SupplyPointsReward {
|
|
384
|
+
...SupplyPoints
|
|
385
|
+
}
|
|
386
|
+
... on BorrowPointsReward {
|
|
387
|
+
...BorrowPoints
|
|
388
|
+
}
|
|
389
|
+
}`,[Rt,ft,wt,qt]),xt=e(`fragment UserMerklClaimableReward on UserMerklClaimableReward {
|
|
390
|
+
__typename
|
|
391
|
+
id
|
|
392
|
+
claimable {
|
|
393
|
+
...Erc20Amount
|
|
394
|
+
}
|
|
395
|
+
startDate
|
|
396
|
+
endDate
|
|
397
|
+
claimUntil
|
|
398
|
+
}`,[u]),se=e(`fragment UserClaimableReward on UserClaimableReward {
|
|
399
|
+
__typename
|
|
400
|
+
... on UserMerklClaimableReward {
|
|
401
|
+
...UserMerklClaimableReward
|
|
402
|
+
}
|
|
403
|
+
}`,[xt]);var l=e(`fragment Spoke on Spoke {
|
|
256
404
|
__typename
|
|
257
405
|
id
|
|
258
406
|
name
|
|
@@ -260,12 +408,12 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
260
408
|
chain {
|
|
261
409
|
...Chain
|
|
262
410
|
}
|
|
263
|
-
}`,[
|
|
411
|
+
}`,[o]),Pt=e(`fragment SpokePositionManager on SpokePositionManager {
|
|
264
412
|
__typename
|
|
265
413
|
address
|
|
266
414
|
active
|
|
267
415
|
name
|
|
268
|
-
}`),
|
|
416
|
+
}`),ie=e(`fragment PaginatedSpokePositionManagerResult on PaginatedSpokePositionManagerResult {
|
|
269
417
|
__typename
|
|
270
418
|
items {
|
|
271
419
|
...SpokePositionManager
|
|
@@ -273,13 +421,13 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
273
421
|
pageInfo {
|
|
274
422
|
...PaginatedResultInfo
|
|
275
423
|
}
|
|
276
|
-
}`,[
|
|
424
|
+
}`,[Pt,R]),ht=e(`fragment SpokeUserPositionManager on SpokeUserPositionManager {
|
|
277
425
|
__typename
|
|
278
426
|
address
|
|
279
427
|
approvedOn
|
|
280
428
|
active
|
|
281
429
|
name
|
|
282
|
-
}`),
|
|
430
|
+
}`),ue=e(`fragment PaginatedSpokeUserPositionManagerResult on PaginatedSpokeUserPositionManagerResult {
|
|
283
431
|
__typename
|
|
284
432
|
items {
|
|
285
433
|
...SpokeUserPositionManager
|
|
@@ -287,7 +435,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
287
435
|
pageInfo {
|
|
288
436
|
...PaginatedResultInfo
|
|
289
437
|
}
|
|
290
|
-
}`,[
|
|
438
|
+
}`,[ht,R]);var At=e(`fragment ReserveSettings on ReserveSettings {
|
|
291
439
|
__typename
|
|
292
440
|
collateralFactor {
|
|
293
441
|
...PercentNumber
|
|
@@ -304,13 +452,20 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
304
452
|
borrowable
|
|
305
453
|
collateral
|
|
306
454
|
suppliable
|
|
455
|
+
receiveSharesEnabled
|
|
307
456
|
latestDynamicConfigKey
|
|
308
|
-
|
|
457
|
+
borrowCap {
|
|
458
|
+
...Erc20Amount
|
|
459
|
+
}
|
|
460
|
+
supplyCap {
|
|
461
|
+
...Erc20Amount
|
|
462
|
+
}
|
|
463
|
+
}`,[a,u]),Ft=e(`fragment ReserveStatus on ReserveStatus {
|
|
309
464
|
__typename
|
|
310
465
|
frozen
|
|
311
466
|
paused
|
|
312
467
|
active
|
|
313
|
-
}`),
|
|
468
|
+
}`),bt=e(`fragment ReserveSummary on ReserveSummary {
|
|
314
469
|
__typename
|
|
315
470
|
supplied {
|
|
316
471
|
...Erc20Amount
|
|
@@ -318,13 +473,22 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
318
473
|
borrowed {
|
|
319
474
|
...Erc20Amount
|
|
320
475
|
}
|
|
476
|
+
suppliable {
|
|
477
|
+
...Erc20Amount
|
|
478
|
+
}
|
|
479
|
+
borrowable {
|
|
480
|
+
...Erc20Amount
|
|
481
|
+
}
|
|
321
482
|
supplyApy {
|
|
322
483
|
...PercentNumber
|
|
323
484
|
}
|
|
324
485
|
borrowApy {
|
|
325
486
|
...PercentNumber
|
|
326
487
|
}
|
|
327
|
-
|
|
488
|
+
rewards {
|
|
489
|
+
...Reward
|
|
490
|
+
}
|
|
491
|
+
}`,[u,a,pe]),It=e(`fragment ReserveUserState on ReserveUserState {
|
|
328
492
|
__typename
|
|
329
493
|
balance {
|
|
330
494
|
...Erc20Amount
|
|
@@ -348,15 +512,13 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
348
512
|
...PercentNumber
|
|
349
513
|
}
|
|
350
514
|
dynamicConfigKey
|
|
351
|
-
}`,[
|
|
515
|
+
}`,[u,a]),I=e(`fragment Reserve on Reserve {
|
|
352
516
|
__typename
|
|
353
517
|
id
|
|
354
518
|
onChainId
|
|
355
519
|
spoke {
|
|
356
520
|
...Spoke
|
|
357
521
|
}
|
|
358
|
-
borrowCap
|
|
359
|
-
supplyCap
|
|
360
522
|
chain {
|
|
361
523
|
...Chain
|
|
362
524
|
}
|
|
@@ -372,55 +534,20 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
372
534
|
canBorrow
|
|
373
535
|
canSupply
|
|
374
536
|
canUseAsCollateral
|
|
537
|
+
canSwapFrom
|
|
375
538
|
userState {
|
|
376
539
|
...ReserveUserState
|
|
377
540
|
}
|
|
378
541
|
asset {
|
|
379
542
|
...HubAsset
|
|
380
543
|
}
|
|
381
|
-
}`,[
|
|
544
|
+
}`,[l,o,bt,At,Ft,It,C]),c=e(`fragment ReserveInfo on ReserveInfo {
|
|
382
545
|
__typename
|
|
383
546
|
id
|
|
384
547
|
asset {
|
|
385
548
|
...HubAsset
|
|
386
549
|
}
|
|
387
|
-
}`,[C]);var
|
|
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]),nr=e(`query PermitTypedData($request: PermitRequest!) {
|
|
420
|
-
value: permitTypedData(request: $request) {
|
|
421
|
-
...PermitTypedDataResponse
|
|
422
|
-
}
|
|
423
|
-
}`,[Ke]);var m=e(`fragment TransactionRequest on TransactionRequest {
|
|
550
|
+
}`,[C]);var p=e(`fragment TransactionRequest on TransactionRequest {
|
|
424
551
|
__typename
|
|
425
552
|
to
|
|
426
553
|
from
|
|
@@ -428,11 +555,19 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
428
555
|
value
|
|
429
556
|
chainId
|
|
430
557
|
operations
|
|
431
|
-
}`),
|
|
558
|
+
}`),M=e(`fragment Erc20Approval on Erc20Approval {
|
|
432
559
|
__typename
|
|
433
|
-
|
|
560
|
+
byTransaction {
|
|
434
561
|
...TransactionRequest
|
|
435
562
|
}
|
|
563
|
+
bySignature {
|
|
564
|
+
...PermitTypedData
|
|
565
|
+
}
|
|
566
|
+
}`,[p,oe]),_=e(`fragment Erc20ApprovalRequired on Erc20ApprovalRequired {
|
|
567
|
+
__typename
|
|
568
|
+
approvals {
|
|
569
|
+
...Erc20Approval
|
|
570
|
+
}
|
|
436
571
|
reason
|
|
437
572
|
requiredAmount {
|
|
438
573
|
...DecimalNumber
|
|
@@ -443,7 +578,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
443
578
|
originalTransaction {
|
|
444
579
|
...TransactionRequest
|
|
445
580
|
}
|
|
446
|
-
}`,[
|
|
581
|
+
}`,[p,M,y]),Tt=e(`fragment PreContractActionRequired on PreContractActionRequired {
|
|
447
582
|
__typename
|
|
448
583
|
transaction {
|
|
449
584
|
...TransactionRequest
|
|
@@ -452,15 +587,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
452
587
|
originalTransaction {
|
|
453
588
|
...TransactionRequest
|
|
454
589
|
}
|
|
455
|
-
}`,[
|
|
456
|
-
__typename
|
|
457
|
-
required {
|
|
458
|
-
...DecimalNumber
|
|
459
|
-
}
|
|
460
|
-
available {
|
|
461
|
-
...DecimalNumber
|
|
462
|
-
}
|
|
463
|
-
}`,[c]),b=e(`fragment ExecutionPlan on ExecutionPlan {
|
|
590
|
+
}`,[p]),B=e(`fragment ExecutionPlan on ExecutionPlan {
|
|
464
591
|
__typename
|
|
465
592
|
... on TransactionRequest {
|
|
466
593
|
...TransactionRequest
|
|
@@ -474,7 +601,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
474
601
|
... on InsufficientBalanceError {
|
|
475
602
|
...InsufficientBalanceError
|
|
476
603
|
}
|
|
477
|
-
}`,[
|
|
604
|
+
}`,[p,_,Tt,f]);var kt=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
478
605
|
__typename
|
|
479
606
|
networkCosts {
|
|
480
607
|
...TokenAmount
|
|
@@ -482,71 +609,83 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
482
609
|
partnerFee {
|
|
483
610
|
...TokenAmount
|
|
484
611
|
}
|
|
485
|
-
|
|
612
|
+
flashloanFee {
|
|
613
|
+
...TokenAmount
|
|
614
|
+
}
|
|
615
|
+
providerFee {
|
|
616
|
+
...TokenAmount
|
|
617
|
+
}
|
|
618
|
+
}`,[S]),Q=e(`fragment SwapQuote on SwapQuote {
|
|
486
619
|
__typename
|
|
620
|
+
accuracy
|
|
487
621
|
quoteId
|
|
488
622
|
suggestedSlippage {
|
|
489
623
|
...PercentNumber
|
|
490
624
|
}
|
|
491
|
-
|
|
625
|
+
selectedSlippage {
|
|
626
|
+
...PercentNumber
|
|
627
|
+
}
|
|
628
|
+
buy {
|
|
492
629
|
...TokenAmount
|
|
493
630
|
}
|
|
494
|
-
|
|
631
|
+
sell {
|
|
495
632
|
...TokenAmount
|
|
496
633
|
}
|
|
497
634
|
costs {
|
|
498
635
|
...SwapQuoteCosts
|
|
499
636
|
}
|
|
500
|
-
|
|
637
|
+
finalBuy {
|
|
501
638
|
...TokenAmount
|
|
502
639
|
}
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
...TypeField
|
|
506
|
-
}
|
|
507
|
-
Order {
|
|
508
|
-
...TypeField
|
|
640
|
+
finalSell {
|
|
641
|
+
...TokenAmount
|
|
509
642
|
}
|
|
510
|
-
}`,[
|
|
643
|
+
}`,[a,S,kt]),$=e(`fragment SwapTypedData on SwapTypedData {
|
|
511
644
|
__typename
|
|
512
|
-
types {
|
|
513
|
-
...SwapByIntentTypeDefinition
|
|
514
|
-
}
|
|
515
645
|
primaryType
|
|
646
|
+
types
|
|
516
647
|
domain {
|
|
517
648
|
...DomainData
|
|
518
649
|
}
|
|
519
650
|
message
|
|
520
|
-
}`,[
|
|
651
|
+
}`,[V]),me=e(`fragment PrepareSwapOrder on PrepareSwapOrder {
|
|
652
|
+
__typename
|
|
653
|
+
newQuoteId
|
|
654
|
+
data {
|
|
655
|
+
...SwapTypedData
|
|
656
|
+
}
|
|
657
|
+
}`,[$]),vt=e(`fragment SwapByIntent on SwapByIntent {
|
|
521
658
|
__typename
|
|
522
659
|
quote {
|
|
523
660
|
...SwapQuote
|
|
524
661
|
}
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
}
|
|
528
|
-
}`,[E,Z]),je=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
662
|
+
|
|
663
|
+
}`,[Q]),Ct=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
529
664
|
__typename
|
|
530
|
-
|
|
531
|
-
...
|
|
665
|
+
approvals {
|
|
666
|
+
...Erc20Approval
|
|
532
667
|
}
|
|
533
668
|
quote {
|
|
534
669
|
...SwapQuote
|
|
535
670
|
}
|
|
536
|
-
|
|
537
|
-
|
|
671
|
+
}`,[M,Q]),Et=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
672
|
+
__typename
|
|
673
|
+
quote {
|
|
674
|
+
...SwapQuote
|
|
538
675
|
}
|
|
539
|
-
}`,[
|
|
676
|
+
}`,[Q]),Ut=e(`fragment SwapByTransactionWithApprovalRequired on SwapByTransactionWithApprovalRequired {
|
|
540
677
|
__typename
|
|
541
678
|
quote {
|
|
542
679
|
...SwapQuote
|
|
543
680
|
}
|
|
544
|
-
|
|
681
|
+
approvals {
|
|
682
|
+
...Erc20Approval
|
|
683
|
+
}
|
|
684
|
+
}`,[Q,M]),le=e(`fragment SwapReceipt on SwapReceipt {
|
|
545
685
|
__typename
|
|
546
686
|
id
|
|
547
|
-
explorerLink
|
|
548
687
|
createdAt
|
|
549
|
-
}`),
|
|
688
|
+
}`),ye=e(`fragment TokenSwapQuoteResult on TokenSwapQuoteResult {
|
|
550
689
|
__typename
|
|
551
690
|
... on SwapByIntent {
|
|
552
691
|
...SwapByIntent
|
|
@@ -557,10 +696,21 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
557
696
|
... on SwapByTransaction {
|
|
558
697
|
...SwapByTransaction
|
|
559
698
|
}
|
|
699
|
+
... on SwapByTransactionWithApprovalRequired {
|
|
700
|
+
...SwapByTransactionWithApprovalRequired
|
|
701
|
+
}
|
|
702
|
+
... on InsufficientLiquidityError {
|
|
703
|
+
...InsufficientLiquidityError
|
|
704
|
+
}
|
|
705
|
+
}`,[vt,Ct,Et,Ut,b]),ce=e(`fragment PrepareTokenSwapResult on PrepareTokenSwapResult {
|
|
706
|
+
__typename
|
|
707
|
+
... on PrepareSwapOrder {
|
|
708
|
+
...PrepareSwapOrder
|
|
709
|
+
}
|
|
560
710
|
... on InsufficientBalanceError {
|
|
561
711
|
...InsufficientBalanceError
|
|
562
712
|
}
|
|
563
|
-
}`,[
|
|
713
|
+
}`,[me,f]),Ot=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
564
714
|
__typename
|
|
565
715
|
transaction {
|
|
566
716
|
...TransactionRequest
|
|
@@ -568,75 +718,140 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
568
718
|
orderReceipt {
|
|
569
719
|
...SwapReceipt
|
|
570
720
|
}
|
|
571
|
-
}`,[
|
|
572
|
-
__typename
|
|
573
|
-
approval {
|
|
574
|
-
...TransactionRequest
|
|
575
|
-
}
|
|
576
|
-
originalTransaction {
|
|
577
|
-
...SwapTransactionRequest
|
|
578
|
-
}
|
|
579
|
-
}`,[m,X]),ee=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
721
|
+
}`,[p,le]),ge=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
580
722
|
__typename
|
|
581
723
|
... on SwapTransactionRequest {
|
|
582
724
|
...SwapTransactionRequest
|
|
583
725
|
}
|
|
584
|
-
... on
|
|
585
|
-
...
|
|
726
|
+
... on SwapReceipt {
|
|
727
|
+
...SwapReceipt
|
|
586
728
|
}
|
|
587
729
|
... on InsufficientBalanceError {
|
|
588
730
|
...InsufficientBalanceError
|
|
589
731
|
}
|
|
590
|
-
|
|
591
|
-
|
|
732
|
+
}`,[Ot,le,f]),x=e(`fragment PositionAmount on PositionAmount {
|
|
733
|
+
__typename
|
|
734
|
+
reserve {
|
|
735
|
+
...ReserveInfo
|
|
736
|
+
}
|
|
737
|
+
amount {
|
|
738
|
+
...Erc20Amount
|
|
739
|
+
}
|
|
740
|
+
}`,[c,u]),_t=e(`fragment SupplySwap on SupplySwap {
|
|
741
|
+
__typename
|
|
742
|
+
sell {
|
|
743
|
+
...PositionAmount
|
|
744
|
+
}
|
|
745
|
+
buy {
|
|
746
|
+
...PositionAmount
|
|
747
|
+
}
|
|
748
|
+
kind
|
|
749
|
+
orderClass
|
|
750
|
+
}`,[x]),Bt=e(`fragment BorrowSwap on BorrowSwap {
|
|
751
|
+
__typename
|
|
752
|
+
sell {
|
|
753
|
+
...PositionAmount
|
|
754
|
+
}
|
|
755
|
+
buy {
|
|
756
|
+
...PositionAmount
|
|
757
|
+
}
|
|
758
|
+
kind
|
|
759
|
+
orderClass
|
|
760
|
+
}`,[x]),Qt=e(`fragment RepayWithSupply on RepayWithSupply {
|
|
761
|
+
__typename
|
|
762
|
+
repay {
|
|
763
|
+
...PositionAmount
|
|
764
|
+
}
|
|
765
|
+
supply {
|
|
766
|
+
...PositionAmount
|
|
592
767
|
}
|
|
593
|
-
|
|
768
|
+
kind
|
|
769
|
+
orderClass
|
|
770
|
+
}`,[x]),Wt=e(`fragment WithdrawSwap on WithdrawSwap {
|
|
594
771
|
__typename
|
|
772
|
+
withdraw {
|
|
773
|
+
...PositionAmount
|
|
774
|
+
}
|
|
775
|
+
buy {
|
|
776
|
+
...TokenAmount
|
|
777
|
+
}
|
|
778
|
+
kind
|
|
779
|
+
orderClass
|
|
780
|
+
}`,[x,S]),Ht=e(`fragment TokenSwap on TokenSwap {
|
|
781
|
+
__typename
|
|
782
|
+
sell {
|
|
783
|
+
...TokenAmount
|
|
784
|
+
}
|
|
785
|
+
buy {
|
|
786
|
+
...TokenAmount
|
|
787
|
+
}
|
|
788
|
+
kind
|
|
789
|
+
orderClass
|
|
790
|
+
}`,[S]),W=e(`fragment SwapOperation on SwapOperation {
|
|
791
|
+
__typename
|
|
792
|
+
... on SupplySwap {
|
|
793
|
+
...SupplySwap
|
|
794
|
+
}
|
|
795
|
+
... on BorrowSwap {
|
|
796
|
+
...BorrowSwap
|
|
797
|
+
}
|
|
798
|
+
... on RepayWithSupply {
|
|
799
|
+
...RepayWithSupply
|
|
800
|
+
}
|
|
801
|
+
... on WithdrawSwap {
|
|
802
|
+
...WithdrawSwap
|
|
803
|
+
}
|
|
804
|
+
... on TokenSwap {
|
|
805
|
+
...TokenSwap
|
|
806
|
+
}
|
|
807
|
+
}`,[_t,Bt,Qt,Wt,Ht]),Vt=e(`fragment SwapCancelled on SwapCancelled {
|
|
808
|
+
__typename
|
|
809
|
+
swapId
|
|
595
810
|
createdAt
|
|
596
811
|
cancelledAt
|
|
597
|
-
|
|
598
|
-
|
|
812
|
+
explorerUrl
|
|
813
|
+
operation {
|
|
814
|
+
...SwapOperation
|
|
815
|
+
}
|
|
816
|
+
}`,[W]),Mt=e(`fragment SwapExpired on SwapExpired {
|
|
599
817
|
__typename
|
|
818
|
+
swapId
|
|
600
819
|
createdAt
|
|
601
820
|
expiredAt
|
|
602
|
-
|
|
603
|
-
|
|
821
|
+
explorerUrl
|
|
822
|
+
operation {
|
|
823
|
+
...SwapOperation
|
|
824
|
+
}
|
|
825
|
+
}`,[W]),$t=e(`fragment SwapOpen on SwapOpen {
|
|
604
826
|
__typename
|
|
605
827
|
swapId
|
|
606
828
|
createdAt
|
|
607
829
|
deadline
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
...
|
|
611
|
-
}
|
|
612
|
-
desiredBuy {
|
|
613
|
-
...TokenAmount
|
|
830
|
+
explorerUrl
|
|
831
|
+
operation {
|
|
832
|
+
...SwapOperation
|
|
614
833
|
}
|
|
615
|
-
}`,[
|
|
834
|
+
}`,[W]),Nt=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
616
835
|
__typename
|
|
836
|
+
swapId
|
|
617
837
|
createdAt
|
|
618
838
|
deadline
|
|
619
|
-
|
|
620
|
-
|
|
839
|
+
explorerUrl
|
|
840
|
+
operation {
|
|
841
|
+
...SwapOperation
|
|
842
|
+
}
|
|
843
|
+
}`,[W]),Dt=e(`fragment SwapFulfilled on SwapFulfilled {
|
|
621
844
|
__typename
|
|
845
|
+
swapId
|
|
622
846
|
txHash
|
|
623
|
-
desiredSell {
|
|
624
|
-
...TokenAmount
|
|
625
|
-
}
|
|
626
|
-
desiredBuy {
|
|
627
|
-
...TokenAmount
|
|
628
|
-
}
|
|
629
|
-
sold {
|
|
630
|
-
...TokenAmount
|
|
631
|
-
}
|
|
632
|
-
bought {
|
|
633
|
-
...TokenAmount
|
|
634
|
-
}
|
|
635
847
|
createdAt
|
|
636
848
|
fulfilledAt
|
|
637
|
-
|
|
849
|
+
explorerUrl
|
|
638
850
|
refundTxHash
|
|
639
|
-
|
|
851
|
+
operation {
|
|
852
|
+
...SwapOperation
|
|
853
|
+
}
|
|
854
|
+
}`,[W]),Y=e(`fragment SwapStatus on SwapStatus {
|
|
640
855
|
__typename
|
|
641
856
|
... on SwapOpen {
|
|
642
857
|
...SwapOpen
|
|
@@ -653,36 +868,26 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
653
868
|
... on SwapFulfilled {
|
|
654
869
|
...SwapFulfilled
|
|
655
870
|
}
|
|
656
|
-
}`,[
|
|
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 {
|
|
871
|
+
}`,[$t,Nt,Vt,Mt,Dt]),de=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
673
872
|
__typename
|
|
674
873
|
data {
|
|
675
|
-
...
|
|
874
|
+
...SwapTypedData
|
|
676
875
|
}
|
|
677
|
-
}`,[
|
|
876
|
+
}`,[$]),Lt=e(`fragment SwapCancelledResult on SwapCancelledResult {
|
|
877
|
+
__typename
|
|
878
|
+
swapId
|
|
879
|
+
createdAt
|
|
880
|
+
cancelledAt
|
|
881
|
+
explorerUrl
|
|
882
|
+
}`),Se=e(`fragment CancelSwapExecutionPlan on CancelSwapExecutionPlan {
|
|
678
883
|
__typename
|
|
679
884
|
... on TransactionRequest {
|
|
680
885
|
...TransactionRequest
|
|
681
886
|
}
|
|
682
|
-
... on
|
|
683
|
-
...
|
|
887
|
+
... on SwapCancelledResult {
|
|
888
|
+
...SwapCancelledResult
|
|
684
889
|
}
|
|
685
|
-
}`,[
|
|
890
|
+
}`,[p,Lt]),Re=e(`fragment PaginatedUserSwapsResult on PaginatedUserSwapsResult {
|
|
686
891
|
__typename
|
|
687
892
|
items {
|
|
688
893
|
...SwapStatus
|
|
@@ -690,7 +895,76 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
690
895
|
pageInfo {
|
|
691
896
|
...PaginatedResultInfo
|
|
692
897
|
}
|
|
693
|
-
}`,[
|
|
898
|
+
}`,[Y,R]),Gt=e(`fragment PositionSwapAdapterContractApproval on PositionSwapAdapterContractApproval {
|
|
899
|
+
__typename
|
|
900
|
+
bySignature {
|
|
901
|
+
...SwapTypedData
|
|
902
|
+
}
|
|
903
|
+
}`,[$]),Kt=e(`fragment PositionSwapPositionManagerApproval on PositionSwapPositionManagerApproval {
|
|
904
|
+
__typename
|
|
905
|
+
byTransaction {
|
|
906
|
+
...TransactionRequest
|
|
907
|
+
}
|
|
908
|
+
bySignature {
|
|
909
|
+
...SwapTypedData
|
|
910
|
+
}
|
|
911
|
+
}`,[p,$]),Yt=e(`fragment PositionSwapApproval on PositionSwapApproval {
|
|
912
|
+
__typename
|
|
913
|
+
... on PositionSwapAdapterContractApproval {
|
|
914
|
+
...PositionSwapAdapterContractApproval
|
|
915
|
+
}
|
|
916
|
+
... on PositionSwapPositionManagerApproval {
|
|
917
|
+
...PositionSwapPositionManagerApproval
|
|
918
|
+
}
|
|
919
|
+
}`,[Gt,Kt]),N=e(`fragment PositionSwapByIntentApprovalsRequired on PositionSwapByIntentApprovalsRequired {
|
|
920
|
+
__typename
|
|
921
|
+
quote {
|
|
922
|
+
...SwapQuote
|
|
923
|
+
}
|
|
924
|
+
approvals {
|
|
925
|
+
...PositionSwapApproval
|
|
926
|
+
}
|
|
927
|
+
}`,[Q,Yt]),fe=e(`fragment SupplySwapQuoteResult on SupplySwapQuoteResult {
|
|
928
|
+
__typename
|
|
929
|
+
... on PositionSwapByIntentApprovalsRequired {
|
|
930
|
+
...PositionSwapByIntentApprovalsRequired
|
|
931
|
+
}
|
|
932
|
+
... on InsufficientLiquidityError {
|
|
933
|
+
...InsufficientLiquidityError
|
|
934
|
+
}
|
|
935
|
+
}`,[N,b]),we=e(`fragment BorrowSwapQuoteResult on BorrowSwapQuoteResult {
|
|
936
|
+
__typename
|
|
937
|
+
... on PositionSwapByIntentApprovalsRequired {
|
|
938
|
+
...PositionSwapByIntentApprovalsRequired
|
|
939
|
+
}
|
|
940
|
+
... on InsufficientLiquidityError {
|
|
941
|
+
...InsufficientLiquidityError
|
|
942
|
+
}
|
|
943
|
+
}`,[N,b]),qe=e(`fragment RepayWithSupplyQuoteResult on RepayWithSupplyQuoteResult {
|
|
944
|
+
__typename
|
|
945
|
+
... on PositionSwapByIntentApprovalsRequired {
|
|
946
|
+
...PositionSwapByIntentApprovalsRequired
|
|
947
|
+
}
|
|
948
|
+
... on InsufficientLiquidityError {
|
|
949
|
+
...InsufficientLiquidityError
|
|
950
|
+
}
|
|
951
|
+
}`,[N,b]),xe=e(`fragment WithdrawSwapQuoteResult on WithdrawSwapQuoteResult {
|
|
952
|
+
__typename
|
|
953
|
+
... on PositionSwapByIntentApprovalsRequired {
|
|
954
|
+
...PositionSwapByIntentApprovalsRequired
|
|
955
|
+
}
|
|
956
|
+
... on InsufficientLiquidityError {
|
|
957
|
+
...InsufficientLiquidityError
|
|
958
|
+
}
|
|
959
|
+
}`,[N,b]),Pe=e(`fragment PreparePositionSwapResult on PreparePositionSwapResult {
|
|
960
|
+
__typename
|
|
961
|
+
... on PrepareSwapOrder {
|
|
962
|
+
...PrepareSwapOrder
|
|
963
|
+
}
|
|
964
|
+
... on InsufficientBalanceError {
|
|
965
|
+
...InsufficientBalanceError
|
|
966
|
+
}
|
|
967
|
+
}`,[me,f]);var he=e(`fragment UserSupplyItem on UserSupplyItem {
|
|
694
968
|
__typename
|
|
695
969
|
id
|
|
696
970
|
reserve {
|
|
@@ -707,7 +981,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
707
981
|
}
|
|
708
982
|
isCollateral
|
|
709
983
|
createdAt
|
|
710
|
-
}`,[
|
|
984
|
+
}`,[u,I]),Ae=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
711
985
|
__typename
|
|
712
986
|
id
|
|
713
987
|
principal {
|
|
@@ -723,7 +997,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
723
997
|
...Reserve
|
|
724
998
|
}
|
|
725
999
|
createdAt
|
|
726
|
-
}`,[
|
|
1000
|
+
}`,[u,I]),Fe=e(`fragment UserSummary on UserSummary {
|
|
727
1001
|
__typename
|
|
728
1002
|
totalPositions
|
|
729
1003
|
netBalance(currency: $currency) {
|
|
@@ -741,11 +1015,11 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
741
1015
|
netApy {
|
|
742
1016
|
...PercentNumber
|
|
743
1017
|
}
|
|
744
|
-
|
|
1018
|
+
netAccruedInterest(currency: $currency) {
|
|
745
1019
|
...ExchangeAmount
|
|
746
1020
|
}
|
|
747
1021
|
lowestHealthFactor
|
|
748
|
-
}`,[
|
|
1022
|
+
}`,[h,m,a]),be=e(`fragment UserRiskPremiumBreakdownItem on UserRiskPremiumBreakdownItem {
|
|
749
1023
|
__typename
|
|
750
1024
|
token {
|
|
751
1025
|
...Erc20Token
|
|
@@ -759,7 +1033,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
759
1033
|
collateral {
|
|
760
1034
|
...PercentNumber
|
|
761
1035
|
}
|
|
762
|
-
}`,[
|
|
1036
|
+
}`,[s,a]),zt=e(`fragment UserPositionRiskPremium on UserPositionRiskPremium {
|
|
763
1037
|
__typename
|
|
764
1038
|
current {
|
|
765
1039
|
...PercentNumber
|
|
@@ -767,10 +1041,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
767
1041
|
latest {
|
|
768
1042
|
...PercentNumber
|
|
769
1043
|
}
|
|
770
|
-
|
|
771
|
-
...UserRiskPremiumBreakdownItem
|
|
772
|
-
}
|
|
773
|
-
}`,[r,_]),$=e(`fragment UserPosition on UserPosition {
|
|
1044
|
+
}`,[a]),z=e(`fragment UserPosition on UserPosition {
|
|
774
1045
|
__typename
|
|
775
1046
|
id
|
|
776
1047
|
spoke {
|
|
@@ -787,6 +1058,9 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
787
1058
|
netBalance(currency: $currency) {
|
|
788
1059
|
...ExchangeAmountWithChange
|
|
789
1060
|
}
|
|
1061
|
+
netAccruedInterest(currency: $currency) {
|
|
1062
|
+
...ExchangeAmount
|
|
1063
|
+
}
|
|
790
1064
|
totalCollateral(currency: $currency) {
|
|
791
1065
|
...ExchangeAmountWithChange
|
|
792
1066
|
}
|
|
@@ -811,7 +1085,10 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
811
1085
|
liquidationPrice(currency: $currency) {
|
|
812
1086
|
...ExchangeAmount
|
|
813
1087
|
}
|
|
814
|
-
|
|
1088
|
+
maxBorrowingPower(currency: $currency) {
|
|
1089
|
+
...ExchangeAmount
|
|
1090
|
+
}
|
|
1091
|
+
remainingBorrowingPower(currency: $currency) {
|
|
815
1092
|
...ExchangeAmount
|
|
816
1093
|
}
|
|
817
1094
|
canUpdateDynamicConfig
|
|
@@ -821,7 +1098,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
821
1098
|
averageCollateralFactor {
|
|
822
1099
|
...PercentNumber
|
|
823
1100
|
}
|
|
824
|
-
}`,[
|
|
1101
|
+
}`,[l,a,h,m,ee,ae,zt]),Ie=e(`fragment UserBalance on UserBalance {
|
|
825
1102
|
__typename
|
|
826
1103
|
id
|
|
827
1104
|
info {
|
|
@@ -854,7 +1131,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
854
1131
|
lowestCollateralFactor: collateralFactor(metric: LOWEST) {
|
|
855
1132
|
...PercentNumber
|
|
856
1133
|
}
|
|
857
|
-
}`,[
|
|
1134
|
+
}`,[v,y,S,m,a]),Te=e(`fragment UserSummaryHistoryItem on UserSummaryHistoryItem {
|
|
858
1135
|
__typename
|
|
859
1136
|
netBalance(currency: $currency) {
|
|
860
1137
|
...ExchangeAmount
|
|
@@ -867,25 +1144,211 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
867
1144
|
}
|
|
868
1145
|
healthFactor
|
|
869
1146
|
date
|
|
870
|
-
}`,[
|
|
1147
|
+
}`,[m]),Z=e(`fragment ApySample on ApySample {
|
|
871
1148
|
__typename
|
|
872
1149
|
date
|
|
873
1150
|
avgRate {
|
|
874
1151
|
...PercentNumber
|
|
875
1152
|
}
|
|
876
|
-
}`,[
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
1153
|
+
}`,[a]);var Zt=e(`fragment BoostedRate on BoostedRate {
|
|
1154
|
+
__typename
|
|
1155
|
+
id
|
|
1156
|
+
name
|
|
1157
|
+
userCount
|
|
1158
|
+
apy {
|
|
1159
|
+
...PercentNumber
|
|
1160
|
+
}
|
|
1161
|
+
}`,[a]),jt=e(`fragment StableVaultSummary on StableVaultSummary {
|
|
1162
|
+
__typename
|
|
1163
|
+
shares
|
|
1164
|
+
userCount
|
|
1165
|
+
totalDeposits
|
|
1166
|
+
}`),Jt=e(`fragment StableVaultRates on StableVaultRates {
|
|
1167
|
+
__typename
|
|
1168
|
+
baseRate {
|
|
1169
|
+
...PercentNumber
|
|
1170
|
+
}
|
|
1171
|
+
name
|
|
1172
|
+
boostedRates {
|
|
1173
|
+
...BoostedRate
|
|
1174
|
+
}
|
|
1175
|
+
}`,[a,Zt]),D=e(`fragment StableVault on StableVault {
|
|
1176
|
+
__typename
|
|
1177
|
+
id
|
|
1178
|
+
name
|
|
1179
|
+
address
|
|
1180
|
+
admin
|
|
1181
|
+
chain {
|
|
1182
|
+
...Chain
|
|
1183
|
+
}
|
|
1184
|
+
summary {
|
|
1185
|
+
...StableVaultSummary
|
|
1186
|
+
}
|
|
1187
|
+
rates {
|
|
1188
|
+
...StableVaultRates
|
|
1189
|
+
}
|
|
1190
|
+
}`,[o,jt,Jt]),ke=e(`fragment StableVaultUserPosition on StableVaultUserPosition {
|
|
1191
|
+
__typename
|
|
1192
|
+
id
|
|
1193
|
+
vault {
|
|
1194
|
+
...StableVault
|
|
1195
|
+
}
|
|
1196
|
+
user
|
|
1197
|
+
principal {
|
|
1198
|
+
...DecimalNumber
|
|
1199
|
+
}
|
|
1200
|
+
interests {
|
|
1201
|
+
...DecimalNumber
|
|
1202
|
+
}
|
|
1203
|
+
shares {
|
|
1204
|
+
...DecimalNumber
|
|
1205
|
+
}
|
|
1206
|
+
totalBalance {
|
|
1207
|
+
...DecimalNumber
|
|
1208
|
+
}
|
|
1209
|
+
apy {
|
|
1210
|
+
...PercentNumber
|
|
1211
|
+
}
|
|
1212
|
+
boostedRateId
|
|
1213
|
+
}`,[D,y,a]),Xt=e(`fragment TokenMovementAllocate on TokenMovementAllocate {
|
|
1214
|
+
__typename
|
|
1215
|
+
token {
|
|
1216
|
+
...Erc20Token
|
|
1217
|
+
}
|
|
1218
|
+
amount
|
|
1219
|
+
}`,[s]),er=e(`fragment TokenMovementBridgeIn on TokenMovementBridgeIn {
|
|
1220
|
+
__typename
|
|
1221
|
+
fromToken {
|
|
1222
|
+
...Erc20Token
|
|
1223
|
+
}
|
|
1224
|
+
toToken {
|
|
1225
|
+
...Erc20Token
|
|
1226
|
+
}
|
|
1227
|
+
amount
|
|
1228
|
+
}`,[s]),tr=e(`fragment TokenMovementBridgeOut on TokenMovementBridgeOut {
|
|
1229
|
+
__typename
|
|
1230
|
+
fromToken {
|
|
1231
|
+
...Erc20Token
|
|
1232
|
+
}
|
|
1233
|
+
toToken {
|
|
1234
|
+
...Erc20Token
|
|
1235
|
+
}
|
|
1236
|
+
amount
|
|
1237
|
+
}`,[s]),rr=e(`fragment TokenMovementDeallocate on TokenMovementDeallocate {
|
|
1238
|
+
__typename
|
|
1239
|
+
token {
|
|
1240
|
+
...Erc20Token
|
|
1241
|
+
}
|
|
1242
|
+
amount
|
|
1243
|
+
}`,[s]),ar=e(`fragment TokenMovementRebalance on TokenMovementRebalance {
|
|
1244
|
+
__typename
|
|
1245
|
+
token {
|
|
1246
|
+
...Erc20Token
|
|
1247
|
+
}
|
|
1248
|
+
amount
|
|
1249
|
+
}`,[s]),nr=e(`fragment TokenMovementSwap on TokenMovementSwap {
|
|
1250
|
+
__typename
|
|
1251
|
+
fromToken {
|
|
1252
|
+
...Erc20Token
|
|
1253
|
+
}
|
|
1254
|
+
fromAmount
|
|
1255
|
+
toToken {
|
|
1256
|
+
...Erc20Token
|
|
1257
|
+
}
|
|
1258
|
+
toAmount
|
|
1259
|
+
}`,[s]),or=e(`fragment TokenMovement on TokenMovement {
|
|
1260
|
+
__typename
|
|
1261
|
+
... on TokenMovementAllocate {
|
|
1262
|
+
...TokenMovementAllocate
|
|
1263
|
+
}
|
|
1264
|
+
... on TokenMovementBridgeIn {
|
|
1265
|
+
...TokenMovementBridgeIn
|
|
1266
|
+
}
|
|
1267
|
+
... on TokenMovementBridgeOut {
|
|
1268
|
+
...TokenMovementBridgeOut
|
|
1269
|
+
}
|
|
1270
|
+
... on TokenMovementDeallocate {
|
|
1271
|
+
...TokenMovementDeallocate
|
|
1272
|
+
}
|
|
1273
|
+
... on TokenMovementSwap {
|
|
1274
|
+
...TokenMovementSwap
|
|
1275
|
+
}
|
|
1276
|
+
... on TokenMovementRebalance {
|
|
1277
|
+
...TokenMovementRebalance
|
|
1278
|
+
}
|
|
1279
|
+
}`,[Xt,er,tr,rr,nr,ar]),pr=e(`fragment TokenMovementRecord on TokenMovementRecord {
|
|
1280
|
+
__typename
|
|
1281
|
+
id
|
|
1282
|
+
type {
|
|
1283
|
+
...TokenMovement
|
|
1284
|
+
}
|
|
1285
|
+
status
|
|
1286
|
+
timestamp
|
|
1287
|
+
txHash
|
|
1288
|
+
}`,[or]),ve=e(`fragment PaginatedStableVaultMovementsResult on PaginatedStableVaultMovementsResult {
|
|
1289
|
+
__typename
|
|
1290
|
+
items {
|
|
1291
|
+
...TokenMovementRecord
|
|
1292
|
+
}
|
|
1293
|
+
pageInfo {
|
|
1294
|
+
...PaginatedResultInfo
|
|
1295
|
+
}
|
|
1296
|
+
}`,[pr,R]),Ce=e(`fragment PaginatedStableVaultRateUsersResult on PaginatedStableVaultRateUsersResult {
|
|
1297
|
+
__typename
|
|
1298
|
+
items
|
|
1299
|
+
pageInfo {
|
|
1300
|
+
...PaginatedResultInfo
|
|
1301
|
+
}
|
|
1302
|
+
}`,[R]),sr=e(`fragment StableVaultWithdrawClaim on StableVaultWithdrawClaim {
|
|
1303
|
+
__typename
|
|
1304
|
+
claimId
|
|
1305
|
+
transaction {
|
|
1306
|
+
...TransactionRequest
|
|
1307
|
+
}
|
|
1308
|
+
executableAfter
|
|
1309
|
+
}`,[p]),ir=e(`fragment StableVaultPendingAvailability on StableVaultPendingAvailability {
|
|
1310
|
+
__typename
|
|
1311
|
+
executableAfter
|
|
1312
|
+
}`),Ee=e(`fragment StableVaultDepositExecutionPlan on StableVaultDepositExecutionPlan {
|
|
1313
|
+
__typename
|
|
1314
|
+
... on TransactionRequest {
|
|
1315
|
+
...TransactionRequest
|
|
1316
|
+
}
|
|
1317
|
+
... on Erc20ApprovalRequired {
|
|
1318
|
+
...Erc20ApprovalRequired
|
|
1319
|
+
}
|
|
1320
|
+
... on InsufficientBalanceError {
|
|
1321
|
+
...InsufficientBalanceError
|
|
1322
|
+
}
|
|
1323
|
+
}`,[p,_,f]),Ue=e(`fragment StableVaultWithdrawExecutionPlan on StableVaultWithdrawExecutionPlan {
|
|
1324
|
+
__typename
|
|
1325
|
+
... on TransactionRequest {
|
|
1326
|
+
...TransactionRequest
|
|
1327
|
+
}
|
|
1328
|
+
... on StableVaultWithdrawClaim {
|
|
1329
|
+
...StableVaultWithdrawClaim
|
|
1330
|
+
}
|
|
1331
|
+
}`,[p,sr]),Oe=e(`fragment StableVaultWithdrawRedeemExecutionPlan on StableVaultWithdrawRedeemExecutionPlan {
|
|
1332
|
+
__typename
|
|
1333
|
+
... on TransactionRequest {
|
|
1334
|
+
...TransactionRequest
|
|
1335
|
+
}
|
|
1336
|
+
... on StableVaultPendingAvailability {
|
|
1337
|
+
...StableVaultPendingAvailability
|
|
1338
|
+
}
|
|
1339
|
+
}`,[p,ir]);var Na=e(`query Hub($request: HubRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1340
|
+
value: hub(request: $request) {
|
|
1341
|
+
...Hub
|
|
1342
|
+
}
|
|
1343
|
+
}`,[A]),Da=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1344
|
+
value: hubs(request: $request) {
|
|
1345
|
+
...Hub
|
|
1346
|
+
}
|
|
1347
|
+
}`,[A]),La=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
885
1348
|
value: hubAssets(request: $request) {
|
|
886
1349
|
...HubAsset
|
|
887
1350
|
}
|
|
888
|
-
}`,[C]),
|
|
1351
|
+
}`,[C]),ur=e(`fragment HubSummarySample on HubSummarySample {
|
|
889
1352
|
__typename
|
|
890
1353
|
date
|
|
891
1354
|
deposits {
|
|
@@ -900,43 +1363,62 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
900
1363
|
utilizationRate {
|
|
901
1364
|
...PercentNumber
|
|
902
1365
|
}
|
|
903
|
-
}`,[
|
|
1366
|
+
}`,[m,a]),Ga=e(`query HubSummaryHistory($request: HubSummaryHistoryRequest!) {
|
|
904
1367
|
value: hubSummaryHistory(request: $request) {
|
|
905
1368
|
...HubSummarySample
|
|
906
1369
|
}
|
|
907
|
-
}`,[
|
|
1370
|
+
}`,[ur]),mr=e(`fragment HubAssetInterestRateModelPoint on HubAssetInterestRateModelPoint {
|
|
1371
|
+
__typename
|
|
1372
|
+
utilizationRate {
|
|
1373
|
+
...PercentNumber
|
|
1374
|
+
}
|
|
1375
|
+
borrowRate {
|
|
1376
|
+
...PercentNumber
|
|
1377
|
+
}
|
|
1378
|
+
supplyRate {
|
|
1379
|
+
...PercentNumber
|
|
1380
|
+
}
|
|
1381
|
+
liquidityDistance {
|
|
1382
|
+
...Erc20Amount
|
|
1383
|
+
}
|
|
1384
|
+
}`,[a,u]),Ka=e(`query HubAssetInterestRateModel($request: HubAssetInterestRateModelRequest!, $currency: Currency!) {
|
|
1385
|
+
value: hubAssetInterestRateModel(request: $request) {
|
|
1386
|
+
points {
|
|
1387
|
+
...HubAssetInterestRateModelPoint
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
}`,[mr]);function G(t){return new TextDecoder().decode(Uint8Array.from(atob(t),q=>q.charCodeAt(0)))}function K(t){return btoa(String.fromCharCode(...new TextEncoder().encode(t)))}var w="::";function Za(t){return invariant(typeof t=="string"&&t.length>0,`Invalid AssetId: ${t}`),invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`AssetId must be valid base64: ${t}`),t}function ja(t){return invariant(typeof t=="string"&&t.length>0,`Invalid BoostedRateId: ${t}`),t}function lr(t){return invariant(typeof t=="string"&&t.length>0,`Invalid HubId: ${t}`),invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`HubId must be valid base64: ${t}`),t}function Ja(t){return lr(K(`${t.chainId}${w}${t.address}`))}function Xa(t){let q=G(t),[r,n]=q.split(w);return {chainId:chainId(Number.parseInt(r,10)),address:evmAddress(n)}}function en(t){return invariant(typeof t=="string"&&t.length>0,`Invalid HubAssetId: ${t}`),invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`HubAssetId must be valid base64: ${t}`),t}function tn(t){return t}function rn(t){let q=G(t),[r,n,P]=q.split(w);return {chainId:chainId(Number.parseInt(r,10)),spoke:evmAddress(n),onChainId:P}}function an(t){return K(`${t.chainId}${w}${t.spoke}${w}${t.onChainId}`)}function yr(t){return invariant(typeof t=="string"&&t.length>0,`Invalid UserPositionId: ${t}`),invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserPositionId must be valid base64: ${t}`),t}function nn(t){let q=G(t),[r,n,P]=q.split(w);return {chainId:chainId(Number.parseInt(r,10)),spoke:evmAddress(n),user:evmAddress(P)}}function on(t){return yr(K(`${t.chainId}${w}${t.spoke}${w}${t.user}`))}function pn(t){return invariant(isValidHexString(t),`Invalid SwapId: ${t}`),t}function sn(t){return invariant(isValidHexString(t),`Invalid SwapQuoteId: ${t}`),t}function un(t){return invariant(typeof t=="string"&&t.length>0,`Invalid StableVaultId: ${t}`),t}function mn(t){return invariant(typeof t=="string"&&t.length>0,`Invalid StableVaultUserPositionId: ${t}`),t}function ln(t){return invariant(typeof t=="string"&&t.length>0,`Invalid StableVaultWithdrawClaimId: ${t}`),t}function yn(t){return cr(K(`${t.chainId}${w}${t.address}`))}function cn(t){let q=G(t),[r,n]=q.split(w);return {chainId:chainId(Number.parseInt(r,10)),address:evmAddress(n)}}function cr(t){return invariant(typeof t=="string"&&t.length>0,`Invalid SpokeId: ${t}`),invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`SpokeId must be valid base64: ${t}`),t}function gn(t){return invariant(typeof t=="string"&&t.length>0,`Invalid UserBalanceId: ${t}`),invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserBalanceId must be valid base64: ${t}`),t}function dn(t){return invariant(typeof t=="string"&&t.length>0,`Invalid UserBorrowItemId: ${t}`),invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserBorrowItemId must be valid base64: ${t}`),t}function Sn(t){return invariant(typeof t=="string"&&t.length>0,`Invalid UserSupplyItemId: ${t}`),invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserSupplyItemId must be valid base64: ${t}`),t}function Rn(t){return invariant(typeof t=="string"&&t.length>0,`Invalid TokenInfoId: ${t}`),t}function fn(t){return invariant(typeof t=="string"&&t.length>0,`Invalid TokenMovementId: ${t}`),t}function xn(t){return isObject(t)&&"hubInput"in t&&t.hubInput!=null}function Pn(t){return isObject(t)&&"chainIds"in t&&t.chainIds!=null}function hn(t){return isObject(t)&&"tokens"in t&&t.tokens!=null}function An(t){return isObject(t)&&"spoke"in t&&t.spoke!=null}function Fn(t){return isObject(t)&&"reserveInput"in t&&t.reserveInput!=null}function bn(t){return isObject(t)&&"txHash"in t&&t.txHash!=null}var vn=e(`query Chain($request: ChainRequest!) {
|
|
908
1391
|
value: chain(request: $request) {
|
|
909
1392
|
...Chain
|
|
910
1393
|
}
|
|
911
|
-
}`,[
|
|
1394
|
+
}`,[o]),Cn=e(`query Chains($request: ChainsRequest!) {
|
|
912
1395
|
value: chains(request: $request) {
|
|
913
1396
|
...Chain
|
|
914
1397
|
}
|
|
915
|
-
}`,[
|
|
1398
|
+
}`,[o]),En=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
916
1399
|
value: hasProcessedKnownTransaction(request: $request)
|
|
917
|
-
}`),
|
|
1400
|
+
}`),Un=e(`query Health {
|
|
918
1401
|
value: health
|
|
919
|
-
}`),
|
|
1402
|
+
}`),On=e(`query ExchangeRate($request: ExchangeRateRequest!) {
|
|
920
1403
|
value: exchangeRate(request: $request) {
|
|
921
1404
|
...ExchangeAmount
|
|
922
1405
|
}
|
|
923
|
-
}`,[
|
|
1406
|
+
}`,[m]);var gr=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
924
1407
|
__typename
|
|
925
1408
|
date
|
|
926
1409
|
price
|
|
927
|
-
}`),
|
|
1410
|
+
}`),Be=e(`fragment AssetSampleBreakdown on AssetSampleBreakdown {
|
|
928
1411
|
__typename
|
|
929
|
-
date
|
|
930
1412
|
amount {
|
|
931
1413
|
...DecimalNumber
|
|
932
1414
|
}
|
|
933
|
-
|
|
1415
|
+
apy {
|
|
934
1416
|
...PercentNumber
|
|
935
1417
|
}
|
|
936
|
-
|
|
937
|
-
...
|
|
1418
|
+
hub {
|
|
1419
|
+
...Hub
|
|
938
1420
|
}
|
|
939
|
-
}`,[
|
|
1421
|
+
}`,[y,a,A]),dr=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
940
1422
|
__typename
|
|
941
1423
|
date
|
|
942
1424
|
amount {
|
|
@@ -948,31 +1430,31 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
948
1430
|
lowestApy {
|
|
949
1431
|
...PercentNumber
|
|
950
1432
|
}
|
|
951
|
-
|
|
952
|
-
__typename
|
|
953
|
-
date
|
|
954
|
-
highestApy {
|
|
955
|
-
...PercentNumber
|
|
956
|
-
}
|
|
957
|
-
lowestApy {
|
|
1433
|
+
averageApy {
|
|
958
1434
|
...PercentNumber
|
|
959
1435
|
}
|
|
960
|
-
|
|
961
|
-
...
|
|
1436
|
+
breakdown {
|
|
1437
|
+
...AssetSampleBreakdown
|
|
962
1438
|
}
|
|
963
|
-
}`,[
|
|
1439
|
+
}`,[y,a,Be]),Sr=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
964
1440
|
__typename
|
|
965
1441
|
date
|
|
1442
|
+
amount {
|
|
1443
|
+
...DecimalNumber
|
|
1444
|
+
}
|
|
966
1445
|
highestApy {
|
|
967
1446
|
...PercentNumber
|
|
968
1447
|
}
|
|
969
1448
|
lowestApy {
|
|
970
1449
|
...PercentNumber
|
|
971
1450
|
}
|
|
972
|
-
|
|
973
|
-
...
|
|
1451
|
+
averageApy {
|
|
1452
|
+
...PercentNumber
|
|
974
1453
|
}
|
|
975
|
-
|
|
1454
|
+
breakdown {
|
|
1455
|
+
...AssetSampleBreakdown
|
|
1456
|
+
}
|
|
1457
|
+
}`,[y,a,Be]),Rr=e(`fragment AssetAmountWithChange on AssetAmountWithChange {
|
|
976
1458
|
__typename
|
|
977
1459
|
amount {
|
|
978
1460
|
...DecimalNumberWithChange
|
|
@@ -980,10 +1462,10 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
980
1462
|
exchange(currency: $currency) {
|
|
981
1463
|
...ExchangeAmountWithChange
|
|
982
1464
|
}
|
|
983
|
-
}`,[
|
|
1465
|
+
}`,[j,h]),fr=e(`fragment AssetSummary on AssetSummary {
|
|
984
1466
|
__typename
|
|
985
1467
|
totalSupplyCap {
|
|
986
|
-
...
|
|
1468
|
+
...AssetAmountWithChange
|
|
987
1469
|
}
|
|
988
1470
|
totalSupplied {
|
|
989
1471
|
...AssetAmountWithChange
|
|
@@ -992,7 +1474,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
992
1474
|
...AssetAmountWithChange
|
|
993
1475
|
}
|
|
994
1476
|
totalBorrowCap {
|
|
995
|
-
...
|
|
1477
|
+
...AssetAmountWithChange
|
|
996
1478
|
}
|
|
997
1479
|
totalBorrowed {
|
|
998
1480
|
...AssetAmountWithChange
|
|
@@ -1006,7 +1488,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1006
1488
|
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
1007
1489
|
...PercentNumber
|
|
1008
1490
|
}
|
|
1009
|
-
}`,[
|
|
1491
|
+
}`,[Rr,a]),wr=e(`fragment Asset on Asset {
|
|
1010
1492
|
__typename
|
|
1011
1493
|
id
|
|
1012
1494
|
token {
|
|
@@ -1018,31 +1500,23 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1018
1500
|
price(currency: $currency) {
|
|
1019
1501
|
...ExchangeAmountWithChange
|
|
1020
1502
|
}
|
|
1021
|
-
}`,[
|
|
1503
|
+
}`,[s,fr,h]),Wn=e(`query Asset($request: AssetRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1022
1504
|
value: asset(request: $request) {
|
|
1023
1505
|
...Asset
|
|
1024
1506
|
}
|
|
1025
|
-
}`,[
|
|
1507
|
+
}`,[wr]),Hn=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
1026
1508
|
value: assetPriceHistory(request: $request) {
|
|
1027
1509
|
...AssetPriceSample
|
|
1028
1510
|
}
|
|
1029
|
-
}`,[
|
|
1511
|
+
}`,[gr]),Vn=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1030
1512
|
value: assetSupplyHistory(request: $request) {
|
|
1031
1513
|
...AssetSupplySample
|
|
1032
1514
|
}
|
|
1033
|
-
}`,[
|
|
1515
|
+
}`,[dr]),Mn=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1034
1516
|
value: assetBorrowHistory(request: $request) {
|
|
1035
1517
|
...AssetBorrowSample
|
|
1036
1518
|
}
|
|
1037
|
-
}`,[
|
|
1038
|
-
value: assetCategoryBorrowHistory(request: $request) {
|
|
1039
|
-
...AssetCategoryBorrowSample
|
|
1040
|
-
}
|
|
1041
|
-
}`,[lt]),yn=e(`query AssetCategorySupplyHistory($request: AssetCategorySupplyHistoryRequest!, $currency: Currency! = USD) {
|
|
1042
|
-
value: assetCategorySupplyHistory(request: $request) {
|
|
1043
|
-
...AssetCategorySupplySample
|
|
1044
|
-
}
|
|
1045
|
-
}`,[dt]),Rt=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
1519
|
+
}`,[Sr]),qr=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
1046
1520
|
__typename
|
|
1047
1521
|
date
|
|
1048
1522
|
deposits {
|
|
@@ -1051,94 +1525,119 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1051
1525
|
borrows {
|
|
1052
1526
|
...ExchangeAmount
|
|
1053
1527
|
}
|
|
1054
|
-
|
|
1055
|
-
...ExchangeAmount
|
|
1056
|
-
}
|
|
1057
|
-
}`,[s]),cn=e(`query ProtocolHistory($request: ProtocolHistoryRequest!) {
|
|
1528
|
+
}`,[m]),$n=e(`query ProtocolHistory($request: ProtocolHistoryRequest!) {
|
|
1058
1529
|
value: protocolHistory(request: $request) {
|
|
1059
1530
|
...ProtocolHistorySample
|
|
1060
1531
|
}
|
|
1061
|
-
}`,[
|
|
1532
|
+
}`,[qr]);var Gn=e(`query BorrowApyHistory($request: BorrowApyHistoryRequest!) {
|
|
1062
1533
|
value: borrowApyHistory(request: $request) {
|
|
1063
1534
|
...ApySample
|
|
1064
1535
|
}
|
|
1065
|
-
}`,[
|
|
1536
|
+
}`,[Z]),Kn=e(`query SupplyApyHistory($request: SupplyApyHistoryRequest!) {
|
|
1066
1537
|
value: supplyApyHistory(request: $request) {
|
|
1067
1538
|
...ApySample
|
|
1068
1539
|
}
|
|
1069
|
-
}`,[
|
|
1540
|
+
}`,[Z]),Yn=e(`query Reserve($request: ReserveRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1070
1541
|
value: reserve(request: $request) {
|
|
1071
1542
|
...Reserve
|
|
1072
1543
|
}
|
|
1073
|
-
}`,[
|
|
1544
|
+
}`,[I]),zn=e(`query Reserves($request: ReservesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1074
1545
|
value: reserves(request: $request) {
|
|
1075
1546
|
...Reserve
|
|
1076
1547
|
}
|
|
1077
|
-
}`,[
|
|
1548
|
+
}`,[I]);var Xn=e(`query ClaimRewards($request: ClaimRewardsRequest!) {
|
|
1549
|
+
value: claimRewards(request: $request) {
|
|
1550
|
+
...TransactionRequest
|
|
1551
|
+
}
|
|
1552
|
+
}`,[p]),eo=e(`query UserClaimableRewards($request: UserClaimableRewardsRequest!, $currency: Currency! = USD) {
|
|
1553
|
+
value: userClaimableRewards(request: $request) {
|
|
1554
|
+
...UserClaimableReward
|
|
1555
|
+
}
|
|
1556
|
+
}`,[se]);var no=e(`query Spoke($request: SpokeRequest!) {
|
|
1078
1557
|
value: spoke(request: $request) {
|
|
1079
1558
|
...Spoke
|
|
1080
1559
|
}
|
|
1081
|
-
}`,[
|
|
1560
|
+
}`,[l]),oo=e(`query Spokes($request: SpokesRequest!) {
|
|
1082
1561
|
value: spokes(request: $request) {
|
|
1083
1562
|
...Spoke
|
|
1084
1563
|
}
|
|
1085
|
-
}`,[
|
|
1564
|
+
}`,[l]),po=e(`query SpokePositionManagers($request: SpokePositionManagersRequest!) {
|
|
1086
1565
|
value: spokePositionManagers(request: $request) {
|
|
1087
1566
|
...PaginatedSpokePositionManagerResult
|
|
1088
1567
|
}
|
|
1089
|
-
}`,[
|
|
1568
|
+
}`,[ie]),so=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
1090
1569
|
value: spokeUserPositionManagers(request: $request) {
|
|
1091
1570
|
...PaginatedSpokeUserPositionManagerResult
|
|
1092
1571
|
}
|
|
1093
|
-
}`,[
|
|
1094
|
-
value:
|
|
1095
|
-
...
|
|
1572
|
+
}`,[ue]);var lo=e(`query TokenSwapQuote($request: TokenSwapQuoteRequest!, $currency: Currency!) {
|
|
1573
|
+
value: tokenSwapQuote(request: $request) {
|
|
1574
|
+
...TokenSwapQuoteResult
|
|
1096
1575
|
}
|
|
1097
|
-
}`,[
|
|
1576
|
+
}`,[ye]),yo=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
1098
1577
|
value: swappableTokens(request: $request) {
|
|
1099
1578
|
...Token
|
|
1100
1579
|
}
|
|
1101
|
-
}`,[
|
|
1102
|
-
value:
|
|
1103
|
-
...
|
|
1580
|
+
}`,[X]),co=e(`query PrepareTokenSwap($request: PrepareTokenSwapRequest!) {
|
|
1581
|
+
value: prepareTokenSwap(request: $request) {
|
|
1582
|
+
...PrepareTokenSwapResult
|
|
1104
1583
|
}
|
|
1105
|
-
}`,[
|
|
1584
|
+
}`,[ce]),go=e(`query SwapStatus($request: SwapStatusRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1106
1585
|
value: swapStatus(request: $request) {
|
|
1107
1586
|
...SwapStatus
|
|
1108
1587
|
}
|
|
1109
|
-
}`,[
|
|
1588
|
+
}`,[Y]),So=e(`mutation Swap($request: SwapRequest!) {
|
|
1110
1589
|
value: swap(request: $request) {
|
|
1111
1590
|
...SwapExecutionPlan
|
|
1112
1591
|
}
|
|
1113
|
-
}`,[
|
|
1592
|
+
}`,[ge]),Ro=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
1114
1593
|
value: prepareSwapCancel(request: $request) {
|
|
1115
1594
|
...PrepareSwapCancelResult
|
|
1116
1595
|
}
|
|
1117
|
-
}`,[
|
|
1596
|
+
}`,[de]),fo=e(`mutation CancelSwap($request: CancelSwapRequest!) {
|
|
1118
1597
|
value: cancelSwap(request: $request) {
|
|
1119
1598
|
...CancelSwapExecutionPlan
|
|
1120
1599
|
}
|
|
1121
|
-
}`,[
|
|
1600
|
+
}`,[Se]),wo=e(`query UserSwaps($request: UserSwapsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1122
1601
|
value: userSwaps(request: $request) {
|
|
1123
1602
|
...PaginatedUserSwapsResult
|
|
1124
1603
|
}
|
|
1125
|
-
}`,[
|
|
1604
|
+
}`,[Re]),qo=e(`query SupplySwapQuote($request: SupplySwapQuoteRequest!, $currency: Currency!) {
|
|
1605
|
+
value: supplySwapQuote(request: $request) {
|
|
1606
|
+
...SupplySwapQuoteResult
|
|
1607
|
+
}
|
|
1608
|
+
}`,[fe]),xo=e(`query BorrowSwapQuote($request: BorrowSwapQuoteRequest!, $currency: Currency!) {
|
|
1609
|
+
value: borrowSwapQuote(request: $request) {
|
|
1610
|
+
...BorrowSwapQuoteResult
|
|
1611
|
+
}
|
|
1612
|
+
}`,[we]),Po=e(`query RepayWithSupplyQuote($request: RepayWithSupplyQuoteRequest!, $currency: Currency!) {
|
|
1613
|
+
value: repayWithSupplyQuote(request: $request) {
|
|
1614
|
+
...RepayWithSupplyQuoteResult
|
|
1615
|
+
}
|
|
1616
|
+
}`,[qe]),ho=e(`query WithdrawSwapQuote($request: WithdrawSwapQuoteRequest!, $currency: Currency!) {
|
|
1617
|
+
value: withdrawSwapQuote(request: $request) {
|
|
1618
|
+
...WithdrawSwapQuoteResult
|
|
1619
|
+
}
|
|
1620
|
+
}`,[xe]),Ao=e(`query PreparePositionSwap($request: PreparePositionSwapRequest!) {
|
|
1621
|
+
value: preparePositionSwap(request: $request) {
|
|
1622
|
+
...PreparePositionSwapResult
|
|
1623
|
+
}
|
|
1624
|
+
}`,[Pe]);var To=e(`query Borrow($request: BorrowRequest!) {
|
|
1126
1625
|
value: borrow(request: $request) {
|
|
1127
1626
|
...ExecutionPlan
|
|
1128
1627
|
}
|
|
1129
|
-
}`,[
|
|
1628
|
+
}`,[B]),ko=e(`query Supply($request: SupplyRequest!) {
|
|
1130
1629
|
value: supply(request: $request) {
|
|
1131
1630
|
...ExecutionPlan
|
|
1132
1631
|
}
|
|
1133
|
-
}`,[
|
|
1632
|
+
}`,[B]),vo=e(`query Repay($request: RepayRequest!) {
|
|
1134
1633
|
value: repay(request: $request) {
|
|
1135
1634
|
...ExecutionPlan
|
|
1136
1635
|
}
|
|
1137
|
-
}`,[
|
|
1636
|
+
}`,[B]),Co=e(`query Withdraw($request: WithdrawRequest!) {
|
|
1138
1637
|
value: withdraw(request: $request) {
|
|
1139
1638
|
...ExecutionPlan
|
|
1140
1639
|
}
|
|
1141
|
-
}`,[
|
|
1640
|
+
}`,[B]),xr=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1142
1641
|
__typename
|
|
1143
1642
|
... on TransactionRequest {
|
|
1144
1643
|
...TransactionRequest
|
|
@@ -1149,27 +1648,27 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1149
1648
|
... on InsufficientBalanceError {
|
|
1150
1649
|
...InsufficientBalanceError
|
|
1151
1650
|
}
|
|
1152
|
-
}`,[
|
|
1651
|
+
}`,[p,_,f]),Eo=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1153
1652
|
value: liquidatePosition(request: $request) {
|
|
1154
1653
|
...LiquidatePositionExecutionPlan
|
|
1155
1654
|
}
|
|
1156
|
-
}`,[
|
|
1655
|
+
}`,[xr]),Uo=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1157
1656
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1158
1657
|
...TransactionRequest
|
|
1159
1658
|
}
|
|
1160
|
-
}`,[
|
|
1659
|
+
}`,[p]),Oo=e(`query SetUserSuppliesAsCollateral($request: SetUserSuppliesAsCollateralRequest!) {
|
|
1161
1660
|
value: setUserSuppliesAsCollateral(request: $request) {
|
|
1162
1661
|
...TransactionRequest
|
|
1163
1662
|
}
|
|
1164
|
-
}`,[
|
|
1663
|
+
}`,[p]),_o=e(`query RenounceSpokeUserPositionManager($request: RenounceSpokeUserPositionManagerRequest!) {
|
|
1165
1664
|
value: renounceSpokeUserPositionManager(request: $request) {
|
|
1166
1665
|
...TransactionRequest
|
|
1167
1666
|
}
|
|
1168
|
-
}`,[
|
|
1667
|
+
}`,[p]),Bo=e(`query UpdateUserPositionConditions($request: UpdateUserPositionConditionsRequest!) {
|
|
1169
1668
|
value: updateUserPositionConditions(request: $request) {
|
|
1170
1669
|
...TransactionRequest
|
|
1171
1670
|
}
|
|
1172
|
-
}`,[
|
|
1671
|
+
}`,[p]),Pr=e(`fragment CollateralFactorVariation on CollateralFactorVariation {
|
|
1173
1672
|
__typename
|
|
1174
1673
|
reserveId
|
|
1175
1674
|
token {
|
|
@@ -1181,7 +1680,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1181
1680
|
after {
|
|
1182
1681
|
...PercentNumber
|
|
1183
1682
|
}
|
|
1184
|
-
}`,[
|
|
1683
|
+
}`,[s,a]),hr=e(`fragment LiquidationFeeVariation on LiquidationFeeVariation {
|
|
1185
1684
|
__typename
|
|
1186
1685
|
reserveId
|
|
1187
1686
|
token {
|
|
@@ -1193,7 +1692,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1193
1692
|
after {
|
|
1194
1693
|
...PercentNumber
|
|
1195
1694
|
}
|
|
1196
|
-
}`,[
|
|
1695
|
+
}`,[s,a]),Ar=e(`fragment MaxLiquidationBonusVariation on MaxLiquidationBonusVariation {
|
|
1197
1696
|
__typename
|
|
1198
1697
|
reserveId
|
|
1199
1698
|
token {
|
|
@@ -1205,7 +1704,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1205
1704
|
after {
|
|
1206
1705
|
...PercentNumber
|
|
1207
1706
|
}
|
|
1208
|
-
}`,[
|
|
1707
|
+
}`,[s,a]),Fr=e(`fragment UserPositionConditionVariation on UserPositionConditionVariation {
|
|
1209
1708
|
__typename
|
|
1210
1709
|
... on CollateralFactorVariation {
|
|
1211
1710
|
...CollateralFactorVariation
|
|
@@ -1216,7 +1715,95 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1216
1715
|
... on MaxLiquidationBonusVariation {
|
|
1217
1716
|
...MaxLiquidationBonusVariation
|
|
1218
1717
|
}
|
|
1219
|
-
}`,[
|
|
1718
|
+
}`,[Pr,hr,Ar]),br=e(`fragment PreviewMerklSupplyReward on PreviewMerklSupplyReward {
|
|
1719
|
+
__typename
|
|
1720
|
+
id
|
|
1721
|
+
startDate
|
|
1722
|
+
endDate
|
|
1723
|
+
extraApy {
|
|
1724
|
+
...PercentNumber
|
|
1725
|
+
}
|
|
1726
|
+
payoutToken {
|
|
1727
|
+
...Erc20Token
|
|
1728
|
+
}
|
|
1729
|
+
criteria {
|
|
1730
|
+
...MerklCriteria
|
|
1731
|
+
}
|
|
1732
|
+
reserve {
|
|
1733
|
+
...ReserveInfo
|
|
1734
|
+
}
|
|
1735
|
+
}`,[a,s,E,c]),Ir=e(`fragment PreviewMerklBorrowReward on PreviewMerklBorrowReward {
|
|
1736
|
+
__typename
|
|
1737
|
+
id
|
|
1738
|
+
startDate
|
|
1739
|
+
endDate
|
|
1740
|
+
discountApy {
|
|
1741
|
+
...PercentNumber
|
|
1742
|
+
}
|
|
1743
|
+
payoutToken {
|
|
1744
|
+
...Erc20Token
|
|
1745
|
+
}
|
|
1746
|
+
criteria {
|
|
1747
|
+
...MerklCriteria
|
|
1748
|
+
}
|
|
1749
|
+
reserve {
|
|
1750
|
+
...ReserveInfo
|
|
1751
|
+
}
|
|
1752
|
+
}`,[a,s,E,c]),Tr=e(`fragment PreviewSupplyPoints on PreviewSupplyPointsReward {
|
|
1753
|
+
__typename
|
|
1754
|
+
id
|
|
1755
|
+
program {
|
|
1756
|
+
...PointsProgram
|
|
1757
|
+
}
|
|
1758
|
+
name
|
|
1759
|
+
startDate
|
|
1760
|
+
endDate
|
|
1761
|
+
multiplier
|
|
1762
|
+
criteria {
|
|
1763
|
+
...PointsCriteria
|
|
1764
|
+
}
|
|
1765
|
+
reserve {
|
|
1766
|
+
...ReserveInfo
|
|
1767
|
+
}
|
|
1768
|
+
}`,[O,U,c]),kr=e(`fragment PreviewBorrowPoints on PreviewBorrowPointsReward {
|
|
1769
|
+
__typename
|
|
1770
|
+
id
|
|
1771
|
+
program {
|
|
1772
|
+
...PointsProgram
|
|
1773
|
+
}
|
|
1774
|
+
name
|
|
1775
|
+
startDate
|
|
1776
|
+
endDate
|
|
1777
|
+
multiplier
|
|
1778
|
+
criteria {
|
|
1779
|
+
...PointsCriteria
|
|
1780
|
+
}
|
|
1781
|
+
reserve {
|
|
1782
|
+
...ReserveInfo
|
|
1783
|
+
}
|
|
1784
|
+
}`,[O,U,c]),vr=e(`fragment PreviewReward on PreviewReward {
|
|
1785
|
+
__typename
|
|
1786
|
+
... on PreviewMerklSupplyReward {
|
|
1787
|
+
...PreviewMerklSupplyReward
|
|
1788
|
+
}
|
|
1789
|
+
... on PreviewMerklBorrowReward {
|
|
1790
|
+
...PreviewMerklBorrowReward
|
|
1791
|
+
}
|
|
1792
|
+
... on PreviewSupplyPointsReward {
|
|
1793
|
+
...PreviewSupplyPoints
|
|
1794
|
+
}
|
|
1795
|
+
... on PreviewBorrowPointsReward {
|
|
1796
|
+
...PreviewBorrowPoints
|
|
1797
|
+
}
|
|
1798
|
+
}`,[br,Ir,Tr,kr]),Cr=e(`fragment PreviewRewardOutcome on PreviewRewardOutcome {
|
|
1799
|
+
__typename
|
|
1800
|
+
lost {
|
|
1801
|
+
...PreviewReward
|
|
1802
|
+
}
|
|
1803
|
+
gained {
|
|
1804
|
+
...PreviewReward
|
|
1805
|
+
}
|
|
1806
|
+
}`,[vr]),Er=e(`fragment PreviewUserPosition on PreviewUserPosition {
|
|
1220
1807
|
__typename
|
|
1221
1808
|
id
|
|
1222
1809
|
healthFactor {
|
|
@@ -1234,20 +1821,34 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1234
1821
|
netBalance(currency: $currency) {
|
|
1235
1822
|
...ExchangeAmountVariation
|
|
1236
1823
|
}
|
|
1237
|
-
projectedEarnings
|
|
1824
|
+
projectedEarnings {
|
|
1238
1825
|
...ExchangeAmountVariation
|
|
1239
1826
|
}
|
|
1240
|
-
|
|
1827
|
+
maxBorrowingPower {
|
|
1241
1828
|
...ExchangeAmountVariation
|
|
1242
1829
|
}
|
|
1830
|
+
remainingBorrowingPower {
|
|
1831
|
+
...ExchangeAmountVariation
|
|
1832
|
+
}
|
|
1833
|
+
reserveRates {
|
|
1834
|
+
supplyApy {
|
|
1835
|
+
...PercentNumberVariation
|
|
1836
|
+
}
|
|
1837
|
+
borrowApy {
|
|
1838
|
+
...PercentNumberVariation
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
rewards {
|
|
1842
|
+
...PreviewRewardOutcome
|
|
1843
|
+
}
|
|
1243
1844
|
otherConditions {
|
|
1244
1845
|
...UserPositionConditionVariation
|
|
1245
1846
|
}
|
|
1246
|
-
}`,[
|
|
1847
|
+
}`,[ne,te,re,Cr,Fr]),Qo=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD, $timeWindow: TimeWindow! = LAST_WEEK) {
|
|
1247
1848
|
value: preview(request: $request) {
|
|
1248
1849
|
...PreviewUserPosition
|
|
1249
1850
|
}
|
|
1250
|
-
}`,[
|
|
1851
|
+
}`,[Er]),Qe=e(`fragment PercentNumberChangeSnapshot on PercentNumberChangeSnapshot {
|
|
1251
1852
|
__typename
|
|
1252
1853
|
before {
|
|
1253
1854
|
...PercentNumber
|
|
@@ -1255,7 +1856,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1255
1856
|
after {
|
|
1256
1857
|
...PercentNumber
|
|
1257
1858
|
}
|
|
1258
|
-
}`,[
|
|
1859
|
+
}`,[a]),Ur=e(`fragment BorrowActivity on BorrowActivity {
|
|
1259
1860
|
__typename
|
|
1260
1861
|
id
|
|
1261
1862
|
user
|
|
@@ -1273,7 +1874,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1273
1874
|
chain {
|
|
1274
1875
|
...Chain
|
|
1275
1876
|
}
|
|
1276
|
-
}`,[u,
|
|
1877
|
+
}`,[l,u,c,o]),Or=e(`fragment SupplyActivity on SupplyActivity {
|
|
1277
1878
|
__typename
|
|
1278
1879
|
id
|
|
1279
1880
|
user
|
|
@@ -1291,7 +1892,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1291
1892
|
chain {
|
|
1292
1893
|
...Chain
|
|
1293
1894
|
}
|
|
1294
|
-
}`,[u,
|
|
1895
|
+
}`,[l,u,c,o]),_r=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1295
1896
|
__typename
|
|
1296
1897
|
id
|
|
1297
1898
|
user
|
|
@@ -1309,7 +1910,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1309
1910
|
chain {
|
|
1310
1911
|
...Chain
|
|
1311
1912
|
}
|
|
1312
|
-
}`,[u,
|
|
1913
|
+
}`,[l,u,c,o]),Br=e(`fragment RepayActivity on RepayActivity {
|
|
1313
1914
|
__typename
|
|
1314
1915
|
id
|
|
1315
1916
|
user
|
|
@@ -1327,7 +1928,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1327
1928
|
chain {
|
|
1328
1929
|
...Chain
|
|
1329
1930
|
}
|
|
1330
|
-
}`,[u,
|
|
1931
|
+
}`,[l,u,c,o]),Qr=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1331
1932
|
__typename
|
|
1332
1933
|
id
|
|
1333
1934
|
user
|
|
@@ -1352,7 +1953,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1352
1953
|
chain {
|
|
1353
1954
|
...Chain
|
|
1354
1955
|
}
|
|
1355
|
-
}`,[u,
|
|
1956
|
+
}`,[l,u,c,o]),Wr=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1356
1957
|
__typename
|
|
1357
1958
|
id
|
|
1358
1959
|
user
|
|
@@ -1368,7 +1969,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1368
1969
|
chain {
|
|
1369
1970
|
...Chain
|
|
1370
1971
|
}
|
|
1371
|
-
}`,[
|
|
1972
|
+
}`,[l,c,o]),Hr=e(`fragment UpdatedDynamicConfigActivity on UpdatedDynamicConfigActivity {
|
|
1372
1973
|
__typename
|
|
1373
1974
|
id
|
|
1374
1975
|
user
|
|
@@ -1392,7 +1993,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1392
1993
|
chain {
|
|
1393
1994
|
...Chain
|
|
1394
1995
|
}
|
|
1395
|
-
}`,[
|
|
1996
|
+
}`,[l,c,Qe,o]),Vr=e(`fragment UpdatedRiskPremiumActivity on UpdatedRiskPremiumActivity {
|
|
1396
1997
|
__typename
|
|
1397
1998
|
id
|
|
1398
1999
|
user
|
|
@@ -1407,7 +2008,102 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1407
2008
|
chain {
|
|
1408
2009
|
...Chain
|
|
1409
2010
|
}
|
|
1410
|
-
}`,[
|
|
2011
|
+
}`,[l,Qe,o]),Mr=e(`fragment TokenSwapActivity on TokenSwapActivity {
|
|
2012
|
+
__typename
|
|
2013
|
+
id
|
|
2014
|
+
user
|
|
2015
|
+
timestamp
|
|
2016
|
+
txHash
|
|
2017
|
+
chain {
|
|
2018
|
+
...Chain
|
|
2019
|
+
}
|
|
2020
|
+
sell {
|
|
2021
|
+
...TokenAmount
|
|
2022
|
+
}
|
|
2023
|
+
buy {
|
|
2024
|
+
...TokenAmount
|
|
2025
|
+
}
|
|
2026
|
+
explorerUrl
|
|
2027
|
+
orderClass
|
|
2028
|
+
kind
|
|
2029
|
+
status
|
|
2030
|
+
}`,[o,S]),$r=e(`fragment SupplySwapActivity on SupplySwapActivity {
|
|
2031
|
+
__typename
|
|
2032
|
+
id
|
|
2033
|
+
user
|
|
2034
|
+
timestamp
|
|
2035
|
+
txHash
|
|
2036
|
+
chain {
|
|
2037
|
+
...Chain
|
|
2038
|
+
}
|
|
2039
|
+
sell {
|
|
2040
|
+
...PositionAmount
|
|
2041
|
+
}
|
|
2042
|
+
buy {
|
|
2043
|
+
...PositionAmount
|
|
2044
|
+
}
|
|
2045
|
+
explorerUrl
|
|
2046
|
+
orderClass
|
|
2047
|
+
kind
|
|
2048
|
+
status
|
|
2049
|
+
}`,[o,x]),Nr=e(`fragment BorrowSwapActivity on BorrowSwapActivity {
|
|
2050
|
+
__typename
|
|
2051
|
+
id
|
|
2052
|
+
user
|
|
2053
|
+
timestamp
|
|
2054
|
+
txHash
|
|
2055
|
+
chain {
|
|
2056
|
+
...Chain
|
|
2057
|
+
}
|
|
2058
|
+
sell {
|
|
2059
|
+
...PositionAmount
|
|
2060
|
+
}
|
|
2061
|
+
buy {
|
|
2062
|
+
...PositionAmount
|
|
2063
|
+
}
|
|
2064
|
+
explorerUrl
|
|
2065
|
+
orderClass
|
|
2066
|
+
kind
|
|
2067
|
+
status
|
|
2068
|
+
}`,[o,x]),Dr=e(`fragment RepayWithSupplyActivity on RepayWithSupplyActivity {
|
|
2069
|
+
__typename
|
|
2070
|
+
id
|
|
2071
|
+
user
|
|
2072
|
+
timestamp
|
|
2073
|
+
txHash
|
|
2074
|
+
chain {
|
|
2075
|
+
...Chain
|
|
2076
|
+
}
|
|
2077
|
+
repay {
|
|
2078
|
+
...PositionAmount
|
|
2079
|
+
}
|
|
2080
|
+
supply {
|
|
2081
|
+
...PositionAmount
|
|
2082
|
+
}
|
|
2083
|
+
explorerUrl
|
|
2084
|
+
orderClass
|
|
2085
|
+
kind
|
|
2086
|
+
status
|
|
2087
|
+
}`,[o,x]),Lr=e(`fragment WithdrawSwapActivity on WithdrawSwapActivity {
|
|
2088
|
+
__typename
|
|
2089
|
+
id
|
|
2090
|
+
user
|
|
2091
|
+
timestamp
|
|
2092
|
+
txHash
|
|
2093
|
+
chain {
|
|
2094
|
+
...Chain
|
|
2095
|
+
}
|
|
2096
|
+
withdraw {
|
|
2097
|
+
...PositionAmount
|
|
2098
|
+
}
|
|
2099
|
+
buy {
|
|
2100
|
+
...TokenAmount
|
|
2101
|
+
}
|
|
2102
|
+
explorerUrl
|
|
2103
|
+
orderClass
|
|
2104
|
+
kind
|
|
2105
|
+
status
|
|
2106
|
+
}`,[o,x,S]),Gr=e(`fragment ActivityItem on ActivityItem {
|
|
1411
2107
|
__typename
|
|
1412
2108
|
... on BorrowActivity {
|
|
1413
2109
|
...BorrowActivity
|
|
@@ -1433,7 +2129,22 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1433
2129
|
... on UpdatedRiskPremiumActivity {
|
|
1434
2130
|
...UpdatedRiskPremiumActivity
|
|
1435
2131
|
}
|
|
1436
|
-
|
|
2132
|
+
... on TokenSwapActivity {
|
|
2133
|
+
...TokenSwapActivity
|
|
2134
|
+
}
|
|
2135
|
+
... on SupplySwapActivity {
|
|
2136
|
+
...SupplySwapActivity
|
|
2137
|
+
}
|
|
2138
|
+
... on BorrowSwapActivity {
|
|
2139
|
+
...BorrowSwapActivity
|
|
2140
|
+
}
|
|
2141
|
+
... on RepayWithSupplyActivity {
|
|
2142
|
+
...RepayWithSupplyActivity
|
|
2143
|
+
}
|
|
2144
|
+
... on WithdrawSwapActivity {
|
|
2145
|
+
...WithdrawSwapActivity
|
|
2146
|
+
}
|
|
2147
|
+
}`,[Ur,Or,_r,Br,Qr,Wr,Hr,Vr,Mr,$r,Nr,Dr,Lr]),Kr=e(`fragment PaginatedActivitiesResult on PaginatedActivitiesResult {
|
|
1437
2148
|
__typename
|
|
1438
2149
|
items {
|
|
1439
2150
|
...ActivityItem
|
|
@@ -1441,41 +2152,87 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1441
2152
|
pageInfo {
|
|
1442
2153
|
...PaginatedResultInfo
|
|
1443
2154
|
}
|
|
1444
|
-
}`,[
|
|
2155
|
+
}`,[Gr,R]),Wo=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1445
2156
|
value: activities(request: $request) {
|
|
1446
2157
|
...PaginatedActivitiesResult
|
|
1447
2158
|
}
|
|
1448
|
-
}`,[
|
|
2159
|
+
}`,[Kr]);var $o=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1449
2160
|
value: userSupplies(request: $request) {
|
|
1450
2161
|
...UserSupplyItem
|
|
1451
2162
|
}
|
|
1452
|
-
}`,[
|
|
2163
|
+
}`,[he]),No=e(`query UserBorrows($request: UserBorrowsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1453
2164
|
value: userBorrows(request: $request) {
|
|
1454
2165
|
...UserBorrowItem
|
|
1455
2166
|
}
|
|
1456
|
-
}`,[
|
|
2167
|
+
}`,[Ae]),Do=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1457
2168
|
value: userSummary(request: $request) {
|
|
1458
2169
|
...UserSummary
|
|
1459
2170
|
}
|
|
1460
|
-
}`,[
|
|
2171
|
+
}`,[Fe]),Lo=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1461
2172
|
value: userPositions(request: $request) {
|
|
1462
2173
|
...UserPosition
|
|
1463
2174
|
}
|
|
1464
|
-
}`,[
|
|
2175
|
+
}`,[z]),Go=e(`query UserPosition($request: UserPositionRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1465
2176
|
value: userPosition(request: $request) {
|
|
1466
2177
|
...UserPosition
|
|
1467
2178
|
}
|
|
1468
|
-
}`,[
|
|
2179
|
+
}`,[z]),Ko=e(`query UserBalances($request: UserBalancesRequest!, $currency: Currency!) {
|
|
1469
2180
|
value: userBalances(request: $request) {
|
|
1470
2181
|
...UserBalance
|
|
1471
2182
|
}
|
|
1472
|
-
}`,[
|
|
2183
|
+
}`,[Ie]),Yo=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1473
2184
|
value: userSummaryHistory(request: $request) {
|
|
1474
2185
|
...UserSummaryHistoryItem
|
|
1475
2186
|
}
|
|
1476
|
-
}`,[
|
|
2187
|
+
}`,[Te]),zo=e(`query UserRiskPremiumBreakdown($request: UserRiskPremiumBreakdownRequest!) {
|
|
1477
2188
|
value: userRiskPremiumBreakdown(request: $request) {
|
|
1478
2189
|
...UserRiskPremiumBreakdownItem
|
|
1479
2190
|
}
|
|
1480
|
-
}`,[
|
|
2191
|
+
}`,[be]);var Xo=e(`query StableVault($request: StableVaultRequest!) {
|
|
2192
|
+
value: stableVault(request: $request) {
|
|
2193
|
+
...StableVault
|
|
2194
|
+
}
|
|
2195
|
+
}`,[D]),ep=e(`query StableVaults($request: StableVaultsRequest!) {
|
|
2196
|
+
value: stableVaults(request: $request) {
|
|
2197
|
+
...StableVault
|
|
2198
|
+
}
|
|
2199
|
+
}`,[D]),tp=e(`query StableVaultRateUsers($request: StableVaultRateUsersRequest!) {
|
|
2200
|
+
value: stableVaultRateUsers(request: $request) {
|
|
2201
|
+
...PaginatedStableVaultRateUsersResult
|
|
2202
|
+
}
|
|
2203
|
+
}`,[Ce]),rp=e(`query StableVaultAssignRate($request: StableVaultAssignRateRequest!) {
|
|
2204
|
+
value: stableVaultAssignRate(request: $request) {
|
|
2205
|
+
...TransactionRequest
|
|
2206
|
+
}
|
|
2207
|
+
}`,[p]),ap=e(`query StableVaultUnassignRate($request: StableVaultUnassignRateRequest!) {
|
|
2208
|
+
value: stableVaultUnassignRate(request: $request) {
|
|
2209
|
+
...TransactionRequest
|
|
2210
|
+
}
|
|
2211
|
+
}`,[p]),np=e(`query StableVaultClaimSurplus($request: StableVaultClaimSurplusRequest!) {
|
|
2212
|
+
value: stableVaultClaimSurplus(request: $request) {
|
|
2213
|
+
...TransactionRequest
|
|
2214
|
+
}
|
|
2215
|
+
}`,[p]),op=e(`query StableVaultMovements($request: StableVaultMovementsRequest!) {
|
|
2216
|
+
value: stableVaultMovements(request: $request) {
|
|
2217
|
+
...PaginatedStableVaultMovementsResult
|
|
2218
|
+
}
|
|
2219
|
+
}`,[ve]),pp=e(`query StableVaultDeposit($request: StableVaultDepositRequest!) {
|
|
2220
|
+
value: stableVaultDeposit(request: $request) {
|
|
2221
|
+
...StableVaultDepositExecutionPlan
|
|
2222
|
+
}
|
|
2223
|
+
}`,[Ee]),sp=e(`query StableVaultWithdraw($request: StableVaultWithdrawRequest!) {
|
|
2224
|
+
value: stableVaultWithdraw(request: $request) {
|
|
2225
|
+
...StableVaultWithdrawExecutionPlan
|
|
2226
|
+
}
|
|
2227
|
+
}`,[Ue]),ip=e(`query StableVaultClaimStatus($request: StableVaultClaimStatusRequest!) {
|
|
2228
|
+
value: stableVaultClaimStatus(request: $request)
|
|
2229
|
+
}`),up=e(`query StableVaultUserPositions($request: StableVaultUserPositionsRequest!) {
|
|
2230
|
+
value: stableVaultUserPositions(request: $request) {
|
|
2231
|
+
...StableVaultUserPosition
|
|
2232
|
+
}
|
|
2233
|
+
}`,[ke]),mp=e(`mutation StableVaultWithdrawRedeem($request: StableVaultWithdrawRedeemRequest!) {
|
|
2234
|
+
value: stableVaultWithdrawRedeem(request: $request) {
|
|
2235
|
+
...StableVaultWithdrawRedeemExecutionPlan
|
|
2236
|
+
}
|
|
2237
|
+
}`,[Oe]);export{Wo as ActivitiesQuery,Gr as ActivityItemFragment,Ne as ActivityType,De as ApyMetric,Z as ApySampleFragment,Rr as AssetAmountWithChangeFragment,Mn as AssetBorrowHistoryQuery,Sr as AssetBorrowSampleFragment,wr as AssetFragment,Hn as AssetPriceHistoryQuery,gr as AssetPriceSampleFragment,Wn as AssetQuery,Be as AssetSampleBreakdownFragment,fr as AssetSummaryFragment,Vn as AssetSupplyHistoryQuery,dr as AssetSupplySampleFragment,Zt as BoostedRateFragment,Ur as BorrowActivityFragment,Gn as BorrowApyHistoryQuery,qt as BorrowPointsFragment,To as BorrowQuery,Nr as BorrowSwapActivityFragment,Bt as BorrowSwapFragment,Ye as BorrowSwapKind,xo as BorrowSwapQuoteQuery,we as BorrowSwapQuoteResultFragment,Se as CancelSwapExecutionPlanFragment,fo as CancelSwapMutation,o as ChainFragment,vn as ChainQuery,$e as ChainsFilter,Cn as ChainsQuery,Xn as ClaimRewardsQuery,Pr as CollateralFactorVariationFragment,Le as CollateralMetric,Ge as Currency,y as DecimalNumberFragment,j as DecimalNumberWithChangeFragment,V as DomainDataFragment,u as Erc20AmountFragment,M as Erc20ApprovalFragment,_ as Erc20ApprovalRequiredFragment,s as Erc20TokenFragment,m as ExchangeAmountFragment,re as ExchangeAmountVariationFragment,h as ExchangeAmountWithChangeFragment,On as ExchangeRateQuery,B as ExecutionPlanFragment,En as HasProcessedKnownTransactionQuery,mt as HealthFactorErrorFragment,ne as HealthFactorResultFragment,ut as HealthFactorVariationFragment,ae as HealthFactorWithChangeFragment,Un as HealthQuery,C as HubAssetFragment,mr as HubAssetInterestRateModelPointFragment,Ka as HubAssetInterestRateModelQuery,ct as HubAssetSettingsFragment,yt as HubAssetSummaryFragment,gt as HubAssetUserStateFragment,La as HubAssetsQuery,A as HubFragment,Na as HubQuery,lt as HubSummaryFragment,Ga as HubSummaryHistoryQuery,ur as HubSummarySampleFragment,Da as HubsQuery,f as InsufficientBalanceErrorFragment,b as InsufficientLiquidityErrorFragment,xr as LiquidatePositionExecutionPlanFragment,Eo as LiquidatePositionQuery,Qr as LiquidatedActivityFragment,hr as LiquidationFeeVariationFragment,Ar as MaxLiquidationBonusVariationFragment,ft as MerklBorrowRewardFragment,E as MerklCriteriaFragment,dt as MerklGenericCriteriaFragment,Rt as MerklSupplyRewardFragment,it as NativeAmountFragment,J as NativeTokenFragment,Me as OperationType,We as OrderDirection,He as PageSize,Kr as PaginatedActivitiesResultFragment,R as PaginatedResultInfoFragment,ie as PaginatedSpokePositionManagerResultFragment,ue as PaginatedSpokeUserPositionManagerResultFragment,ve as PaginatedStableVaultMovementsResultFragment,Ce as PaginatedStableVaultRateUsersResultFragment,Re as PaginatedUserSwapsResultFragment,Qe as PercentNumberChangeSnapshotFragment,a as PercentNumberFragment,te as PercentNumberVariationFragment,ee as PercentNumberWithChangeFragment,oe as PermitTypedDataFragment,U as PointsCriteriaFragment,St as PointsGenericCriteriaFragment,O as PointsProgramFragment,x as PositionAmountFragment,Gt as PositionSwapAdapterContractApprovalFragment,Yt as PositionSwapApprovalFragment,N as PositionSwapByIntentApprovalsRequiredFragment,Kt as PositionSwapPositionManagerApprovalFragment,Tt as PreContractActionRequiredFragment,Ao as PreparePositionSwapQuery,Pe as PreparePositionSwapResultFragment,Ro as PrepareSwapCancelQuery,de as PrepareSwapCancelResultFragment,me as PrepareSwapOrderFragment,co as PrepareTokenSwapQuery,ce as PrepareTokenSwapResultFragment,kr as PreviewBorrowPointsFragment,Ir as PreviewMerklBorrowRewardFragment,br as PreviewMerklSupplyRewardFragment,Qo as PreviewQuery,vr as PreviewRewardFragment,Cr as PreviewRewardOutcomeFragment,Tr as PreviewSupplyPointsFragment,Er as PreviewUserPositionFragment,$n as ProtocolHistoryQuery,qr as ProtocolHistorySampleFragment,at as QuoteAccuracy,_o as RenounceSpokeUserPositionManagerQuery,Br as RepayActivityFragment,vo as RepayQuery,Dr as RepayWithSupplyActivityFragment,Qt as RepayWithSupplyFragment,ze as RepayWithSupplyKind,Po as RepayWithSupplyQuoteQuery,qe as RepayWithSupplyQuoteResultFragment,I as ReserveFragment,c as ReserveInfoFragment,Yn as ReserveQuery,At as ReserveSettingsFragment,Ft as ReserveStatusFragment,bt as ReserveSummaryFragment,It as ReserveUserStateFragment,zn as ReservesQuery,Ke as ReservesRequestFilter,pe as RewardFragment,Uo as SetSpokeUserPositionManagerQuery,Oo as SetUserSuppliesAsCollateralQuery,l as SpokeFragment,Pt as SpokePositionManagerFragment,po as SpokePositionManagersQuery,no as SpokeQuery,ht as SpokeUserPositionManagerFragment,so as SpokeUserPositionManagersQuery,oo as SpokesQuery,rp as StableVaultAssignRateQuery,Ze as StableVaultClaimStatus,ip as StableVaultClaimStatusQuery,np as StableVaultClaimSurplusQuery,Ee as StableVaultDepositExecutionPlanFragment,pp as StableVaultDepositQuery,D as StableVaultFragment,op as StableVaultMovementsQuery,ir as StableVaultPendingAvailabilityFragment,Xo as StableVaultQuery,tp as StableVaultRateUsersQuery,Jt as StableVaultRatesFragment,jt as StableVaultSummaryFragment,ap as StableVaultUnassignRateQuery,ke as StableVaultUserPositionFragment,up as StableVaultUserPositionsQuery,sr as StableVaultWithdrawClaimFragment,Ue as StableVaultWithdrawExecutionPlanFragment,sp as StableVaultWithdrawQuery,Oe as StableVaultWithdrawRedeemExecutionPlanFragment,mp as StableVaultWithdrawRedeemMutation,ep as StableVaultsQuery,Or as SupplyActivityFragment,Kn as SupplyApyHistoryQuery,wt as SupplyPointsFragment,ko as SupplyQuery,$r as SupplySwapActivityFragment,_t as SupplySwapFragment,je as SupplySwapKind,qo as SupplySwapQuoteQuery,fe as SupplySwapQuoteResultFragment,ot as SwapActivityStatus,vt as SwapByIntentFragment,Ct as SwapByIntentWithApprovalRequiredFragment,Et as SwapByTransactionFragment,Ut as SwapByTransactionWithApprovalRequiredFragment,Vt as SwapCancelledFragment,Lt as SwapCancelledResultFragment,ge as SwapExecutionPlanFragment,Mt as SwapExpiredFragment,Dt as SwapFulfilledFragment,So as SwapMutation,$t as SwapOpenFragment,W as SwapOperationFragment,nt as SwapOrderClass,Nt as SwapPendingSignatureFragment,kt as SwapQuoteCostsFragment,Q as SwapQuoteFragment,le as SwapReceiptFragment,Xe as SwapStatusFilter,Y as SwapStatusFragment,go as SwapStatusQuery,Ot as SwapTransactionRequestFragment,$ as SwapTypedDataFragment,yo as SwappableTokensQuery,Ve as TimeWindow,S as TokenAmountFragment,et as TokenCategory,X as TokenFragment,v as TokenInfoFragment,Xt as TokenMovementAllocateFragment,er as TokenMovementBridgeInFragment,tr as TokenMovementBridgeOutFragment,rr as TokenMovementDeallocateFragment,or as TokenMovementFragment,ar as TokenMovementRebalanceFragment,pr as TokenMovementRecordFragment,tt as TokenMovementStatus,nr as TokenMovementSwapFragment,Mr as TokenSwapActivityFragment,Ht as TokenSwapFragment,pt as TokenSwapKind,lo as TokenSwapQuoteQuery,ye as TokenSwapQuoteResultFragment,p as TransactionRequestFragment,Bo as UpdateUserPositionConditionsQuery,Hr as UpdatedDynamicConfigActivityFragment,Vr as UpdatedRiskPremiumActivityFragment,Ie as UserBalanceFragment,Ko as UserBalancesQuery,Ae as UserBorrowItemFragment,No as UserBorrowsQuery,se as UserClaimableRewardFragment,eo as UserClaimableRewardsQuery,xt as UserMerklClaimableRewardFragment,Fr as UserPositionConditionVariationFragment,rt as UserPositionConditionsUpdate,z as UserPositionFragment,Go as UserPositionQuery,zt as UserPositionRiskPremiumFragment,Lo as UserPositionsQuery,be as UserRiskPremiumBreakdownItemFragment,zo as UserRiskPremiumBreakdownQuery,Fe as UserSummaryFragment,Te as UserSummaryHistoryItemFragment,Yo as UserSummaryHistoryQuery,Do as UserSummaryQuery,$o as UserSuppliesQuery,he as UserSupplyItemFragment,wo as UserSwapsQuery,Wr as UsingAsCollateralActivityFragment,_r as WithdrawActivityFragment,Co as WithdrawQuery,Lr as WithdrawSwapActivityFragment,Wt as WithdrawSwapFragment,Je as WithdrawSwapKind,ho as WithdrawSwapQuoteQuery,xe as WithdrawSwapQuoteResultFragment,Za as assetId,ja as boostedRateId,Xa as decodeHubId,rn as decodeReserveId,cn as decodeSpokeId,nn as decodeUserPositionId,Ja as encodeHubId,an as encodeReserveId,yn as encodeSpokeId,on as encodeUserPositionId,e as graphql,en as hubAssetId,lr as hubId,Pn as isChainIdsVariant,ia as isERC20PermitSignature,xn as isHubInputVariant,Fn as isReserveInputVariant,An as isSpokeInputVariant,hn as isTokensVariant,bn as isTxHashInputVariant,tn as reserveId,cr as spokeId,un as stableVaultId,mn as stableVaultUserPositionId,ln as stableVaultWithdrawClaimId,pn as swapId,sn as swapQuoteId,Rn as tokenInfoId,fn as tokenMovementId,gn as userBalanceId,dn as userBorrowItemId,yr as userPositionId,Sn as userSupplyItemId};//# sourceMappingURL=index.js.map
|
|
1481
2238
|
//# sourceMappingURL=index.js.map
|