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