@aave/graphql 1.0.0-next.8 → 1.0.0-next.9
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 +127 -128
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +76 -515
- package/dist/index.d.ts +76 -515
- package/dist/index.js +127 -128
- 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 +11 -7
- package/dist/test-utils.cjs.map +1 -1
- package/dist/test-utils.js +11 -7
- package/dist/test-utils.js.map +1 -1
- package/package.json +1 -1
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 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 {
|
|
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||{}),Ee=(n=>(n.AllDynamicConfig="ALL_DYNAMIC_CONFIG",n.JustRiskPremium="JUST_RISK_PREMIUM",n))(Ee||{});var e=initGraphQLTada();var c=e(`fragment DecimalNumber on DecimalNumber {
|
|
2
2
|
__typename
|
|
3
3
|
onChainValue
|
|
4
4
|
decimals
|
|
@@ -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
|
-
}`,[y,c,s]),
|
|
83
|
+
}`,[y,c,s]),ke=e(`fragment NativeAmount on NativeAmount {
|
|
84
84
|
__typename
|
|
85
85
|
token {
|
|
86
86
|
...NativeToken
|
|
@@ -102,7 +102,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
102
102
|
... on NativeAmount {
|
|
103
103
|
...NativeAmount
|
|
104
104
|
}
|
|
105
|
-
}`,[i,
|
|
105
|
+
}`,[i,ke]),W=e(`fragment Token on Token {
|
|
106
106
|
__typename
|
|
107
107
|
... on Erc20Token {
|
|
108
108
|
...Erc20Token
|
|
@@ -152,11 +152,11 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
152
152
|
change(window: $timeWindow) {
|
|
153
153
|
...PercentNumber
|
|
154
154
|
}
|
|
155
|
-
}`,[r]),
|
|
155
|
+
}`,[r]),ve=e(`fragment HealthFactorVariation on HealthFactorVariation {
|
|
156
156
|
__typename
|
|
157
157
|
current
|
|
158
158
|
after
|
|
159
|
-
}`),
|
|
159
|
+
}`),He=e(`fragment HealthFactorError on HealthFactorError {
|
|
160
160
|
__typename
|
|
161
161
|
reason
|
|
162
162
|
current
|
|
@@ -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
|
+
}`,[ve,He]);var Be=e(`fragment HubSummary on HubSummary {
|
|
173
173
|
__typename
|
|
174
174
|
totalBorrowed {
|
|
175
175
|
...ExchangeAmountWithChange
|
|
@@ -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
|
-
}`,[a,
|
|
200
|
+
}`,[a,Be]);var Oe=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
|
-
}`,[i,r]),
|
|
223
|
+
}`,[i,r]),_e=e(`fragment HubAssetSettings on HubAssetSettings {
|
|
224
224
|
__typename
|
|
225
225
|
feeReceiver
|
|
226
226
|
liquidityFee {
|
|
@@ -228,7 +228,7 @@ 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
|
|
@@ -252,7 +252,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
252
252
|
userState {
|
|
253
253
|
...HubAssetUserState
|
|
254
254
|
}
|
|
255
|
-
}`,[T,y,
|
|
255
|
+
}`,[T,y,Oe,_e,$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
|
-
}`,[a])
|
|
263
|
+
}`,[a]),Ne=e(`fragment SpokePositionManager on SpokePositionManger {
|
|
264
264
|
__typename
|
|
265
265
|
address
|
|
266
266
|
active
|
|
267
267
|
name
|
|
268
|
-
}`),
|
|
268
|
+
}`),Y=e(`fragment PaginatedSpokePositionManagerResult on PaginatedSpokePositionManagerResult {
|
|
269
269
|
__typename
|
|
270
270
|
items {
|
|
271
271
|
...SpokePositionManager
|
|
@@ -273,13 +273,13 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
273
273
|
pageInfo {
|
|
274
274
|
...PaginatedResultInfo
|
|
275
275
|
}
|
|
276
|
-
}`,[
|
|
276
|
+
}`,[Ne,q]),De=e(`fragment SpokeUserPositionManager on SpokeUserPositionManager {
|
|
277
277
|
__typename
|
|
278
278
|
address
|
|
279
279
|
approvedOn
|
|
280
280
|
active
|
|
281
281
|
name
|
|
282
|
-
}`),
|
|
282
|
+
}`),z=e(`fragment PaginatedSpokeUserPositionManagerResult on PaginatedSpokeUserPositionManagerResult {
|
|
283
283
|
__typename
|
|
284
284
|
items {
|
|
285
285
|
...SpokeUserPositionManager
|
|
@@ -287,7 +287,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
287
287
|
pageInfo {
|
|
288
288
|
...PaginatedResultInfo
|
|
289
289
|
}
|
|
290
|
-
}`,[
|
|
290
|
+
}`,[De,q]);var Qe=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]),We=e(`fragment ReserveStatus on ReserveStatus {
|
|
309
309
|
__typename
|
|
310
310
|
frozen
|
|
311
311
|
paused
|
|
312
312
|
active
|
|
313
|
-
}`),
|
|
313
|
+
}`),Le=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
|
-
}`,[i,r]),
|
|
327
|
+
}`,[i,r]),Me=e(`fragment ReserveUserState on ReserveUserState {
|
|
328
328
|
__typename
|
|
329
329
|
balance {
|
|
330
330
|
...Erc20Amount
|
|
@@ -335,9 +335,6 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
335
335
|
borrowable {
|
|
336
336
|
...Erc20Amount
|
|
337
337
|
}
|
|
338
|
-
borrowingPower {
|
|
339
|
-
...Erc20Amount
|
|
340
|
-
}
|
|
341
338
|
borrowApy {
|
|
342
339
|
...PercentNumber
|
|
343
340
|
}
|
|
@@ -351,7 +348,6 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
351
348
|
...PercentNumber
|
|
352
349
|
}
|
|
353
350
|
dynamicConfigKey
|
|
354
|
-
isUsingLatestDynamicConfigKey
|
|
355
351
|
}`,[i,r]),A=e(`fragment Reserve on Reserve {
|
|
356
352
|
__typename
|
|
357
353
|
id
|
|
@@ -382,7 +378,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
382
378
|
asset {
|
|
383
379
|
...HubAsset
|
|
384
380
|
}
|
|
385
|
-
}`,[u,a,
|
|
381
|
+
}`,[u,a,Le,Qe,We,Me,C]),f=e(`fragment ReserveInfo on ReserveInfo {
|
|
386
382
|
__typename
|
|
387
383
|
id
|
|
388
384
|
asset {
|
|
@@ -391,7 +387,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
391
387
|
}`,[C]);var U=e(`fragment TypeField on TypeField {
|
|
392
388
|
name
|
|
393
389
|
type
|
|
394
|
-
}`),
|
|
390
|
+
}`),Ve=e(`fragment TypeDefinition on TypeDefinition {
|
|
395
391
|
EIP712Domain {
|
|
396
392
|
...TypeField
|
|
397
393
|
}
|
|
@@ -403,13 +399,13 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
403
399
|
version
|
|
404
400
|
chainId
|
|
405
401
|
verifyingContract
|
|
406
|
-
}`),
|
|
402
|
+
}`),Ge=e(`fragment PermitMessageData on PermitMessageData {
|
|
407
403
|
owner
|
|
408
404
|
spender
|
|
409
405
|
value
|
|
410
406
|
nonce
|
|
411
407
|
deadline
|
|
412
|
-
}`),
|
|
408
|
+
}`),Ke=e(`fragment PermitTypedDataResponse on PermitTypedDataResponse {
|
|
413
409
|
types {
|
|
414
410
|
...TypeDefinition
|
|
415
411
|
}
|
|
@@ -420,11 +416,11 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
420
416
|
message {
|
|
421
417
|
...PermitMessageData
|
|
422
418
|
}
|
|
423
|
-
}`,[
|
|
419
|
+
}`,[Ve,k,Ge]),nr=e(`query PermitTypedData($request: PermitRequest!) {
|
|
424
420
|
value: permitTypedData(request: $request) {
|
|
425
421
|
...PermitTypedDataResponse
|
|
426
422
|
}
|
|
427
|
-
}`,[
|
|
423
|
+
}`,[Ke]);var m=e(`fragment TransactionRequest on TransactionRequest {
|
|
428
424
|
__typename
|
|
429
425
|
to
|
|
430
426
|
from
|
|
@@ -447,7 +443,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
447
443
|
originalTransaction {
|
|
448
444
|
...TransactionRequest
|
|
449
445
|
}
|
|
450
|
-
}`,[m,c]),
|
|
446
|
+
}`,[m,c]),Ye=e(`fragment PreContractActionRequired on PreContractActionRequired {
|
|
451
447
|
__typename
|
|
452
448
|
transaction {
|
|
453
449
|
...TransactionRequest
|
|
@@ -478,7 +474,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
478
474
|
... on InsufficientBalanceError {
|
|
479
475
|
...InsufficientBalanceError
|
|
480
476
|
}
|
|
481
|
-
}`,[m,B,
|
|
477
|
+
}`,[m,B,Ye,h]);var ze=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
482
478
|
__typename
|
|
483
479
|
networkCosts {
|
|
484
480
|
...TokenAmount
|
|
@@ -504,7 +500,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
504
500
|
minimumReceived {
|
|
505
501
|
...TokenAmount
|
|
506
502
|
}
|
|
507
|
-
}`,[r,S,ze]),
|
|
503
|
+
}`,[r,S,ze]),Ze=e(`fragment SwapByIntentTypeDefinition on SwapByIntentTypeDefinition {
|
|
508
504
|
EIP712Domain {
|
|
509
505
|
...TypeField
|
|
510
506
|
}
|
|
@@ -521,7 +517,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
521
517
|
...DomainData
|
|
522
518
|
}
|
|
523
519
|
message
|
|
524
|
-
}`,[
|
|
520
|
+
}`,[Ze,k]),Je=e(`fragment SwapByIntent on SwapByIntent {
|
|
525
521
|
__typename
|
|
526
522
|
quote {
|
|
527
523
|
...SwapQuote
|
|
@@ -529,7 +525,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
529
525
|
data {
|
|
530
526
|
...SwapByIntentTypedData
|
|
531
527
|
}
|
|
532
|
-
}`,[E,Z]),
|
|
528
|
+
}`,[E,Z]),je=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
533
529
|
__typename
|
|
534
530
|
approval {
|
|
535
531
|
...TransactionRequest
|
|
@@ -540,7 +536,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
540
536
|
data {
|
|
541
537
|
...SwapByIntentTypedData
|
|
542
538
|
}
|
|
543
|
-
}`,[m,E,Z]),
|
|
539
|
+
}`,[m,E,Z]),Xe=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
544
540
|
__typename
|
|
545
541
|
quote {
|
|
546
542
|
...SwapQuote
|
|
@@ -564,7 +560,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
564
560
|
... on InsufficientBalanceError {
|
|
565
561
|
...InsufficientBalanceError
|
|
566
562
|
}
|
|
567
|
-
}`,[
|
|
563
|
+
}`,[Je,je,Xe,h]),X=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
568
564
|
__typename
|
|
569
565
|
transaction {
|
|
570
566
|
...TransactionRequest
|
|
@@ -572,7 +568,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
572
568
|
orderReceipt {
|
|
573
569
|
...SwapReceipt
|
|
574
570
|
}
|
|
575
|
-
}`,[m,J]),
|
|
571
|
+
}`,[m,J]),et=e(`fragment SwapApprovalRequired on SwapApprovalRequired {
|
|
576
572
|
__typename
|
|
577
573
|
approval {
|
|
578
574
|
...TransactionRequest
|
|
@@ -594,17 +590,17 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
594
590
|
... on SwapReceipt {
|
|
595
591
|
...SwapReceipt
|
|
596
592
|
}
|
|
597
|
-
}`,[X,
|
|
593
|
+
}`,[X,et,h,J]),te=e(`fragment SwapCancelled on SwapCancelled {
|
|
598
594
|
__typename
|
|
599
595
|
createdAt
|
|
600
596
|
cancelledAt
|
|
601
597
|
explorerLink
|
|
602
|
-
}`),
|
|
598
|
+
}`),tt=e(`fragment SwapExpired on SwapExpired {
|
|
603
599
|
__typename
|
|
604
600
|
createdAt
|
|
605
601
|
expiredAt
|
|
606
602
|
explorerLink
|
|
607
|
-
}`),
|
|
603
|
+
}`),rt=e(`fragment SwapOpen on SwapOpen {
|
|
608
604
|
__typename
|
|
609
605
|
swapId
|
|
610
606
|
createdAt
|
|
@@ -616,12 +612,12 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
616
612
|
desiredBuy {
|
|
617
613
|
...TokenAmount
|
|
618
614
|
}
|
|
619
|
-
}`,[S]),
|
|
615
|
+
}`,[S]),nt=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
620
616
|
__typename
|
|
621
617
|
createdAt
|
|
622
618
|
deadline
|
|
623
619
|
explorerLink
|
|
624
|
-
}`),
|
|
620
|
+
}`),at=e(`fragment SwapFulfilled on SwapFulfilled {
|
|
625
621
|
__typename
|
|
626
622
|
txHash
|
|
627
623
|
desiredSell {
|
|
@@ -657,14 +653,14 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
657
653
|
... on SwapFulfilled {
|
|
658
654
|
...SwapFulfilled
|
|
659
655
|
}
|
|
660
|
-
}`,[
|
|
656
|
+
}`,[rt,nt,te,tt,at]),ot=e(`fragment CancelSwapTypeDefinition on CancelSwapTypeDefinition {
|
|
661
657
|
OrderCancellations {
|
|
662
658
|
...TypeField
|
|
663
659
|
}
|
|
664
660
|
EIP712Domain {
|
|
665
661
|
...TypeField
|
|
666
662
|
}
|
|
667
|
-
}`,[U]),
|
|
663
|
+
}`,[U]),st=e(`fragment CancelSwapTypedData on CancelSwapTypedData {
|
|
668
664
|
types {
|
|
669
665
|
...CancelSwapTypeDefinition
|
|
670
666
|
}
|
|
@@ -673,12 +669,12 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
673
669
|
...DomainData
|
|
674
670
|
}
|
|
675
671
|
message
|
|
676
|
-
}`,[
|
|
672
|
+
}`,[ot,k]),re=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
677
673
|
__typename
|
|
678
674
|
data {
|
|
679
675
|
...CancelSwapTypedData
|
|
680
676
|
}
|
|
681
|
-
}`,[
|
|
677
|
+
}`,[st]),ne=e(`fragment CancelSwapExecutionPlan on CancelSwapExecutionPlan {
|
|
682
678
|
__typename
|
|
683
679
|
... on TransactionRequest {
|
|
684
680
|
...TransactionRequest
|
|
@@ -754,18 +750,21 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
754
750
|
token {
|
|
755
751
|
...Erc20Token
|
|
756
752
|
}
|
|
757
|
-
|
|
753
|
+
currentRiskPremiumWeight {
|
|
754
|
+
...PercentNumber
|
|
755
|
+
}
|
|
756
|
+
latestRiskPremiumWeight {
|
|
758
757
|
...PercentNumber
|
|
759
758
|
}
|
|
760
759
|
collateral {
|
|
761
760
|
...PercentNumber
|
|
762
761
|
}
|
|
763
|
-
}`,[y,r]),
|
|
762
|
+
}`,[y,r]),pt=e(`fragment UserPositionRiskPremium on UserPositionRiskPremium {
|
|
764
763
|
__typename
|
|
765
764
|
current {
|
|
766
765
|
...PercentNumber
|
|
767
766
|
}
|
|
768
|
-
|
|
767
|
+
latest {
|
|
769
768
|
...PercentNumber
|
|
770
769
|
}
|
|
771
770
|
breakdown {
|
|
@@ -815,14 +814,14 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
815
814
|
borrowingPower(currency: $currency) {
|
|
816
815
|
...ExchangeAmount
|
|
817
816
|
}
|
|
818
|
-
|
|
817
|
+
canUpdateDynamicConfig
|
|
819
818
|
netBalancePercentChange(window: $timeWindow) {
|
|
820
819
|
...PercentNumber
|
|
821
820
|
}
|
|
822
821
|
averageCollateralFactor {
|
|
823
822
|
...PercentNumber
|
|
824
823
|
}
|
|
825
|
-
}`,[u,r,d,s,L,G,
|
|
824
|
+
}`,[u,r,d,s,L,G,pt]),ie=e(`fragment UserBalance on UserBalance {
|
|
826
825
|
__typename
|
|
827
826
|
id
|
|
828
827
|
info {
|
|
@@ -874,19 +873,19 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
874
873
|
avgRate {
|
|
875
874
|
...PercentNumber
|
|
876
875
|
}
|
|
877
|
-
}`,[r]);var
|
|
876
|
+
}`,[r]);var Ar=e(`query Hub($request: HubRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
878
877
|
value: hub(request: $request) {
|
|
879
878
|
...Hub
|
|
880
879
|
}
|
|
881
|
-
}`,[T]),
|
|
880
|
+
}`,[T]),hr=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
882
881
|
value: hubs(request: $request) {
|
|
883
882
|
...Hub
|
|
884
883
|
}
|
|
885
|
-
}`,[T]),
|
|
884
|
+
}`,[T]),Fr=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
886
885
|
value: hubAssets(request: $request) {
|
|
887
886
|
...HubAsset
|
|
888
887
|
}
|
|
889
|
-
}`,[C]),
|
|
888
|
+
}`,[C]),it=e(`fragment HubSummarySample on HubSummarySample {
|
|
890
889
|
__typename
|
|
891
890
|
date
|
|
892
891
|
deposits {
|
|
@@ -901,31 +900,31 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
901
900
|
utilizationRate {
|
|
902
901
|
...PercentNumber
|
|
903
902
|
}
|
|
904
|
-
}`,[s,r]),
|
|
903
|
+
}`,[s,r]),Pr=e(`query HubSummaryHistory($request: HubSummaryHistoryRequest!) {
|
|
905
904
|
value: hubSummaryHistory(request: $request) {
|
|
906
905
|
...HubSummarySample
|
|
907
906
|
}
|
|
908
|
-
}`,[
|
|
907
|
+
}`,[it]);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 Tr(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 ut(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 Cr(t){return ut(D(`${t.chainId}${F}${t.address}`))}function br(t){let P=ge(t),[n,o]=P.split(F);return {chainId:chainId(Number.parseInt(n,10)),address:evmAddress(o)}}function Er(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 Ur(t){return t}function kr(t){let P=ge(t),[n,o,R]=P.split(F);return {chainId:chainId(Number.parseInt(n,10)),spoke:evmAddress(o),onChainId:R}}function vr(t){return D(`${t.chainId}${F}${t.spoke}${F}${t.onChainId}`)}function Hr(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 Br(t){return invariant(isValidHexString(t),`Invalid SwapId: ${t}`),t}function Or(t){return invariant(isValidHexString(t),`Invalid SwapQuoteId: ${t}`),t}function _r(t){return mt(D(`${t.chainId}${F}${t.address}`))}function mt(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 Nr(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 Dr(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 Qr(t){return invariant(typeof t=="string"&&t.length>0,`Invalid TokenInfoId: ${t}`),t}function Mr(t){return isObject(t)&&"hubInput"in t&&t.hubInput!=null}function Vr(t){return isObject(t)&&"chainIds"in t&&t.chainIds!=null}function Gr(t){return isObject(t)&&"spoke"in t&&t.spoke!=null}function Kr(t){return isObject(t)&&"txHash"in t&&t.txHash!=null}var Jr=e(`query Chain($request: ChainRequest!) {
|
|
909
908
|
value: chain(request: $request) {
|
|
910
909
|
...Chain
|
|
911
910
|
}
|
|
912
|
-
}`,[a]),
|
|
911
|
+
}`,[a]),jr=e(`query Chains($request: ChainsRequest!) {
|
|
913
912
|
value: chains(request: $request) {
|
|
914
913
|
...Chain
|
|
915
914
|
}
|
|
916
|
-
}`,[a]),
|
|
915
|
+
}`,[a]),Xr=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
917
916
|
value: hasProcessedKnownTransaction(request: $request)
|
|
918
|
-
}`),
|
|
917
|
+
}`),en=e(`query Health {
|
|
919
918
|
value: health
|
|
920
|
-
}`),
|
|
919
|
+
}`),tn=e(`query ExchangeRate($request: ExchangeRateRequest!) {
|
|
921
920
|
value: exchangeRate(request: $request) {
|
|
922
921
|
...ExchangeAmount
|
|
923
922
|
}
|
|
924
|
-
}`,[s]);var
|
|
923
|
+
}`,[s]);var yt=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
925
924
|
__typename
|
|
926
925
|
date
|
|
927
926
|
price
|
|
928
|
-
}`),
|
|
927
|
+
}`),ct=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
929
928
|
__typename
|
|
930
929
|
date
|
|
931
930
|
amount {
|
|
@@ -937,7 +936,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
937
936
|
lowestApy {
|
|
938
937
|
...PercentNumber
|
|
939
938
|
}
|
|
940
|
-
}`,[c,r]),
|
|
939
|
+
}`,[c,r]),gt=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
941
940
|
__typename
|
|
942
941
|
date
|
|
943
942
|
amount {
|
|
@@ -949,7 +948,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
949
948
|
lowestApy {
|
|
950
949
|
...PercentNumber
|
|
951
950
|
}
|
|
952
|
-
}`,[c,r]),
|
|
951
|
+
}`,[c,r]),lt=e(`fragment AssetCategoryBorrowSample on AssetCategoryBorrowSample {
|
|
953
952
|
__typename
|
|
954
953
|
date
|
|
955
954
|
highestApy {
|
|
@@ -961,7 +960,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
961
960
|
borrows(currency: $currency) {
|
|
962
961
|
...ExchangeAmount
|
|
963
962
|
}
|
|
964
|
-
}`,[r,s]),
|
|
963
|
+
}`,[r,s]),dt=e(`fragment AssetCategorySupplySample on AssetCategorySupplySample {
|
|
965
964
|
__typename
|
|
966
965
|
date
|
|
967
966
|
highestApy {
|
|
@@ -973,7 +972,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
973
972
|
deposits(currency: $currency) {
|
|
974
973
|
...ExchangeAmount
|
|
975
974
|
}
|
|
976
|
-
}`,[r,s]),
|
|
975
|
+
}`,[r,s]),ft=e(`fragment AssetAmountWithChange on AssetAmountWithChange {
|
|
977
976
|
__typename
|
|
978
977
|
amount {
|
|
979
978
|
...DecimalNumberWithChange
|
|
@@ -981,7 +980,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
981
980
|
exchange(currency: $currency) {
|
|
982
981
|
...ExchangeAmountWithChange
|
|
983
982
|
}
|
|
984
|
-
}`,[H,d]),
|
|
983
|
+
}`,[H,d]),St=e(`fragment AssetSummary on AssetSummary {
|
|
985
984
|
__typename
|
|
986
985
|
totalSupplyCap {
|
|
987
986
|
...DecimalNumberWithChange
|
|
@@ -1007,7 +1006,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1007
1006
|
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
1008
1007
|
...PercentNumber
|
|
1009
1008
|
}
|
|
1010
|
-
}`,[
|
|
1009
|
+
}`,[ft,H,r]),qt=e(`fragment Asset on Asset {
|
|
1011
1010
|
__typename
|
|
1012
1011
|
id
|
|
1013
1012
|
token {
|
|
@@ -1019,31 +1018,31 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1019
1018
|
price(currency: $currency) {
|
|
1020
1019
|
...ExchangeAmountWithChange
|
|
1021
1020
|
}
|
|
1022
|
-
}`,[y,
|
|
1021
|
+
}`,[y,St,d]),on=e(`query Asset($request: AssetRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1023
1022
|
value: asset(request: $request) {
|
|
1024
1023
|
...Asset
|
|
1025
1024
|
}
|
|
1026
|
-
}`,[
|
|
1025
|
+
}`,[qt]),sn=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
1027
1026
|
value: assetPriceHistory(request: $request) {
|
|
1028
1027
|
...AssetPriceSample
|
|
1029
1028
|
}
|
|
1030
|
-
}`,[
|
|
1029
|
+
}`,[yt]),pn=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!) {
|
|
1031
1030
|
value: assetSupplyHistory(request: $request) {
|
|
1032
1031
|
...AssetSupplySample
|
|
1033
1032
|
}
|
|
1034
|
-
}`,[
|
|
1033
|
+
}`,[ct]),un=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!) {
|
|
1035
1034
|
value: assetBorrowHistory(request: $request) {
|
|
1036
1035
|
...AssetBorrowSample
|
|
1037
1036
|
}
|
|
1038
|
-
}`,[
|
|
1037
|
+
}`,[gt]),mn=e(`query AssetCategoryBorrowHistory($request: AssetCategoryBorrowHistoryRequest!, $currency: Currency! = USD) {
|
|
1039
1038
|
value: assetCategoryBorrowHistory(request: $request) {
|
|
1040
1039
|
...AssetCategoryBorrowSample
|
|
1041
1040
|
}
|
|
1042
|
-
}`,[
|
|
1041
|
+
}`,[lt]),yn=e(`query AssetCategorySupplyHistory($request: AssetCategorySupplyHistoryRequest!, $currency: Currency! = USD) {
|
|
1043
1042
|
value: assetCategorySupplyHistory(request: $request) {
|
|
1044
1043
|
...AssetCategorySupplySample
|
|
1045
1044
|
}
|
|
1046
|
-
}`,[
|
|
1045
|
+
}`,[dt]),Rt=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
1047
1046
|
__typename
|
|
1048
1047
|
date
|
|
1049
1048
|
deposits {
|
|
@@ -1055,91 +1054,91 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1055
1054
|
earnings {
|
|
1056
1055
|
...ExchangeAmount
|
|
1057
1056
|
}
|
|
1058
|
-
}`,[s]),
|
|
1057
|
+
}`,[s]),cn=e(`query ProtocolHistory($request: ProtocolHistoryRequest!) {
|
|
1059
1058
|
value: protocolHistory(request: $request) {
|
|
1060
1059
|
...ProtocolHistorySample
|
|
1061
1060
|
}
|
|
1062
|
-
}`,[
|
|
1061
|
+
}`,[Rt]);var fn=e(`query BorrowApyHistory($request: BorrowApyHistoryRequest!) {
|
|
1063
1062
|
value: borrowApyHistory(request: $request) {
|
|
1064
1063
|
...ApySample
|
|
1065
1064
|
}
|
|
1066
|
-
}`,[N]),
|
|
1065
|
+
}`,[N]),Sn=e(`query SupplyApyHistory($request: SupplyApyHistoryRequest!) {
|
|
1067
1066
|
value: supplyApyHistory(request: $request) {
|
|
1068
1067
|
...ApySample
|
|
1069
1068
|
}
|
|
1070
|
-
}`,[N]),
|
|
1069
|
+
}`,[N]),qn=e(`query Reserve($request: ReserveRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1071
1070
|
value: reserve(request: $request) {
|
|
1072
1071
|
...Reserve
|
|
1073
1072
|
}
|
|
1074
|
-
}`,[A]),
|
|
1073
|
+
}`,[A]),Rn=e(`query Reserves($request: ReservesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1075
1074
|
value: reserves(request: $request) {
|
|
1076
1075
|
...Reserve
|
|
1077
1076
|
}
|
|
1078
|
-
}`,[A]);var
|
|
1077
|
+
}`,[A]);var Fn=e(`query Spoke($request: SpokeRequest!) {
|
|
1079
1078
|
value: spoke(request: $request) {
|
|
1080
1079
|
...Spoke
|
|
1081
1080
|
}
|
|
1082
|
-
}`,[u]),
|
|
1081
|
+
}`,[u]),Pn=e(`query Spokes($request: SpokesRequest!) {
|
|
1083
1082
|
value: spokes(request: $request) {
|
|
1084
1083
|
...Spoke
|
|
1085
1084
|
}
|
|
1086
|
-
}`,[u]),
|
|
1085
|
+
}`,[u]),wn=e(`query SpokePositionManagers($request: SpokePositionManagersRequest!) {
|
|
1087
1086
|
value: spokePositionManagers(request: $request) {
|
|
1088
1087
|
...PaginatedSpokePositionManagerResult
|
|
1089
1088
|
}
|
|
1090
|
-
}`,[
|
|
1089
|
+
}`,[Y]),In=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
1091
1090
|
value: spokeUserPositionManagers(request: $request) {
|
|
1092
1091
|
...PaginatedSpokeUserPositionManagerResult
|
|
1093
1092
|
}
|
|
1094
|
-
}`,[
|
|
1093
|
+
}`,[z]);var En=e(`query SwapQuote($request: SwapQuoteRequest!, $currency: Currency!) {
|
|
1095
1094
|
value: swapQuote(request: $request) {
|
|
1096
1095
|
...SwapQuote
|
|
1097
1096
|
}
|
|
1098
|
-
}`,[E]),
|
|
1097
|
+
}`,[E]),Un=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
1099
1098
|
value: swappableTokens(request: $request) {
|
|
1100
1099
|
...Token
|
|
1101
1100
|
}
|
|
1102
|
-
}`,[W]),
|
|
1101
|
+
}`,[W]),kn=e(`query PrepareSwap($request: PrepareSwapRequest!, $currency: Currency!) {
|
|
1103
1102
|
value: prepareSwap(request: $request) {
|
|
1104
1103
|
...PrepareSwapResult
|
|
1105
1104
|
}
|
|
1106
|
-
}`,[j]),
|
|
1105
|
+
}`,[j]),vn=e(`query SwapStatus($request: SwapStatusRequest!, $currency: Currency!) {
|
|
1107
1106
|
value: swapStatus(request: $request) {
|
|
1108
1107
|
...SwapStatus
|
|
1109
1108
|
}
|
|
1110
|
-
}`,[O]),
|
|
1109
|
+
}`,[O]),Hn=e(`query Swap($request: SwapRequest!) {
|
|
1111
1110
|
value: swap(request: $request) {
|
|
1112
1111
|
...SwapExecutionPlan
|
|
1113
1112
|
}
|
|
1114
|
-
}`,[ee]),
|
|
1113
|
+
}`,[ee]),Bn=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
1115
1114
|
value: prepareSwapCancel(request: $request) {
|
|
1116
1115
|
...PrepareSwapCancelResult
|
|
1117
1116
|
}
|
|
1118
|
-
}`,[re]),
|
|
1117
|
+
}`,[re]),On=e(`query CancelSwap($request: CancelSwapRequest!) {
|
|
1119
1118
|
value: cancelSwap(request: $request) {
|
|
1120
1119
|
...CancelSwapExecutionPlan
|
|
1121
1120
|
}
|
|
1122
|
-
}`,[ne]),
|
|
1121
|
+
}`,[ne]),_n=e(`query UserSwaps($request: UserSwapsRequest!, $currency: Currency!) {
|
|
1123
1122
|
value: userSwaps(request: $request) {
|
|
1124
1123
|
...PaginatedUserSwapsResult
|
|
1125
1124
|
}
|
|
1126
|
-
}`,[ae]);var
|
|
1125
|
+
}`,[ae]);var Qn=e(`query Borrow($request: BorrowRequest!) {
|
|
1127
1126
|
value: borrow(request: $request) {
|
|
1128
1127
|
...ExecutionPlan
|
|
1129
1128
|
}
|
|
1130
|
-
}`,[b]),
|
|
1129
|
+
}`,[b]),Wn=e(`query Supply($request: SupplyRequest!) {
|
|
1131
1130
|
value: supply(request: $request) {
|
|
1132
1131
|
...ExecutionPlan
|
|
1133
1132
|
}
|
|
1134
|
-
}`,[b]),
|
|
1133
|
+
}`,[b]),Ln=e(`query Repay($request: RepayRequest!) {
|
|
1135
1134
|
value: repay(request: $request) {
|
|
1136
1135
|
...ExecutionPlan
|
|
1137
1136
|
}
|
|
1138
|
-
}`,[b]),
|
|
1137
|
+
}`,[b]),Mn=e(`query Withdraw($request: WithdrawRequest!) {
|
|
1139
1138
|
value: withdraw(request: $request) {
|
|
1140
1139
|
...ExecutionPlan
|
|
1141
1140
|
}
|
|
1142
|
-
}`,[b]),
|
|
1141
|
+
}`,[b]),xt=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1143
1142
|
__typename
|
|
1144
1143
|
... on TransactionRequest {
|
|
1145
1144
|
...TransactionRequest
|
|
@@ -1150,19 +1149,19 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1150
1149
|
... on InsufficientBalanceError {
|
|
1151
1150
|
...InsufficientBalanceError
|
|
1152
1151
|
}
|
|
1153
|
-
}`,[m,B,h]),
|
|
1152
|
+
}`,[m,B,h]),Vn=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1154
1153
|
value: liquidatePosition(request: $request) {
|
|
1155
1154
|
...LiquidatePositionExecutionPlan
|
|
1156
1155
|
}
|
|
1157
|
-
}`,[
|
|
1156
|
+
}`,[xt]),Gn=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1158
1157
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1159
1158
|
...TransactionRequest
|
|
1160
1159
|
}
|
|
1161
|
-
}`,[m]),
|
|
1160
|
+
}`,[m]),Kn=e(`query SetUserSuppliesAsCollateral($request: SetUserSuppliesAsCollateralRequest!) {
|
|
1162
1161
|
value: setUserSuppliesAsCollateral(request: $request) {
|
|
1163
1162
|
...TransactionRequest
|
|
1164
1163
|
}
|
|
1165
|
-
}`,[m]),
|
|
1164
|
+
}`,[m]),Yn=e(`query RenounceSpokeUserPositionManager($request: RenounceSpokeUserPositionManagerRequest!) {
|
|
1166
1165
|
value: renounceSpokeUserPositionManager(request: $request) {
|
|
1167
1166
|
...TransactionRequest
|
|
1168
1167
|
}
|
|
@@ -1170,7 +1169,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1170
1169
|
value: updateUserPositionConditions(request: $request) {
|
|
1171
1170
|
...TransactionRequest
|
|
1172
1171
|
}
|
|
1173
|
-
}`,[m]),
|
|
1172
|
+
}`,[m]),At=e(`fragment CollateralFactorVariation on CollateralFactorVariation {
|
|
1174
1173
|
__typename
|
|
1175
1174
|
reserveId
|
|
1176
1175
|
token {
|
|
@@ -1182,7 +1181,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1182
1181
|
after {
|
|
1183
1182
|
...PercentNumber
|
|
1184
1183
|
}
|
|
1185
|
-
}`,[y,r]),
|
|
1184
|
+
}`,[y,r]),ht=e(`fragment LiquidationFeeVariation on LiquidationFeeVariation {
|
|
1186
1185
|
__typename
|
|
1187
1186
|
reserveId
|
|
1188
1187
|
token {
|
|
@@ -1194,7 +1193,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1194
1193
|
after {
|
|
1195
1194
|
...PercentNumber
|
|
1196
1195
|
}
|
|
1197
|
-
}`,[y,r]),
|
|
1196
|
+
}`,[y,r]),Ft=e(`fragment MaxLiquidationBonusVariation on MaxLiquidationBonusVariation {
|
|
1198
1197
|
__typename
|
|
1199
1198
|
reserveId
|
|
1200
1199
|
token {
|
|
@@ -1206,7 +1205,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1206
1205
|
after {
|
|
1207
1206
|
...PercentNumber
|
|
1208
1207
|
}
|
|
1209
|
-
}`,[y,r]),
|
|
1208
|
+
}`,[y,r]),Pt=e(`fragment UserPositionConditionVariation on UserPositionConditionVariation {
|
|
1210
1209
|
__typename
|
|
1211
1210
|
... on CollateralFactorVariation {
|
|
1212
1211
|
...CollateralFactorVariation
|
|
@@ -1217,7 +1216,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1217
1216
|
... on MaxLiquidationBonusVariation {
|
|
1218
1217
|
...MaxLiquidationBonusVariation
|
|
1219
1218
|
}
|
|
1220
|
-
}`,[
|
|
1219
|
+
}`,[At,ht,Ft]),wt=e(`fragment PreviewUserPosition on PreviewUserPosition {
|
|
1221
1220
|
__typename
|
|
1222
1221
|
id
|
|
1223
1222
|
healthFactor {
|
|
@@ -1244,11 +1243,11 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1244
1243
|
otherConditions {
|
|
1245
1244
|
...UserPositionConditionVariation
|
|
1246
1245
|
}
|
|
1247
|
-
}`,[K,M,V,
|
|
1246
|
+
}`,[K,M,V,Pt]),Zn=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD) {
|
|
1248
1247
|
value: preview(request: $request) {
|
|
1249
1248
|
...PreviewUserPosition
|
|
1250
1249
|
}
|
|
1251
|
-
}`,[
|
|
1250
|
+
}`,[wt]),le=e(`fragment PercentNumberChangeSnapshot on PercentNumberChangeSnapshot {
|
|
1252
1251
|
__typename
|
|
1253
1252
|
before {
|
|
1254
1253
|
...PercentNumber
|
|
@@ -1256,7 +1255,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1256
1255
|
after {
|
|
1257
1256
|
...PercentNumber
|
|
1258
1257
|
}
|
|
1259
|
-
}`,[r]),
|
|
1258
|
+
}`,[r]),It=e(`fragment BorrowActivity on BorrowActivity {
|
|
1260
1259
|
__typename
|
|
1261
1260
|
id
|
|
1262
1261
|
user
|
|
@@ -1274,7 +1273,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1274
1273
|
chain {
|
|
1275
1274
|
...Chain
|
|
1276
1275
|
}
|
|
1277
|
-
}`,[u,i,f,a]),
|
|
1276
|
+
}`,[u,i,f,a]),Tt=e(`fragment SupplyActivity on SupplyActivity {
|
|
1278
1277
|
__typename
|
|
1279
1278
|
id
|
|
1280
1279
|
user
|
|
@@ -1292,7 +1291,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1292
1291
|
chain {
|
|
1293
1292
|
...Chain
|
|
1294
1293
|
}
|
|
1295
|
-
}`,[u,i,f,a]),
|
|
1294
|
+
}`,[u,i,f,a]),Ct=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1296
1295
|
__typename
|
|
1297
1296
|
id
|
|
1298
1297
|
user
|
|
@@ -1310,7 +1309,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1310
1309
|
chain {
|
|
1311
1310
|
...Chain
|
|
1312
1311
|
}
|
|
1313
|
-
}`,[u,i,f,a]),
|
|
1312
|
+
}`,[u,i,f,a]),bt=e(`fragment RepayActivity on RepayActivity {
|
|
1314
1313
|
__typename
|
|
1315
1314
|
id
|
|
1316
1315
|
user
|
|
@@ -1328,7 +1327,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1328
1327
|
chain {
|
|
1329
1328
|
...Chain
|
|
1330
1329
|
}
|
|
1331
|
-
}`,[u,i,f,a]),
|
|
1330
|
+
}`,[u,i,f,a]),Et=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1332
1331
|
__typename
|
|
1333
1332
|
id
|
|
1334
1333
|
user
|
|
@@ -1353,7 +1352,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1353
1352
|
chain {
|
|
1354
1353
|
...Chain
|
|
1355
1354
|
}
|
|
1356
|
-
}`,[u,i,f,a]),
|
|
1355
|
+
}`,[u,i,f,a]),Ut=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1357
1356
|
__typename
|
|
1358
1357
|
id
|
|
1359
1358
|
user
|
|
@@ -1369,7 +1368,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1369
1368
|
chain {
|
|
1370
1369
|
...Chain
|
|
1371
1370
|
}
|
|
1372
|
-
}`,[u,f,a]),
|
|
1371
|
+
}`,[u,f,a]),kt=e(`fragment UpdatedDynamicConfigActivity on UpdatedDynamicConfigActivity {
|
|
1373
1372
|
__typename
|
|
1374
1373
|
id
|
|
1375
1374
|
user
|
|
@@ -1393,7 +1392,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1393
1392
|
chain {
|
|
1394
1393
|
...Chain
|
|
1395
1394
|
}
|
|
1396
|
-
}`,[u,f,le,a]),
|
|
1395
|
+
}`,[u,f,le,a]),vt=e(`fragment UpdatedRiskPremiumActivity on UpdatedRiskPremiumActivity {
|
|
1397
1396
|
__typename
|
|
1398
1397
|
id
|
|
1399
1398
|
user
|
|
@@ -1408,7 +1407,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1408
1407
|
chain {
|
|
1409
1408
|
...Chain
|
|
1410
1409
|
}
|
|
1411
|
-
}`,[u,le,a]),
|
|
1410
|
+
}`,[u,le,a]),Ht=e(`fragment ActivityItem on ActivityItem {
|
|
1412
1411
|
__typename
|
|
1413
1412
|
... on BorrowActivity {
|
|
1414
1413
|
...BorrowActivity
|
|
@@ -1434,7 +1433,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1434
1433
|
... on UpdatedRiskPremiumActivity {
|
|
1435
1434
|
...UpdatedRiskPremiumActivity
|
|
1436
1435
|
}
|
|
1437
|
-
}`,[
|
|
1436
|
+
}`,[It,Tt,Ct,bt,Et,Ut,kt,vt]),Bt=e(`fragment PaginatedActivitiesResult on PaginatedActivitiesResult {
|
|
1438
1437
|
__typename
|
|
1439
1438
|
items {
|
|
1440
1439
|
...ActivityItem
|
|
@@ -1442,41 +1441,41 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1442
1441
|
pageInfo {
|
|
1443
1442
|
...PaginatedResultInfo
|
|
1444
1443
|
}
|
|
1445
|
-
}`,[
|
|
1444
|
+
}`,[Ht,q]),Jn=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1446
1445
|
value: activities(request: $request) {
|
|
1447
1446
|
...PaginatedActivitiesResult
|
|
1448
1447
|
}
|
|
1449
|
-
}`,[
|
|
1448
|
+
}`,[Bt]);var ta=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1450
1449
|
value: userSupplies(request: $request) {
|
|
1451
1450
|
...UserSupplyItem
|
|
1452
1451
|
}
|
|
1453
|
-
}`,[oe]),
|
|
1452
|
+
}`,[oe]),ra=e(`query UserBorrows($request: UserBorrowsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1454
1453
|
value: userBorrows(request: $request) {
|
|
1455
1454
|
...UserBorrowItem
|
|
1456
1455
|
}
|
|
1457
|
-
}`,[se]),
|
|
1456
|
+
}`,[se]),na=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1458
1457
|
value: userSummary(request: $request) {
|
|
1459
1458
|
...UserSummary
|
|
1460
1459
|
}
|
|
1461
|
-
}`,[pe]),
|
|
1460
|
+
}`,[pe]),aa=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1462
1461
|
value: userPositions(request: $request) {
|
|
1463
1462
|
...UserPosition
|
|
1464
1463
|
}
|
|
1465
|
-
}`,[$]),
|
|
1464
|
+
}`,[$]),oa=e(`query UserPosition($request: UserPositionRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1466
1465
|
value: userPosition(request: $request) {
|
|
1467
1466
|
...UserPosition
|
|
1468
1467
|
}
|
|
1469
|
-
}`,[$]),
|
|
1468
|
+
}`,[$]),sa=e(`query UserBalances($request: UserBalancesRequest!, $currency: Currency!) {
|
|
1470
1469
|
value: userBalances(request: $request) {
|
|
1471
1470
|
...UserBalance
|
|
1472
1471
|
}
|
|
1473
|
-
}`,[ie]),
|
|
1472
|
+
}`,[ie]),pa=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1474
1473
|
value: userSummaryHistory(request: $request) {
|
|
1475
1474
|
...UserSummaryHistoryItem
|
|
1476
1475
|
}
|
|
1477
|
-
}`,[ue]),
|
|
1476
|
+
}`,[ue]),ia=e(`query UserRiskPremiumBreakdown($request: UserRiskPremiumBreakdownRequest!) {
|
|
1478
1477
|
value: userRiskPremiumBreakdown(request: $request) {
|
|
1479
1478
|
...UserRiskPremiumBreakdownItem
|
|
1480
1479
|
}
|
|
1481
|
-
}`,[_]);export{
|
|
1480
|
+
}`,[_]);export{Jn as ActivitiesQuery,Ht as ActivityItemFragment,he as ActivityType,Fe as ApyMetric,N as ApySampleFragment,ft as AssetAmountWithChangeFragment,un as AssetBorrowHistoryQuery,gt as AssetBorrowSampleFragment,mn as AssetCategoryBorrowHistoryQuery,lt as AssetCategoryBorrowSampleFragment,yn as AssetCategorySupplyHistoryQuery,dt as AssetCategorySupplySampleFragment,qt as AssetFragment,sn as AssetPriceHistoryQuery,yt as AssetPriceSampleFragment,on as AssetQuery,St as AssetSummaryFragment,pn as AssetSupplyHistoryQuery,ct as AssetSupplySampleFragment,It as BorrowActivityFragment,fn as BorrowApyHistoryQuery,Qn as BorrowQuery,ne as CancelSwapExecutionPlanFragment,On as CancelSwapQuery,ot as CancelSwapTypeDefinitionFragment,st as CancelSwapTypedDataFragment,a as ChainFragment,Jr as ChainQuery,Re as ChainsFilter,jr as ChainsQuery,At 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,tn as ExchangeRateQuery,b as ExecutionPlanFragment,Xr as HasProcessedKnownTransactionQuery,He as HealthFactorErrorFragment,K as HealthFactorResultFragment,ve as HealthFactorVariationFragment,G as HealthFactorWithChangeFragment,en as HealthQuery,C as HubAssetFragment,_e as HubAssetSettingsFragment,xe as HubAssetStatusType,Oe as HubAssetSummaryFragment,$e as HubAssetUserStateFragment,Fr as HubAssetsQuery,Ae as HubAssetsRequestOrderBy,T as HubFragment,Ar as HubQuery,Be as HubSummaryFragment,Pr as HubSummaryHistoryQuery,it as HubSummarySampleFragment,hr as HubsQuery,h as InsufficientBalanceErrorFragment,xt as LiquidatePositionExecutionPlanFragment,Vn as LiquidatePositionQuery,Et as LiquidatedActivityFragment,ht as LiquidationFeeVariationFragment,Ft as MaxLiquidationBonusVariationFragment,ke as NativeAmountFragment,Q as NativeTokenFragment,qe as OperationType,de as OrderDirection,fe as PageSize,Bt as PaginatedActivitiesResultFragment,q as PaginatedResultInfoFragment,Y as PaginatedSpokePositionManagerResultFragment,z as PaginatedSpokeUserPositionManagerResultFragment,ae as PaginatedUserSwapsResultFragment,le as PercentNumberChangeSnapshotFragment,r as PercentNumberFragment,M as PercentNumberVariationFragment,L as PercentNumberWithChangeFragment,Ge as PermitMessageDataFragment,nr as PermitTypedDataQuery,Ke as PermitTypedDataResponseFragment,Ye as PreContractActionRequiredFragment,Bn as PrepareSwapCancelQuery,re as PrepareSwapCancelResultFragment,kn as PrepareSwapQuery,j as PrepareSwapResultFragment,Zn as PreviewQuery,wt as PreviewUserPositionFragment,cn as ProtocolHistoryQuery,Rt as ProtocolHistorySampleFragment,Yn as RenounceSpokeUserPositionManagerQuery,bt as RepayActivityFragment,Ln as RepayQuery,A as ReserveFragment,f as ReserveInfoFragment,qn as ReserveQuery,Qe as ReserveSettingsFragment,We as ReserveStatusFragment,Le as ReserveSummaryFragment,Me as ReserveUserStateFragment,Rn as ReservesQuery,Ie as ReservesRequestFilter,Gn as SetSpokeUserPositionManagerQuery,Kn as SetUserSuppliesAsCollateralQuery,u as SpokeFragment,Ne as SpokePositionManagerFragment,wn as SpokePositionManagersQuery,Fn as SpokeQuery,De as SpokeUserPositionManagerFragment,In as SpokeUserPositionManagersQuery,Pn as SpokesQuery,Tt as SupplyActivityFragment,Sn as SupplyApyHistoryQuery,Wn as SupplyQuery,et as SwapApprovalRequiredFragment,Je as SwapByIntentFragment,Ze as SwapByIntentTypeDefinitionFragment,Z as SwapByIntentTypedDataFragment,je as SwapByIntentWithApprovalRequiredFragment,Xe as SwapByTransactionFragment,te as SwapCancelledFragment,ee as SwapExecutionPlanFragment,tt as SwapExpiredFragment,at as SwapFulfilledFragment,Te as SwapKind,rt as SwapOpenFragment,nt as SwapPendingSignatureFragment,Hn as SwapQuery,ze as SwapQuoteCostsFragment,E as SwapQuoteFragment,En as SwapQuoteQuery,J as SwapReceiptFragment,Ce as SwapStatusFilter,O as SwapStatusFragment,vn as SwapStatusQuery,X as SwapTransactionRequestFragment,Un as SwappableTokensQuery,Se as TimeWindow,S as TokenAmountFragment,be as TokenCategory,W as TokenFragment,I as TokenInfoFragment,m as TransactionRequestFragment,Ve as TypeDefinitionFragment,U as TypeFieldFragment,zn as UpdateUserPositionConditionsQuery,kt as UpdatedDynamicConfigActivityFragment,vt as UpdatedRiskPremiumActivityFragment,ie as UserBalanceFragment,sa as UserBalancesQuery,se as UserBorrowItemFragment,ra as UserBorrowsQuery,Pt as UserPositionConditionVariationFragment,Ee as UserPositionConditionsUpdate,$ as UserPositionFragment,oa as UserPositionQuery,pt as UserPositionRiskPremiumFragment,aa as UserPositionsQuery,_ as UserRiskPremiumBreakdownItemFragment,ia as UserRiskPremiumBreakdownQuery,pe as UserSummaryFragment,ue as UserSummaryHistoryItemFragment,pa as UserSummaryHistoryQuery,na as UserSummaryQuery,ta as UserSuppliesQuery,oe as UserSupplyItemFragment,_n as UserSwapsQuery,Ut as UsingAsCollateralActivityFragment,Ct as WithdrawActivityFragment,Mn as WithdrawQuery,Tr as assetId,br as decodeHubId,kr as decodeReserveId,Cr as encodeHubId,vr as encodeReserveId,_r as encodeSpokeId,e as graphql,Er as hubAssetId,ut as hubId,Vr as isChainIdsVariant,Mr as isHubInputVariant,Gr as isSpokeInputVariant,Kr as isTxHashInputVariant,Ur as reserveId,mt as spokeId,Br as swapId,Or as swapQuoteId,Qr as tokenInfoId,$r as userBalanceId,Nr as userBorrowItemId,Hr as userPositionId,Dr as userSupplyItemId};//# sourceMappingURL=index.js.map
|
|
1482
1481
|
//# sourceMappingURL=index.js.map
|