@aave/graphql 1.0.0-next.7 → 1.0.0-next.8
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 +257 -146
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1087 -18
- package/dist/index.d.ts +1087 -18
- package/dist/index.js +257 -146
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs +1 -1
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +1 -1
- package/dist/schema.js.map +1 -1
- package/dist/test-utils.cjs +36 -29
- package/dist/test-utils.cjs.map +1 -1
- package/dist/test-utils.js +36 -29
- package/dist/test-utils.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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 de=(n=>(n.Asc="ASC",n.Desc="DESC",n))(de||{}),fe=(n=>(n.Ten="TEN",n.Fifty="FIFTY",n))(fe||{}),Se=(x=>(x.LastDay="LAST_DAY",x.LastWeek="LAST_WEEK",x.LastMonth="LAST_MONTH",x.LastSixMonths="LAST_SIX_MONTHS",x.LastYear="LAST_YEAR",x.All="ALL",x))(Se||{}),qe=(g=>(g.SpokeBorrow="SPOKE_BORROW",g.SpokeRepay="SPOKE_REPAY",g.SpokeSupply="SPOKE_SUPPLY",g.SpokeWithdraw="SPOKE_WITHDRAW",g.SpokeUpdateUserRiskPremium="SPOKE_UPDATE_USER_RISK_PREMIUM",g.SpokeSetUserUsingAsCollateral="SPOKE_SET_USER_USING_AS_COLLATERAL",g.SpokeSetUserPositionManager="SPOKE_SET_USER_POSITION_MANAGER",g.RenounceSpokeUserPositionManager="RENOUNCE_SPOKE_USER_POSITION_MANAGER",g.Liquidation="LIQUIDATION",g))(qe||{}),Re=(o=>(o.TESTNET_ONLY="TESTNET_ONLY",o.MAINNET_ONLY="MAINNET_ONLY",o.ALL="ALL",o))(Re||{}),xe=(o=>(o.Active="ACTIVE",o.Frozen="FROZEN",o.Paused="PAUSED",o))(xe||{}),Ae=(n=>(n.Balance="BALANCE",n.Name="NAME",n))(Ae||{}),he=(l=>(l.Borrow="BORROW",l.Supply="SUPPLY",l.Withdraw="WITHDRAW",l.Repay="REPAY",l.Liquidated="LIQUIDATED",l.SetAsCollateral="SET_AS_COLLATERAL",l.UpdatedDynamicConfig="UPDATED_DYNAMIC_CONFIG",l.UpdatedRiskPremium="UPDATED_RISK_PREMIUM",l))(he||{}),Fe=(o=>(o.Highest="HIGHEST",o.Lowest="LOWEST",o.Average="AVERAGE",o))(Fe||{}),Pe=(n=>(n.Highest="HIGHEST",n.Lowest="LOWEST",n))(Pe||{}),we=(o=>(o.Usd="USD",o.Eur="EUR",o.Gbp="GBP",o))(we||{}),Ie=(R=>(R.Supply="SUPPLY",R.Borrow="BORROW",R.Collateral="COLLATERAL",R.All="ALL",R))(Ie||{}),Te=(n=>(n.Buy="BUY",n.Sell="SELL",n))(Te||{}),Ce=(w=>(w.Cancelled="CANCELLED",w.Expired="EXPIRED",w.Fulfilled="FULFILLED",w.Open="OPEN",w.PendingSignature="PENDING_SIGNATURE",w))(Ce||{}),be=(n=>(n.Stablecoin="STABLECOIN",n.EthCorrelated="ETH_CORRELATED",n))(be||{});var e=initGraphQLTada();var c=e(`fragment DecimalNumber on DecimalNumber {
|
|
2
2
|
__typename
|
|
3
3
|
onChainValue
|
|
4
4
|
decimals
|
|
@@ -9,7 +9,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
9
9
|
decimals
|
|
10
10
|
value
|
|
11
11
|
normalized
|
|
12
|
-
}`),
|
|
12
|
+
}`),H=e(`fragment DecimalNumberWithChange on DecimalNumberWithChange {
|
|
13
13
|
__typename
|
|
14
14
|
current {
|
|
15
15
|
...DecimalNumber
|
|
@@ -17,14 +17,14 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
17
17
|
change(window: $timeWindow) {
|
|
18
18
|
...PercentNumber
|
|
19
19
|
}
|
|
20
|
-
}`,[
|
|
20
|
+
}`,[c,r]),s=e(`fragment ExchangeAmount on ExchangeAmount {
|
|
21
21
|
__typename
|
|
22
22
|
value
|
|
23
23
|
name
|
|
24
24
|
symbol
|
|
25
25
|
icon
|
|
26
26
|
decimals
|
|
27
|
-
}`),
|
|
27
|
+
}`),I=e(`fragment TokenInfo on TokenInfo {
|
|
28
28
|
__typename
|
|
29
29
|
id
|
|
30
30
|
name
|
|
@@ -32,7 +32,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
32
32
|
icon
|
|
33
33
|
decimals
|
|
34
34
|
categories
|
|
35
|
-
}`),
|
|
35
|
+
}`),a=e(`fragment Chain on Chain {
|
|
36
36
|
__typename
|
|
37
37
|
name
|
|
38
38
|
icon
|
|
@@ -47,7 +47,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
47
47
|
nativeInfo {
|
|
48
48
|
...TokenInfo
|
|
49
49
|
}
|
|
50
|
-
}`,[
|
|
50
|
+
}`,[I]),y=e(`fragment Erc20Token on Erc20Token {
|
|
51
51
|
__typename
|
|
52
52
|
info {
|
|
53
53
|
...TokenInfo
|
|
@@ -58,7 +58,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
58
58
|
}
|
|
59
59
|
isWrappedNativeToken
|
|
60
60
|
permitSupported
|
|
61
|
-
}`,[
|
|
61
|
+
}`,[I,a]),Q=e(`fragment NativeToken on NativeToken {
|
|
62
62
|
__typename
|
|
63
63
|
info {
|
|
64
64
|
...TokenInfo
|
|
@@ -66,7 +66,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
66
66
|
chain {
|
|
67
67
|
...Chain
|
|
68
68
|
}
|
|
69
|
-
}`,[
|
|
69
|
+
}`,[I,a]),i=e(`fragment Erc20Amount on Erc20Amount {
|
|
70
70
|
__typename
|
|
71
71
|
token {
|
|
72
72
|
...Erc20Token
|
|
@@ -80,7 +80,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
80
80
|
exchangeRate(currency: $currency){
|
|
81
81
|
...DecimalNumber
|
|
82
82
|
}
|
|
83
|
-
}`,[
|
|
83
|
+
}`,[y,c,s]),Ue=e(`fragment NativeAmount on NativeAmount {
|
|
84
84
|
__typename
|
|
85
85
|
token {
|
|
86
86
|
...NativeToken
|
|
@@ -94,7 +94,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
94
94
|
exchangeRate(currency: $currency){
|
|
95
95
|
...DecimalNumber
|
|
96
96
|
}
|
|
97
|
-
}`,[
|
|
97
|
+
}`,[Q,c,s]),S=e(`fragment TokenAmount on TokenAmount {
|
|
98
98
|
__typename
|
|
99
99
|
... on Erc20Amount {
|
|
100
100
|
...Erc20Amount
|
|
@@ -102,7 +102,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
102
102
|
... on NativeAmount {
|
|
103
103
|
...NativeAmount
|
|
104
104
|
}
|
|
105
|
-
}`,[
|
|
105
|
+
}`,[i,Ue]),W=e(`fragment Token on Token {
|
|
106
106
|
__typename
|
|
107
107
|
... on Erc20Token {
|
|
108
108
|
...Erc20Token
|
|
@@ -110,7 +110,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
110
110
|
... on NativeToken {
|
|
111
111
|
...NativeToken
|
|
112
112
|
}
|
|
113
|
-
}`,[
|
|
113
|
+
}`,[y,Q]),d=e(`fragment ExchangeAmountWithChange on ExchangeAmountWithChange {
|
|
114
114
|
__typename
|
|
115
115
|
current {
|
|
116
116
|
...ExchangeAmount
|
|
@@ -118,7 +118,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
118
118
|
change(window: $timeWindow){
|
|
119
119
|
...PercentNumber
|
|
120
120
|
}
|
|
121
|
-
}`,[
|
|
121
|
+
}`,[s,r]),L=e(`fragment PercentNumberWithChange on PercentNumberWithChange {
|
|
122
122
|
__typename
|
|
123
123
|
current {
|
|
124
124
|
...PercentNumber
|
|
@@ -126,11 +126,11 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
126
126
|
change(window: $timeWindow){
|
|
127
127
|
...PercentNumber
|
|
128
128
|
}
|
|
129
|
-
}`,[r]),
|
|
129
|
+
}`,[r]),q=e(`fragment PaginatedResultInfo on PaginatedResultInfo {
|
|
130
130
|
__typename
|
|
131
131
|
prev
|
|
132
132
|
next
|
|
133
|
-
}`),
|
|
133
|
+
}`),M=e(`fragment PercentNumberVariation on PercentNumberVariation {
|
|
134
134
|
__typename
|
|
135
135
|
current {
|
|
136
136
|
...PercentNumber
|
|
@@ -138,7 +138,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
138
138
|
after {
|
|
139
139
|
...PercentNumber
|
|
140
140
|
}
|
|
141
|
-
}`,[r]),
|
|
141
|
+
}`,[r]),V=e(`fragment ExchangeAmountVariation on ExchangeAmountVariation {
|
|
142
142
|
__typename
|
|
143
143
|
current {
|
|
144
144
|
...ExchangeAmount
|
|
@@ -146,13 +146,13 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
146
146
|
after {
|
|
147
147
|
...ExchangeAmount
|
|
148
148
|
}
|
|
149
|
-
}`,[
|
|
149
|
+
}`,[s]),G=e(`fragment HealthFactorWithChange on HealthFactorWithChange {
|
|
150
150
|
__typename
|
|
151
151
|
current
|
|
152
152
|
change(window: $timeWindow) {
|
|
153
153
|
...PercentNumber
|
|
154
154
|
}
|
|
155
|
-
}`,[r]),
|
|
155
|
+
}`,[r]),ke=e(`fragment HealthFactorVariation on HealthFactorVariation {
|
|
156
156
|
__typename
|
|
157
157
|
current
|
|
158
158
|
after
|
|
@@ -169,7 +169,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
169
169
|
... on HealthFactorError {
|
|
170
170
|
...HealthFactorError
|
|
171
171
|
}
|
|
172
|
-
}`,[
|
|
172
|
+
}`,[ke,ve]);var He=e(`fragment HubSummary on HubSummary {
|
|
173
173
|
__typename
|
|
174
174
|
totalBorrowed {
|
|
175
175
|
...ExchangeAmountWithChange
|
|
@@ -186,7 +186,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
186
186
|
utilizationRate {
|
|
187
187
|
...PercentNumber
|
|
188
188
|
}
|
|
189
|
-
}`,[
|
|
189
|
+
}`,[s,d,r]),T=e(`fragment Hub on Hub {
|
|
190
190
|
__typename
|
|
191
191
|
id
|
|
192
192
|
name
|
|
@@ -197,7 +197,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
197
197
|
summary(currency: $currency) {
|
|
198
198
|
...HubSummary
|
|
199
199
|
}
|
|
200
|
-
}`,[
|
|
200
|
+
}`,[a,He]);var Be=e(`fragment HubAssetSummary on HubAssetSummary {
|
|
201
201
|
__typename
|
|
202
202
|
supplied {
|
|
203
203
|
...Erc20Amount
|
|
@@ -220,7 +220,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
220
220
|
utilizationRate {
|
|
221
221
|
...PercentNumber
|
|
222
222
|
}
|
|
223
|
-
}`,[
|
|
223
|
+
}`,[i,r]),Oe=e(`fragment HubAssetSettings on HubAssetSettings {
|
|
224
224
|
__typename
|
|
225
225
|
feeReceiver
|
|
226
226
|
liquidityFee {
|
|
@@ -228,12 +228,12 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
228
228
|
}
|
|
229
229
|
irStrategy
|
|
230
230
|
reinvestmentController
|
|
231
|
-
}`,[r]),
|
|
231
|
+
}`,[r]),_e=e(`fragment HubAssetUserState on HubAssetUserState {
|
|
232
232
|
__typename
|
|
233
233
|
balance {
|
|
234
234
|
...Erc20Amount
|
|
235
235
|
}
|
|
236
|
-
}`,[
|
|
236
|
+
}`,[i]),C=e(`fragment HubAsset on HubAsset {
|
|
237
237
|
__typename
|
|
238
238
|
id
|
|
239
239
|
onchainAssetId
|
|
@@ -252,7 +252,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
252
252
|
userState {
|
|
253
253
|
...HubAssetUserState
|
|
254
254
|
}
|
|
255
|
-
}`,[T,
|
|
255
|
+
}`,[T,y,Be,Oe,_e]);var u=e(`fragment Spoke on Spoke {
|
|
256
256
|
__typename
|
|
257
257
|
id
|
|
258
258
|
name
|
|
@@ -260,12 +260,12 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
260
260
|
chain {
|
|
261
261
|
...Chain
|
|
262
262
|
}
|
|
263
|
-
}`,[
|
|
263
|
+
}`,[a]),$e=e(`fragment SpokePositionManager on SpokePositionManger {
|
|
264
264
|
__typename
|
|
265
265
|
address
|
|
266
266
|
active
|
|
267
267
|
name
|
|
268
|
-
}`),
|
|
268
|
+
}`),z=e(`fragment PaginatedSpokePositionManagerResult on PaginatedSpokePositionManagerResult {
|
|
269
269
|
__typename
|
|
270
270
|
items {
|
|
271
271
|
...SpokePositionManager
|
|
@@ -273,7 +273,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
273
273
|
pageInfo {
|
|
274
274
|
...PaginatedResultInfo
|
|
275
275
|
}
|
|
276
|
-
}`,[
|
|
276
|
+
}`,[$e,q]),Ne=e(`fragment SpokeUserPositionManager on SpokeUserPositionManager {
|
|
277
277
|
__typename
|
|
278
278
|
address
|
|
279
279
|
approvedOn
|
|
@@ -287,7 +287,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
287
287
|
pageInfo {
|
|
288
288
|
...PaginatedResultInfo
|
|
289
289
|
}
|
|
290
|
-
}`,[
|
|
290
|
+
}`,[Ne,q]);var De=e(`fragment ReserveSettings on ReserveSettings {
|
|
291
291
|
__typename
|
|
292
292
|
collateralFactor {
|
|
293
293
|
...PercentNumber
|
|
@@ -305,12 +305,12 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
305
305
|
collateral
|
|
306
306
|
suppliable
|
|
307
307
|
latestDynamicConfigKey
|
|
308
|
-
}`,[r]),
|
|
308
|
+
}`,[r]),Qe=e(`fragment ReserveStatus on ReserveStatus {
|
|
309
309
|
__typename
|
|
310
310
|
frozen
|
|
311
311
|
paused
|
|
312
312
|
active
|
|
313
|
-
}`),
|
|
313
|
+
}`),We=e(`fragment ReserveSummary on ReserveSummary {
|
|
314
314
|
__typename
|
|
315
315
|
supplied {
|
|
316
316
|
...Erc20Amount
|
|
@@ -324,7 +324,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
324
324
|
borrowApy {
|
|
325
325
|
...PercentNumber
|
|
326
326
|
}
|
|
327
|
-
}`,[
|
|
327
|
+
}`,[i,r]),Le=e(`fragment ReserveUserState on ReserveUserState {
|
|
328
328
|
__typename
|
|
329
329
|
balance {
|
|
330
330
|
...Erc20Amount
|
|
@@ -352,7 +352,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
352
352
|
}
|
|
353
353
|
dynamicConfigKey
|
|
354
354
|
isUsingLatestDynamicConfigKey
|
|
355
|
-
}`,[
|
|
355
|
+
}`,[i,r]),A=e(`fragment Reserve on Reserve {
|
|
356
356
|
__typename
|
|
357
357
|
id
|
|
358
358
|
onChainId
|
|
@@ -382,34 +382,34 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
382
382
|
asset {
|
|
383
383
|
...HubAsset
|
|
384
384
|
}
|
|
385
|
-
}`,[
|
|
385
|
+
}`,[u,a,We,De,Qe,Le,C]),f=e(`fragment ReserveInfo on ReserveInfo {
|
|
386
386
|
__typename
|
|
387
387
|
id
|
|
388
388
|
asset {
|
|
389
389
|
...HubAsset
|
|
390
390
|
}
|
|
391
|
-
}`,[
|
|
391
|
+
}`,[C]);var U=e(`fragment TypeField on TypeField {
|
|
392
392
|
name
|
|
393
393
|
type
|
|
394
|
-
}`),
|
|
394
|
+
}`),Me=e(`fragment TypeDefinition on TypeDefinition {
|
|
395
395
|
EIP712Domain {
|
|
396
396
|
...TypeField
|
|
397
397
|
}
|
|
398
398
|
Permit {
|
|
399
399
|
...TypeField
|
|
400
400
|
}
|
|
401
|
-
}`,[
|
|
401
|
+
}`,[U]),k=e(`fragment DomainData on DomainData {
|
|
402
402
|
name
|
|
403
403
|
version
|
|
404
404
|
chainId
|
|
405
405
|
verifyingContract
|
|
406
|
-
}`),
|
|
406
|
+
}`),Ve=e(`fragment PermitMessageData on PermitMessageData {
|
|
407
407
|
owner
|
|
408
408
|
spender
|
|
409
409
|
value
|
|
410
410
|
nonce
|
|
411
411
|
deadline
|
|
412
|
-
}`),
|
|
412
|
+
}`),Ge=e(`fragment PermitTypedDataResponse on PermitTypedDataResponse {
|
|
413
413
|
types {
|
|
414
414
|
...TypeDefinition
|
|
415
415
|
}
|
|
@@ -420,11 +420,11 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
420
420
|
message {
|
|
421
421
|
...PermitMessageData
|
|
422
422
|
}
|
|
423
|
-
}`,[
|
|
423
|
+
}`,[Me,k,Ve]),rr=e(`query PermitTypedData($request: PermitRequest!) {
|
|
424
424
|
value: permitTypedData(request: $request) {
|
|
425
425
|
...PermitTypedDataResponse
|
|
426
426
|
}
|
|
427
|
-
}`,[
|
|
427
|
+
}`,[Ge]);var m=e(`fragment TransactionRequest on TransactionRequest {
|
|
428
428
|
__typename
|
|
429
429
|
to
|
|
430
430
|
from
|
|
@@ -432,7 +432,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
432
432
|
value
|
|
433
433
|
chainId
|
|
434
434
|
operations
|
|
435
|
-
}`),
|
|
435
|
+
}`),B=e(`fragment Erc20ApprovalRequired on Erc20ApprovalRequired {
|
|
436
436
|
__typename
|
|
437
437
|
transaction {
|
|
438
438
|
...TransactionRequest
|
|
@@ -447,7 +447,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
447
447
|
originalTransaction {
|
|
448
448
|
...TransactionRequest
|
|
449
449
|
}
|
|
450
|
-
}`,[m,
|
|
450
|
+
}`,[m,c]),Ke=e(`fragment PreContractActionRequired on PreContractActionRequired {
|
|
451
451
|
__typename
|
|
452
452
|
transaction {
|
|
453
453
|
...TransactionRequest
|
|
@@ -464,7 +464,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
464
464
|
available {
|
|
465
465
|
...DecimalNumber
|
|
466
466
|
}
|
|
467
|
-
}`,[
|
|
467
|
+
}`,[c]),b=e(`fragment ExecutionPlan on ExecutionPlan {
|
|
468
468
|
__typename
|
|
469
469
|
... on TransactionRequest {
|
|
470
470
|
...TransactionRequest
|
|
@@ -478,7 +478,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
478
478
|
... on InsufficientBalanceError {
|
|
479
479
|
...InsufficientBalanceError
|
|
480
480
|
}
|
|
481
|
-
}`,[m,
|
|
481
|
+
}`,[m,B,Ke,h]);var ze=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
482
482
|
__typename
|
|
483
483
|
networkCosts {
|
|
484
484
|
...TokenAmount
|
|
@@ -486,7 +486,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
486
486
|
partnerFee {
|
|
487
487
|
...TokenAmount
|
|
488
488
|
}
|
|
489
|
-
}`,[S]),
|
|
489
|
+
}`,[S]),E=e(`fragment SwapQuote on SwapQuote {
|
|
490
490
|
__typename
|
|
491
491
|
quoteId
|
|
492
492
|
suggestedSlippage {
|
|
@@ -504,14 +504,14 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
504
504
|
minimumReceived {
|
|
505
505
|
...TokenAmount
|
|
506
506
|
}
|
|
507
|
-
}`,[r,S,
|
|
507
|
+
}`,[r,S,ze]),Ye=e(`fragment SwapByIntentTypeDefinition on SwapByIntentTypeDefinition {
|
|
508
508
|
EIP712Domain {
|
|
509
509
|
...TypeField
|
|
510
510
|
}
|
|
511
511
|
Order {
|
|
512
512
|
...TypeField
|
|
513
513
|
}
|
|
514
|
-
}`,[
|
|
514
|
+
}`,[U]),Z=e(`fragment SwapByIntentTypedData on SwapByIntentTypedData {
|
|
515
515
|
__typename
|
|
516
516
|
types {
|
|
517
517
|
...SwapByIntentTypeDefinition
|
|
@@ -521,7 +521,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
521
521
|
...DomainData
|
|
522
522
|
}
|
|
523
523
|
message
|
|
524
|
-
}`,[
|
|
524
|
+
}`,[Ye,k]),Ze=e(`fragment SwapByIntent on SwapByIntent {
|
|
525
525
|
__typename
|
|
526
526
|
quote {
|
|
527
527
|
...SwapQuote
|
|
@@ -529,7 +529,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
529
529
|
data {
|
|
530
530
|
...SwapByIntentTypedData
|
|
531
531
|
}
|
|
532
|
-
}`,[
|
|
532
|
+
}`,[E,Z]),Je=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
533
533
|
__typename
|
|
534
534
|
approval {
|
|
535
535
|
...TransactionRequest
|
|
@@ -540,17 +540,17 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
540
540
|
data {
|
|
541
541
|
...SwapByIntentTypedData
|
|
542
542
|
}
|
|
543
|
-
}`,[m,
|
|
543
|
+
}`,[m,E,Z]),je=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
544
544
|
__typename
|
|
545
545
|
quote {
|
|
546
546
|
...SwapQuote
|
|
547
547
|
}
|
|
548
|
-
}`,[
|
|
548
|
+
}`,[E]),J=e(`fragment SwapReceipt on SwapReceipt {
|
|
549
549
|
__typename
|
|
550
550
|
id
|
|
551
551
|
explorerLink
|
|
552
552
|
createdAt
|
|
553
|
-
}`),
|
|
553
|
+
}`),j=e(`fragment PrepareSwapResult on PrepareSwapResult {
|
|
554
554
|
__typename
|
|
555
555
|
... on SwapByIntent {
|
|
556
556
|
...SwapByIntent
|
|
@@ -564,7 +564,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
564
564
|
... on InsufficientBalanceError {
|
|
565
565
|
...InsufficientBalanceError
|
|
566
566
|
}
|
|
567
|
-
}`,[
|
|
567
|
+
}`,[Ze,Je,je,h]),X=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
568
568
|
__typename
|
|
569
569
|
transaction {
|
|
570
570
|
...TransactionRequest
|
|
@@ -572,7 +572,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
572
572
|
orderReceipt {
|
|
573
573
|
...SwapReceipt
|
|
574
574
|
}
|
|
575
|
-
}`,[m,
|
|
575
|
+
}`,[m,J]),Xe=e(`fragment SwapApprovalRequired on SwapApprovalRequired {
|
|
576
576
|
__typename
|
|
577
577
|
approval {
|
|
578
578
|
...TransactionRequest
|
|
@@ -580,7 +580,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
580
580
|
originalTransaction {
|
|
581
581
|
...SwapTransactionRequest
|
|
582
582
|
}
|
|
583
|
-
}`,[m,X]),
|
|
583
|
+
}`,[m,X]),ee=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
584
584
|
__typename
|
|
585
585
|
... on SwapTransactionRequest {
|
|
586
586
|
...SwapTransactionRequest
|
|
@@ -594,17 +594,17 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
594
594
|
... on SwapReceipt {
|
|
595
595
|
...SwapReceipt
|
|
596
596
|
}
|
|
597
|
-
}`,[X,
|
|
597
|
+
}`,[X,Xe,h,J]),te=e(`fragment SwapCancelled on SwapCancelled {
|
|
598
598
|
__typename
|
|
599
599
|
createdAt
|
|
600
600
|
cancelledAt
|
|
601
601
|
explorerLink
|
|
602
|
-
}`),
|
|
602
|
+
}`),et=e(`fragment SwapExpired on SwapExpired {
|
|
603
603
|
__typename
|
|
604
604
|
createdAt
|
|
605
605
|
expiredAt
|
|
606
606
|
explorerLink
|
|
607
|
-
}`),
|
|
607
|
+
}`),tt=e(`fragment SwapOpen on SwapOpen {
|
|
608
608
|
__typename
|
|
609
609
|
swapId
|
|
610
610
|
createdAt
|
|
@@ -616,12 +616,12 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
616
616
|
desiredBuy {
|
|
617
617
|
...TokenAmount
|
|
618
618
|
}
|
|
619
|
-
}`,[S]),
|
|
619
|
+
}`,[S]),rt=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
620
620
|
__typename
|
|
621
621
|
createdAt
|
|
622
622
|
deadline
|
|
623
623
|
explorerLink
|
|
624
|
-
}`),
|
|
624
|
+
}`),nt=e(`fragment SwapFulfilled on SwapFulfilled {
|
|
625
625
|
__typename
|
|
626
626
|
txHash
|
|
627
627
|
desiredSell {
|
|
@@ -640,7 +640,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
640
640
|
fulfilledAt
|
|
641
641
|
explorerLink
|
|
642
642
|
refundTxHash
|
|
643
|
-
}`,[S]),
|
|
643
|
+
}`,[S]),O=e(`fragment SwapStatus on SwapStatus {
|
|
644
644
|
__typename
|
|
645
645
|
... on SwapOpen {
|
|
646
646
|
...SwapOpen
|
|
@@ -657,14 +657,14 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
657
657
|
... on SwapFulfilled {
|
|
658
658
|
...SwapFulfilled
|
|
659
659
|
}
|
|
660
|
-
}`,[
|
|
660
|
+
}`,[tt,rt,te,et,nt]),at=e(`fragment CancelSwapTypeDefinition on CancelSwapTypeDefinition {
|
|
661
661
|
OrderCancellations {
|
|
662
662
|
...TypeField
|
|
663
663
|
}
|
|
664
664
|
EIP712Domain {
|
|
665
665
|
...TypeField
|
|
666
666
|
}
|
|
667
|
-
}`,[
|
|
667
|
+
}`,[U]),ot=e(`fragment CancelSwapTypedData on CancelSwapTypedData {
|
|
668
668
|
types {
|
|
669
669
|
...CancelSwapTypeDefinition
|
|
670
670
|
}
|
|
@@ -673,12 +673,12 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
673
673
|
...DomainData
|
|
674
674
|
}
|
|
675
675
|
message
|
|
676
|
-
}`,[
|
|
676
|
+
}`,[at,k]),re=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
677
677
|
__typename
|
|
678
678
|
data {
|
|
679
679
|
...CancelSwapTypedData
|
|
680
680
|
}
|
|
681
|
-
}`,[
|
|
681
|
+
}`,[ot]),ne=e(`fragment CancelSwapExecutionPlan on CancelSwapExecutionPlan {
|
|
682
682
|
__typename
|
|
683
683
|
... on TransactionRequest {
|
|
684
684
|
...TransactionRequest
|
|
@@ -686,7 +686,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
686
686
|
... on SwapCancelled {
|
|
687
687
|
...SwapCancelled
|
|
688
688
|
}
|
|
689
|
-
}`,[m,
|
|
689
|
+
}`,[m,te]),ae=e(`fragment PaginatedUserSwapsResult on PaginatedUserSwapsResult {
|
|
690
690
|
__typename
|
|
691
691
|
items {
|
|
692
692
|
...SwapStatus
|
|
@@ -694,7 +694,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
694
694
|
pageInfo {
|
|
695
695
|
...PaginatedResultInfo
|
|
696
696
|
}
|
|
697
|
-
}`,[
|
|
697
|
+
}`,[O,q]);var oe=e(`fragment UserSupplyItem on UserSupplyItem {
|
|
698
698
|
__typename
|
|
699
699
|
id
|
|
700
700
|
reserve {
|
|
@@ -711,7 +711,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
711
711
|
}
|
|
712
712
|
isCollateral
|
|
713
713
|
createdAt
|
|
714
|
-
}`,[
|
|
714
|
+
}`,[i,A]),se=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
715
715
|
__typename
|
|
716
716
|
id
|
|
717
717
|
principal {
|
|
@@ -727,7 +727,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
727
727
|
...Reserve
|
|
728
728
|
}
|
|
729
729
|
createdAt
|
|
730
|
-
}`,[
|
|
730
|
+
}`,[i,A]),pe=e(`fragment UserSummary on UserSummary {
|
|
731
731
|
__typename
|
|
732
732
|
totalPositions
|
|
733
733
|
netBalance(currency: $currency) {
|
|
@@ -749,7 +749,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
749
749
|
...ExchangeAmount
|
|
750
750
|
}
|
|
751
751
|
lowestHealthFactor
|
|
752
|
-
}`,[d,
|
|
752
|
+
}`,[d,s,r]),_=e(`fragment UserRiskPremiumBreakdownItem on UserRiskPremiumBreakdownItem {
|
|
753
753
|
__typename
|
|
754
754
|
token {
|
|
755
755
|
...Erc20Token
|
|
@@ -760,7 +760,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
760
760
|
collateral {
|
|
761
761
|
...PercentNumber
|
|
762
762
|
}
|
|
763
|
-
}`,[
|
|
763
|
+
}`,[y,r]),st=e(`fragment UserPositionRiskPremium on UserPositionRiskPremium {
|
|
764
764
|
__typename
|
|
765
765
|
current {
|
|
766
766
|
...PercentNumber
|
|
@@ -771,7 +771,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
771
771
|
breakdown {
|
|
772
772
|
...UserRiskPremiumBreakdownItem
|
|
773
773
|
}
|
|
774
|
-
}`,[r,
|
|
774
|
+
}`,[r,_]),$=e(`fragment UserPosition on UserPosition {
|
|
775
775
|
__typename
|
|
776
776
|
id
|
|
777
777
|
spoke {
|
|
@@ -822,7 +822,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
822
822
|
averageCollateralFactor {
|
|
823
823
|
...PercentNumber
|
|
824
824
|
}
|
|
825
|
-
}`,[
|
|
825
|
+
}`,[u,r,d,s,L,G,st]),ie=e(`fragment UserBalance on UserBalance {
|
|
826
826
|
__typename
|
|
827
827
|
id
|
|
828
828
|
info {
|
|
@@ -855,7 +855,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
855
855
|
lowestCollateralFactor: collateralFactor(metric: LOWEST) {
|
|
856
856
|
...PercentNumber
|
|
857
857
|
}
|
|
858
|
-
}`,[
|
|
858
|
+
}`,[I,c,S,s,r]),ue=e(`fragment UserSummaryHistoryItem on UserSummaryHistoryItem {
|
|
859
859
|
__typename
|
|
860
860
|
netBalance(currency: $currency) {
|
|
861
861
|
...ExchangeAmount
|
|
@@ -868,45 +868,64 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
868
868
|
}
|
|
869
869
|
healthFactor
|
|
870
870
|
date
|
|
871
|
-
}`,[
|
|
871
|
+
}`,[s]),N=e(`fragment ApySample on ApySample {
|
|
872
872
|
__typename
|
|
873
873
|
date
|
|
874
874
|
avgRate {
|
|
875
875
|
...PercentNumber
|
|
876
876
|
}
|
|
877
|
-
}`,[r]);var
|
|
877
|
+
}`,[r]);var xr=e(`query Hub($request: HubRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
878
878
|
value: hub(request: $request) {
|
|
879
879
|
...Hub
|
|
880
880
|
}
|
|
881
|
-
}`,[T]),
|
|
881
|
+
}`,[T]),Ar=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
882
882
|
value: hubs(request: $request) {
|
|
883
883
|
...Hub
|
|
884
884
|
}
|
|
885
|
-
}`,[T]),
|
|
885
|
+
}`,[T]),hr=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
886
886
|
value: hubAssets(request: $request) {
|
|
887
887
|
...HubAsset
|
|
888
888
|
}
|
|
889
|
-
}`,[
|
|
889
|
+
}`,[C]),pt=e(`fragment HubSummarySample on HubSummarySample {
|
|
890
|
+
__typename
|
|
891
|
+
date
|
|
892
|
+
deposits {
|
|
893
|
+
...ExchangeAmount
|
|
894
|
+
}
|
|
895
|
+
borrows {
|
|
896
|
+
...ExchangeAmount
|
|
897
|
+
}
|
|
898
|
+
availableLiquidity {
|
|
899
|
+
...ExchangeAmount
|
|
900
|
+
}
|
|
901
|
+
utilizationRate {
|
|
902
|
+
...PercentNumber
|
|
903
|
+
}
|
|
904
|
+
}`,[s,r]),Fr=e(`query HubSummaryHistory($request: HubSummaryHistoryRequest!) {
|
|
905
|
+
value: hubSummaryHistory(request: $request) {
|
|
906
|
+
...HubSummarySample
|
|
907
|
+
}
|
|
908
|
+
}`,[pt]);function ge(t){return new TextDecoder().decode(Uint8Array.from(atob(t),P=>P.charCodeAt(0)))}function D(t){return btoa(String.fromCharCode(...new TextEncoder().encode(t)))}var F="::";function Ir(t){return 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 it(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 Tr(t){return it(D(`${t.chainId}${F}${t.address}`))}function Cr(t){let P=ge(t),[n,o]=P.split(F);return {chainId:chainId(Number.parseInt(n,10)),address:evmAddress(o)}}function br(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 Er(t){return t}function Ur(t){let P=ge(t),[n,o,R]=P.split(F);return {chainId:chainId(Number.parseInt(n,10)),spoke:evmAddress(o),onChainId:R}}function kr(t){return D(`${t.chainId}${F}${t.spoke}${F}${t.onChainId}`)}function vr(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 Hr(t){return invariant(isValidHexString(t),`Invalid SwapId: ${t}`),t}function Br(t){return invariant(isValidHexString(t),`Invalid SwapQuoteId: ${t}`),t}function Or(t){return ut(D(`${t.chainId}${F}${t.address}`))}function ut(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 _r(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 $r(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 Nr(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 Dr(t){return invariant(typeof t=="string"&&t.length>0,`Invalid TokenInfoId: ${t}`),t}function Lr(t){return isObject(t)&&"hubInput"in t&&t.hubInput!=null}function Mr(t){return isObject(t)&&"chainIds"in t&&t.chainIds!=null}function Vr(t){return isObject(t)&&"spoke"in t&&t.spoke!=null}function Gr(t){return isObject(t)&&"txHash"in t&&t.txHash!=null}var Zr=e(`query Chain($request: ChainRequest!) {
|
|
890
909
|
value: chain(request: $request) {
|
|
891
910
|
...Chain
|
|
892
911
|
}
|
|
893
|
-
}`,[
|
|
912
|
+
}`,[a]),Jr=e(`query Chains($request: ChainsRequest!) {
|
|
894
913
|
value: chains(request: $request) {
|
|
895
914
|
...Chain
|
|
896
915
|
}
|
|
897
|
-
}`,[
|
|
916
|
+
}`,[a]),jr=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
898
917
|
value: hasProcessedKnownTransaction(request: $request)
|
|
899
|
-
}`),
|
|
918
|
+
}`),Xr=e(`query Health {
|
|
900
919
|
value: health
|
|
901
|
-
}`),
|
|
920
|
+
}`),en=e(`query ExchangeRate($request: ExchangeRateRequest!) {
|
|
902
921
|
value: exchangeRate(request: $request) {
|
|
903
922
|
...ExchangeAmount
|
|
904
923
|
}
|
|
905
|
-
}`,[
|
|
924
|
+
}`,[s]);var mt=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
906
925
|
__typename
|
|
907
926
|
date
|
|
908
927
|
price
|
|
909
|
-
}`),
|
|
928
|
+
}`),yt=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
910
929
|
__typename
|
|
911
930
|
date
|
|
912
931
|
amount {
|
|
@@ -918,7 +937,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
918
937
|
lowestApy {
|
|
919
938
|
...PercentNumber
|
|
920
939
|
}
|
|
921
|
-
}`,[
|
|
940
|
+
}`,[c,r]),ct=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
922
941
|
__typename
|
|
923
942
|
date
|
|
924
943
|
amount {
|
|
@@ -930,7 +949,31 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
930
949
|
lowestApy {
|
|
931
950
|
...PercentNumber
|
|
932
951
|
}
|
|
933
|
-
}`,[
|
|
952
|
+
}`,[c,r]),gt=e(`fragment AssetCategoryBorrowSample on AssetCategoryBorrowSample {
|
|
953
|
+
__typename
|
|
954
|
+
date
|
|
955
|
+
highestApy {
|
|
956
|
+
...PercentNumber
|
|
957
|
+
}
|
|
958
|
+
lowestApy {
|
|
959
|
+
...PercentNumber
|
|
960
|
+
}
|
|
961
|
+
borrows(currency: $currency) {
|
|
962
|
+
...ExchangeAmount
|
|
963
|
+
}
|
|
964
|
+
}`,[r,s]),lt=e(`fragment AssetCategorySupplySample on AssetCategorySupplySample {
|
|
965
|
+
__typename
|
|
966
|
+
date
|
|
967
|
+
highestApy {
|
|
968
|
+
...PercentNumber
|
|
969
|
+
}
|
|
970
|
+
lowestApy {
|
|
971
|
+
...PercentNumber
|
|
972
|
+
}
|
|
973
|
+
deposits(currency: $currency) {
|
|
974
|
+
...ExchangeAmount
|
|
975
|
+
}
|
|
976
|
+
}`,[r,s]),dt=e(`fragment AssetAmountWithChange on AssetAmountWithChange {
|
|
934
977
|
__typename
|
|
935
978
|
amount {
|
|
936
979
|
...DecimalNumberWithChange
|
|
@@ -938,7 +981,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
938
981
|
exchange(currency: $currency) {
|
|
939
982
|
...ExchangeAmountWithChange
|
|
940
983
|
}
|
|
941
|
-
}`,[
|
|
984
|
+
}`,[H,d]),ft=e(`fragment AssetSummary on AssetSummary {
|
|
942
985
|
__typename
|
|
943
986
|
totalSupplyCap {
|
|
944
987
|
...DecimalNumberWithChange
|
|
@@ -964,7 +1007,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
964
1007
|
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
965
1008
|
...PercentNumber
|
|
966
1009
|
}
|
|
967
|
-
}`,[
|
|
1010
|
+
}`,[dt,H,r]),St=e(`fragment Asset on Asset {
|
|
968
1011
|
__typename
|
|
969
1012
|
id
|
|
970
1013
|
token {
|
|
@@ -976,23 +1019,31 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
976
1019
|
price(currency: $currency) {
|
|
977
1020
|
...ExchangeAmountWithChange
|
|
978
1021
|
}
|
|
979
|
-
}`,[
|
|
1022
|
+
}`,[y,ft,d]),an=e(`query Asset($request: AssetRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
980
1023
|
value: asset(request: $request) {
|
|
981
1024
|
...Asset
|
|
982
1025
|
}
|
|
983
|
-
}`,[
|
|
1026
|
+
}`,[St]),on=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
984
1027
|
value: assetPriceHistory(request: $request) {
|
|
985
1028
|
...AssetPriceSample
|
|
986
1029
|
}
|
|
987
|
-
}`,[
|
|
1030
|
+
}`,[mt]),sn=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!) {
|
|
988
1031
|
value: assetSupplyHistory(request: $request) {
|
|
989
1032
|
...AssetSupplySample
|
|
990
1033
|
}
|
|
991
|
-
}`,[
|
|
1034
|
+
}`,[yt]),pn=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!) {
|
|
992
1035
|
value: assetBorrowHistory(request: $request) {
|
|
993
1036
|
...AssetBorrowSample
|
|
994
1037
|
}
|
|
995
|
-
}`,[
|
|
1038
|
+
}`,[ct]),un=e(`query AssetCategoryBorrowHistory($request: AssetCategoryBorrowHistoryRequest!, $currency: Currency! = USD) {
|
|
1039
|
+
value: assetCategoryBorrowHistory(request: $request) {
|
|
1040
|
+
...AssetCategoryBorrowSample
|
|
1041
|
+
}
|
|
1042
|
+
}`,[gt]),mn=e(`query AssetCategorySupplyHistory($request: AssetCategorySupplyHistoryRequest!, $currency: Currency! = USD) {
|
|
1043
|
+
value: assetCategorySupplyHistory(request: $request) {
|
|
1044
|
+
...AssetCategorySupplySample
|
|
1045
|
+
}
|
|
1046
|
+
}`,[lt]),qt=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
996
1047
|
__typename
|
|
997
1048
|
date
|
|
998
1049
|
deposits {
|
|
@@ -1004,91 +1055,91 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1004
1055
|
earnings {
|
|
1005
1056
|
...ExchangeAmount
|
|
1006
1057
|
}
|
|
1007
|
-
}`,[
|
|
1058
|
+
}`,[s]),yn=e(`query ProtocolHistory($request: ProtocolHistoryRequest!) {
|
|
1008
1059
|
value: protocolHistory(request: $request) {
|
|
1009
1060
|
...ProtocolHistorySample
|
|
1010
1061
|
}
|
|
1011
|
-
}`,[
|
|
1062
|
+
}`,[qt]);var dn=e(`query BorrowApyHistory($request: BorrowApyHistoryRequest!) {
|
|
1012
1063
|
value: borrowApyHistory(request: $request) {
|
|
1013
1064
|
...ApySample
|
|
1014
1065
|
}
|
|
1015
|
-
}`,[
|
|
1066
|
+
}`,[N]),fn=e(`query SupplyApyHistory($request: SupplyApyHistoryRequest!) {
|
|
1016
1067
|
value: supplyApyHistory(request: $request) {
|
|
1017
1068
|
...ApySample
|
|
1018
1069
|
}
|
|
1019
|
-
}`,[
|
|
1070
|
+
}`,[N]),Sn=e(`query Reserve($request: ReserveRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1020
1071
|
value: reserve(request: $request) {
|
|
1021
1072
|
...Reserve
|
|
1022
1073
|
}
|
|
1023
|
-
}`,[A]),
|
|
1074
|
+
}`,[A]),qn=e(`query Reserves($request: ReservesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1024
1075
|
value: reserves(request: $request) {
|
|
1025
1076
|
...Reserve
|
|
1026
1077
|
}
|
|
1027
|
-
}`,[A]);var
|
|
1078
|
+
}`,[A]);var hn=e(`query Spoke($request: SpokeRequest!) {
|
|
1028
1079
|
value: spoke(request: $request) {
|
|
1029
1080
|
...Spoke
|
|
1030
1081
|
}
|
|
1031
|
-
}`,[
|
|
1082
|
+
}`,[u]),Fn=e(`query Spokes($request: SpokesRequest!) {
|
|
1032
1083
|
value: spokes(request: $request) {
|
|
1033
1084
|
...Spoke
|
|
1034
1085
|
}
|
|
1035
|
-
}`,[
|
|
1086
|
+
}`,[u]),Pn=e(`query SpokePositionManagers($request: SpokePositionManagersRequest!) {
|
|
1036
1087
|
value: spokePositionManagers(request: $request) {
|
|
1037
1088
|
...PaginatedSpokePositionManagerResult
|
|
1038
1089
|
}
|
|
1039
|
-
}`,[
|
|
1090
|
+
}`,[z]),wn=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
1040
1091
|
value: spokeUserPositionManagers(request: $request) {
|
|
1041
1092
|
...PaginatedSpokeUserPositionManagerResult
|
|
1042
1093
|
}
|
|
1043
|
-
}`,[Y]);var
|
|
1094
|
+
}`,[Y]);var bn=e(`query SwapQuote($request: SwapQuoteRequest!, $currency: Currency!) {
|
|
1044
1095
|
value: swapQuote(request: $request) {
|
|
1045
1096
|
...SwapQuote
|
|
1046
1097
|
}
|
|
1047
|
-
}`,[
|
|
1098
|
+
}`,[E]),En=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
1048
1099
|
value: swappableTokens(request: $request) {
|
|
1049
1100
|
...Token
|
|
1050
1101
|
}
|
|
1051
|
-
}`,[
|
|
1102
|
+
}`,[W]),Un=e(`query PrepareSwap($request: PrepareSwapRequest!, $currency: Currency!) {
|
|
1052
1103
|
value: prepareSwap(request: $request) {
|
|
1053
1104
|
...PrepareSwapResult
|
|
1054
1105
|
}
|
|
1055
|
-
}`,[
|
|
1106
|
+
}`,[j]),kn=e(`query SwapStatus($request: SwapStatusRequest!, $currency: Currency!) {
|
|
1056
1107
|
value: swapStatus(request: $request) {
|
|
1057
1108
|
...SwapStatus
|
|
1058
1109
|
}
|
|
1059
|
-
}`,[
|
|
1110
|
+
}`,[O]),vn=e(`query Swap($request: SwapRequest!) {
|
|
1060
1111
|
value: swap(request: $request) {
|
|
1061
1112
|
...SwapExecutionPlan
|
|
1062
1113
|
}
|
|
1063
|
-
}`,[
|
|
1114
|
+
}`,[ee]),Hn=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
1064
1115
|
value: prepareSwapCancel(request: $request) {
|
|
1065
1116
|
...PrepareSwapCancelResult
|
|
1066
1117
|
}
|
|
1067
|
-
}`,[
|
|
1118
|
+
}`,[re]),Bn=e(`query CancelSwap($request: CancelSwapRequest!) {
|
|
1068
1119
|
value: cancelSwap(request: $request) {
|
|
1069
1120
|
...CancelSwapExecutionPlan
|
|
1070
1121
|
}
|
|
1071
|
-
}`,[
|
|
1122
|
+
}`,[ne]),On=e(`query UserSwaps($request: UserSwapsRequest!, $currency: Currency!) {
|
|
1072
1123
|
value: userSwaps(request: $request) {
|
|
1073
1124
|
...PaginatedUserSwapsResult
|
|
1074
1125
|
}
|
|
1075
|
-
}`,[
|
|
1126
|
+
}`,[ae]);var Dn=e(`query Borrow($request: BorrowRequest!) {
|
|
1076
1127
|
value: borrow(request: $request) {
|
|
1077
1128
|
...ExecutionPlan
|
|
1078
1129
|
}
|
|
1079
|
-
}`,[b]),
|
|
1130
|
+
}`,[b]),Qn=e(`query Supply($request: SupplyRequest!) {
|
|
1080
1131
|
value: supply(request: $request) {
|
|
1081
1132
|
...ExecutionPlan
|
|
1082
1133
|
}
|
|
1083
|
-
}`,[b]),
|
|
1134
|
+
}`,[b]),Wn=e(`query Repay($request: RepayRequest!) {
|
|
1084
1135
|
value: repay(request: $request) {
|
|
1085
1136
|
...ExecutionPlan
|
|
1086
1137
|
}
|
|
1087
|
-
}`,[b]),
|
|
1138
|
+
}`,[b]),Ln=e(`query Withdraw($request: WithdrawRequest!) {
|
|
1088
1139
|
value: withdraw(request: $request) {
|
|
1089
1140
|
...ExecutionPlan
|
|
1090
1141
|
}
|
|
1091
|
-
}`,[b]),
|
|
1142
|
+
}`,[b]),Rt=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1092
1143
|
__typename
|
|
1093
1144
|
... on TransactionRequest {
|
|
1094
1145
|
...TransactionRequest
|
|
@@ -1099,27 +1150,74 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1099
1150
|
... on InsufficientBalanceError {
|
|
1100
1151
|
...InsufficientBalanceError
|
|
1101
1152
|
}
|
|
1102
|
-
}`,[m,
|
|
1153
|
+
}`,[m,B,h]),Mn=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1103
1154
|
value: liquidatePosition(request: $request) {
|
|
1104
1155
|
...LiquidatePositionExecutionPlan
|
|
1105
1156
|
}
|
|
1106
|
-
}`,[
|
|
1157
|
+
}`,[Rt]),Vn=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1107
1158
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1108
1159
|
...TransactionRequest
|
|
1109
1160
|
}
|
|
1110
|
-
}`,[m]),
|
|
1161
|
+
}`,[m]),Gn=e(`query SetUserSuppliesAsCollateral($request: SetUserSuppliesAsCollateralRequest!) {
|
|
1111
1162
|
value: setUserSuppliesAsCollateral(request: $request) {
|
|
1112
1163
|
...TransactionRequest
|
|
1113
1164
|
}
|
|
1114
|
-
}`,[m]),
|
|
1165
|
+
}`,[m]),Kn=e(`query RenounceSpokeUserPositionManager($request: RenounceSpokeUserPositionManagerRequest!) {
|
|
1115
1166
|
value: renounceSpokeUserPositionManager(request: $request) {
|
|
1116
1167
|
...TransactionRequest
|
|
1117
1168
|
}
|
|
1118
|
-
}`,[m]),
|
|
1169
|
+
}`,[m]),zn=e(`query UpdateUserPositionConditions($request: UpdateUserPositionConditionsRequest!) {
|
|
1119
1170
|
value: updateUserPositionConditions(request: $request) {
|
|
1120
1171
|
...TransactionRequest
|
|
1121
1172
|
}
|
|
1122
|
-
}`,[m]),
|
|
1173
|
+
}`,[m]),xt=e(`fragment CollateralFactorVariation on CollateralFactorVariation {
|
|
1174
|
+
__typename
|
|
1175
|
+
reserveId
|
|
1176
|
+
token {
|
|
1177
|
+
...Erc20Token
|
|
1178
|
+
}
|
|
1179
|
+
current {
|
|
1180
|
+
...PercentNumber
|
|
1181
|
+
}
|
|
1182
|
+
after {
|
|
1183
|
+
...PercentNumber
|
|
1184
|
+
}
|
|
1185
|
+
}`,[y,r]),At=e(`fragment LiquidationFeeVariation on LiquidationFeeVariation {
|
|
1186
|
+
__typename
|
|
1187
|
+
reserveId
|
|
1188
|
+
token {
|
|
1189
|
+
...Erc20Token
|
|
1190
|
+
}
|
|
1191
|
+
current {
|
|
1192
|
+
...PercentNumber
|
|
1193
|
+
}
|
|
1194
|
+
after {
|
|
1195
|
+
...PercentNumber
|
|
1196
|
+
}
|
|
1197
|
+
}`,[y,r]),ht=e(`fragment MaxLiquidationBonusVariation on MaxLiquidationBonusVariation {
|
|
1198
|
+
__typename
|
|
1199
|
+
reserveId
|
|
1200
|
+
token {
|
|
1201
|
+
...Erc20Token
|
|
1202
|
+
}
|
|
1203
|
+
current {
|
|
1204
|
+
...PercentNumber
|
|
1205
|
+
}
|
|
1206
|
+
after {
|
|
1207
|
+
...PercentNumber
|
|
1208
|
+
}
|
|
1209
|
+
}`,[y,r]),Ft=e(`fragment UserPositionConditionVariation on UserPositionConditionVariation {
|
|
1210
|
+
__typename
|
|
1211
|
+
... on CollateralFactorVariation {
|
|
1212
|
+
...CollateralFactorVariation
|
|
1213
|
+
}
|
|
1214
|
+
... on LiquidationFeeVariation {
|
|
1215
|
+
...LiquidationFeeVariation
|
|
1216
|
+
}
|
|
1217
|
+
... on MaxLiquidationBonusVariation {
|
|
1218
|
+
...MaxLiquidationBonusVariation
|
|
1219
|
+
}
|
|
1220
|
+
}`,[xt,At,ht]),Pt=e(`fragment PreviewUserPosition on PreviewUserPosition {
|
|
1123
1221
|
__typename
|
|
1124
1222
|
id
|
|
1125
1223
|
healthFactor {
|
|
@@ -1132,16 +1230,25 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1132
1230
|
...PercentNumberVariation
|
|
1133
1231
|
}
|
|
1134
1232
|
netCollateral(currency: $currency) {
|
|
1135
|
-
...
|
|
1233
|
+
...ExchangeAmountVariation
|
|
1136
1234
|
}
|
|
1137
1235
|
netBalance(currency: $currency) {
|
|
1138
|
-
...
|
|
1236
|
+
...ExchangeAmountVariation
|
|
1237
|
+
}
|
|
1238
|
+
projectedEarnings(period: ANNUAL) {
|
|
1239
|
+
...ExchangeAmountVariation
|
|
1139
1240
|
}
|
|
1140
|
-
|
|
1241
|
+
borrowingPower {
|
|
1242
|
+
...ExchangeAmountVariation
|
|
1243
|
+
}
|
|
1244
|
+
otherConditions {
|
|
1245
|
+
...UserPositionConditionVariation
|
|
1246
|
+
}
|
|
1247
|
+
}`,[K,M,V,Ft]),Yn=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD) {
|
|
1141
1248
|
value: preview(request: $request) {
|
|
1142
1249
|
...PreviewUserPosition
|
|
1143
1250
|
}
|
|
1144
|
-
}`,[
|
|
1251
|
+
}`,[Pt]),le=e(`fragment PercentNumberChangeSnapshot on PercentNumberChangeSnapshot {
|
|
1145
1252
|
__typename
|
|
1146
1253
|
before {
|
|
1147
1254
|
...PercentNumber
|
|
@@ -1149,7 +1256,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1149
1256
|
after {
|
|
1150
1257
|
...PercentNumber
|
|
1151
1258
|
}
|
|
1152
|
-
}`,[r]),
|
|
1259
|
+
}`,[r]),wt=e(`fragment BorrowActivity on BorrowActivity {
|
|
1153
1260
|
__typename
|
|
1154
1261
|
id
|
|
1155
1262
|
user
|
|
@@ -1167,7 +1274,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1167
1274
|
chain {
|
|
1168
1275
|
...Chain
|
|
1169
1276
|
}
|
|
1170
|
-
}`,[i,
|
|
1277
|
+
}`,[u,i,f,a]),It=e(`fragment SupplyActivity on SupplyActivity {
|
|
1171
1278
|
__typename
|
|
1172
1279
|
id
|
|
1173
1280
|
user
|
|
@@ -1185,7 +1292,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1185
1292
|
chain {
|
|
1186
1293
|
...Chain
|
|
1187
1294
|
}
|
|
1188
|
-
}`,[i,
|
|
1295
|
+
}`,[u,i,f,a]),Tt=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1189
1296
|
__typename
|
|
1190
1297
|
id
|
|
1191
1298
|
user
|
|
@@ -1203,7 +1310,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1203
1310
|
chain {
|
|
1204
1311
|
...Chain
|
|
1205
1312
|
}
|
|
1206
|
-
}`,[i,
|
|
1313
|
+
}`,[u,i,f,a]),Ct=e(`fragment RepayActivity on RepayActivity {
|
|
1207
1314
|
__typename
|
|
1208
1315
|
id
|
|
1209
1316
|
user
|
|
@@ -1221,7 +1328,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1221
1328
|
chain {
|
|
1222
1329
|
...Chain
|
|
1223
1330
|
}
|
|
1224
|
-
}`,[i,
|
|
1331
|
+
}`,[u,i,f,a]),bt=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1225
1332
|
__typename
|
|
1226
1333
|
id
|
|
1227
1334
|
user
|
|
@@ -1246,7 +1353,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1246
1353
|
chain {
|
|
1247
1354
|
...Chain
|
|
1248
1355
|
}
|
|
1249
|
-
}`,[i,
|
|
1356
|
+
}`,[u,i,f,a]),Et=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1250
1357
|
__typename
|
|
1251
1358
|
id
|
|
1252
1359
|
user
|
|
@@ -1262,7 +1369,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1262
1369
|
chain {
|
|
1263
1370
|
...Chain
|
|
1264
1371
|
}
|
|
1265
|
-
}`,[
|
|
1372
|
+
}`,[u,f,a]),Ut=e(`fragment UpdatedDynamicConfigActivity on UpdatedDynamicConfigActivity {
|
|
1266
1373
|
__typename
|
|
1267
1374
|
id
|
|
1268
1375
|
user
|
|
@@ -1286,7 +1393,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1286
1393
|
chain {
|
|
1287
1394
|
...Chain
|
|
1288
1395
|
}
|
|
1289
|
-
}`,[
|
|
1396
|
+
}`,[u,f,le,a]),kt=e(`fragment UpdatedRiskPremiumActivity on UpdatedRiskPremiumActivity {
|
|
1290
1397
|
__typename
|
|
1291
1398
|
id
|
|
1292
1399
|
user
|
|
@@ -1301,7 +1408,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1301
1408
|
chain {
|
|
1302
1409
|
...Chain
|
|
1303
1410
|
}
|
|
1304
|
-
}`,[
|
|
1411
|
+
}`,[u,le,a]),vt=e(`fragment ActivityItem on ActivityItem {
|
|
1305
1412
|
__typename
|
|
1306
1413
|
... on BorrowActivity {
|
|
1307
1414
|
...BorrowActivity
|
|
@@ -1327,7 +1434,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1327
1434
|
... on UpdatedRiskPremiumActivity {
|
|
1328
1435
|
...UpdatedRiskPremiumActivity
|
|
1329
1436
|
}
|
|
1330
|
-
}`,[
|
|
1437
|
+
}`,[wt,It,Tt,Ct,bt,Et,Ut,kt]),Ht=e(`fragment PaginatedActivitiesResult on PaginatedActivitiesResult {
|
|
1331
1438
|
__typename
|
|
1332
1439
|
items {
|
|
1333
1440
|
...ActivityItem
|
|
@@ -1335,37 +1442,41 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1335
1442
|
pageInfo {
|
|
1336
1443
|
...PaginatedResultInfo
|
|
1337
1444
|
}
|
|
1338
|
-
}`,[
|
|
1445
|
+
}`,[vt,q]),Zn=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1339
1446
|
value: activities(request: $request) {
|
|
1340
1447
|
...PaginatedActivitiesResult
|
|
1341
1448
|
}
|
|
1342
|
-
}`,[
|
|
1449
|
+
}`,[Ht]);var ea=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1343
1450
|
value: userSupplies(request: $request) {
|
|
1344
1451
|
...UserSupplyItem
|
|
1345
1452
|
}
|
|
1346
|
-
}`,[
|
|
1453
|
+
}`,[oe]),ta=e(`query UserBorrows($request: UserBorrowsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1347
1454
|
value: userBorrows(request: $request) {
|
|
1348
1455
|
...UserBorrowItem
|
|
1349
1456
|
}
|
|
1350
|
-
}`,[
|
|
1457
|
+
}`,[se]),ra=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1351
1458
|
value: userSummary(request: $request) {
|
|
1352
1459
|
...UserSummary
|
|
1353
1460
|
}
|
|
1354
|
-
}`,[pe]),
|
|
1461
|
+
}`,[pe]),na=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1355
1462
|
value: userPositions(request: $request) {
|
|
1356
1463
|
...UserPosition
|
|
1357
1464
|
}
|
|
1358
|
-
}`,[
|
|
1465
|
+
}`,[$]),aa=e(`query UserPosition($request: UserPositionRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1359
1466
|
value: userPosition(request: $request) {
|
|
1360
1467
|
...UserPosition
|
|
1361
1468
|
}
|
|
1362
|
-
}`,[
|
|
1469
|
+
}`,[$]),oa=e(`query UserBalances($request: UserBalancesRequest!, $currency: Currency!) {
|
|
1363
1470
|
value: userBalances(request: $request) {
|
|
1364
1471
|
...UserBalance
|
|
1365
1472
|
}
|
|
1366
|
-
}`,[
|
|
1473
|
+
}`,[ie]),sa=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1367
1474
|
value: userSummaryHistory(request: $request) {
|
|
1368
1475
|
...UserSummaryHistoryItem
|
|
1369
1476
|
}
|
|
1370
|
-
}`,[
|
|
1477
|
+
}`,[ue]),pa=e(`query UserRiskPremiumBreakdown($request: UserRiskPremiumBreakdownRequest!) {
|
|
1478
|
+
value: userRiskPremiumBreakdown(request: $request) {
|
|
1479
|
+
...UserRiskPremiumBreakdownItem
|
|
1480
|
+
}
|
|
1481
|
+
}`,[_]);export{Zn as ActivitiesQuery,vt as ActivityItemFragment,he as ActivityType,Fe as ApyMetric,N as ApySampleFragment,dt as AssetAmountWithChangeFragment,pn as AssetBorrowHistoryQuery,ct as AssetBorrowSampleFragment,un as AssetCategoryBorrowHistoryQuery,gt as AssetCategoryBorrowSampleFragment,mn as AssetCategorySupplyHistoryQuery,lt as AssetCategorySupplySampleFragment,St as AssetFragment,on as AssetPriceHistoryQuery,mt as AssetPriceSampleFragment,an as AssetQuery,ft as AssetSummaryFragment,sn as AssetSupplyHistoryQuery,yt as AssetSupplySampleFragment,wt as BorrowActivityFragment,dn as BorrowApyHistoryQuery,Dn as BorrowQuery,ne as CancelSwapExecutionPlanFragment,Bn as CancelSwapQuery,at as CancelSwapTypeDefinitionFragment,ot as CancelSwapTypedDataFragment,a as ChainFragment,Zr as ChainQuery,Re as ChainsFilter,Jr as ChainsQuery,xt as CollateralFactorVariationFragment,Pe as CollateralMetric,we as Currency,c as DecimalNumberFragment,H as DecimalNumberWithChangeFragment,k as DomainDataFragment,i as Erc20AmountFragment,B as Erc20ApprovalRequiredFragment,y as Erc20TokenFragment,s as ExchangeAmountFragment,V as ExchangeAmountVariationFragment,d as ExchangeAmountWithChangeFragment,en as ExchangeRateQuery,b as ExecutionPlanFragment,jr as HasProcessedKnownTransactionQuery,ve as HealthFactorErrorFragment,K as HealthFactorResultFragment,ke as HealthFactorVariationFragment,G as HealthFactorWithChangeFragment,Xr as HealthQuery,C as HubAssetFragment,Oe as HubAssetSettingsFragment,xe as HubAssetStatusType,Be as HubAssetSummaryFragment,_e as HubAssetUserStateFragment,hr as HubAssetsQuery,Ae as HubAssetsRequestOrderBy,T as HubFragment,xr as HubQuery,He as HubSummaryFragment,Fr as HubSummaryHistoryQuery,pt as HubSummarySampleFragment,Ar as HubsQuery,h as InsufficientBalanceErrorFragment,Rt as LiquidatePositionExecutionPlanFragment,Mn as LiquidatePositionQuery,bt as LiquidatedActivityFragment,At as LiquidationFeeVariationFragment,ht as MaxLiquidationBonusVariationFragment,Ue as NativeAmountFragment,Q as NativeTokenFragment,qe as OperationType,de as OrderDirection,fe as PageSize,Ht as PaginatedActivitiesResultFragment,q as PaginatedResultInfoFragment,z as PaginatedSpokePositionManagerResultFragment,Y as PaginatedSpokeUserPositionManagerResultFragment,ae as PaginatedUserSwapsResultFragment,le as PercentNumberChangeSnapshotFragment,r as PercentNumberFragment,M as PercentNumberVariationFragment,L as PercentNumberWithChangeFragment,Ve as PermitMessageDataFragment,rr as PermitTypedDataQuery,Ge as PermitTypedDataResponseFragment,Ke as PreContractActionRequiredFragment,Hn as PrepareSwapCancelQuery,re as PrepareSwapCancelResultFragment,Un as PrepareSwapQuery,j as PrepareSwapResultFragment,Yn as PreviewQuery,Pt as PreviewUserPositionFragment,yn as ProtocolHistoryQuery,qt as ProtocolHistorySampleFragment,Kn as RenounceSpokeUserPositionManagerQuery,Ct as RepayActivityFragment,Wn as RepayQuery,A as ReserveFragment,f as ReserveInfoFragment,Sn as ReserveQuery,De as ReserveSettingsFragment,Qe as ReserveStatusFragment,We as ReserveSummaryFragment,Le as ReserveUserStateFragment,qn as ReservesQuery,Ie as ReservesRequestFilter,Vn as SetSpokeUserPositionManagerQuery,Gn as SetUserSuppliesAsCollateralQuery,u as SpokeFragment,$e as SpokePositionManagerFragment,Pn as SpokePositionManagersQuery,hn as SpokeQuery,Ne as SpokeUserPositionManagerFragment,wn as SpokeUserPositionManagersQuery,Fn as SpokesQuery,It as SupplyActivityFragment,fn as SupplyApyHistoryQuery,Qn as SupplyQuery,Xe as SwapApprovalRequiredFragment,Ze as SwapByIntentFragment,Ye as SwapByIntentTypeDefinitionFragment,Z as SwapByIntentTypedDataFragment,Je as SwapByIntentWithApprovalRequiredFragment,je as SwapByTransactionFragment,te as SwapCancelledFragment,ee as SwapExecutionPlanFragment,et as SwapExpiredFragment,nt as SwapFulfilledFragment,Te as SwapKind,tt as SwapOpenFragment,rt as SwapPendingSignatureFragment,vn as SwapQuery,ze as SwapQuoteCostsFragment,E as SwapQuoteFragment,bn as SwapQuoteQuery,J as SwapReceiptFragment,Ce as SwapStatusFilter,O as SwapStatusFragment,kn as SwapStatusQuery,X as SwapTransactionRequestFragment,En as SwappableTokensQuery,Se as TimeWindow,S as TokenAmountFragment,be as TokenCategory,W as TokenFragment,I as TokenInfoFragment,m as TransactionRequestFragment,Me as TypeDefinitionFragment,U as TypeFieldFragment,zn as UpdateUserPositionConditionsQuery,Ut as UpdatedDynamicConfigActivityFragment,kt as UpdatedRiskPremiumActivityFragment,ie as UserBalanceFragment,oa as UserBalancesQuery,se as UserBorrowItemFragment,ta as UserBorrowsQuery,Ft as UserPositionConditionVariationFragment,$ as UserPositionFragment,aa as UserPositionQuery,st as UserPositionRiskPremiumFragment,na as UserPositionsQuery,_ as UserRiskPremiumBreakdownItemFragment,pa as UserRiskPremiumBreakdownQuery,pe as UserSummaryFragment,ue as UserSummaryHistoryItemFragment,sa as UserSummaryHistoryQuery,ra as UserSummaryQuery,ea as UserSuppliesQuery,oe as UserSupplyItemFragment,On as UserSwapsQuery,Et as UsingAsCollateralActivityFragment,Tt as WithdrawActivityFragment,Ln as WithdrawQuery,Ir as assetId,Cr as decodeHubId,Ur as decodeReserveId,Tr as encodeHubId,kr as encodeReserveId,Or as encodeSpokeId,e as graphql,br as hubAssetId,it as hubId,Mr as isChainIdsVariant,Lr as isHubInputVariant,Vr as isSpokeInputVariant,Gr as isTxHashInputVariant,Er as reserveId,ut as spokeId,Hr as swapId,Br as swapQuoteId,Dr as tokenInfoId,_r as userBalanceId,$r as userBorrowItemId,vr as userPositionId,Nr as userSupplyItemId};//# sourceMappingURL=index.js.map
|
|
1371
1482
|
//# sourceMappingURL=index.js.map
|