@aave/graphql 1.0.0-next.37 → 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 +62 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1114 -35
- package/dist/index.d.ts +1114 -35
- package/dist/index.js +62 -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 +13 -4
- 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
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
...PointsCriteria
|
|
359
359
|
}
|
|
360
360
|
userEligible
|
|
361
|
-
}`,[O,U]),
|
|
361
|
+
}`,[O,U]),xt=e(`fragment BorrowPoints on BorrowPointsReward {
|
|
362
362
|
__typename
|
|
363
363
|
id
|
|
364
364
|
program {
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
... on BorrowPointsReward {
|
|
387
387
|
...BorrowPoints
|
|
388
388
|
}
|
|
389
|
-
}`,[Rt,ft,wt,
|
|
389
|
+
}`,[Rt,ft,wt,xt]),qt=e(`fragment UserMerklClaimableReward on UserMerklClaimableReward {
|
|
390
390
|
__typename
|
|
391
391
|
id
|
|
392
392
|
claimable {
|
|
@@ -400,7 +400,7 @@
|
|
|
400
400
|
... on UserMerklClaimableReward {
|
|
401
401
|
...UserMerklClaimableReward
|
|
402
402
|
}
|
|
403
|
-
}`,[
|
|
403
|
+
}`,[qt]);var l=e(`fragment Spoke on Spoke {
|
|
404
404
|
__typename
|
|
405
405
|
id
|
|
406
406
|
name
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
pageInfo {
|
|
436
436
|
...PaginatedResultInfo
|
|
437
437
|
}
|
|
438
|
-
}`,[ht,R]);var
|
|
438
|
+
}`,[ht,R]);var At=e(`fragment ReserveSettings on ReserveSettings {
|
|
439
439
|
__typename
|
|
440
440
|
collateralFactor {
|
|
441
441
|
...PercentNumber
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
supplyCap {
|
|
461
461
|
...Erc20Amount
|
|
462
462
|
}
|
|
463
|
-
}`,[a,u]),
|
|
463
|
+
}`,[a,u]),Ft=e(`fragment ReserveStatus on ReserveStatus {
|
|
464
464
|
__typename
|
|
465
465
|
frozen
|
|
466
466
|
paused
|
|
@@ -473,6 +473,12 @@
|
|
|
473
473
|
borrowed {
|
|
474
474
|
...Erc20Amount
|
|
475
475
|
}
|
|
476
|
+
suppliable {
|
|
477
|
+
...Erc20Amount
|
|
478
|
+
}
|
|
479
|
+
borrowable {
|
|
480
|
+
...Erc20Amount
|
|
481
|
+
}
|
|
476
482
|
supplyApy {
|
|
477
483
|
...PercentNumber
|
|
478
484
|
}
|
|
@@ -535,7 +541,7 @@
|
|
|
535
541
|
asset {
|
|
536
542
|
...HubAsset
|
|
537
543
|
}
|
|
538
|
-
}`,[l,o,bt,Ft,
|
|
544
|
+
}`,[l,o,bt,At,Ft,It,C]),c=e(`fragment ReserveInfo on ReserveInfo {
|
|
539
545
|
__typename
|
|
540
546
|
id
|
|
541
547
|
asset {
|
|
@@ -712,7 +718,7 @@
|
|
|
712
718
|
... on InsufficientBalanceError {
|
|
713
719
|
...InsufficientBalanceError
|
|
714
720
|
}
|
|
715
|
-
}`,[Ut,le,f]),
|
|
721
|
+
}`,[Ut,le,f]),q=e(`fragment PositionAmount on PositionAmount {
|
|
716
722
|
__typename
|
|
717
723
|
reserve {
|
|
718
724
|
...ReserveInfo
|
|
@@ -730,7 +736,7 @@
|
|
|
730
736
|
}
|
|
731
737
|
kind
|
|
732
738
|
orderClass
|
|
733
|
-
}`,[
|
|
739
|
+
}`,[q]),_t=e(`fragment BorrowSwap on BorrowSwap {
|
|
734
740
|
__typename
|
|
735
741
|
sell {
|
|
736
742
|
...PositionAmount
|
|
@@ -740,7 +746,7 @@
|
|
|
740
746
|
}
|
|
741
747
|
kind
|
|
742
748
|
orderClass
|
|
743
|
-
}`,[
|
|
749
|
+
}`,[q]),Bt=e(`fragment RepayWithSupply on RepayWithSupply {
|
|
744
750
|
__typename
|
|
745
751
|
repay {
|
|
746
752
|
...PositionAmount
|
|
@@ -750,7 +756,7 @@
|
|
|
750
756
|
}
|
|
751
757
|
kind
|
|
752
758
|
orderClass
|
|
753
|
-
}`,[
|
|
759
|
+
}`,[q]),Qt=e(`fragment WithdrawSwap on WithdrawSwap {
|
|
754
760
|
__typename
|
|
755
761
|
withdraw {
|
|
756
762
|
...PositionAmount
|
|
@@ -760,7 +766,7 @@
|
|
|
760
766
|
}
|
|
761
767
|
kind
|
|
762
768
|
orderClass
|
|
763
|
-
}`,[
|
|
769
|
+
}`,[q,S]),Ht=e(`fragment TokenSwap on TokenSwap {
|
|
764
770
|
__typename
|
|
765
771
|
sell {
|
|
766
772
|
...TokenAmount
|
|
@@ -923,7 +929,7 @@
|
|
|
923
929
|
... on InsufficientLiquidityError {
|
|
924
930
|
...InsufficientLiquidityError
|
|
925
931
|
}
|
|
926
|
-
}`,[$,b]),
|
|
932
|
+
}`,[$,b]),xe=e(`fragment RepayWithSupplyQuoteResult on RepayWithSupplyQuoteResult {
|
|
927
933
|
__typename
|
|
928
934
|
... on PositionSwapByIntentApprovalsRequired {
|
|
929
935
|
...PositionSwapByIntentApprovalsRequired
|
|
@@ -931,7 +937,7 @@
|
|
|
931
937
|
... on InsufficientLiquidityError {
|
|
932
938
|
...InsufficientLiquidityError
|
|
933
939
|
}
|
|
934
|
-
}`,[$,b]),
|
|
940
|
+
}`,[$,b]),qe=e(`fragment WithdrawSwapQuoteResult on WithdrawSwapQuoteResult {
|
|
935
941
|
__typename
|
|
936
942
|
... on PositionSwapByIntentApprovalsRequired {
|
|
937
943
|
...PositionSwapByIntentApprovalsRequired
|
|
@@ -964,7 +970,7 @@
|
|
|
964
970
|
}
|
|
965
971
|
isCollateral
|
|
966
972
|
createdAt
|
|
967
|
-
}`,[u,I]),
|
|
973
|
+
}`,[u,I]),Ae=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
968
974
|
__typename
|
|
969
975
|
id
|
|
970
976
|
principal {
|
|
@@ -980,7 +986,7 @@
|
|
|
980
986
|
...Reserve
|
|
981
987
|
}
|
|
982
988
|
createdAt
|
|
983
|
-
}`,[u,I]),
|
|
989
|
+
}`,[u,I]),Fe=e(`fragment UserSummary on UserSummary {
|
|
984
990
|
__typename
|
|
985
991
|
totalPositions
|
|
986
992
|
netBalance(currency: $currency) {
|
|
@@ -1068,7 +1074,10 @@
|
|
|
1068
1074
|
liquidationPrice(currency: $currency) {
|
|
1069
1075
|
...ExchangeAmount
|
|
1070
1076
|
}
|
|
1071
|
-
|
|
1077
|
+
maxBorrowingPower(currency: $currency) {
|
|
1078
|
+
...ExchangeAmount
|
|
1079
|
+
}
|
|
1080
|
+
remainingBorrowingPower(currency: $currency) {
|
|
1072
1081
|
...ExchangeAmount
|
|
1073
1082
|
}
|
|
1074
1083
|
canUpdateDynamicConfig
|
|
@@ -1320,11 +1329,11 @@
|
|
|
1320
1329
|
value: hub(request: $request) {
|
|
1321
1330
|
...Hub
|
|
1322
1331
|
}
|
|
1323
|
-
}`,[
|
|
1332
|
+
}`,[A]),Na=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1324
1333
|
value: hubs(request: $request) {
|
|
1325
1334
|
...Hub
|
|
1326
1335
|
}
|
|
1327
|
-
}`,[
|
|
1336
|
+
}`,[A]),Da=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1328
1337
|
value: hubAssets(request: $request) {
|
|
1329
1338
|
...HubAsset
|
|
1330
1339
|
}
|
|
@@ -1367,7 +1376,7 @@
|
|
|
1367
1376
|
...HubAssetInterestRateModelPoint
|
|
1368
1377
|
}
|
|
1369
1378
|
}
|
|
1370
|
-
}`,[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!) {
|
|
1371
1380
|
value: chain(request: $request) {
|
|
1372
1381
|
...Chain
|
|
1373
1382
|
}
|
|
@@ -1398,7 +1407,7 @@
|
|
|
1398
1407
|
hub {
|
|
1399
1408
|
...Hub
|
|
1400
1409
|
}
|
|
1401
|
-
}`,[y,a,
|
|
1410
|
+
}`,[y,a,A]),gr=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
1402
1411
|
__typename
|
|
1403
1412
|
date
|
|
1404
1413
|
amount {
|
|
@@ -1585,19 +1594,19 @@
|
|
|
1585
1594
|
value: supplySwapQuote(request: $request) {
|
|
1586
1595
|
...SupplySwapQuoteResult
|
|
1587
1596
|
}
|
|
1588
|
-
}`,[fe]),
|
|
1597
|
+
}`,[fe]),xo=e(`query BorrowSwapQuote($request: BorrowSwapQuoteRequest!, $currency: Currency!) {
|
|
1589
1598
|
value: borrowSwapQuote(request: $request) {
|
|
1590
1599
|
...BorrowSwapQuoteResult
|
|
1591
1600
|
}
|
|
1592
|
-
}`,[we]),
|
|
1601
|
+
}`,[we]),qo=e(`query RepayWithSupplyQuote($request: RepayWithSupplyQuoteRequest!, $currency: Currency!) {
|
|
1593
1602
|
value: repayWithSupplyQuote(request: $request) {
|
|
1594
1603
|
...RepayWithSupplyQuoteResult
|
|
1595
1604
|
}
|
|
1596
|
-
}`,[
|
|
1605
|
+
}`,[xe]),Po=e(`query WithdrawSwapQuote($request: WithdrawSwapQuoteRequest!, $currency: Currency!) {
|
|
1597
1606
|
value: withdrawSwapQuote(request: $request) {
|
|
1598
1607
|
...WithdrawSwapQuoteResult
|
|
1599
1608
|
}
|
|
1600
|
-
}`,[
|
|
1609
|
+
}`,[qe]),ho=e(`query PreparePositionSwap($request: PreparePositionSwapRequest!) {
|
|
1601
1610
|
value: preparePositionSwap(request: $request) {
|
|
1602
1611
|
...PreparePositionSwapResult
|
|
1603
1612
|
}
|
|
@@ -1617,7 +1626,7 @@
|
|
|
1617
1626
|
value: withdraw(request: $request) {
|
|
1618
1627
|
...ExecutionPlan
|
|
1619
1628
|
}
|
|
1620
|
-
}`,[B]),
|
|
1629
|
+
}`,[B]),xr=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1621
1630
|
__typename
|
|
1622
1631
|
... on TransactionRequest {
|
|
1623
1632
|
...TransactionRequest
|
|
@@ -1632,7 +1641,7 @@
|
|
|
1632
1641
|
value: liquidatePosition(request: $request) {
|
|
1633
1642
|
...LiquidatePositionExecutionPlan
|
|
1634
1643
|
}
|
|
1635
|
-
}`,[
|
|
1644
|
+
}`,[xr]),Eo=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1636
1645
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1637
1646
|
...TransactionRequest
|
|
1638
1647
|
}
|
|
@@ -1648,7 +1657,7 @@
|
|
|
1648
1657
|
value: updateUserPositionConditions(request: $request) {
|
|
1649
1658
|
...TransactionRequest
|
|
1650
1659
|
}
|
|
1651
|
-
}`,[p]),
|
|
1660
|
+
}`,[p]),qr=e(`fragment CollateralFactorVariation on CollateralFactorVariation {
|
|
1652
1661
|
__typename
|
|
1653
1662
|
reserveId
|
|
1654
1663
|
token {
|
|
@@ -1684,7 +1693,7 @@
|
|
|
1684
1693
|
after {
|
|
1685
1694
|
...PercentNumber
|
|
1686
1695
|
}
|
|
1687
|
-
}`,[s,a]),
|
|
1696
|
+
}`,[s,a]),Ar=e(`fragment UserPositionConditionVariation on UserPositionConditionVariation {
|
|
1688
1697
|
__typename
|
|
1689
1698
|
... on CollateralFactorVariation {
|
|
1690
1699
|
...CollateralFactorVariation
|
|
@@ -1695,7 +1704,7 @@
|
|
|
1695
1704
|
... on MaxLiquidationBonusVariation {
|
|
1696
1705
|
...MaxLiquidationBonusVariation
|
|
1697
1706
|
}
|
|
1698
|
-
}`,[
|
|
1707
|
+
}`,[qr,Pr,hr]),Fr=e(`fragment PreviewMerklSupplyReward on PreviewMerklSupplyReward {
|
|
1699
1708
|
__typename
|
|
1700
1709
|
id
|
|
1701
1710
|
startDate
|
|
@@ -1775,7 +1784,7 @@
|
|
|
1775
1784
|
... on PreviewBorrowPointsReward {
|
|
1776
1785
|
...PreviewBorrowPoints
|
|
1777
1786
|
}
|
|
1778
|
-
}`,[
|
|
1787
|
+
}`,[Fr,br,Ir,Tr]),vr=e(`fragment PreviewRewardOutcome on PreviewRewardOutcome {
|
|
1779
1788
|
__typename
|
|
1780
1789
|
lost {
|
|
1781
1790
|
...PreviewReward
|
|
@@ -1804,16 +1813,27 @@
|
|
|
1804
1813
|
projectedEarnings {
|
|
1805
1814
|
...ExchangeAmountVariation
|
|
1806
1815
|
}
|
|
1807
|
-
|
|
1816
|
+
maxBorrowingPower {
|
|
1808
1817
|
...ExchangeAmountVariation
|
|
1809
1818
|
}
|
|
1819
|
+
remainingBorrowingPower {
|
|
1820
|
+
...ExchangeAmountVariation
|
|
1821
|
+
}
|
|
1822
|
+
reserveRates {
|
|
1823
|
+
supplyApy {
|
|
1824
|
+
...PercentNumberVariation
|
|
1825
|
+
}
|
|
1826
|
+
borrowApy {
|
|
1827
|
+
...PercentNumberVariation
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1810
1830
|
rewards {
|
|
1811
1831
|
...PreviewRewardOutcome
|
|
1812
1832
|
}
|
|
1813
1833
|
otherConditions {
|
|
1814
1834
|
...UserPositionConditionVariation
|
|
1815
1835
|
}
|
|
1816
|
-
}`,[ne,te,re,vr,
|
|
1836
|
+
}`,[ne,te,re,vr,Ar]),Bo=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD, $timeWindow: TimeWindow! = LAST_WEEK) {
|
|
1817
1837
|
value: preview(request: $request) {
|
|
1818
1838
|
...PreviewUserPosition
|
|
1819
1839
|
}
|
|
@@ -2015,7 +2035,7 @@
|
|
|
2015
2035
|
orderClass
|
|
2016
2036
|
kind
|
|
2017
2037
|
status
|
|
2018
|
-
}`,[o,
|
|
2038
|
+
}`,[o,q]),$r=e(`fragment BorrowSwapActivity on BorrowSwapActivity {
|
|
2019
2039
|
__typename
|
|
2020
2040
|
id
|
|
2021
2041
|
user
|
|
@@ -2034,7 +2054,7 @@
|
|
|
2034
2054
|
orderClass
|
|
2035
2055
|
kind
|
|
2036
2056
|
status
|
|
2037
|
-
}`,[o,
|
|
2057
|
+
}`,[o,q]),Nr=e(`fragment RepayWithSupplyActivity on RepayWithSupplyActivity {
|
|
2038
2058
|
__typename
|
|
2039
2059
|
id
|
|
2040
2060
|
user
|
|
@@ -2053,7 +2073,7 @@
|
|
|
2053
2073
|
orderClass
|
|
2054
2074
|
kind
|
|
2055
2075
|
status
|
|
2056
|
-
}`,[o,
|
|
2076
|
+
}`,[o,q]),Dr=e(`fragment WithdrawSwapActivity on WithdrawSwapActivity {
|
|
2057
2077
|
__typename
|
|
2058
2078
|
id
|
|
2059
2079
|
user
|
|
@@ -2072,7 +2092,7 @@
|
|
|
2072
2092
|
orderClass
|
|
2073
2093
|
kind
|
|
2074
2094
|
status
|
|
2075
|
-
}`,[o,
|
|
2095
|
+
}`,[o,q,S]),Lr=e(`fragment ActivityItem on ActivityItem {
|
|
2076
2096
|
__typename
|
|
2077
2097
|
... on BorrowActivity {
|
|
2078
2098
|
...BorrowActivity
|
|
@@ -2133,11 +2153,11 @@
|
|
|
2133
2153
|
value: userBorrows(request: $request) {
|
|
2134
2154
|
...UserBorrowItem
|
|
2135
2155
|
}
|
|
2136
|
-
}`,[
|
|
2156
|
+
}`,[Ae]),No=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
2137
2157
|
value: userSummary(request: $request) {
|
|
2138
2158
|
...UserSummary
|
|
2139
2159
|
}
|
|
2140
|
-
}`,[
|
|
2160
|
+
}`,[Fe]),Do=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
2141
2161
|
value: userPositions(request: $request) {
|
|
2142
2162
|
...UserPosition
|
|
2143
2163
|
}
|
|
@@ -2203,5 +2223,5 @@
|
|
|
2203
2223
|
value: stableVaultWithdrawRedeem(request: $request) {
|
|
2204
2224
|
...StableVaultWithdrawRedeemExecutionPlan
|
|
2205
2225
|
}
|
|
2206
|
-
}`,[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
|
|
2207
2227
|
//# sourceMappingURL=index.cjs.map
|