@aave/graphql 1.0.0-next.8 → 1.0.0
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 +1065 -320
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +188523 -23760
- package/dist/index.d.ts +188523 -23760
- package/dist/index.js +1065 -320
- 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 +36879 -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 -2211
- 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 -2211
- 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 He=(r=>(r.Asc="ASC",r.Desc="DESC",r))(He||{}),We=(r=>(r.Ten="TEN",r.Fifty="FIFTY",r))(We||{}),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 W=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
|
+
}`,[W]);function sa(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]),xt=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,xt]),qt=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
|
+
}`,[qt]);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
|
|
@@ -335,9 +499,6 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
335
499
|
borrowable {
|
|
336
500
|
...Erc20Amount
|
|
337
501
|
}
|
|
338
|
-
borrowingPower {
|
|
339
|
-
...Erc20Amount
|
|
340
|
-
}
|
|
341
502
|
borrowApy {
|
|
342
503
|
...PercentNumber
|
|
343
504
|
}
|
|
@@ -351,16 +512,13 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
351
512
|
...PercentNumber
|
|
352
513
|
}
|
|
353
514
|
dynamicConfigKey
|
|
354
|
-
|
|
355
|
-
}`,[i,r]),A=e(`fragment Reserve on Reserve {
|
|
515
|
+
}`,[u,a]),I=e(`fragment Reserve on Reserve {
|
|
356
516
|
__typename
|
|
357
517
|
id
|
|
358
518
|
onChainId
|
|
359
519
|
spoke {
|
|
360
520
|
...Spoke
|
|
361
521
|
}
|
|
362
|
-
borrowCap
|
|
363
|
-
supplyCap
|
|
364
522
|
chain {
|
|
365
523
|
...Chain
|
|
366
524
|
}
|
|
@@ -376,55 +534,20 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
376
534
|
canBorrow
|
|
377
535
|
canSupply
|
|
378
536
|
canUseAsCollateral
|
|
537
|
+
canSwapFrom
|
|
379
538
|
userState {
|
|
380
539
|
...ReserveUserState
|
|
381
540
|
}
|
|
382
541
|
asset {
|
|
383
542
|
...HubAsset
|
|
384
543
|
}
|
|
385
|
-
}`,[
|
|
544
|
+
}`,[l,o,bt,At,Ft,It,C]),c=e(`fragment ReserveInfo on ReserveInfo {
|
|
386
545
|
__typename
|
|
387
546
|
id
|
|
388
547
|
asset {
|
|
389
548
|
...HubAsset
|
|
390
549
|
}
|
|
391
|
-
}`,[C]);var
|
|
392
|
-
name
|
|
393
|
-
type
|
|
394
|
-
}`),Me=e(`fragment TypeDefinition on TypeDefinition {
|
|
395
|
-
EIP712Domain {
|
|
396
|
-
...TypeField
|
|
397
|
-
}
|
|
398
|
-
Permit {
|
|
399
|
-
...TypeField
|
|
400
|
-
}
|
|
401
|
-
}`,[U]),k=e(`fragment DomainData on DomainData {
|
|
402
|
-
name
|
|
403
|
-
version
|
|
404
|
-
chainId
|
|
405
|
-
verifyingContract
|
|
406
|
-
}`),Ve=e(`fragment PermitMessageData on PermitMessageData {
|
|
407
|
-
owner
|
|
408
|
-
spender
|
|
409
|
-
value
|
|
410
|
-
nonce
|
|
411
|
-
deadline
|
|
412
|
-
}`),Ge=e(`fragment PermitTypedDataResponse on PermitTypedDataResponse {
|
|
413
|
-
types {
|
|
414
|
-
...TypeDefinition
|
|
415
|
-
}
|
|
416
|
-
primaryType
|
|
417
|
-
domain {
|
|
418
|
-
...DomainData
|
|
419
|
-
}
|
|
420
|
-
message {
|
|
421
|
-
...PermitMessageData
|
|
422
|
-
}
|
|
423
|
-
}`,[Me,k,Ve]),rr=e(`query PermitTypedData($request: PermitRequest!) {
|
|
424
|
-
value: permitTypedData(request: $request) {
|
|
425
|
-
...PermitTypedDataResponse
|
|
426
|
-
}
|
|
427
|
-
}`,[Ge]);var m=e(`fragment TransactionRequest on TransactionRequest {
|
|
550
|
+
}`,[C]);var p=e(`fragment TransactionRequest on TransactionRequest {
|
|
428
551
|
__typename
|
|
429
552
|
to
|
|
430
553
|
from
|
|
@@ -432,11 +555,19 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
432
555
|
value
|
|
433
556
|
chainId
|
|
434
557
|
operations
|
|
435
|
-
}`),
|
|
558
|
+
}`),K=e(`fragment Erc20Approval on Erc20Approval {
|
|
436
559
|
__typename
|
|
437
|
-
|
|
560
|
+
byTransaction {
|
|
438
561
|
...TransactionRequest
|
|
439
562
|
}
|
|
563
|
+
bySignature {
|
|
564
|
+
...PermitTypedData
|
|
565
|
+
}
|
|
566
|
+
}`,[p,oe]),_=e(`fragment Erc20ApprovalRequired on Erc20ApprovalRequired {
|
|
567
|
+
__typename
|
|
568
|
+
approvals {
|
|
569
|
+
...Erc20Approval
|
|
570
|
+
}
|
|
440
571
|
reason
|
|
441
572
|
requiredAmount {
|
|
442
573
|
...DecimalNumber
|
|
@@ -447,7 +578,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
447
578
|
originalTransaction {
|
|
448
579
|
...TransactionRequest
|
|
449
580
|
}
|
|
450
|
-
}`,[
|
|
581
|
+
}`,[p,K,y]),Tt=e(`fragment PreContractActionRequired on PreContractActionRequired {
|
|
451
582
|
__typename
|
|
452
583
|
transaction {
|
|
453
584
|
...TransactionRequest
|
|
@@ -456,15 +587,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
456
587
|
originalTransaction {
|
|
457
588
|
...TransactionRequest
|
|
458
589
|
}
|
|
459
|
-
}`,[
|
|
460
|
-
__typename
|
|
461
|
-
required {
|
|
462
|
-
...DecimalNumber
|
|
463
|
-
}
|
|
464
|
-
available {
|
|
465
|
-
...DecimalNumber
|
|
466
|
-
}
|
|
467
|
-
}`,[c]),b=e(`fragment ExecutionPlan on ExecutionPlan {
|
|
590
|
+
}`,[p]),B=e(`fragment ExecutionPlan on ExecutionPlan {
|
|
468
591
|
__typename
|
|
469
592
|
... on TransactionRequest {
|
|
470
593
|
...TransactionRequest
|
|
@@ -478,7 +601,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
478
601
|
... on InsufficientBalanceError {
|
|
479
602
|
...InsufficientBalanceError
|
|
480
603
|
}
|
|
481
|
-
}`,[
|
|
604
|
+
}`,[p,_,Tt,f]);var kt=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
482
605
|
__typename
|
|
483
606
|
networkCosts {
|
|
484
607
|
...TokenAmount
|
|
@@ -486,71 +609,75 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
486
609
|
partnerFee {
|
|
487
610
|
...TokenAmount
|
|
488
611
|
}
|
|
489
|
-
|
|
612
|
+
flashloanFee {
|
|
613
|
+
...TokenAmount
|
|
614
|
+
}
|
|
615
|
+
providerFee {
|
|
616
|
+
...TokenAmount
|
|
617
|
+
}
|
|
618
|
+
}`,[S]),V=e(`fragment SwapQuote on SwapQuote {
|
|
490
619
|
__typename
|
|
620
|
+
accuracy
|
|
491
621
|
quoteId
|
|
492
622
|
suggestedSlippage {
|
|
493
623
|
...PercentNumber
|
|
494
624
|
}
|
|
495
|
-
|
|
625
|
+
selectedSlippage {
|
|
626
|
+
...PercentNumber
|
|
627
|
+
}
|
|
628
|
+
buy {
|
|
496
629
|
...TokenAmount
|
|
497
630
|
}
|
|
498
|
-
|
|
631
|
+
sell {
|
|
499
632
|
...TokenAmount
|
|
500
633
|
}
|
|
501
634
|
costs {
|
|
502
635
|
...SwapQuoteCosts
|
|
503
636
|
}
|
|
504
|
-
|
|
637
|
+
finalBuy {
|
|
505
638
|
...TokenAmount
|
|
506
639
|
}
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
...TypeField
|
|
510
|
-
}
|
|
511
|
-
Order {
|
|
512
|
-
...TypeField
|
|
640
|
+
finalSell {
|
|
641
|
+
...TokenAmount
|
|
513
642
|
}
|
|
514
|
-
}`,[
|
|
643
|
+
}`,[a,S,kt]),M=e(`fragment SwapTypedData on SwapTypedData {
|
|
515
644
|
__typename
|
|
516
|
-
types {
|
|
517
|
-
...SwapByIntentTypeDefinition
|
|
518
|
-
}
|
|
519
645
|
primaryType
|
|
646
|
+
types
|
|
520
647
|
domain {
|
|
521
648
|
...DomainData
|
|
522
649
|
}
|
|
523
650
|
message
|
|
524
|
-
}`,[
|
|
651
|
+
}`,[W]),me=e(`fragment PrepareSwapOrder on PrepareSwapOrder {
|
|
652
|
+
__typename
|
|
653
|
+
newQuoteId
|
|
654
|
+
data {
|
|
655
|
+
...SwapTypedData
|
|
656
|
+
}
|
|
657
|
+
}`,[M]),vt=e(`fragment SwapByIntent on SwapByIntent {
|
|
525
658
|
__typename
|
|
526
659
|
quote {
|
|
527
660
|
...SwapQuote
|
|
528
661
|
}
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
}
|
|
532
|
-
}`,[E,Z]),Je=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
662
|
+
|
|
663
|
+
}`,[V]),Ct=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
533
664
|
__typename
|
|
534
|
-
|
|
535
|
-
...
|
|
665
|
+
approvals {
|
|
666
|
+
...Erc20Approval
|
|
536
667
|
}
|
|
537
668
|
quote {
|
|
538
669
|
...SwapQuote
|
|
539
670
|
}
|
|
540
|
-
|
|
541
|
-
...SwapByIntentTypedData
|
|
542
|
-
}
|
|
543
|
-
}`,[m,E,Z]),je=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
671
|
+
}`,[K,V]),Et=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
544
672
|
__typename
|
|
545
673
|
quote {
|
|
546
674
|
...SwapQuote
|
|
547
675
|
}
|
|
548
|
-
}`,[
|
|
676
|
+
}`,[V]),le=e(`fragment SwapReceipt on SwapReceipt {
|
|
549
677
|
__typename
|
|
550
678
|
id
|
|
551
|
-
explorerLink
|
|
552
679
|
createdAt
|
|
553
|
-
}`),
|
|
680
|
+
}`),ye=e(`fragment TokenSwapQuoteResult on TokenSwapQuoteResult {
|
|
554
681
|
__typename
|
|
555
682
|
... on SwapByIntent {
|
|
556
683
|
...SwapByIntent
|
|
@@ -561,10 +688,18 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
561
688
|
... on SwapByTransaction {
|
|
562
689
|
...SwapByTransaction
|
|
563
690
|
}
|
|
691
|
+
... on InsufficientLiquidityError {
|
|
692
|
+
...InsufficientLiquidityError
|
|
693
|
+
}
|
|
694
|
+
}`,[vt,Ct,Et,b]),ce=e(`fragment PrepareTokenSwapResult on PrepareTokenSwapResult {
|
|
695
|
+
__typename
|
|
696
|
+
... on PrepareSwapOrder {
|
|
697
|
+
...PrepareSwapOrder
|
|
698
|
+
}
|
|
564
699
|
... on InsufficientBalanceError {
|
|
565
700
|
...InsufficientBalanceError
|
|
566
701
|
}
|
|
567
|
-
}`,[
|
|
702
|
+
}`,[me,f]),Ut=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
568
703
|
__typename
|
|
569
704
|
transaction {
|
|
570
705
|
...TransactionRequest
|
|
@@ -572,75 +707,140 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
572
707
|
orderReceipt {
|
|
573
708
|
...SwapReceipt
|
|
574
709
|
}
|
|
575
|
-
}`,[
|
|
576
|
-
__typename
|
|
577
|
-
approval {
|
|
578
|
-
...TransactionRequest
|
|
579
|
-
}
|
|
580
|
-
originalTransaction {
|
|
581
|
-
...SwapTransactionRequest
|
|
582
|
-
}
|
|
583
|
-
}`,[m,X]),ee=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
710
|
+
}`,[p,le]),ge=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
584
711
|
__typename
|
|
585
712
|
... on SwapTransactionRequest {
|
|
586
713
|
...SwapTransactionRequest
|
|
587
714
|
}
|
|
588
|
-
... on
|
|
589
|
-
...
|
|
715
|
+
... on SwapReceipt {
|
|
716
|
+
...SwapReceipt
|
|
590
717
|
}
|
|
591
718
|
... on InsufficientBalanceError {
|
|
592
719
|
...InsufficientBalanceError
|
|
593
720
|
}
|
|
594
|
-
|
|
595
|
-
|
|
721
|
+
}`,[Ut,le,f]),q=e(`fragment PositionAmount on PositionAmount {
|
|
722
|
+
__typename
|
|
723
|
+
reserve {
|
|
724
|
+
...ReserveInfo
|
|
725
|
+
}
|
|
726
|
+
amount {
|
|
727
|
+
...Erc20Amount
|
|
728
|
+
}
|
|
729
|
+
}`,[c,u]),Ot=e(`fragment SupplySwap on SupplySwap {
|
|
730
|
+
__typename
|
|
731
|
+
sell {
|
|
732
|
+
...PositionAmount
|
|
733
|
+
}
|
|
734
|
+
buy {
|
|
735
|
+
...PositionAmount
|
|
736
|
+
}
|
|
737
|
+
kind
|
|
738
|
+
orderClass
|
|
739
|
+
}`,[q]),_t=e(`fragment BorrowSwap on BorrowSwap {
|
|
740
|
+
__typename
|
|
741
|
+
sell {
|
|
742
|
+
...PositionAmount
|
|
743
|
+
}
|
|
744
|
+
buy {
|
|
745
|
+
...PositionAmount
|
|
746
|
+
}
|
|
747
|
+
kind
|
|
748
|
+
orderClass
|
|
749
|
+
}`,[q]),Bt=e(`fragment RepayWithSupply on RepayWithSupply {
|
|
750
|
+
__typename
|
|
751
|
+
repay {
|
|
752
|
+
...PositionAmount
|
|
753
|
+
}
|
|
754
|
+
supply {
|
|
755
|
+
...PositionAmount
|
|
756
|
+
}
|
|
757
|
+
kind
|
|
758
|
+
orderClass
|
|
759
|
+
}`,[q]),Qt=e(`fragment WithdrawSwap on WithdrawSwap {
|
|
760
|
+
__typename
|
|
761
|
+
withdraw {
|
|
762
|
+
...PositionAmount
|
|
596
763
|
}
|
|
597
|
-
|
|
764
|
+
buy {
|
|
765
|
+
...TokenAmount
|
|
766
|
+
}
|
|
767
|
+
kind
|
|
768
|
+
orderClass
|
|
769
|
+
}`,[q,S]),Ht=e(`fragment TokenSwap on TokenSwap {
|
|
770
|
+
__typename
|
|
771
|
+
sell {
|
|
772
|
+
...TokenAmount
|
|
773
|
+
}
|
|
774
|
+
buy {
|
|
775
|
+
...TokenAmount
|
|
776
|
+
}
|
|
777
|
+
kind
|
|
778
|
+
orderClass
|
|
779
|
+
}`,[S]),Q=e(`fragment SwapOperation on SwapOperation {
|
|
780
|
+
__typename
|
|
781
|
+
... on SupplySwap {
|
|
782
|
+
...SupplySwap
|
|
783
|
+
}
|
|
784
|
+
... on BorrowSwap {
|
|
785
|
+
...BorrowSwap
|
|
786
|
+
}
|
|
787
|
+
... on RepayWithSupply {
|
|
788
|
+
...RepayWithSupply
|
|
789
|
+
}
|
|
790
|
+
... on WithdrawSwap {
|
|
791
|
+
...WithdrawSwap
|
|
792
|
+
}
|
|
793
|
+
... on TokenSwap {
|
|
794
|
+
...TokenSwap
|
|
795
|
+
}
|
|
796
|
+
}`,[Ot,_t,Bt,Qt,Ht]),Wt=e(`fragment SwapCancelled on SwapCancelled {
|
|
598
797
|
__typename
|
|
798
|
+
swapId
|
|
599
799
|
createdAt
|
|
600
800
|
cancelledAt
|
|
601
|
-
|
|
602
|
-
|
|
801
|
+
explorerUrl
|
|
802
|
+
operation {
|
|
803
|
+
...SwapOperation
|
|
804
|
+
}
|
|
805
|
+
}`,[Q]),Vt=e(`fragment SwapExpired on SwapExpired {
|
|
603
806
|
__typename
|
|
807
|
+
swapId
|
|
604
808
|
createdAt
|
|
605
809
|
expiredAt
|
|
606
|
-
|
|
607
|
-
|
|
810
|
+
explorerUrl
|
|
811
|
+
operation {
|
|
812
|
+
...SwapOperation
|
|
813
|
+
}
|
|
814
|
+
}`,[Q]),Mt=e(`fragment SwapOpen on SwapOpen {
|
|
608
815
|
__typename
|
|
609
816
|
swapId
|
|
610
817
|
createdAt
|
|
611
818
|
deadline
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
...
|
|
615
|
-
}
|
|
616
|
-
desiredBuy {
|
|
617
|
-
...TokenAmount
|
|
819
|
+
explorerUrl
|
|
820
|
+
operation {
|
|
821
|
+
...SwapOperation
|
|
618
822
|
}
|
|
619
|
-
}`,[
|
|
823
|
+
}`,[Q]),$t=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
620
824
|
__typename
|
|
825
|
+
swapId
|
|
621
826
|
createdAt
|
|
622
827
|
deadline
|
|
623
|
-
|
|
624
|
-
|
|
828
|
+
explorerUrl
|
|
829
|
+
operation {
|
|
830
|
+
...SwapOperation
|
|
831
|
+
}
|
|
832
|
+
}`,[Q]),Nt=e(`fragment SwapFulfilled on SwapFulfilled {
|
|
625
833
|
__typename
|
|
834
|
+
swapId
|
|
626
835
|
txHash
|
|
627
|
-
desiredSell {
|
|
628
|
-
...TokenAmount
|
|
629
|
-
}
|
|
630
|
-
desiredBuy {
|
|
631
|
-
...TokenAmount
|
|
632
|
-
}
|
|
633
|
-
sold {
|
|
634
|
-
...TokenAmount
|
|
635
|
-
}
|
|
636
|
-
bought {
|
|
637
|
-
...TokenAmount
|
|
638
|
-
}
|
|
639
836
|
createdAt
|
|
640
837
|
fulfilledAt
|
|
641
|
-
|
|
838
|
+
explorerUrl
|
|
642
839
|
refundTxHash
|
|
643
|
-
|
|
840
|
+
operation {
|
|
841
|
+
...SwapOperation
|
|
842
|
+
}
|
|
843
|
+
}`,[Q]),Y=e(`fragment SwapStatus on SwapStatus {
|
|
644
844
|
__typename
|
|
645
845
|
... on SwapOpen {
|
|
646
846
|
...SwapOpen
|
|
@@ -657,36 +857,26 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
657
857
|
... on SwapFulfilled {
|
|
658
858
|
...SwapFulfilled
|
|
659
859
|
}
|
|
660
|
-
}`,[
|
|
661
|
-
OrderCancellations {
|
|
662
|
-
...TypeField
|
|
663
|
-
}
|
|
664
|
-
EIP712Domain {
|
|
665
|
-
...TypeField
|
|
666
|
-
}
|
|
667
|
-
}`,[U]),ot=e(`fragment CancelSwapTypedData on CancelSwapTypedData {
|
|
668
|
-
types {
|
|
669
|
-
...CancelSwapTypeDefinition
|
|
670
|
-
}
|
|
671
|
-
primaryType
|
|
672
|
-
domain {
|
|
673
|
-
...DomainData
|
|
674
|
-
}
|
|
675
|
-
message
|
|
676
|
-
}`,[at,k]),re=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
860
|
+
}`,[Mt,$t,Wt,Vt,Nt]),de=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
677
861
|
__typename
|
|
678
862
|
data {
|
|
679
|
-
...
|
|
863
|
+
...SwapTypedData
|
|
680
864
|
}
|
|
681
|
-
}`,[
|
|
865
|
+
}`,[M]),Dt=e(`fragment SwapCancelledResult on SwapCancelledResult {
|
|
866
|
+
__typename
|
|
867
|
+
swapId
|
|
868
|
+
createdAt
|
|
869
|
+
cancelledAt
|
|
870
|
+
explorerUrl
|
|
871
|
+
}`),Se=e(`fragment CancelSwapExecutionPlan on CancelSwapExecutionPlan {
|
|
682
872
|
__typename
|
|
683
873
|
... on TransactionRequest {
|
|
684
874
|
...TransactionRequest
|
|
685
875
|
}
|
|
686
|
-
... on
|
|
687
|
-
...
|
|
876
|
+
... on SwapCancelledResult {
|
|
877
|
+
...SwapCancelledResult
|
|
688
878
|
}
|
|
689
|
-
}`,[
|
|
879
|
+
}`,[p,Dt]),Re=e(`fragment PaginatedUserSwapsResult on PaginatedUserSwapsResult {
|
|
690
880
|
__typename
|
|
691
881
|
items {
|
|
692
882
|
...SwapStatus
|
|
@@ -694,7 +884,76 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
694
884
|
pageInfo {
|
|
695
885
|
...PaginatedResultInfo
|
|
696
886
|
}
|
|
697
|
-
}`,[
|
|
887
|
+
}`,[Y,R]),Lt=e(`fragment PositionSwapAdapterContractApproval on PositionSwapAdapterContractApproval {
|
|
888
|
+
__typename
|
|
889
|
+
bySignature {
|
|
890
|
+
...SwapTypedData
|
|
891
|
+
}
|
|
892
|
+
}`,[M]),Gt=e(`fragment PositionSwapPositionManagerApproval on PositionSwapPositionManagerApproval {
|
|
893
|
+
__typename
|
|
894
|
+
byTransaction {
|
|
895
|
+
...TransactionRequest
|
|
896
|
+
}
|
|
897
|
+
bySignature {
|
|
898
|
+
...SwapTypedData
|
|
899
|
+
}
|
|
900
|
+
}`,[p,M]),Kt=e(`fragment PositionSwapApproval on PositionSwapApproval {
|
|
901
|
+
__typename
|
|
902
|
+
... on PositionSwapAdapterContractApproval {
|
|
903
|
+
...PositionSwapAdapterContractApproval
|
|
904
|
+
}
|
|
905
|
+
... on PositionSwapPositionManagerApproval {
|
|
906
|
+
...PositionSwapPositionManagerApproval
|
|
907
|
+
}
|
|
908
|
+
}`,[Lt,Gt]),$=e(`fragment PositionSwapByIntentApprovalsRequired on PositionSwapByIntentApprovalsRequired {
|
|
909
|
+
__typename
|
|
910
|
+
quote {
|
|
911
|
+
...SwapQuote
|
|
912
|
+
}
|
|
913
|
+
approvals {
|
|
914
|
+
...PositionSwapApproval
|
|
915
|
+
}
|
|
916
|
+
}`,[V,Kt]),fe=e(`fragment SupplySwapQuoteResult on SupplySwapQuoteResult {
|
|
917
|
+
__typename
|
|
918
|
+
... on PositionSwapByIntentApprovalsRequired {
|
|
919
|
+
...PositionSwapByIntentApprovalsRequired
|
|
920
|
+
}
|
|
921
|
+
... on InsufficientLiquidityError {
|
|
922
|
+
...InsufficientLiquidityError
|
|
923
|
+
}
|
|
924
|
+
}`,[$,b]),we=e(`fragment BorrowSwapQuoteResult on BorrowSwapQuoteResult {
|
|
925
|
+
__typename
|
|
926
|
+
... on PositionSwapByIntentApprovalsRequired {
|
|
927
|
+
...PositionSwapByIntentApprovalsRequired
|
|
928
|
+
}
|
|
929
|
+
... on InsufficientLiquidityError {
|
|
930
|
+
...InsufficientLiquidityError
|
|
931
|
+
}
|
|
932
|
+
}`,[$,b]),xe=e(`fragment RepayWithSupplyQuoteResult on RepayWithSupplyQuoteResult {
|
|
933
|
+
__typename
|
|
934
|
+
... on PositionSwapByIntentApprovalsRequired {
|
|
935
|
+
...PositionSwapByIntentApprovalsRequired
|
|
936
|
+
}
|
|
937
|
+
... on InsufficientLiquidityError {
|
|
938
|
+
...InsufficientLiquidityError
|
|
939
|
+
}
|
|
940
|
+
}`,[$,b]),qe=e(`fragment WithdrawSwapQuoteResult on WithdrawSwapQuoteResult {
|
|
941
|
+
__typename
|
|
942
|
+
... on PositionSwapByIntentApprovalsRequired {
|
|
943
|
+
...PositionSwapByIntentApprovalsRequired
|
|
944
|
+
}
|
|
945
|
+
... on InsufficientLiquidityError {
|
|
946
|
+
...InsufficientLiquidityError
|
|
947
|
+
}
|
|
948
|
+
}`,[$,b]),Pe=e(`fragment PreparePositionSwapResult on PreparePositionSwapResult {
|
|
949
|
+
__typename
|
|
950
|
+
... on PrepareSwapOrder {
|
|
951
|
+
...PrepareSwapOrder
|
|
952
|
+
}
|
|
953
|
+
... on InsufficientBalanceError {
|
|
954
|
+
...InsufficientBalanceError
|
|
955
|
+
}
|
|
956
|
+
}`,[me,f]);var he=e(`fragment UserSupplyItem on UserSupplyItem {
|
|
698
957
|
__typename
|
|
699
958
|
id
|
|
700
959
|
reserve {
|
|
@@ -711,7 +970,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
711
970
|
}
|
|
712
971
|
isCollateral
|
|
713
972
|
createdAt
|
|
714
|
-
}`,[
|
|
973
|
+
}`,[u,I]),Ae=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
715
974
|
__typename
|
|
716
975
|
id
|
|
717
976
|
principal {
|
|
@@ -727,7 +986,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
727
986
|
...Reserve
|
|
728
987
|
}
|
|
729
988
|
createdAt
|
|
730
|
-
}`,[
|
|
989
|
+
}`,[u,I]),Fe=e(`fragment UserSummary on UserSummary {
|
|
731
990
|
__typename
|
|
732
991
|
totalPositions
|
|
733
992
|
netBalance(currency: $currency) {
|
|
@@ -745,33 +1004,33 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
745
1004
|
netApy {
|
|
746
1005
|
...PercentNumber
|
|
747
1006
|
}
|
|
748
|
-
|
|
1007
|
+
netAccruedInterest(currency: $currency) {
|
|
749
1008
|
...ExchangeAmount
|
|
750
1009
|
}
|
|
751
1010
|
lowestHealthFactor
|
|
752
|
-
}`,[
|
|
1011
|
+
}`,[h,m,a]),be=e(`fragment UserRiskPremiumBreakdownItem on UserRiskPremiumBreakdownItem {
|
|
753
1012
|
__typename
|
|
754
1013
|
token {
|
|
755
1014
|
...Erc20Token
|
|
756
1015
|
}
|
|
757
|
-
|
|
1016
|
+
currentRiskPremiumWeight {
|
|
1017
|
+
...PercentNumber
|
|
1018
|
+
}
|
|
1019
|
+
latestRiskPremiumWeight {
|
|
758
1020
|
...PercentNumber
|
|
759
1021
|
}
|
|
760
1022
|
collateral {
|
|
761
1023
|
...PercentNumber
|
|
762
1024
|
}
|
|
763
|
-
}`,[
|
|
1025
|
+
}`,[s,a]),Yt=e(`fragment UserPositionRiskPremium on UserPositionRiskPremium {
|
|
764
1026
|
__typename
|
|
765
1027
|
current {
|
|
766
1028
|
...PercentNumber
|
|
767
1029
|
}
|
|
768
|
-
|
|
1030
|
+
latest {
|
|
769
1031
|
...PercentNumber
|
|
770
1032
|
}
|
|
771
|
-
|
|
772
|
-
...UserRiskPremiumBreakdownItem
|
|
773
|
-
}
|
|
774
|
-
}`,[r,_]),$=e(`fragment UserPosition on UserPosition {
|
|
1033
|
+
}`,[a]),z=e(`fragment UserPosition on UserPosition {
|
|
775
1034
|
__typename
|
|
776
1035
|
id
|
|
777
1036
|
spoke {
|
|
@@ -788,6 +1047,9 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
788
1047
|
netBalance(currency: $currency) {
|
|
789
1048
|
...ExchangeAmountWithChange
|
|
790
1049
|
}
|
|
1050
|
+
netAccruedInterest(currency: $currency) {
|
|
1051
|
+
...ExchangeAmount
|
|
1052
|
+
}
|
|
791
1053
|
totalCollateral(currency: $currency) {
|
|
792
1054
|
...ExchangeAmountWithChange
|
|
793
1055
|
}
|
|
@@ -812,17 +1074,20 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
812
1074
|
liquidationPrice(currency: $currency) {
|
|
813
1075
|
...ExchangeAmount
|
|
814
1076
|
}
|
|
815
|
-
|
|
1077
|
+
maxBorrowingPower(currency: $currency) {
|
|
816
1078
|
...ExchangeAmount
|
|
817
1079
|
}
|
|
818
|
-
|
|
1080
|
+
remainingBorrowingPower(currency: $currency) {
|
|
1081
|
+
...ExchangeAmount
|
|
1082
|
+
}
|
|
1083
|
+
canUpdateDynamicConfig
|
|
819
1084
|
netBalancePercentChange(window: $timeWindow) {
|
|
820
1085
|
...PercentNumber
|
|
821
1086
|
}
|
|
822
1087
|
averageCollateralFactor {
|
|
823
1088
|
...PercentNumber
|
|
824
1089
|
}
|
|
825
|
-
}`,[
|
|
1090
|
+
}`,[l,a,h,m,ee,ae,Yt]),Ie=e(`fragment UserBalance on UserBalance {
|
|
826
1091
|
__typename
|
|
827
1092
|
id
|
|
828
1093
|
info {
|
|
@@ -855,7 +1120,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
855
1120
|
lowestCollateralFactor: collateralFactor(metric: LOWEST) {
|
|
856
1121
|
...PercentNumber
|
|
857
1122
|
}
|
|
858
|
-
}`,[
|
|
1123
|
+
}`,[v,y,S,m,a]),Te=e(`fragment UserSummaryHistoryItem on UserSummaryHistoryItem {
|
|
859
1124
|
__typename
|
|
860
1125
|
netBalance(currency: $currency) {
|
|
861
1126
|
...ExchangeAmount
|
|
@@ -868,25 +1133,211 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
868
1133
|
}
|
|
869
1134
|
healthFactor
|
|
870
1135
|
date
|
|
871
|
-
}`,[
|
|
1136
|
+
}`,[m]),Z=e(`fragment ApySample on ApySample {
|
|
872
1137
|
__typename
|
|
873
1138
|
date
|
|
874
1139
|
avgRate {
|
|
875
1140
|
...PercentNumber
|
|
876
1141
|
}
|
|
877
|
-
}`,[
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
1142
|
+
}`,[a]);var zt=e(`fragment BoostedRate on BoostedRate {
|
|
1143
|
+
__typename
|
|
1144
|
+
id
|
|
1145
|
+
name
|
|
1146
|
+
userCount
|
|
1147
|
+
apy {
|
|
1148
|
+
...PercentNumber
|
|
1149
|
+
}
|
|
1150
|
+
}`,[a]),Zt=e(`fragment StableVaultSummary on StableVaultSummary {
|
|
1151
|
+
__typename
|
|
1152
|
+
shares
|
|
1153
|
+
userCount
|
|
1154
|
+
totalDeposits
|
|
1155
|
+
}`),jt=e(`fragment StableVaultRates on StableVaultRates {
|
|
1156
|
+
__typename
|
|
1157
|
+
baseRate {
|
|
1158
|
+
...PercentNumber
|
|
1159
|
+
}
|
|
1160
|
+
name
|
|
1161
|
+
boostedRates {
|
|
1162
|
+
...BoostedRate
|
|
1163
|
+
}
|
|
1164
|
+
}`,[a,zt]),N=e(`fragment StableVault on StableVault {
|
|
1165
|
+
__typename
|
|
1166
|
+
id
|
|
1167
|
+
name
|
|
1168
|
+
address
|
|
1169
|
+
admin
|
|
1170
|
+
chain {
|
|
1171
|
+
...Chain
|
|
1172
|
+
}
|
|
1173
|
+
summary {
|
|
1174
|
+
...StableVaultSummary
|
|
1175
|
+
}
|
|
1176
|
+
rates {
|
|
1177
|
+
...StableVaultRates
|
|
1178
|
+
}
|
|
1179
|
+
}`,[o,Zt,jt]),ke=e(`fragment StableVaultUserPosition on StableVaultUserPosition {
|
|
1180
|
+
__typename
|
|
1181
|
+
id
|
|
1182
|
+
vault {
|
|
1183
|
+
...StableVault
|
|
1184
|
+
}
|
|
1185
|
+
user
|
|
1186
|
+
principal {
|
|
1187
|
+
...DecimalNumber
|
|
1188
|
+
}
|
|
1189
|
+
interests {
|
|
1190
|
+
...DecimalNumber
|
|
1191
|
+
}
|
|
1192
|
+
shares {
|
|
1193
|
+
...DecimalNumber
|
|
1194
|
+
}
|
|
1195
|
+
totalBalance {
|
|
1196
|
+
...DecimalNumber
|
|
1197
|
+
}
|
|
1198
|
+
apy {
|
|
1199
|
+
...PercentNumber
|
|
1200
|
+
}
|
|
1201
|
+
boostedRateId
|
|
1202
|
+
}`,[N,y,a]),Jt=e(`fragment TokenMovementAllocate on TokenMovementAllocate {
|
|
1203
|
+
__typename
|
|
1204
|
+
token {
|
|
1205
|
+
...Erc20Token
|
|
1206
|
+
}
|
|
1207
|
+
amount
|
|
1208
|
+
}`,[s]),Xt=e(`fragment TokenMovementBridgeIn on TokenMovementBridgeIn {
|
|
1209
|
+
__typename
|
|
1210
|
+
fromToken {
|
|
1211
|
+
...Erc20Token
|
|
1212
|
+
}
|
|
1213
|
+
toToken {
|
|
1214
|
+
...Erc20Token
|
|
1215
|
+
}
|
|
1216
|
+
amount
|
|
1217
|
+
}`,[s]),er=e(`fragment TokenMovementBridgeOut on TokenMovementBridgeOut {
|
|
1218
|
+
__typename
|
|
1219
|
+
fromToken {
|
|
1220
|
+
...Erc20Token
|
|
1221
|
+
}
|
|
1222
|
+
toToken {
|
|
1223
|
+
...Erc20Token
|
|
1224
|
+
}
|
|
1225
|
+
amount
|
|
1226
|
+
}`,[s]),tr=e(`fragment TokenMovementDeallocate on TokenMovementDeallocate {
|
|
1227
|
+
__typename
|
|
1228
|
+
token {
|
|
1229
|
+
...Erc20Token
|
|
1230
|
+
}
|
|
1231
|
+
amount
|
|
1232
|
+
}`,[s]),rr=e(`fragment TokenMovementRebalance on TokenMovementRebalance {
|
|
1233
|
+
__typename
|
|
1234
|
+
token {
|
|
1235
|
+
...Erc20Token
|
|
1236
|
+
}
|
|
1237
|
+
amount
|
|
1238
|
+
}`,[s]),ar=e(`fragment TokenMovementSwap on TokenMovementSwap {
|
|
1239
|
+
__typename
|
|
1240
|
+
fromToken {
|
|
1241
|
+
...Erc20Token
|
|
1242
|
+
}
|
|
1243
|
+
fromAmount
|
|
1244
|
+
toToken {
|
|
1245
|
+
...Erc20Token
|
|
1246
|
+
}
|
|
1247
|
+
toAmount
|
|
1248
|
+
}`,[s]),nr=e(`fragment TokenMovement on TokenMovement {
|
|
1249
|
+
__typename
|
|
1250
|
+
... on TokenMovementAllocate {
|
|
1251
|
+
...TokenMovementAllocate
|
|
1252
|
+
}
|
|
1253
|
+
... on TokenMovementBridgeIn {
|
|
1254
|
+
...TokenMovementBridgeIn
|
|
1255
|
+
}
|
|
1256
|
+
... on TokenMovementBridgeOut {
|
|
1257
|
+
...TokenMovementBridgeOut
|
|
1258
|
+
}
|
|
1259
|
+
... on TokenMovementDeallocate {
|
|
1260
|
+
...TokenMovementDeallocate
|
|
1261
|
+
}
|
|
1262
|
+
... on TokenMovementSwap {
|
|
1263
|
+
...TokenMovementSwap
|
|
1264
|
+
}
|
|
1265
|
+
... on TokenMovementRebalance {
|
|
1266
|
+
...TokenMovementRebalance
|
|
1267
|
+
}
|
|
1268
|
+
}`,[Jt,Xt,er,tr,ar,rr]),or=e(`fragment TokenMovementRecord on TokenMovementRecord {
|
|
1269
|
+
__typename
|
|
1270
|
+
id
|
|
1271
|
+
type {
|
|
1272
|
+
...TokenMovement
|
|
1273
|
+
}
|
|
1274
|
+
status
|
|
1275
|
+
timestamp
|
|
1276
|
+
txHash
|
|
1277
|
+
}`,[nr]),ve=e(`fragment PaginatedStableVaultMovementsResult on PaginatedStableVaultMovementsResult {
|
|
1278
|
+
__typename
|
|
1279
|
+
items {
|
|
1280
|
+
...TokenMovementRecord
|
|
1281
|
+
}
|
|
1282
|
+
pageInfo {
|
|
1283
|
+
...PaginatedResultInfo
|
|
1284
|
+
}
|
|
1285
|
+
}`,[or,R]),Ce=e(`fragment PaginatedStableVaultRateUsersResult on PaginatedStableVaultRateUsersResult {
|
|
1286
|
+
__typename
|
|
1287
|
+
items
|
|
1288
|
+
pageInfo {
|
|
1289
|
+
...PaginatedResultInfo
|
|
1290
|
+
}
|
|
1291
|
+
}`,[R]),pr=e(`fragment StableVaultWithdrawClaim on StableVaultWithdrawClaim {
|
|
1292
|
+
__typename
|
|
1293
|
+
claimId
|
|
1294
|
+
transaction {
|
|
1295
|
+
...TransactionRequest
|
|
1296
|
+
}
|
|
1297
|
+
executableAfter
|
|
1298
|
+
}`,[p]),sr=e(`fragment StableVaultPendingAvailability on StableVaultPendingAvailability {
|
|
1299
|
+
__typename
|
|
1300
|
+
executableAfter
|
|
1301
|
+
}`),Ee=e(`fragment StableVaultDepositExecutionPlan on StableVaultDepositExecutionPlan {
|
|
1302
|
+
__typename
|
|
1303
|
+
... on TransactionRequest {
|
|
1304
|
+
...TransactionRequest
|
|
1305
|
+
}
|
|
1306
|
+
... on Erc20ApprovalRequired {
|
|
1307
|
+
...Erc20ApprovalRequired
|
|
1308
|
+
}
|
|
1309
|
+
... on InsufficientBalanceError {
|
|
1310
|
+
...InsufficientBalanceError
|
|
1311
|
+
}
|
|
1312
|
+
}`,[p,_,f]),Ue=e(`fragment StableVaultWithdrawExecutionPlan on StableVaultWithdrawExecutionPlan {
|
|
1313
|
+
__typename
|
|
1314
|
+
... on TransactionRequest {
|
|
1315
|
+
...TransactionRequest
|
|
1316
|
+
}
|
|
1317
|
+
... on StableVaultWithdrawClaim {
|
|
1318
|
+
...StableVaultWithdrawClaim
|
|
1319
|
+
}
|
|
1320
|
+
}`,[p,pr]),Oe=e(`fragment StableVaultWithdrawRedeemExecutionPlan on StableVaultWithdrawRedeemExecutionPlan {
|
|
1321
|
+
__typename
|
|
1322
|
+
... on TransactionRequest {
|
|
1323
|
+
...TransactionRequest
|
|
1324
|
+
}
|
|
1325
|
+
... on StableVaultPendingAvailability {
|
|
1326
|
+
...StableVaultPendingAvailability
|
|
1327
|
+
}
|
|
1328
|
+
}`,[p,sr]);var $a=e(`query Hub($request: HubRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1329
|
+
value: hub(request: $request) {
|
|
1330
|
+
...Hub
|
|
1331
|
+
}
|
|
1332
|
+
}`,[A]),Na=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1333
|
+
value: hubs(request: $request) {
|
|
1334
|
+
...Hub
|
|
1335
|
+
}
|
|
1336
|
+
}`,[A]),Da=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
886
1337
|
value: hubAssets(request: $request) {
|
|
887
1338
|
...HubAsset
|
|
888
1339
|
}
|
|
889
|
-
}`,[C]),
|
|
1340
|
+
}`,[C]),ir=e(`fragment HubSummarySample on HubSummarySample {
|
|
890
1341
|
__typename
|
|
891
1342
|
date
|
|
892
1343
|
deposits {
|
|
@@ -901,43 +1352,62 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
901
1352
|
utilizationRate {
|
|
902
1353
|
...PercentNumber
|
|
903
1354
|
}
|
|
904
|
-
}`,[
|
|
1355
|
+
}`,[m,a]),La=e(`query HubSummaryHistory($request: HubSummaryHistoryRequest!) {
|
|
905
1356
|
value: hubSummaryHistory(request: $request) {
|
|
906
1357
|
...HubSummarySample
|
|
907
1358
|
}
|
|
908
|
-
}`,[
|
|
1359
|
+
}`,[ir]),ur=e(`fragment HubAssetInterestRateModelPoint on HubAssetInterestRateModelPoint {
|
|
1360
|
+
__typename
|
|
1361
|
+
utilizationRate {
|
|
1362
|
+
...PercentNumber
|
|
1363
|
+
}
|
|
1364
|
+
borrowRate {
|
|
1365
|
+
...PercentNumber
|
|
1366
|
+
}
|
|
1367
|
+
supplyRate {
|
|
1368
|
+
...PercentNumber
|
|
1369
|
+
}
|
|
1370
|
+
liquidityDistance {
|
|
1371
|
+
...Erc20Amount
|
|
1372
|
+
}
|
|
1373
|
+
}`,[a,u]),Ga=e(`query HubAssetInterestRateModel($request: HubAssetInterestRateModelRequest!, $currency: Currency!) {
|
|
1374
|
+
value: hubAssetInterestRateModel(request: $request) {
|
|
1375
|
+
points {
|
|
1376
|
+
...HubAssetInterestRateModelPoint
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
}`,[ur]);function L(t){return new TextDecoder().decode(Uint8Array.from(atob(t),x=>x.charCodeAt(0)))}function G(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 Za(t){return invariant(typeof t=="string"&&t.length>0,`Invalid BoostedRateId: ${t}`),t}function mr(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 mr(G(`${t.chainId}${w}${t.address}`))}function Ja(t){let x=L(t),[r,n]=x.split(w);return {chainId:chainId(Number.parseInt(r,10)),address:evmAddress(n)}}function Xa(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 en(t){return t}function tn(t){let x=L(t),[r,n,P]=x.split(w);return {chainId:chainId(Number.parseInt(r,10)),spoke:evmAddress(n),onChainId:P}}function rn(t){return G(`${t.chainId}${w}${t.spoke}${w}${t.onChainId}`)}function lr(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 an(t){let x=L(t),[r,n,P]=x.split(w);return {chainId:chainId(Number.parseInt(r,10)),spoke:evmAddress(n),user:evmAddress(P)}}function nn(t){return lr(G(`${t.chainId}${w}${t.spoke}${w}${t.user}`))}function on(t){return invariant(isValidHexString(t),`Invalid SwapId: ${t}`),t}function pn(t){return invariant(isValidHexString(t),`Invalid SwapQuoteId: ${t}`),t}function sn(t){return invariant(typeof t=="string"&&t.length>0,`Invalid StableVaultId: ${t}`),t}function un(t){return invariant(typeof t=="string"&&t.length>0,`Invalid StableVaultUserPositionId: ${t}`),t}function mn(t){return invariant(typeof t=="string"&&t.length>0,`Invalid StableVaultWithdrawClaimId: ${t}`),t}function ln(t){return yr(G(`${t.chainId}${w}${t.address}`))}function yn(t){let x=L(t),[r,n]=x.split(w);return {chainId:chainId(Number.parseInt(r,10)),address:evmAddress(n)}}function yr(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 cn(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 gn(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 dn(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 Sn(t){return invariant(typeof t=="string"&&t.length>0,`Invalid TokenInfoId: ${t}`),t}function Rn(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 qn(t){return isObject(t)&&"chainIds"in t&&t.chainIds!=null}function Pn(t){return isObject(t)&&"tokens"in t&&t.tokens!=null}function hn(t){return isObject(t)&&"spoke"in t&&t.spoke!=null}function An(t){return isObject(t)&&"reserveInput"in t&&t.reserveInput!=null}function Fn(t){return isObject(t)&&"txHash"in t&&t.txHash!=null}var kn=e(`query Chain($request: ChainRequest!) {
|
|
909
1380
|
value: chain(request: $request) {
|
|
910
1381
|
...Chain
|
|
911
1382
|
}
|
|
912
|
-
}`,[
|
|
1383
|
+
}`,[o]),vn=e(`query Chains($request: ChainsRequest!) {
|
|
913
1384
|
value: chains(request: $request) {
|
|
914
1385
|
...Chain
|
|
915
1386
|
}
|
|
916
|
-
}`,[
|
|
1387
|
+
}`,[o]),Cn=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
917
1388
|
value: hasProcessedKnownTransaction(request: $request)
|
|
918
|
-
}`),
|
|
1389
|
+
}`),En=e(`query Health {
|
|
919
1390
|
value: health
|
|
920
|
-
}`),
|
|
1391
|
+
}`),Un=e(`query ExchangeRate($request: ExchangeRateRequest!) {
|
|
921
1392
|
value: exchangeRate(request: $request) {
|
|
922
1393
|
...ExchangeAmount
|
|
923
1394
|
}
|
|
924
|
-
}`,[
|
|
1395
|
+
}`,[m]);var cr=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
925
1396
|
__typename
|
|
926
1397
|
date
|
|
927
1398
|
price
|
|
928
|
-
}`),
|
|
1399
|
+
}`),Be=e(`fragment AssetSampleBreakdown on AssetSampleBreakdown {
|
|
929
1400
|
__typename
|
|
930
|
-
date
|
|
931
1401
|
amount {
|
|
932
1402
|
...DecimalNumber
|
|
933
1403
|
}
|
|
934
|
-
|
|
1404
|
+
apy {
|
|
935
1405
|
...PercentNumber
|
|
936
1406
|
}
|
|
937
|
-
|
|
938
|
-
...
|
|
1407
|
+
hub {
|
|
1408
|
+
...Hub
|
|
939
1409
|
}
|
|
940
|
-
}`,[
|
|
1410
|
+
}`,[y,a,A]),gr=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
941
1411
|
__typename
|
|
942
1412
|
date
|
|
943
1413
|
amount {
|
|
@@ -949,31 +1419,31 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
949
1419
|
lowestApy {
|
|
950
1420
|
...PercentNumber
|
|
951
1421
|
}
|
|
952
|
-
|
|
953
|
-
__typename
|
|
954
|
-
date
|
|
955
|
-
highestApy {
|
|
956
|
-
...PercentNumber
|
|
957
|
-
}
|
|
958
|
-
lowestApy {
|
|
1422
|
+
averageApy {
|
|
959
1423
|
...PercentNumber
|
|
960
1424
|
}
|
|
961
|
-
|
|
962
|
-
...
|
|
1425
|
+
breakdown {
|
|
1426
|
+
...AssetSampleBreakdown
|
|
963
1427
|
}
|
|
964
|
-
}`,[
|
|
1428
|
+
}`,[y,a,Be]),dr=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
965
1429
|
__typename
|
|
966
1430
|
date
|
|
1431
|
+
amount {
|
|
1432
|
+
...DecimalNumber
|
|
1433
|
+
}
|
|
967
1434
|
highestApy {
|
|
968
1435
|
...PercentNumber
|
|
969
1436
|
}
|
|
970
1437
|
lowestApy {
|
|
971
1438
|
...PercentNumber
|
|
972
1439
|
}
|
|
973
|
-
|
|
974
|
-
...
|
|
1440
|
+
averageApy {
|
|
1441
|
+
...PercentNumber
|
|
975
1442
|
}
|
|
976
|
-
|
|
1443
|
+
breakdown {
|
|
1444
|
+
...AssetSampleBreakdown
|
|
1445
|
+
}
|
|
1446
|
+
}`,[y,a,Be]),Sr=e(`fragment AssetAmountWithChange on AssetAmountWithChange {
|
|
977
1447
|
__typename
|
|
978
1448
|
amount {
|
|
979
1449
|
...DecimalNumberWithChange
|
|
@@ -981,10 +1451,10 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
981
1451
|
exchange(currency: $currency) {
|
|
982
1452
|
...ExchangeAmountWithChange
|
|
983
1453
|
}
|
|
984
|
-
}`,[
|
|
1454
|
+
}`,[j,h]),Rr=e(`fragment AssetSummary on AssetSummary {
|
|
985
1455
|
__typename
|
|
986
1456
|
totalSupplyCap {
|
|
987
|
-
...
|
|
1457
|
+
...AssetAmountWithChange
|
|
988
1458
|
}
|
|
989
1459
|
totalSupplied {
|
|
990
1460
|
...AssetAmountWithChange
|
|
@@ -993,7 +1463,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
993
1463
|
...AssetAmountWithChange
|
|
994
1464
|
}
|
|
995
1465
|
totalBorrowCap {
|
|
996
|
-
...
|
|
1466
|
+
...AssetAmountWithChange
|
|
997
1467
|
}
|
|
998
1468
|
totalBorrowed {
|
|
999
1469
|
...AssetAmountWithChange
|
|
@@ -1007,7 +1477,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1007
1477
|
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
1008
1478
|
...PercentNumber
|
|
1009
1479
|
}
|
|
1010
|
-
}`,[
|
|
1480
|
+
}`,[Sr,a]),fr=e(`fragment Asset on Asset {
|
|
1011
1481
|
__typename
|
|
1012
1482
|
id
|
|
1013
1483
|
token {
|
|
@@ -1019,31 +1489,23 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1019
1489
|
price(currency: $currency) {
|
|
1020
1490
|
...ExchangeAmountWithChange
|
|
1021
1491
|
}
|
|
1022
|
-
}`,[
|
|
1492
|
+
}`,[s,Rr,h]),Qn=e(`query Asset($request: AssetRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1023
1493
|
value: asset(request: $request) {
|
|
1024
1494
|
...Asset
|
|
1025
1495
|
}
|
|
1026
|
-
}`,[
|
|
1496
|
+
}`,[fr]),Hn=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
1027
1497
|
value: assetPriceHistory(request: $request) {
|
|
1028
1498
|
...AssetPriceSample
|
|
1029
1499
|
}
|
|
1030
|
-
}`,[
|
|
1500
|
+
}`,[cr]),Wn=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1031
1501
|
value: assetSupplyHistory(request: $request) {
|
|
1032
1502
|
...AssetSupplySample
|
|
1033
1503
|
}
|
|
1034
|
-
}`,[
|
|
1504
|
+
}`,[gr]),Vn=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1035
1505
|
value: assetBorrowHistory(request: $request) {
|
|
1036
1506
|
...AssetBorrowSample
|
|
1037
1507
|
}
|
|
1038
|
-
}`,[
|
|
1039
|
-
value: assetCategoryBorrowHistory(request: $request) {
|
|
1040
|
-
...AssetCategoryBorrowSample
|
|
1041
|
-
}
|
|
1042
|
-
}`,[gt]),mn=e(`query AssetCategorySupplyHistory($request: AssetCategorySupplyHistoryRequest!, $currency: Currency! = USD) {
|
|
1043
|
-
value: assetCategorySupplyHistory(request: $request) {
|
|
1044
|
-
...AssetCategorySupplySample
|
|
1045
|
-
}
|
|
1046
|
-
}`,[lt]),qt=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
1508
|
+
}`,[dr]),wr=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
1047
1509
|
__typename
|
|
1048
1510
|
date
|
|
1049
1511
|
deposits {
|
|
@@ -1052,94 +1514,119 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1052
1514
|
borrows {
|
|
1053
1515
|
...ExchangeAmount
|
|
1054
1516
|
}
|
|
1055
|
-
|
|
1056
|
-
...ExchangeAmount
|
|
1057
|
-
}
|
|
1058
|
-
}`,[s]),yn=e(`query ProtocolHistory($request: ProtocolHistoryRequest!) {
|
|
1517
|
+
}`,[m]),Mn=e(`query ProtocolHistory($request: ProtocolHistoryRequest!) {
|
|
1059
1518
|
value: protocolHistory(request: $request) {
|
|
1060
1519
|
...ProtocolHistorySample
|
|
1061
1520
|
}
|
|
1062
|
-
}`,[
|
|
1521
|
+
}`,[wr]);var Ln=e(`query BorrowApyHistory($request: BorrowApyHistoryRequest!) {
|
|
1063
1522
|
value: borrowApyHistory(request: $request) {
|
|
1064
1523
|
...ApySample
|
|
1065
1524
|
}
|
|
1066
|
-
}`,[
|
|
1525
|
+
}`,[Z]),Gn=e(`query SupplyApyHistory($request: SupplyApyHistoryRequest!) {
|
|
1067
1526
|
value: supplyApyHistory(request: $request) {
|
|
1068
1527
|
...ApySample
|
|
1069
1528
|
}
|
|
1070
|
-
}`,[
|
|
1529
|
+
}`,[Z]),Kn=e(`query Reserve($request: ReserveRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1071
1530
|
value: reserve(request: $request) {
|
|
1072
1531
|
...Reserve
|
|
1073
1532
|
}
|
|
1074
|
-
}`,[
|
|
1533
|
+
}`,[I]),Yn=e(`query Reserves($request: ReservesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1075
1534
|
value: reserves(request: $request) {
|
|
1076
1535
|
...Reserve
|
|
1077
1536
|
}
|
|
1078
|
-
}`,[
|
|
1537
|
+
}`,[I]);var Jn=e(`query ClaimRewards($request: ClaimRewardsRequest!) {
|
|
1538
|
+
value: claimRewards(request: $request) {
|
|
1539
|
+
...TransactionRequest
|
|
1540
|
+
}
|
|
1541
|
+
}`,[p]),Xn=e(`query UserClaimableRewards($request: UserClaimableRewardsRequest!, $currency: Currency! = USD) {
|
|
1542
|
+
value: userClaimableRewards(request: $request) {
|
|
1543
|
+
...UserClaimableReward
|
|
1544
|
+
}
|
|
1545
|
+
}`,[se]);var ao=e(`query Spoke($request: SpokeRequest!) {
|
|
1079
1546
|
value: spoke(request: $request) {
|
|
1080
1547
|
...Spoke
|
|
1081
1548
|
}
|
|
1082
|
-
}`,[
|
|
1549
|
+
}`,[l]),no=e(`query Spokes($request: SpokesRequest!) {
|
|
1083
1550
|
value: spokes(request: $request) {
|
|
1084
1551
|
...Spoke
|
|
1085
1552
|
}
|
|
1086
|
-
}`,[
|
|
1553
|
+
}`,[l]),oo=e(`query SpokePositionManagers($request: SpokePositionManagersRequest!) {
|
|
1087
1554
|
value: spokePositionManagers(request: $request) {
|
|
1088
1555
|
...PaginatedSpokePositionManagerResult
|
|
1089
1556
|
}
|
|
1090
|
-
}`,[
|
|
1557
|
+
}`,[ie]),po=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
1091
1558
|
value: spokeUserPositionManagers(request: $request) {
|
|
1092
1559
|
...PaginatedSpokeUserPositionManagerResult
|
|
1093
1560
|
}
|
|
1094
|
-
}`,[
|
|
1095
|
-
value:
|
|
1096
|
-
...
|
|
1561
|
+
}`,[ue]);var mo=e(`query TokenSwapQuote($request: TokenSwapQuoteRequest!, $currency: Currency!) {
|
|
1562
|
+
value: tokenSwapQuote(request: $request) {
|
|
1563
|
+
...TokenSwapQuoteResult
|
|
1097
1564
|
}
|
|
1098
|
-
}`,[
|
|
1565
|
+
}`,[ye]),lo=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
1099
1566
|
value: swappableTokens(request: $request) {
|
|
1100
1567
|
...Token
|
|
1101
1568
|
}
|
|
1102
|
-
}`,[
|
|
1103
|
-
value:
|
|
1104
|
-
...
|
|
1569
|
+
}`,[X]),yo=e(`query PrepareTokenSwap($request: PrepareTokenSwapRequest!) {
|
|
1570
|
+
value: prepareTokenSwap(request: $request) {
|
|
1571
|
+
...PrepareTokenSwapResult
|
|
1105
1572
|
}
|
|
1106
|
-
}`,[
|
|
1573
|
+
}`,[ce]),co=e(`query SwapStatus($request: SwapStatusRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1107
1574
|
value: swapStatus(request: $request) {
|
|
1108
1575
|
...SwapStatus
|
|
1109
1576
|
}
|
|
1110
|
-
}`,[
|
|
1577
|
+
}`,[Y]),go=e(`mutation Swap($request: SwapRequest!) {
|
|
1111
1578
|
value: swap(request: $request) {
|
|
1112
1579
|
...SwapExecutionPlan
|
|
1113
1580
|
}
|
|
1114
|
-
}`,[
|
|
1581
|
+
}`,[ge]),So=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
1115
1582
|
value: prepareSwapCancel(request: $request) {
|
|
1116
1583
|
...PrepareSwapCancelResult
|
|
1117
1584
|
}
|
|
1118
|
-
}`,[
|
|
1585
|
+
}`,[de]),Ro=e(`mutation CancelSwap($request: CancelSwapRequest!) {
|
|
1119
1586
|
value: cancelSwap(request: $request) {
|
|
1120
1587
|
...CancelSwapExecutionPlan
|
|
1121
1588
|
}
|
|
1122
|
-
}`,[
|
|
1589
|
+
}`,[Se]),fo=e(`query UserSwaps($request: UserSwapsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1123
1590
|
value: userSwaps(request: $request) {
|
|
1124
1591
|
...PaginatedUserSwapsResult
|
|
1125
1592
|
}
|
|
1126
|
-
}`,[
|
|
1593
|
+
}`,[Re]),wo=e(`query SupplySwapQuote($request: SupplySwapQuoteRequest!, $currency: Currency!) {
|
|
1594
|
+
value: supplySwapQuote(request: $request) {
|
|
1595
|
+
...SupplySwapQuoteResult
|
|
1596
|
+
}
|
|
1597
|
+
}`,[fe]),xo=e(`query BorrowSwapQuote($request: BorrowSwapQuoteRequest!, $currency: Currency!) {
|
|
1598
|
+
value: borrowSwapQuote(request: $request) {
|
|
1599
|
+
...BorrowSwapQuoteResult
|
|
1600
|
+
}
|
|
1601
|
+
}`,[we]),qo=e(`query RepayWithSupplyQuote($request: RepayWithSupplyQuoteRequest!, $currency: Currency!) {
|
|
1602
|
+
value: repayWithSupplyQuote(request: $request) {
|
|
1603
|
+
...RepayWithSupplyQuoteResult
|
|
1604
|
+
}
|
|
1605
|
+
}`,[xe]),Po=e(`query WithdrawSwapQuote($request: WithdrawSwapQuoteRequest!, $currency: Currency!) {
|
|
1606
|
+
value: withdrawSwapQuote(request: $request) {
|
|
1607
|
+
...WithdrawSwapQuoteResult
|
|
1608
|
+
}
|
|
1609
|
+
}`,[qe]),ho=e(`query PreparePositionSwap($request: PreparePositionSwapRequest!) {
|
|
1610
|
+
value: preparePositionSwap(request: $request) {
|
|
1611
|
+
...PreparePositionSwapResult
|
|
1612
|
+
}
|
|
1613
|
+
}`,[Pe]);var Io=e(`query Borrow($request: BorrowRequest!) {
|
|
1127
1614
|
value: borrow(request: $request) {
|
|
1128
1615
|
...ExecutionPlan
|
|
1129
1616
|
}
|
|
1130
|
-
}`,[
|
|
1617
|
+
}`,[B]),To=e(`query Supply($request: SupplyRequest!) {
|
|
1131
1618
|
value: supply(request: $request) {
|
|
1132
1619
|
...ExecutionPlan
|
|
1133
1620
|
}
|
|
1134
|
-
}`,[
|
|
1621
|
+
}`,[B]),ko=e(`query Repay($request: RepayRequest!) {
|
|
1135
1622
|
value: repay(request: $request) {
|
|
1136
1623
|
...ExecutionPlan
|
|
1137
1624
|
}
|
|
1138
|
-
}`,[
|
|
1625
|
+
}`,[B]),vo=e(`query Withdraw($request: WithdrawRequest!) {
|
|
1139
1626
|
value: withdraw(request: $request) {
|
|
1140
1627
|
...ExecutionPlan
|
|
1141
1628
|
}
|
|
1142
|
-
}`,[
|
|
1629
|
+
}`,[B]),xr=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1143
1630
|
__typename
|
|
1144
1631
|
... on TransactionRequest {
|
|
1145
1632
|
...TransactionRequest
|
|
@@ -1150,27 +1637,27 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1150
1637
|
... on InsufficientBalanceError {
|
|
1151
1638
|
...InsufficientBalanceError
|
|
1152
1639
|
}
|
|
1153
|
-
}`,[
|
|
1640
|
+
}`,[p,_,f]),Co=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1154
1641
|
value: liquidatePosition(request: $request) {
|
|
1155
1642
|
...LiquidatePositionExecutionPlan
|
|
1156
1643
|
}
|
|
1157
|
-
}`,[
|
|
1644
|
+
}`,[xr]),Eo=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1158
1645
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1159
1646
|
...TransactionRequest
|
|
1160
1647
|
}
|
|
1161
|
-
}`,[
|
|
1648
|
+
}`,[p]),Uo=e(`query SetUserSuppliesAsCollateral($request: SetUserSuppliesAsCollateralRequest!) {
|
|
1162
1649
|
value: setUserSuppliesAsCollateral(request: $request) {
|
|
1163
1650
|
...TransactionRequest
|
|
1164
1651
|
}
|
|
1165
|
-
}`,[
|
|
1652
|
+
}`,[p]),Oo=e(`query RenounceSpokeUserPositionManager($request: RenounceSpokeUserPositionManagerRequest!) {
|
|
1166
1653
|
value: renounceSpokeUserPositionManager(request: $request) {
|
|
1167
1654
|
...TransactionRequest
|
|
1168
1655
|
}
|
|
1169
|
-
}`,[
|
|
1656
|
+
}`,[p]),_o=e(`query UpdateUserPositionConditions($request: UpdateUserPositionConditionsRequest!) {
|
|
1170
1657
|
value: updateUserPositionConditions(request: $request) {
|
|
1171
1658
|
...TransactionRequest
|
|
1172
1659
|
}
|
|
1173
|
-
}`,[
|
|
1660
|
+
}`,[p]),qr=e(`fragment CollateralFactorVariation on CollateralFactorVariation {
|
|
1174
1661
|
__typename
|
|
1175
1662
|
reserveId
|
|
1176
1663
|
token {
|
|
@@ -1182,7 +1669,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1182
1669
|
after {
|
|
1183
1670
|
...PercentNumber
|
|
1184
1671
|
}
|
|
1185
|
-
}`,[
|
|
1672
|
+
}`,[s,a]),Pr=e(`fragment LiquidationFeeVariation on LiquidationFeeVariation {
|
|
1186
1673
|
__typename
|
|
1187
1674
|
reserveId
|
|
1188
1675
|
token {
|
|
@@ -1194,7 +1681,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1194
1681
|
after {
|
|
1195
1682
|
...PercentNumber
|
|
1196
1683
|
}
|
|
1197
|
-
}`,[
|
|
1684
|
+
}`,[s,a]),hr=e(`fragment MaxLiquidationBonusVariation on MaxLiquidationBonusVariation {
|
|
1198
1685
|
__typename
|
|
1199
1686
|
reserveId
|
|
1200
1687
|
token {
|
|
@@ -1206,7 +1693,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1206
1693
|
after {
|
|
1207
1694
|
...PercentNumber
|
|
1208
1695
|
}
|
|
1209
|
-
}`,[
|
|
1696
|
+
}`,[s,a]),Ar=e(`fragment UserPositionConditionVariation on UserPositionConditionVariation {
|
|
1210
1697
|
__typename
|
|
1211
1698
|
... on CollateralFactorVariation {
|
|
1212
1699
|
...CollateralFactorVariation
|
|
@@ -1217,7 +1704,95 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1217
1704
|
... on MaxLiquidationBonusVariation {
|
|
1218
1705
|
...MaxLiquidationBonusVariation
|
|
1219
1706
|
}
|
|
1220
|
-
}`,[
|
|
1707
|
+
}`,[qr,Pr,hr]),Fr=e(`fragment PreviewMerklSupplyReward on PreviewMerklSupplyReward {
|
|
1708
|
+
__typename
|
|
1709
|
+
id
|
|
1710
|
+
startDate
|
|
1711
|
+
endDate
|
|
1712
|
+
extraApy {
|
|
1713
|
+
...PercentNumber
|
|
1714
|
+
}
|
|
1715
|
+
payoutToken {
|
|
1716
|
+
...Erc20Token
|
|
1717
|
+
}
|
|
1718
|
+
criteria {
|
|
1719
|
+
...MerklCriteria
|
|
1720
|
+
}
|
|
1721
|
+
reserve {
|
|
1722
|
+
...ReserveInfo
|
|
1723
|
+
}
|
|
1724
|
+
}`,[a,s,E,c]),br=e(`fragment PreviewMerklBorrowReward on PreviewMerklBorrowReward {
|
|
1725
|
+
__typename
|
|
1726
|
+
id
|
|
1727
|
+
startDate
|
|
1728
|
+
endDate
|
|
1729
|
+
discountApy {
|
|
1730
|
+
...PercentNumber
|
|
1731
|
+
}
|
|
1732
|
+
payoutToken {
|
|
1733
|
+
...Erc20Token
|
|
1734
|
+
}
|
|
1735
|
+
criteria {
|
|
1736
|
+
...MerklCriteria
|
|
1737
|
+
}
|
|
1738
|
+
reserve {
|
|
1739
|
+
...ReserveInfo
|
|
1740
|
+
}
|
|
1741
|
+
}`,[a,s,E,c]),Ir=e(`fragment PreviewSupplyPoints on PreviewSupplyPointsReward {
|
|
1742
|
+
__typename
|
|
1743
|
+
id
|
|
1744
|
+
program {
|
|
1745
|
+
...PointsProgram
|
|
1746
|
+
}
|
|
1747
|
+
name
|
|
1748
|
+
startDate
|
|
1749
|
+
endDate
|
|
1750
|
+
multiplier
|
|
1751
|
+
criteria {
|
|
1752
|
+
...PointsCriteria
|
|
1753
|
+
}
|
|
1754
|
+
reserve {
|
|
1755
|
+
...ReserveInfo
|
|
1756
|
+
}
|
|
1757
|
+
}`,[O,U,c]),Tr=e(`fragment PreviewBorrowPoints on PreviewBorrowPointsReward {
|
|
1758
|
+
__typename
|
|
1759
|
+
id
|
|
1760
|
+
program {
|
|
1761
|
+
...PointsProgram
|
|
1762
|
+
}
|
|
1763
|
+
name
|
|
1764
|
+
startDate
|
|
1765
|
+
endDate
|
|
1766
|
+
multiplier
|
|
1767
|
+
criteria {
|
|
1768
|
+
...PointsCriteria
|
|
1769
|
+
}
|
|
1770
|
+
reserve {
|
|
1771
|
+
...ReserveInfo
|
|
1772
|
+
}
|
|
1773
|
+
}`,[O,U,c]),kr=e(`fragment PreviewReward on PreviewReward {
|
|
1774
|
+
__typename
|
|
1775
|
+
... on PreviewMerklSupplyReward {
|
|
1776
|
+
...PreviewMerklSupplyReward
|
|
1777
|
+
}
|
|
1778
|
+
... on PreviewMerklBorrowReward {
|
|
1779
|
+
...PreviewMerklBorrowReward
|
|
1780
|
+
}
|
|
1781
|
+
... on PreviewSupplyPointsReward {
|
|
1782
|
+
...PreviewSupplyPoints
|
|
1783
|
+
}
|
|
1784
|
+
... on PreviewBorrowPointsReward {
|
|
1785
|
+
...PreviewBorrowPoints
|
|
1786
|
+
}
|
|
1787
|
+
}`,[Fr,br,Ir,Tr]),vr=e(`fragment PreviewRewardOutcome on PreviewRewardOutcome {
|
|
1788
|
+
__typename
|
|
1789
|
+
lost {
|
|
1790
|
+
...PreviewReward
|
|
1791
|
+
}
|
|
1792
|
+
gained {
|
|
1793
|
+
...PreviewReward
|
|
1794
|
+
}
|
|
1795
|
+
}`,[kr]),Cr=e(`fragment PreviewUserPosition on PreviewUserPosition {
|
|
1221
1796
|
__typename
|
|
1222
1797
|
id
|
|
1223
1798
|
healthFactor {
|
|
@@ -1235,20 +1810,34 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1235
1810
|
netBalance(currency: $currency) {
|
|
1236
1811
|
...ExchangeAmountVariation
|
|
1237
1812
|
}
|
|
1238
|
-
projectedEarnings
|
|
1813
|
+
projectedEarnings {
|
|
1239
1814
|
...ExchangeAmountVariation
|
|
1240
1815
|
}
|
|
1241
|
-
|
|
1816
|
+
maxBorrowingPower {
|
|
1242
1817
|
...ExchangeAmountVariation
|
|
1243
1818
|
}
|
|
1819
|
+
remainingBorrowingPower {
|
|
1820
|
+
...ExchangeAmountVariation
|
|
1821
|
+
}
|
|
1822
|
+
reserveRates {
|
|
1823
|
+
supplyApy {
|
|
1824
|
+
...PercentNumberVariation
|
|
1825
|
+
}
|
|
1826
|
+
borrowApy {
|
|
1827
|
+
...PercentNumberVariation
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
rewards {
|
|
1831
|
+
...PreviewRewardOutcome
|
|
1832
|
+
}
|
|
1244
1833
|
otherConditions {
|
|
1245
1834
|
...UserPositionConditionVariation
|
|
1246
1835
|
}
|
|
1247
|
-
}`,[
|
|
1836
|
+
}`,[ne,te,re,vr,Ar]),Bo=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD, $timeWindow: TimeWindow! = LAST_WEEK) {
|
|
1248
1837
|
value: preview(request: $request) {
|
|
1249
1838
|
...PreviewUserPosition
|
|
1250
1839
|
}
|
|
1251
|
-
}`,[
|
|
1840
|
+
}`,[Cr]),Qe=e(`fragment PercentNumberChangeSnapshot on PercentNumberChangeSnapshot {
|
|
1252
1841
|
__typename
|
|
1253
1842
|
before {
|
|
1254
1843
|
...PercentNumber
|
|
@@ -1256,7 +1845,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1256
1845
|
after {
|
|
1257
1846
|
...PercentNumber
|
|
1258
1847
|
}
|
|
1259
|
-
}`,[
|
|
1848
|
+
}`,[a]),Er=e(`fragment BorrowActivity on BorrowActivity {
|
|
1260
1849
|
__typename
|
|
1261
1850
|
id
|
|
1262
1851
|
user
|
|
@@ -1274,7 +1863,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1274
1863
|
chain {
|
|
1275
1864
|
...Chain
|
|
1276
1865
|
}
|
|
1277
|
-
}`,[u,
|
|
1866
|
+
}`,[l,u,c,o]),Ur=e(`fragment SupplyActivity on SupplyActivity {
|
|
1278
1867
|
__typename
|
|
1279
1868
|
id
|
|
1280
1869
|
user
|
|
@@ -1292,7 +1881,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1292
1881
|
chain {
|
|
1293
1882
|
...Chain
|
|
1294
1883
|
}
|
|
1295
|
-
}`,[u,
|
|
1884
|
+
}`,[l,u,c,o]),Or=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1296
1885
|
__typename
|
|
1297
1886
|
id
|
|
1298
1887
|
user
|
|
@@ -1310,7 +1899,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1310
1899
|
chain {
|
|
1311
1900
|
...Chain
|
|
1312
1901
|
}
|
|
1313
|
-
}`,[u,
|
|
1902
|
+
}`,[l,u,c,o]),_r=e(`fragment RepayActivity on RepayActivity {
|
|
1314
1903
|
__typename
|
|
1315
1904
|
id
|
|
1316
1905
|
user
|
|
@@ -1328,7 +1917,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1328
1917
|
chain {
|
|
1329
1918
|
...Chain
|
|
1330
1919
|
}
|
|
1331
|
-
}`,[u,
|
|
1920
|
+
}`,[l,u,c,o]),Br=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1332
1921
|
__typename
|
|
1333
1922
|
id
|
|
1334
1923
|
user
|
|
@@ -1353,7 +1942,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1353
1942
|
chain {
|
|
1354
1943
|
...Chain
|
|
1355
1944
|
}
|
|
1356
|
-
}`,[u,
|
|
1945
|
+
}`,[l,u,c,o]),Qr=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1357
1946
|
__typename
|
|
1358
1947
|
id
|
|
1359
1948
|
user
|
|
@@ -1369,7 +1958,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1369
1958
|
chain {
|
|
1370
1959
|
...Chain
|
|
1371
1960
|
}
|
|
1372
|
-
}`,[
|
|
1961
|
+
}`,[l,c,o]),Hr=e(`fragment UpdatedDynamicConfigActivity on UpdatedDynamicConfigActivity {
|
|
1373
1962
|
__typename
|
|
1374
1963
|
id
|
|
1375
1964
|
user
|
|
@@ -1393,7 +1982,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1393
1982
|
chain {
|
|
1394
1983
|
...Chain
|
|
1395
1984
|
}
|
|
1396
|
-
}`,[
|
|
1985
|
+
}`,[l,c,Qe,o]),Wr=e(`fragment UpdatedRiskPremiumActivity on UpdatedRiskPremiumActivity {
|
|
1397
1986
|
__typename
|
|
1398
1987
|
id
|
|
1399
1988
|
user
|
|
@@ -1408,7 +1997,102 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1408
1997
|
chain {
|
|
1409
1998
|
...Chain
|
|
1410
1999
|
}
|
|
1411
|
-
}`,[
|
|
2000
|
+
}`,[l,Qe,o]),Vr=e(`fragment TokenSwapActivity on TokenSwapActivity {
|
|
2001
|
+
__typename
|
|
2002
|
+
id
|
|
2003
|
+
user
|
|
2004
|
+
timestamp
|
|
2005
|
+
txHash
|
|
2006
|
+
chain {
|
|
2007
|
+
...Chain
|
|
2008
|
+
}
|
|
2009
|
+
sell {
|
|
2010
|
+
...TokenAmount
|
|
2011
|
+
}
|
|
2012
|
+
buy {
|
|
2013
|
+
...TokenAmount
|
|
2014
|
+
}
|
|
2015
|
+
explorerUrl
|
|
2016
|
+
orderClass
|
|
2017
|
+
kind
|
|
2018
|
+
status
|
|
2019
|
+
}`,[o,S]),Mr=e(`fragment SupplySwapActivity on SupplySwapActivity {
|
|
2020
|
+
__typename
|
|
2021
|
+
id
|
|
2022
|
+
user
|
|
2023
|
+
timestamp
|
|
2024
|
+
txHash
|
|
2025
|
+
chain {
|
|
2026
|
+
...Chain
|
|
2027
|
+
}
|
|
2028
|
+
sell {
|
|
2029
|
+
...PositionAmount
|
|
2030
|
+
}
|
|
2031
|
+
buy {
|
|
2032
|
+
...PositionAmount
|
|
2033
|
+
}
|
|
2034
|
+
explorerUrl
|
|
2035
|
+
orderClass
|
|
2036
|
+
kind
|
|
2037
|
+
status
|
|
2038
|
+
}`,[o,q]),$r=e(`fragment BorrowSwapActivity on BorrowSwapActivity {
|
|
2039
|
+
__typename
|
|
2040
|
+
id
|
|
2041
|
+
user
|
|
2042
|
+
timestamp
|
|
2043
|
+
txHash
|
|
2044
|
+
chain {
|
|
2045
|
+
...Chain
|
|
2046
|
+
}
|
|
2047
|
+
sell {
|
|
2048
|
+
...PositionAmount
|
|
2049
|
+
}
|
|
2050
|
+
buy {
|
|
2051
|
+
...PositionAmount
|
|
2052
|
+
}
|
|
2053
|
+
explorerUrl
|
|
2054
|
+
orderClass
|
|
2055
|
+
kind
|
|
2056
|
+
status
|
|
2057
|
+
}`,[o,q]),Nr=e(`fragment RepayWithSupplyActivity on RepayWithSupplyActivity {
|
|
2058
|
+
__typename
|
|
2059
|
+
id
|
|
2060
|
+
user
|
|
2061
|
+
timestamp
|
|
2062
|
+
txHash
|
|
2063
|
+
chain {
|
|
2064
|
+
...Chain
|
|
2065
|
+
}
|
|
2066
|
+
repay {
|
|
2067
|
+
...PositionAmount
|
|
2068
|
+
}
|
|
2069
|
+
supply {
|
|
2070
|
+
...PositionAmount
|
|
2071
|
+
}
|
|
2072
|
+
explorerUrl
|
|
2073
|
+
orderClass
|
|
2074
|
+
kind
|
|
2075
|
+
status
|
|
2076
|
+
}`,[o,q]),Dr=e(`fragment WithdrawSwapActivity on WithdrawSwapActivity {
|
|
2077
|
+
__typename
|
|
2078
|
+
id
|
|
2079
|
+
user
|
|
2080
|
+
timestamp
|
|
2081
|
+
txHash
|
|
2082
|
+
chain {
|
|
2083
|
+
...Chain
|
|
2084
|
+
}
|
|
2085
|
+
withdraw {
|
|
2086
|
+
...PositionAmount
|
|
2087
|
+
}
|
|
2088
|
+
buy {
|
|
2089
|
+
...TokenAmount
|
|
2090
|
+
}
|
|
2091
|
+
explorerUrl
|
|
2092
|
+
orderClass
|
|
2093
|
+
kind
|
|
2094
|
+
status
|
|
2095
|
+
}`,[o,q,S]),Lr=e(`fragment ActivityItem on ActivityItem {
|
|
1412
2096
|
__typename
|
|
1413
2097
|
... on BorrowActivity {
|
|
1414
2098
|
...BorrowActivity
|
|
@@ -1434,7 +2118,22 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1434
2118
|
... on UpdatedRiskPremiumActivity {
|
|
1435
2119
|
...UpdatedRiskPremiumActivity
|
|
1436
2120
|
}
|
|
1437
|
-
|
|
2121
|
+
... on TokenSwapActivity {
|
|
2122
|
+
...TokenSwapActivity
|
|
2123
|
+
}
|
|
2124
|
+
... on SupplySwapActivity {
|
|
2125
|
+
...SupplySwapActivity
|
|
2126
|
+
}
|
|
2127
|
+
... on BorrowSwapActivity {
|
|
2128
|
+
...BorrowSwapActivity
|
|
2129
|
+
}
|
|
2130
|
+
... on RepayWithSupplyActivity {
|
|
2131
|
+
...RepayWithSupplyActivity
|
|
2132
|
+
}
|
|
2133
|
+
... on WithdrawSwapActivity {
|
|
2134
|
+
...WithdrawSwapActivity
|
|
2135
|
+
}
|
|
2136
|
+
}`,[Er,Ur,Or,_r,Br,Qr,Hr,Wr,Vr,Mr,$r,Nr,Dr]),Gr=e(`fragment PaginatedActivitiesResult on PaginatedActivitiesResult {
|
|
1438
2137
|
__typename
|
|
1439
2138
|
items {
|
|
1440
2139
|
...ActivityItem
|
|
@@ -1442,41 +2141,87 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1442
2141
|
pageInfo {
|
|
1443
2142
|
...PaginatedResultInfo
|
|
1444
2143
|
}
|
|
1445
|
-
}`,[
|
|
2144
|
+
}`,[Lr,R]),Qo=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1446
2145
|
value: activities(request: $request) {
|
|
1447
2146
|
...PaginatedActivitiesResult
|
|
1448
2147
|
}
|
|
1449
|
-
}`,[
|
|
2148
|
+
}`,[Gr]);var Mo=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1450
2149
|
value: userSupplies(request: $request) {
|
|
1451
2150
|
...UserSupplyItem
|
|
1452
2151
|
}
|
|
1453
|
-
}`,[
|
|
2152
|
+
}`,[he]),$o=e(`query UserBorrows($request: UserBorrowsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1454
2153
|
value: userBorrows(request: $request) {
|
|
1455
2154
|
...UserBorrowItem
|
|
1456
2155
|
}
|
|
1457
|
-
}`,[
|
|
2156
|
+
}`,[Ae]),No=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1458
2157
|
value: userSummary(request: $request) {
|
|
1459
2158
|
...UserSummary
|
|
1460
2159
|
}
|
|
1461
|
-
}`,[
|
|
2160
|
+
}`,[Fe]),Do=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1462
2161
|
value: userPositions(request: $request) {
|
|
1463
2162
|
...UserPosition
|
|
1464
2163
|
}
|
|
1465
|
-
}`,[
|
|
2164
|
+
}`,[z]),Lo=e(`query UserPosition($request: UserPositionRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1466
2165
|
value: userPosition(request: $request) {
|
|
1467
2166
|
...UserPosition
|
|
1468
2167
|
}
|
|
1469
|
-
}`,[
|
|
2168
|
+
}`,[z]),Go=e(`query UserBalances($request: UserBalancesRequest!, $currency: Currency!) {
|
|
1470
2169
|
value: userBalances(request: $request) {
|
|
1471
2170
|
...UserBalance
|
|
1472
2171
|
}
|
|
1473
|
-
}`,[
|
|
2172
|
+
}`,[Ie]),Ko=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1474
2173
|
value: userSummaryHistory(request: $request) {
|
|
1475
2174
|
...UserSummaryHistoryItem
|
|
1476
2175
|
}
|
|
1477
|
-
}`,[
|
|
2176
|
+
}`,[Te]),Yo=e(`query UserRiskPremiumBreakdown($request: UserRiskPremiumBreakdownRequest!) {
|
|
1478
2177
|
value: userRiskPremiumBreakdown(request: $request) {
|
|
1479
2178
|
...UserRiskPremiumBreakdownItem
|
|
1480
2179
|
}
|
|
1481
|
-
}`,[
|
|
2180
|
+
}`,[be]);var Jo=e(`query StableVault($request: StableVaultRequest!) {
|
|
2181
|
+
value: stableVault(request: $request) {
|
|
2182
|
+
...StableVault
|
|
2183
|
+
}
|
|
2184
|
+
}`,[N]),Xo=e(`query StableVaults($request: StableVaultsRequest!) {
|
|
2185
|
+
value: stableVaults(request: $request) {
|
|
2186
|
+
...StableVault
|
|
2187
|
+
}
|
|
2188
|
+
}`,[N]),ep=e(`query StableVaultRateUsers($request: StableVaultRateUsersRequest!) {
|
|
2189
|
+
value: stableVaultRateUsers(request: $request) {
|
|
2190
|
+
...PaginatedStableVaultRateUsersResult
|
|
2191
|
+
}
|
|
2192
|
+
}`,[Ce]),tp=e(`query StableVaultAssignRate($request: StableVaultAssignRateRequest!) {
|
|
2193
|
+
value: stableVaultAssignRate(request: $request) {
|
|
2194
|
+
...TransactionRequest
|
|
2195
|
+
}
|
|
2196
|
+
}`,[p]),rp=e(`query StableVaultUnassignRate($request: StableVaultUnassignRateRequest!) {
|
|
2197
|
+
value: stableVaultUnassignRate(request: $request) {
|
|
2198
|
+
...TransactionRequest
|
|
2199
|
+
}
|
|
2200
|
+
}`,[p]),ap=e(`query StableVaultClaimSurplus($request: StableVaultClaimSurplusRequest!) {
|
|
2201
|
+
value: stableVaultClaimSurplus(request: $request) {
|
|
2202
|
+
...TransactionRequest
|
|
2203
|
+
}
|
|
2204
|
+
}`,[p]),np=e(`query StableVaultMovements($request: StableVaultMovementsRequest!) {
|
|
2205
|
+
value: stableVaultMovements(request: $request) {
|
|
2206
|
+
...PaginatedStableVaultMovementsResult
|
|
2207
|
+
}
|
|
2208
|
+
}`,[ve]),op=e(`query StableVaultDeposit($request: StableVaultDepositRequest!) {
|
|
2209
|
+
value: stableVaultDeposit(request: $request) {
|
|
2210
|
+
...StableVaultDepositExecutionPlan
|
|
2211
|
+
}
|
|
2212
|
+
}`,[Ee]),pp=e(`query StableVaultWithdraw($request: StableVaultWithdrawRequest!) {
|
|
2213
|
+
value: stableVaultWithdraw(request: $request) {
|
|
2214
|
+
...StableVaultWithdrawExecutionPlan
|
|
2215
|
+
}
|
|
2216
|
+
}`,[Ue]),sp=e(`query StableVaultClaimStatus($request: StableVaultClaimStatusRequest!) {
|
|
2217
|
+
value: stableVaultClaimStatus(request: $request)
|
|
2218
|
+
}`),ip=e(`query StableVaultUserPositions($request: StableVaultUserPositionsRequest!) {
|
|
2219
|
+
value: stableVaultUserPositions(request: $request) {
|
|
2220
|
+
...StableVaultUserPosition
|
|
2221
|
+
}
|
|
2222
|
+
}`,[ke]),up=e(`mutation StableVaultWithdrawRedeem($request: StableVaultWithdrawRedeemRequest!) {
|
|
2223
|
+
value: stableVaultWithdrawRedeem(request: $request) {
|
|
2224
|
+
...StableVaultWithdrawRedeemExecutionPlan
|
|
2225
|
+
}
|
|
2226
|
+
}`,[Oe]);export{Qo as ActivitiesQuery,Lr as ActivityItemFragment,Ne as ActivityType,De as ApyMetric,Z as ApySampleFragment,Sr as AssetAmountWithChangeFragment,Vn as AssetBorrowHistoryQuery,dr as AssetBorrowSampleFragment,fr as AssetFragment,Hn as AssetPriceHistoryQuery,cr as AssetPriceSampleFragment,Qn as AssetQuery,Be as AssetSampleBreakdownFragment,Rr as AssetSummaryFragment,Wn as AssetSupplyHistoryQuery,gr as AssetSupplySampleFragment,zt as BoostedRateFragment,Er as BorrowActivityFragment,Ln as BorrowApyHistoryQuery,xt as BorrowPointsFragment,Io as BorrowQuery,$r as BorrowSwapActivityFragment,_t as BorrowSwapFragment,Ye as BorrowSwapKind,xo as BorrowSwapQuoteQuery,we as BorrowSwapQuoteResultFragment,Se as CancelSwapExecutionPlanFragment,Ro as CancelSwapMutation,o as ChainFragment,kn as ChainQuery,$e as ChainsFilter,vn as ChainsQuery,Jn as ClaimRewardsQuery,qr as CollateralFactorVariationFragment,Le as CollateralMetric,Ge as Currency,y as DecimalNumberFragment,j as DecimalNumberWithChangeFragment,W as DomainDataFragment,u as Erc20AmountFragment,K as Erc20ApprovalFragment,_ as Erc20ApprovalRequiredFragment,s as Erc20TokenFragment,m as ExchangeAmountFragment,re as ExchangeAmountVariationFragment,h as ExchangeAmountWithChangeFragment,Un as ExchangeRateQuery,B as ExecutionPlanFragment,Cn as HasProcessedKnownTransactionQuery,mt as HealthFactorErrorFragment,ne as HealthFactorResultFragment,ut as HealthFactorVariationFragment,ae as HealthFactorWithChangeFragment,En as HealthQuery,C as HubAssetFragment,ur as HubAssetInterestRateModelPointFragment,Ga as HubAssetInterestRateModelQuery,ct as HubAssetSettingsFragment,yt as HubAssetSummaryFragment,gt as HubAssetUserStateFragment,Da as HubAssetsQuery,A as HubFragment,$a as HubQuery,lt as HubSummaryFragment,La as HubSummaryHistoryQuery,ir as HubSummarySampleFragment,Na as HubsQuery,f as InsufficientBalanceErrorFragment,b as InsufficientLiquidityErrorFragment,xr as LiquidatePositionExecutionPlanFragment,Co as LiquidatePositionQuery,Br as LiquidatedActivityFragment,Pr as LiquidationFeeVariationFragment,hr as MaxLiquidationBonusVariationFragment,ft as MerklBorrowRewardFragment,E as MerklCriteriaFragment,dt as MerklGenericCriteriaFragment,Rt as MerklSupplyRewardFragment,it as NativeAmountFragment,J as NativeTokenFragment,Me as OperationType,He as OrderDirection,We as PageSize,Gr 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,q as PositionAmountFragment,Lt as PositionSwapAdapterContractApprovalFragment,Kt as PositionSwapApprovalFragment,$ as PositionSwapByIntentApprovalsRequiredFragment,Gt as PositionSwapPositionManagerApprovalFragment,Tt as PreContractActionRequiredFragment,ho as PreparePositionSwapQuery,Pe as PreparePositionSwapResultFragment,So as PrepareSwapCancelQuery,de as PrepareSwapCancelResultFragment,me as PrepareSwapOrderFragment,yo as PrepareTokenSwapQuery,ce as PrepareTokenSwapResultFragment,Tr as PreviewBorrowPointsFragment,br as PreviewMerklBorrowRewardFragment,Fr as PreviewMerklSupplyRewardFragment,Bo as PreviewQuery,kr as PreviewRewardFragment,vr as PreviewRewardOutcomeFragment,Ir as PreviewSupplyPointsFragment,Cr as PreviewUserPositionFragment,Mn as ProtocolHistoryQuery,wr as ProtocolHistorySampleFragment,at as QuoteAccuracy,Oo as RenounceSpokeUserPositionManagerQuery,_r as RepayActivityFragment,ko as RepayQuery,Nr as RepayWithSupplyActivityFragment,Bt as RepayWithSupplyFragment,ze as RepayWithSupplyKind,qo as RepayWithSupplyQuoteQuery,xe as RepayWithSupplyQuoteResultFragment,I as ReserveFragment,c as ReserveInfoFragment,Kn as ReserveQuery,At as ReserveSettingsFragment,Ft as ReserveStatusFragment,bt as ReserveSummaryFragment,It as ReserveUserStateFragment,Yn as ReservesQuery,Ke as ReservesRequestFilter,pe as RewardFragment,Eo as SetSpokeUserPositionManagerQuery,Uo as SetUserSuppliesAsCollateralQuery,l as SpokeFragment,Pt as SpokePositionManagerFragment,oo as SpokePositionManagersQuery,ao as SpokeQuery,ht as SpokeUserPositionManagerFragment,po as SpokeUserPositionManagersQuery,no as SpokesQuery,tp as StableVaultAssignRateQuery,Ze as StableVaultClaimStatus,sp as StableVaultClaimStatusQuery,ap as StableVaultClaimSurplusQuery,Ee as StableVaultDepositExecutionPlanFragment,op as StableVaultDepositQuery,N as StableVaultFragment,np as StableVaultMovementsQuery,sr as StableVaultPendingAvailabilityFragment,Jo as StableVaultQuery,ep as StableVaultRateUsersQuery,jt as StableVaultRatesFragment,Zt as StableVaultSummaryFragment,rp as StableVaultUnassignRateQuery,ke as StableVaultUserPositionFragment,ip as StableVaultUserPositionsQuery,pr as StableVaultWithdrawClaimFragment,Ue as StableVaultWithdrawExecutionPlanFragment,pp as StableVaultWithdrawQuery,Oe as StableVaultWithdrawRedeemExecutionPlanFragment,up as StableVaultWithdrawRedeemMutation,Xo as StableVaultsQuery,Ur as SupplyActivityFragment,Gn as SupplyApyHistoryQuery,wt as SupplyPointsFragment,To as SupplyQuery,Mr as SupplySwapActivityFragment,Ot as SupplySwapFragment,je as SupplySwapKind,wo as SupplySwapQuoteQuery,fe as SupplySwapQuoteResultFragment,ot as SwapActivityStatus,vt as SwapByIntentFragment,Ct as SwapByIntentWithApprovalRequiredFragment,Et as SwapByTransactionFragment,Wt as SwapCancelledFragment,Dt as SwapCancelledResultFragment,ge as SwapExecutionPlanFragment,Vt as SwapExpiredFragment,Nt as SwapFulfilledFragment,go as SwapMutation,Mt as SwapOpenFragment,Q as SwapOperationFragment,nt as SwapOrderClass,$t as SwapPendingSignatureFragment,kt as SwapQuoteCostsFragment,V as SwapQuoteFragment,le as SwapReceiptFragment,Xe as SwapStatusFilter,Y as SwapStatusFragment,co as SwapStatusQuery,Ut as SwapTransactionRequestFragment,M as SwapTypedDataFragment,lo as SwappableTokensQuery,Ve as TimeWindow,S as TokenAmountFragment,et as TokenCategory,X as TokenFragment,v as TokenInfoFragment,Jt as TokenMovementAllocateFragment,Xt as TokenMovementBridgeInFragment,er as TokenMovementBridgeOutFragment,tr as TokenMovementDeallocateFragment,nr as TokenMovementFragment,rr as TokenMovementRebalanceFragment,or as TokenMovementRecordFragment,tt as TokenMovementStatus,ar as TokenMovementSwapFragment,Vr as TokenSwapActivityFragment,Ht as TokenSwapFragment,pt as TokenSwapKind,mo as TokenSwapQuoteQuery,ye as TokenSwapQuoteResultFragment,p as TransactionRequestFragment,_o as UpdateUserPositionConditionsQuery,Hr as UpdatedDynamicConfigActivityFragment,Wr as UpdatedRiskPremiumActivityFragment,Ie as UserBalanceFragment,Go as UserBalancesQuery,Ae as UserBorrowItemFragment,$o as UserBorrowsQuery,se as UserClaimableRewardFragment,Xn as UserClaimableRewardsQuery,qt as UserMerklClaimableRewardFragment,Ar as UserPositionConditionVariationFragment,rt as UserPositionConditionsUpdate,z as UserPositionFragment,Lo as UserPositionQuery,Yt as UserPositionRiskPremiumFragment,Do as UserPositionsQuery,be as UserRiskPremiumBreakdownItemFragment,Yo as UserRiskPremiumBreakdownQuery,Fe as UserSummaryFragment,Te as UserSummaryHistoryItemFragment,Ko as UserSummaryHistoryQuery,No as UserSummaryQuery,Mo as UserSuppliesQuery,he as UserSupplyItemFragment,fo as UserSwapsQuery,Qr as UsingAsCollateralActivityFragment,Or as WithdrawActivityFragment,vo as WithdrawQuery,Dr as WithdrawSwapActivityFragment,Qt as WithdrawSwapFragment,Je as WithdrawSwapKind,Po as WithdrawSwapQuoteQuery,qe as WithdrawSwapQuoteResultFragment,za as assetId,Za as boostedRateId,Ja as decodeHubId,tn as decodeReserveId,yn as decodeSpokeId,an as decodeUserPositionId,ja as encodeHubId,rn as encodeReserveId,ln as encodeSpokeId,nn as encodeUserPositionId,e as graphql,Xa as hubAssetId,mr as hubId,qn as isChainIdsVariant,sa as isERC20PermitSignature,xn as isHubInputVariant,An as isReserveInputVariant,hn as isSpokeInputVariant,Pn as isTokensVariant,Fn as isTxHashInputVariant,en as reserveId,yr as spokeId,sn as stableVaultId,un as stableVaultUserPositionId,mn as stableVaultWithdrawClaimId,on as swapId,pn as swapQuoteId,Sn as tokenInfoId,Rn as tokenMovementId,cn as userBalanceId,gn as userBorrowItemId,lr as userPositionId,dn as userSupplyItemId};//# sourceMappingURL=index.js.map
|
|
1482
2227
|
//# sourceMappingURL=index.js.map
|