@aave/graphql 1.0.0-next.36 → 1.0.0-next.38
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 +63 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1149 -47
- package/dist/index.d.ts +1149 -47
- package/dist/index.js +63 -42
- 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/testing.d.ts +22 -9
- package/dist/testing.js +2 -2
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var gql_tada=require('gql.tada'),types=require('@aave/types');var He=(r=>(r.Asc="ASC",r.Desc="DESC",r))(He||{}),We=(r=>(r.Ten="TEN",r.Fifty="FIFTY",r))(We||{}),Ve=(
|
|
1
|
+
'use strict';var gql_tada=require('gql.tada'),types=require('@aave/types');var He=(r=>(r.Asc="ASC",r.Desc="DESC",r))(He||{}),We=(r=>(r.Ten="TEN",r.Fifty="FIFTY",r))(We||{}),Ve=(F=>(F.LastDay="LAST_DAY",F.LastWeek="LAST_WEEK",F.LastMonth="LAST_MONTH",F.LastSixMonths="LAST_SIX_MONTHS",F.LastYear="LAST_YEAR",F.All="ALL",F))(Ve||{}),Me=(d=>(d.SpokeBorrow="SPOKE_BORROW",d.SpokeRepay="SPOKE_REPAY",d.SpokeSupply="SPOKE_SUPPLY",d.SpokeWithdraw="SPOKE_WITHDRAW",d.SpokeUpdateUserRiskPremium="SPOKE_UPDATE_USER_RISK_PREMIUM",d.SpokeUpdateUserDynamicConfig="SPOKE_UPDATE_USER_DYNAMIC_CONFIG",d.SpokeSetUserUsingAsCollateral="SPOKE_SET_USER_USING_AS_COLLATERAL",d.SpokeSetUserPositionManager="SPOKE_SET_USER_POSITION_MANAGER",d.RenounceSpokeUserPositionManager="RENOUNCE_SPOKE_USER_POSITION_MANAGER",d.Liquidation="LIQUIDATION",d))(Me||{}),$e=(n=>(n.TESTNET_ONLY="TESTNET_ONLY",n.MAINNET_ONLY="MAINNET_ONLY",n.ALL="ALL",n))($e||{}),Ne=(g=>(g.Borrow="BORROW",g.Supply="SUPPLY",g.Withdraw="WITHDRAW",g.Repay="REPAY",g.Liquidated="LIQUIDATED",g.SetAsCollateral="SET_AS_COLLATERAL",g.UpdatedDynamicConfig="UPDATED_DYNAMIC_CONFIG",g.UpdatedRiskPremium="UPDATED_RISK_PREMIUM",g.TokenToTokenSwap="TOKEN_TO_TOKEN_SWAP",g.SupplySwap="SUPPLY_SWAP",g.BorrowSwap="BORROW_SWAP",g.RepayWithSupply="REPAY_WITH_SUPPLY",g.WithdrawSwap="WITHDRAW_SWAP",g))(Ne||{}),De=(n=>(n.Highest="HIGHEST",n.Lowest="LOWEST",n.Average="AVERAGE",n))(De||{}),Le=(r=>(r.Highest="HIGHEST",r.Lowest="LOWEST",r))(Le||{}),Ge=(n=>(n.Usd="USD",n.Eur="EUR",n.Gbp="GBP",n))(Ge||{}),Ke=(P=>(P.Supply="SUPPLY",P.Borrow="BORROW",P.Collateral="COLLATERAL",P.All="ALL",P))(Ke||{}),Ye=(r=>(r.Current="CURRENT",r.New="NEW",r))(Ye||{}),ze=(r=>(r.Repay="REPAY",r.Supply="SUPPLY",r))(ze||{}),Ze=(n=>(n.Ready="READY",n.Pending="PENDING",n.Unknown="UNKNOWN",n))(Ze||{}),je=(r=>(r.Current="CURRENT",r.New="NEW",r))(je||{}),Je=(r=>(r.Withdraw="WITHDRAW",r.Buy="BUY",r))(Je||{}),Xe=(k=>(k.Cancelled="CANCELLED",k.Expired="EXPIRED",k.Fulfilled="FULFILLED",k.Open="OPEN",k.PendingSignature="PENDING_SIGNATURE",k))(Xe||{}),et=(r=>(r.Stablecoin="STABLECOIN",r.EthCorrelated="ETH_CORRELATED",r))(et||{}),tt=(r=>(r.Pending="PENDING",r.Done="DONE",r))(tt||{}),rt=(r=>(r.AllDynamicConfig="ALL_DYNAMIC_CONFIG",r.JustRiskPremium="JUST_RISK_PREMIUM",r))(rt||{}),at=(r=>(r.Fast="FAST",r.Accurate="ACCURATE",r))(at||{}),nt=(r=>(r.Market="MARKET",r.Limit="LIMIT",r))(nt||{}),ot=(n=>(n.Fulfilled="FULFILLED",n.Cancelled="CANCELLED",n.Expired="EXPIRED",n))(ot||{}),pt=(r=>(r.Buy="BUY",r.Sell="SELL",r))(pt||{});var e=gql_tada.initGraphQLTada();var W=e(`fragment DomainData on DomainData {
|
|
2
2
|
name
|
|
3
3
|
version
|
|
4
4
|
chainId
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
utilizationRate {
|
|
202
202
|
...PercentNumber
|
|
203
203
|
}
|
|
204
|
-
}`,[m,h,a]),
|
|
204
|
+
}`,[m,h,a]),A=e(`fragment Hub on Hub {
|
|
205
205
|
__typename
|
|
206
206
|
id
|
|
207
207
|
name
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
userState {
|
|
280
280
|
...HubAssetUserState
|
|
281
281
|
}
|
|
282
|
-
}`,[
|
|
282
|
+
}`,[A,s,yt,ct,gt]);var oe=e(`fragment PermitTypedData on PermitTypedData {
|
|
283
283
|
__typename
|
|
284
284
|
types
|
|
285
285
|
primaryType
|
|
@@ -287,6 +287,7 @@
|
|
|
287
287
|
...DomainData
|
|
288
288
|
}
|
|
289
289
|
message
|
|
290
|
+
signedAmount
|
|
290
291
|
}`,[W]);function sa(t){return typeof t=="object"&&t!==null&&"deadline"in t&&"value"in t}var dt=e(`fragment MerklGenericCriteria on MerklGenericCriteria {
|
|
291
292
|
__typename
|
|
292
293
|
id
|
|
@@ -357,7 +358,7 @@
|
|
|
357
358
|
...PointsCriteria
|
|
358
359
|
}
|
|
359
360
|
userEligible
|
|
360
|
-
}`,[O,U]),
|
|
361
|
+
}`,[O,U]),xt=e(`fragment BorrowPoints on BorrowPointsReward {
|
|
361
362
|
__typename
|
|
362
363
|
id
|
|
363
364
|
program {
|
|
@@ -385,7 +386,7 @@
|
|
|
385
386
|
... on BorrowPointsReward {
|
|
386
387
|
...BorrowPoints
|
|
387
388
|
}
|
|
388
|
-
}`,[Rt,ft,wt,
|
|
389
|
+
}`,[Rt,ft,wt,xt]),qt=e(`fragment UserMerklClaimableReward on UserMerklClaimableReward {
|
|
389
390
|
__typename
|
|
390
391
|
id
|
|
391
392
|
claimable {
|
|
@@ -399,7 +400,7 @@
|
|
|
399
400
|
... on UserMerklClaimableReward {
|
|
400
401
|
...UserMerklClaimableReward
|
|
401
402
|
}
|
|
402
|
-
}`,[
|
|
403
|
+
}`,[qt]);var l=e(`fragment Spoke on Spoke {
|
|
403
404
|
__typename
|
|
404
405
|
id
|
|
405
406
|
name
|
|
@@ -434,7 +435,7 @@
|
|
|
434
435
|
pageInfo {
|
|
435
436
|
...PaginatedResultInfo
|
|
436
437
|
}
|
|
437
|
-
}`,[ht,R]);var
|
|
438
|
+
}`,[ht,R]);var At=e(`fragment ReserveSettings on ReserveSettings {
|
|
438
439
|
__typename
|
|
439
440
|
collateralFactor {
|
|
440
441
|
...PercentNumber
|
|
@@ -459,7 +460,7 @@
|
|
|
459
460
|
supplyCap {
|
|
460
461
|
...Erc20Amount
|
|
461
462
|
}
|
|
462
|
-
}`,[a,u]),
|
|
463
|
+
}`,[a,u]),Ft=e(`fragment ReserveStatus on ReserveStatus {
|
|
463
464
|
__typename
|
|
464
465
|
frozen
|
|
465
466
|
paused
|
|
@@ -472,6 +473,12 @@
|
|
|
472
473
|
borrowed {
|
|
473
474
|
...Erc20Amount
|
|
474
475
|
}
|
|
476
|
+
suppliable {
|
|
477
|
+
...Erc20Amount
|
|
478
|
+
}
|
|
479
|
+
borrowable {
|
|
480
|
+
...Erc20Amount
|
|
481
|
+
}
|
|
475
482
|
supplyApy {
|
|
476
483
|
...PercentNumber
|
|
477
484
|
}
|
|
@@ -534,7 +541,7 @@
|
|
|
534
541
|
asset {
|
|
535
542
|
...HubAsset
|
|
536
543
|
}
|
|
537
|
-
}`,[l,o,bt,Ft,
|
|
544
|
+
}`,[l,o,bt,At,Ft,It,C]),c=e(`fragment ReserveInfo on ReserveInfo {
|
|
538
545
|
__typename
|
|
539
546
|
id
|
|
540
547
|
asset {
|
|
@@ -711,7 +718,7 @@
|
|
|
711
718
|
... on InsufficientBalanceError {
|
|
712
719
|
...InsufficientBalanceError
|
|
713
720
|
}
|
|
714
|
-
}`,[Ut,le,f]),
|
|
721
|
+
}`,[Ut,le,f]),q=e(`fragment PositionAmount on PositionAmount {
|
|
715
722
|
__typename
|
|
716
723
|
reserve {
|
|
717
724
|
...ReserveInfo
|
|
@@ -729,7 +736,7 @@
|
|
|
729
736
|
}
|
|
730
737
|
kind
|
|
731
738
|
orderClass
|
|
732
|
-
}`,[
|
|
739
|
+
}`,[q]),_t=e(`fragment BorrowSwap on BorrowSwap {
|
|
733
740
|
__typename
|
|
734
741
|
sell {
|
|
735
742
|
...PositionAmount
|
|
@@ -739,7 +746,7 @@
|
|
|
739
746
|
}
|
|
740
747
|
kind
|
|
741
748
|
orderClass
|
|
742
|
-
}`,[
|
|
749
|
+
}`,[q]),Bt=e(`fragment RepayWithSupply on RepayWithSupply {
|
|
743
750
|
__typename
|
|
744
751
|
repay {
|
|
745
752
|
...PositionAmount
|
|
@@ -749,7 +756,7 @@
|
|
|
749
756
|
}
|
|
750
757
|
kind
|
|
751
758
|
orderClass
|
|
752
|
-
}`,[
|
|
759
|
+
}`,[q]),Qt=e(`fragment WithdrawSwap on WithdrawSwap {
|
|
753
760
|
__typename
|
|
754
761
|
withdraw {
|
|
755
762
|
...PositionAmount
|
|
@@ -759,7 +766,7 @@
|
|
|
759
766
|
}
|
|
760
767
|
kind
|
|
761
768
|
orderClass
|
|
762
|
-
}`,[
|
|
769
|
+
}`,[q,S]),Ht=e(`fragment TokenSwap on TokenSwap {
|
|
763
770
|
__typename
|
|
764
771
|
sell {
|
|
765
772
|
...TokenAmount
|
|
@@ -922,7 +929,7 @@
|
|
|
922
929
|
... on InsufficientLiquidityError {
|
|
923
930
|
...InsufficientLiquidityError
|
|
924
931
|
}
|
|
925
|
-
}`,[$,b]),
|
|
932
|
+
}`,[$,b]),xe=e(`fragment RepayWithSupplyQuoteResult on RepayWithSupplyQuoteResult {
|
|
926
933
|
__typename
|
|
927
934
|
... on PositionSwapByIntentApprovalsRequired {
|
|
928
935
|
...PositionSwapByIntentApprovalsRequired
|
|
@@ -930,7 +937,7 @@
|
|
|
930
937
|
... on InsufficientLiquidityError {
|
|
931
938
|
...InsufficientLiquidityError
|
|
932
939
|
}
|
|
933
|
-
}`,[$,b]),
|
|
940
|
+
}`,[$,b]),qe=e(`fragment WithdrawSwapQuoteResult on WithdrawSwapQuoteResult {
|
|
934
941
|
__typename
|
|
935
942
|
... on PositionSwapByIntentApprovalsRequired {
|
|
936
943
|
...PositionSwapByIntentApprovalsRequired
|
|
@@ -963,7 +970,7 @@
|
|
|
963
970
|
}
|
|
964
971
|
isCollateral
|
|
965
972
|
createdAt
|
|
966
|
-
}`,[u,I]),
|
|
973
|
+
}`,[u,I]),Ae=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
967
974
|
__typename
|
|
968
975
|
id
|
|
969
976
|
principal {
|
|
@@ -979,7 +986,7 @@
|
|
|
979
986
|
...Reserve
|
|
980
987
|
}
|
|
981
988
|
createdAt
|
|
982
|
-
}`,[u,I]),
|
|
989
|
+
}`,[u,I]),Fe=e(`fragment UserSummary on UserSummary {
|
|
983
990
|
__typename
|
|
984
991
|
totalPositions
|
|
985
992
|
netBalance(currency: $currency) {
|
|
@@ -1067,7 +1074,10 @@
|
|
|
1067
1074
|
liquidationPrice(currency: $currency) {
|
|
1068
1075
|
...ExchangeAmount
|
|
1069
1076
|
}
|
|
1070
|
-
|
|
1077
|
+
maxBorrowingPower(currency: $currency) {
|
|
1078
|
+
...ExchangeAmount
|
|
1079
|
+
}
|
|
1080
|
+
remainingBorrowingPower(currency: $currency) {
|
|
1071
1081
|
...ExchangeAmount
|
|
1072
1082
|
}
|
|
1073
1083
|
canUpdateDynamicConfig
|
|
@@ -1319,11 +1329,11 @@
|
|
|
1319
1329
|
value: hub(request: $request) {
|
|
1320
1330
|
...Hub
|
|
1321
1331
|
}
|
|
1322
|
-
}`,[
|
|
1332
|
+
}`,[A]),Na=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1323
1333
|
value: hubs(request: $request) {
|
|
1324
1334
|
...Hub
|
|
1325
1335
|
}
|
|
1326
|
-
}`,[
|
|
1336
|
+
}`,[A]),Da=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1327
1337
|
value: hubAssets(request: $request) {
|
|
1328
1338
|
...HubAsset
|
|
1329
1339
|
}
|
|
@@ -1366,7 +1376,7 @@
|
|
|
1366
1376
|
...HubAssetInterestRateModelPoint
|
|
1367
1377
|
}
|
|
1368
1378
|
}
|
|
1369
|
-
}`,[ur]);function L(t){return new TextDecoder().decode(Uint8Array.from(atob(t),
|
|
1379
|
+
}`,[ur]);function L(t){return new TextDecoder().decode(Uint8Array.from(atob(t),x=>x.charCodeAt(0)))}function G(t){return btoa(String.fromCharCode(...new TextEncoder().encode(t)))}var w="::";function za(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid AssetId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`AssetId must be valid base64: ${t}`),t}function Za(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid BoostedRateId: ${t}`),t}function mr(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid HubId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`HubId must be valid base64: ${t}`),t}function ja(t){return mr(G(`${t.chainId}${w}${t.address}`))}function Ja(t){let x=L(t),[r,n]=x.split(w);return {chainId:types.chainId(Number.parseInt(r,10)),address:types.evmAddress(n)}}function Xa(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid HubAssetId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`HubAssetId must be valid base64: ${t}`),t}function en(t){return t}function tn(t){let x=L(t),[r,n,P]=x.split(w);return {chainId:types.chainId(Number.parseInt(r,10)),spoke:types.evmAddress(n),onChainId:P}}function rn(t){return G(`${t.chainId}${w}${t.spoke}${w}${t.onChainId}`)}function lr(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid UserPositionId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserPositionId must be valid base64: ${t}`),t}function an(t){let x=L(t),[r,n,P]=x.split(w);return {chainId:types.chainId(Number.parseInt(r,10)),spoke:types.evmAddress(n),user:types.evmAddress(P)}}function nn(t){return lr(G(`${t.chainId}${w}${t.spoke}${w}${t.user}`))}function on(t){return types.invariant(types.isValidHexString(t),`Invalid SwapId: ${t}`),t}function pn(t){return types.invariant(types.isValidHexString(t),`Invalid SwapQuoteId: ${t}`),t}function sn(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid StableVaultId: ${t}`),t}function un(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid StableVaultUserPositionId: ${t}`),t}function mn(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid StableVaultWithdrawClaimId: ${t}`),t}function ln(t){return yr(G(`${t.chainId}${w}${t.address}`))}function yn(t){let x=L(t),[r,n]=x.split(w);return {chainId:types.chainId(Number.parseInt(r,10)),address:types.evmAddress(n)}}function yr(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid SpokeId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`SpokeId must be valid base64: ${t}`),t}function cn(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid UserBalanceId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserBalanceId must be valid base64: ${t}`),t}function gn(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid UserBorrowItemId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserBorrowItemId must be valid base64: ${t}`),t}function dn(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid UserSupplyItemId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserSupplyItemId must be valid base64: ${t}`),t}function Sn(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid TokenInfoId: ${t}`),t}function Rn(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid TokenMovementId: ${t}`),t}function xn(t){return types.isObject(t)&&"hubInput"in t&&t.hubInput!=null}function qn(t){return types.isObject(t)&&"chainIds"in t&&t.chainIds!=null}function Pn(t){return types.isObject(t)&&"tokens"in t&&t.tokens!=null}function hn(t){return types.isObject(t)&&"spoke"in t&&t.spoke!=null}function An(t){return types.isObject(t)&&"reserveInput"in t&&t.reserveInput!=null}function Fn(t){return types.isObject(t)&&"txHash"in t&&t.txHash!=null}var kn=e(`query Chain($request: ChainRequest!) {
|
|
1370
1380
|
value: chain(request: $request) {
|
|
1371
1381
|
...Chain
|
|
1372
1382
|
}
|
|
@@ -1397,7 +1407,7 @@
|
|
|
1397
1407
|
hub {
|
|
1398
1408
|
...Hub
|
|
1399
1409
|
}
|
|
1400
|
-
}`,[y,a,
|
|
1410
|
+
}`,[y,a,A]),gr=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
1401
1411
|
__typename
|
|
1402
1412
|
date
|
|
1403
1413
|
amount {
|
|
@@ -1584,19 +1594,19 @@
|
|
|
1584
1594
|
value: supplySwapQuote(request: $request) {
|
|
1585
1595
|
...SupplySwapQuoteResult
|
|
1586
1596
|
}
|
|
1587
|
-
}`,[fe]),
|
|
1597
|
+
}`,[fe]),xo=e(`query BorrowSwapQuote($request: BorrowSwapQuoteRequest!, $currency: Currency!) {
|
|
1588
1598
|
value: borrowSwapQuote(request: $request) {
|
|
1589
1599
|
...BorrowSwapQuoteResult
|
|
1590
1600
|
}
|
|
1591
|
-
}`,[we]),
|
|
1601
|
+
}`,[we]),qo=e(`query RepayWithSupplyQuote($request: RepayWithSupplyQuoteRequest!, $currency: Currency!) {
|
|
1592
1602
|
value: repayWithSupplyQuote(request: $request) {
|
|
1593
1603
|
...RepayWithSupplyQuoteResult
|
|
1594
1604
|
}
|
|
1595
|
-
}`,[
|
|
1605
|
+
}`,[xe]),Po=e(`query WithdrawSwapQuote($request: WithdrawSwapQuoteRequest!, $currency: Currency!) {
|
|
1596
1606
|
value: withdrawSwapQuote(request: $request) {
|
|
1597
1607
|
...WithdrawSwapQuoteResult
|
|
1598
1608
|
}
|
|
1599
|
-
}`,[
|
|
1609
|
+
}`,[qe]),ho=e(`query PreparePositionSwap($request: PreparePositionSwapRequest!) {
|
|
1600
1610
|
value: preparePositionSwap(request: $request) {
|
|
1601
1611
|
...PreparePositionSwapResult
|
|
1602
1612
|
}
|
|
@@ -1616,7 +1626,7 @@
|
|
|
1616
1626
|
value: withdraw(request: $request) {
|
|
1617
1627
|
...ExecutionPlan
|
|
1618
1628
|
}
|
|
1619
|
-
}`,[B]),
|
|
1629
|
+
}`,[B]),xr=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1620
1630
|
__typename
|
|
1621
1631
|
... on TransactionRequest {
|
|
1622
1632
|
...TransactionRequest
|
|
@@ -1631,7 +1641,7 @@
|
|
|
1631
1641
|
value: liquidatePosition(request: $request) {
|
|
1632
1642
|
...LiquidatePositionExecutionPlan
|
|
1633
1643
|
}
|
|
1634
|
-
}`,[
|
|
1644
|
+
}`,[xr]),Eo=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1635
1645
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1636
1646
|
...TransactionRequest
|
|
1637
1647
|
}
|
|
@@ -1647,7 +1657,7 @@
|
|
|
1647
1657
|
value: updateUserPositionConditions(request: $request) {
|
|
1648
1658
|
...TransactionRequest
|
|
1649
1659
|
}
|
|
1650
|
-
}`,[p]),
|
|
1660
|
+
}`,[p]),qr=e(`fragment CollateralFactorVariation on CollateralFactorVariation {
|
|
1651
1661
|
__typename
|
|
1652
1662
|
reserveId
|
|
1653
1663
|
token {
|
|
@@ -1683,7 +1693,7 @@
|
|
|
1683
1693
|
after {
|
|
1684
1694
|
...PercentNumber
|
|
1685
1695
|
}
|
|
1686
|
-
}`,[s,a]),
|
|
1696
|
+
}`,[s,a]),Ar=e(`fragment UserPositionConditionVariation on UserPositionConditionVariation {
|
|
1687
1697
|
__typename
|
|
1688
1698
|
... on CollateralFactorVariation {
|
|
1689
1699
|
...CollateralFactorVariation
|
|
@@ -1694,7 +1704,7 @@
|
|
|
1694
1704
|
... on MaxLiquidationBonusVariation {
|
|
1695
1705
|
...MaxLiquidationBonusVariation
|
|
1696
1706
|
}
|
|
1697
|
-
}`,[
|
|
1707
|
+
}`,[qr,Pr,hr]),Fr=e(`fragment PreviewMerklSupplyReward on PreviewMerklSupplyReward {
|
|
1698
1708
|
__typename
|
|
1699
1709
|
id
|
|
1700
1710
|
startDate
|
|
@@ -1774,7 +1784,7 @@
|
|
|
1774
1784
|
... on PreviewBorrowPointsReward {
|
|
1775
1785
|
...PreviewBorrowPoints
|
|
1776
1786
|
}
|
|
1777
|
-
}`,[
|
|
1787
|
+
}`,[Fr,br,Ir,Tr]),vr=e(`fragment PreviewRewardOutcome on PreviewRewardOutcome {
|
|
1778
1788
|
__typename
|
|
1779
1789
|
lost {
|
|
1780
1790
|
...PreviewReward
|
|
@@ -1803,16 +1813,27 @@
|
|
|
1803
1813
|
projectedEarnings {
|
|
1804
1814
|
...ExchangeAmountVariation
|
|
1805
1815
|
}
|
|
1806
|
-
|
|
1816
|
+
maxBorrowingPower {
|
|
1807
1817
|
...ExchangeAmountVariation
|
|
1808
1818
|
}
|
|
1819
|
+
remainingBorrowingPower {
|
|
1820
|
+
...ExchangeAmountVariation
|
|
1821
|
+
}
|
|
1822
|
+
reserveRates {
|
|
1823
|
+
supplyApy {
|
|
1824
|
+
...PercentNumberVariation
|
|
1825
|
+
}
|
|
1826
|
+
borrowApy {
|
|
1827
|
+
...PercentNumberVariation
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1809
1830
|
rewards {
|
|
1810
1831
|
...PreviewRewardOutcome
|
|
1811
1832
|
}
|
|
1812
1833
|
otherConditions {
|
|
1813
1834
|
...UserPositionConditionVariation
|
|
1814
1835
|
}
|
|
1815
|
-
}`,[ne,te,re,vr,
|
|
1836
|
+
}`,[ne,te,re,vr,Ar]),Bo=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD, $timeWindow: TimeWindow! = LAST_WEEK) {
|
|
1816
1837
|
value: preview(request: $request) {
|
|
1817
1838
|
...PreviewUserPosition
|
|
1818
1839
|
}
|
|
@@ -2014,7 +2035,7 @@
|
|
|
2014
2035
|
orderClass
|
|
2015
2036
|
kind
|
|
2016
2037
|
status
|
|
2017
|
-
}`,[o,
|
|
2038
|
+
}`,[o,q]),$r=e(`fragment BorrowSwapActivity on BorrowSwapActivity {
|
|
2018
2039
|
__typename
|
|
2019
2040
|
id
|
|
2020
2041
|
user
|
|
@@ -2033,7 +2054,7 @@
|
|
|
2033
2054
|
orderClass
|
|
2034
2055
|
kind
|
|
2035
2056
|
status
|
|
2036
|
-
}`,[o,
|
|
2057
|
+
}`,[o,q]),Nr=e(`fragment RepayWithSupplyActivity on RepayWithSupplyActivity {
|
|
2037
2058
|
__typename
|
|
2038
2059
|
id
|
|
2039
2060
|
user
|
|
@@ -2052,7 +2073,7 @@
|
|
|
2052
2073
|
orderClass
|
|
2053
2074
|
kind
|
|
2054
2075
|
status
|
|
2055
|
-
}`,[o,
|
|
2076
|
+
}`,[o,q]),Dr=e(`fragment WithdrawSwapActivity on WithdrawSwapActivity {
|
|
2056
2077
|
__typename
|
|
2057
2078
|
id
|
|
2058
2079
|
user
|
|
@@ -2071,7 +2092,7 @@
|
|
|
2071
2092
|
orderClass
|
|
2072
2093
|
kind
|
|
2073
2094
|
status
|
|
2074
|
-
}`,[o,
|
|
2095
|
+
}`,[o,q,S]),Lr=e(`fragment ActivityItem on ActivityItem {
|
|
2075
2096
|
__typename
|
|
2076
2097
|
... on BorrowActivity {
|
|
2077
2098
|
...BorrowActivity
|
|
@@ -2132,11 +2153,11 @@
|
|
|
2132
2153
|
value: userBorrows(request: $request) {
|
|
2133
2154
|
...UserBorrowItem
|
|
2134
2155
|
}
|
|
2135
|
-
}`,[
|
|
2156
|
+
}`,[Ae]),No=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
2136
2157
|
value: userSummary(request: $request) {
|
|
2137
2158
|
...UserSummary
|
|
2138
2159
|
}
|
|
2139
|
-
}`,[
|
|
2160
|
+
}`,[Fe]),Do=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
2140
2161
|
value: userPositions(request: $request) {
|
|
2141
2162
|
...UserPosition
|
|
2142
2163
|
}
|
|
@@ -2202,5 +2223,5 @@
|
|
|
2202
2223
|
value: stableVaultWithdrawRedeem(request: $request) {
|
|
2203
2224
|
...StableVaultWithdrawRedeemExecutionPlan
|
|
2204
2225
|
}
|
|
2205
|
-
}`,[Oe]);exports.ActivitiesQuery=Qo;exports.ActivityItemFragment=Lr;exports.ActivityType=Ne;exports.ApyMetric=De;exports.ApySampleFragment=Z;exports.AssetAmountWithChangeFragment=Sr;exports.AssetBorrowHistoryQuery=Vn;exports.AssetBorrowSampleFragment=dr;exports.AssetFragment=fr;exports.AssetPriceHistoryQuery=Hn;exports.AssetPriceSampleFragment=cr;exports.AssetQuery=Qn;exports.AssetSampleBreakdownFragment=Be;exports.AssetSummaryFragment=Rr;exports.AssetSupplyHistoryQuery=Wn;exports.AssetSupplySampleFragment=gr;exports.BoostedRateFragment=zt;exports.BorrowActivityFragment=Er;exports.BorrowApyHistoryQuery=Ln;exports.BorrowPointsFragment=
|
|
2226
|
+
}`,[Oe]);exports.ActivitiesQuery=Qo;exports.ActivityItemFragment=Lr;exports.ActivityType=Ne;exports.ApyMetric=De;exports.ApySampleFragment=Z;exports.AssetAmountWithChangeFragment=Sr;exports.AssetBorrowHistoryQuery=Vn;exports.AssetBorrowSampleFragment=dr;exports.AssetFragment=fr;exports.AssetPriceHistoryQuery=Hn;exports.AssetPriceSampleFragment=cr;exports.AssetQuery=Qn;exports.AssetSampleBreakdownFragment=Be;exports.AssetSummaryFragment=Rr;exports.AssetSupplyHistoryQuery=Wn;exports.AssetSupplySampleFragment=gr;exports.BoostedRateFragment=zt;exports.BorrowActivityFragment=Er;exports.BorrowApyHistoryQuery=Ln;exports.BorrowPointsFragment=xt;exports.BorrowQuery=Io;exports.BorrowSwapActivityFragment=$r;exports.BorrowSwapFragment=_t;exports.BorrowSwapKind=Ye;exports.BorrowSwapQuoteQuery=xo;exports.BorrowSwapQuoteResultFragment=we;exports.CancelSwapExecutionPlanFragment=Se;exports.CancelSwapMutation=Ro;exports.ChainFragment=o;exports.ChainQuery=kn;exports.ChainsFilter=$e;exports.ChainsQuery=vn;exports.ClaimRewardsQuery=Jn;exports.CollateralFactorVariationFragment=qr;exports.CollateralMetric=Le;exports.Currency=Ge;exports.DecimalNumberFragment=y;exports.DecimalNumberWithChangeFragment=j;exports.DomainDataFragment=W;exports.Erc20AmountFragment=u;exports.Erc20ApprovalFragment=K;exports.Erc20ApprovalRequiredFragment=_;exports.Erc20TokenFragment=s;exports.ExchangeAmountFragment=m;exports.ExchangeAmountVariationFragment=re;exports.ExchangeAmountWithChangeFragment=h;exports.ExchangeRateQuery=Un;exports.ExecutionPlanFragment=B;exports.HasProcessedKnownTransactionQuery=Cn;exports.HealthFactorErrorFragment=mt;exports.HealthFactorResultFragment=ne;exports.HealthFactorVariationFragment=ut;exports.HealthFactorWithChangeFragment=ae;exports.HealthQuery=En;exports.HubAssetFragment=C;exports.HubAssetInterestRateModelPointFragment=ur;exports.HubAssetInterestRateModelQuery=Ga;exports.HubAssetSettingsFragment=ct;exports.HubAssetSummaryFragment=yt;exports.HubAssetUserStateFragment=gt;exports.HubAssetsQuery=Da;exports.HubFragment=A;exports.HubQuery=$a;exports.HubSummaryFragment=lt;exports.HubSummaryHistoryQuery=La;exports.HubSummarySampleFragment=ir;exports.HubsQuery=Na;exports.InsufficientBalanceErrorFragment=f;exports.InsufficientLiquidityErrorFragment=b;exports.LiquidatePositionExecutionPlanFragment=xr;exports.LiquidatePositionQuery=Co;exports.LiquidatedActivityFragment=Br;exports.LiquidationFeeVariationFragment=Pr;exports.MaxLiquidationBonusVariationFragment=hr;exports.MerklBorrowRewardFragment=ft;exports.MerklCriteriaFragment=E;exports.MerklGenericCriteriaFragment=dt;exports.MerklSupplyRewardFragment=Rt;exports.NativeAmountFragment=it;exports.NativeTokenFragment=J;exports.OperationType=Me;exports.OrderDirection=He;exports.PageSize=We;exports.PaginatedActivitiesResultFragment=Gr;exports.PaginatedResultInfoFragment=R;exports.PaginatedSpokePositionManagerResultFragment=ie;exports.PaginatedSpokeUserPositionManagerResultFragment=ue;exports.PaginatedStableVaultMovementsResultFragment=ve;exports.PaginatedStableVaultRateUsersResultFragment=Ce;exports.PaginatedUserSwapsResultFragment=Re;exports.PercentNumberChangeSnapshotFragment=Qe;exports.PercentNumberFragment=a;exports.PercentNumberVariationFragment=te;exports.PercentNumberWithChangeFragment=ee;exports.PermitTypedDataFragment=oe;exports.PointsCriteriaFragment=U;exports.PointsGenericCriteriaFragment=St;exports.PointsProgramFragment=O;exports.PositionAmountFragment=q;exports.PositionSwapAdapterContractApprovalFragment=Lt;exports.PositionSwapApprovalFragment=Kt;exports.PositionSwapByIntentApprovalsRequiredFragment=$;exports.PositionSwapPositionManagerApprovalFragment=Gt;exports.PreContractActionRequiredFragment=Tt;exports.PreparePositionSwapQuery=ho;exports.PreparePositionSwapResultFragment=Pe;exports.PrepareSwapCancelQuery=So;exports.PrepareSwapCancelResultFragment=de;exports.PrepareSwapOrderFragment=me;exports.PrepareTokenSwapQuery=yo;exports.PrepareTokenSwapResultFragment=ce;exports.PreviewBorrowPointsFragment=Tr;exports.PreviewMerklBorrowRewardFragment=br;exports.PreviewMerklSupplyRewardFragment=Fr;exports.PreviewQuery=Bo;exports.PreviewRewardFragment=kr;exports.PreviewRewardOutcomeFragment=vr;exports.PreviewSupplyPointsFragment=Ir;exports.PreviewUserPositionFragment=Cr;exports.ProtocolHistoryQuery=Mn;exports.ProtocolHistorySampleFragment=wr;exports.QuoteAccuracy=at;exports.RenounceSpokeUserPositionManagerQuery=Oo;exports.RepayActivityFragment=_r;exports.RepayQuery=ko;exports.RepayWithSupplyActivityFragment=Nr;exports.RepayWithSupplyFragment=Bt;exports.RepayWithSupplyKind=ze;exports.RepayWithSupplyQuoteQuery=qo;exports.RepayWithSupplyQuoteResultFragment=xe;exports.ReserveFragment=I;exports.ReserveInfoFragment=c;exports.ReserveQuery=Kn;exports.ReserveSettingsFragment=At;exports.ReserveStatusFragment=Ft;exports.ReserveSummaryFragment=bt;exports.ReserveUserStateFragment=It;exports.ReservesQuery=Yn;exports.ReservesRequestFilter=Ke;exports.RewardFragment=pe;exports.SetSpokeUserPositionManagerQuery=Eo;exports.SetUserSuppliesAsCollateralQuery=Uo;exports.SpokeFragment=l;exports.SpokePositionManagerFragment=Pt;exports.SpokePositionManagersQuery=oo;exports.SpokeQuery=ao;exports.SpokeUserPositionManagerFragment=ht;exports.SpokeUserPositionManagersQuery=po;exports.SpokesQuery=no;exports.StableVaultAssignRateQuery=tp;exports.StableVaultClaimStatus=Ze;exports.StableVaultClaimStatusQuery=sp;exports.StableVaultClaimSurplusQuery=ap;exports.StableVaultDepositExecutionPlanFragment=Ee;exports.StableVaultDepositQuery=op;exports.StableVaultFragment=N;exports.StableVaultMovementsQuery=np;exports.StableVaultPendingAvailabilityFragment=sr;exports.StableVaultQuery=Jo;exports.StableVaultRateUsersQuery=ep;exports.StableVaultRatesFragment=jt;exports.StableVaultSummaryFragment=Zt;exports.StableVaultUnassignRateQuery=rp;exports.StableVaultUserPositionFragment=ke;exports.StableVaultUserPositionsQuery=ip;exports.StableVaultWithdrawClaimFragment=pr;exports.StableVaultWithdrawExecutionPlanFragment=Ue;exports.StableVaultWithdrawQuery=pp;exports.StableVaultWithdrawRedeemExecutionPlanFragment=Oe;exports.StableVaultWithdrawRedeemMutation=up;exports.StableVaultsQuery=Xo;exports.SupplyActivityFragment=Ur;exports.SupplyApyHistoryQuery=Gn;exports.SupplyPointsFragment=wt;exports.SupplyQuery=To;exports.SupplySwapActivityFragment=Mr;exports.SupplySwapFragment=Ot;exports.SupplySwapKind=je;exports.SupplySwapQuoteQuery=wo;exports.SupplySwapQuoteResultFragment=fe;exports.SwapActivityStatus=ot;exports.SwapByIntentFragment=vt;exports.SwapByIntentWithApprovalRequiredFragment=Ct;exports.SwapByTransactionFragment=Et;exports.SwapCancelledFragment=Wt;exports.SwapCancelledResultFragment=Dt;exports.SwapExecutionPlanFragment=ge;exports.SwapExpiredFragment=Vt;exports.SwapFulfilledFragment=Nt;exports.SwapMutation=go;exports.SwapOpenFragment=Mt;exports.SwapOperationFragment=Q;exports.SwapOrderClass=nt;exports.SwapPendingSignatureFragment=$t;exports.SwapQuoteCostsFragment=kt;exports.SwapQuoteFragment=V;exports.SwapReceiptFragment=le;exports.SwapStatusFilter=Xe;exports.SwapStatusFragment=Y;exports.SwapStatusQuery=co;exports.SwapTransactionRequestFragment=Ut;exports.SwapTypedDataFragment=M;exports.SwappableTokensQuery=lo;exports.TimeWindow=Ve;exports.TokenAmountFragment=S;exports.TokenCategory=et;exports.TokenFragment=X;exports.TokenInfoFragment=v;exports.TokenMovementAllocateFragment=Jt;exports.TokenMovementBridgeInFragment=Xt;exports.TokenMovementBridgeOutFragment=er;exports.TokenMovementDeallocateFragment=tr;exports.TokenMovementFragment=nr;exports.TokenMovementRebalanceFragment=rr;exports.TokenMovementRecordFragment=or;exports.TokenMovementStatus=tt;exports.TokenMovementSwapFragment=ar;exports.TokenSwapActivityFragment=Vr;exports.TokenSwapFragment=Ht;exports.TokenSwapKind=pt;exports.TokenSwapQuoteQuery=mo;exports.TokenSwapQuoteResultFragment=ye;exports.TransactionRequestFragment=p;exports.UpdateUserPositionConditionsQuery=_o;exports.UpdatedDynamicConfigActivityFragment=Hr;exports.UpdatedRiskPremiumActivityFragment=Wr;exports.UserBalanceFragment=Ie;exports.UserBalancesQuery=Go;exports.UserBorrowItemFragment=Ae;exports.UserBorrowsQuery=$o;exports.UserClaimableRewardFragment=se;exports.UserClaimableRewardsQuery=Xn;exports.UserMerklClaimableRewardFragment=qt;exports.UserPositionConditionVariationFragment=Ar;exports.UserPositionConditionsUpdate=rt;exports.UserPositionFragment=z;exports.UserPositionQuery=Lo;exports.UserPositionRiskPremiumFragment=Yt;exports.UserPositionsQuery=Do;exports.UserRiskPremiumBreakdownItemFragment=be;exports.UserRiskPremiumBreakdownQuery=Yo;exports.UserSummaryFragment=Fe;exports.UserSummaryHistoryItemFragment=Te;exports.UserSummaryHistoryQuery=Ko;exports.UserSummaryQuery=No;exports.UserSuppliesQuery=Mo;exports.UserSupplyItemFragment=he;exports.UserSwapsQuery=fo;exports.UsingAsCollateralActivityFragment=Qr;exports.WithdrawActivityFragment=Or;exports.WithdrawQuery=vo;exports.WithdrawSwapActivityFragment=Dr;exports.WithdrawSwapFragment=Qt;exports.WithdrawSwapKind=Je;exports.WithdrawSwapQuoteQuery=Po;exports.WithdrawSwapQuoteResultFragment=qe;exports.assetId=za;exports.boostedRateId=Za;exports.decodeHubId=Ja;exports.decodeReserveId=tn;exports.decodeSpokeId=yn;exports.decodeUserPositionId=an;exports.encodeHubId=ja;exports.encodeReserveId=rn;exports.encodeSpokeId=ln;exports.encodeUserPositionId=nn;exports.graphql=e;exports.hubAssetId=Xa;exports.hubId=mr;exports.isChainIdsVariant=qn;exports.isERC20PermitSignature=sa;exports.isHubInputVariant=xn;exports.isReserveInputVariant=An;exports.isSpokeInputVariant=hn;exports.isTokensVariant=Pn;exports.isTxHashInputVariant=Fn;exports.reserveId=en;exports.spokeId=yr;exports.stableVaultId=sn;exports.stableVaultUserPositionId=un;exports.stableVaultWithdrawClaimId=mn;exports.swapId=on;exports.swapQuoteId=pn;exports.tokenInfoId=Sn;exports.tokenMovementId=Rn;exports.userBalanceId=cn;exports.userBorrowItemId=gn;exports.userPositionId=lr;exports.userSupplyItemId=dn;//# sourceMappingURL=index.cjs.map
|
|
2206
2227
|
//# sourceMappingURL=index.cjs.map
|