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