@aave/graphql 0.11.0 → 0.12.0

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.
@@ -258,6 +258,9 @@ type EmodeMarketCategory {
258
258
  """The liquidation penalty applied in efficiency mode"""
259
259
  liquidationPenalty: PercentValue!
260
260
 
261
+ """Whether this eMode category is isolated in Aave v3.7+"""
262
+ isolated: Boolean!
263
+
261
264
  """The list of reserves which will tailor for this eMode"""
262
265
  reserves: [EmodeMarketReserveInfo!]!
263
266
  }
@@ -605,8 +608,10 @@ type MarketUserState {
605
608
  """The loan to value of the user"""
606
609
  ltv: PercentValue!
607
610
 
608
- """One of the user collateral is in isolation mode"""
609
- isInIsolationMode: Boolean!
611
+ """
612
+ Deprecated compatibility field. Use the selected eMode category's \`isolated\` flag instead.
613
+ """
614
+ isInIsolationMode: Boolean! @deprecated(reason: "Deprecated in v3.7+: use the selected eMode category's \`isolated\` flag instead")
610
615
  }
611
616
 
612
617
  input MarketsRequest {
@@ -973,6 +978,30 @@ type Query {
973
978
 
974
979
  """Withdraw sGHO (savings GHO) back to GHO"""
975
980
  savingsGhoWithdraw(request: SavingsGhoWithdrawRequest!): ExecutionPlan!
981
+
982
+ """Build a transaction to deposit GHO into the sGHO ERC-4626 vault."""
983
+ sghoVaultDeposit(request: SghoVaultDepositRequest!): ExecutionPlan!
984
+
985
+ """
986
+ Build a transaction to redeem sGHO shares for GHO from the ERC-4626 vault.
987
+ """
988
+ sghoVaultRedeemShares(request: SghoVaultRedeemSharesRequest!): ExecutionPlan!
989
+
990
+ """
991
+ Returns the current state of the sGHO ERC-4626 vault, including rates, totals, and
992
+ optionally the connected user's position.
993
+ """
994
+ sghoVault(request: SghoVaultRequest!): SghoVault!
995
+
996
+ """
997
+ Returns the number of sGHO shares that would be minted for a given GHO deposit amount.
998
+ """
999
+ sghoVaultPreviewDeposit(request: SghoVaultPreviewRequest!): DecimalValue!
1000
+
1001
+ """
1002
+ Returns the amount of GHO that would be received for redeeming a given number of sGHO shares.
1003
+ """
1004
+ sghoVaultPreviewRedeem(request: SghoVaultPreviewRequest!): DecimalValue!
976
1005
  }
977
1006
 
978
1007
  input RepayAmountInput @oneOf {
@@ -1071,9 +1100,9 @@ type Reserve {
1071
1100
  isPaused: Boolean!
1072
1101
 
1073
1102
  """
1074
- If the reserve supports isolation mode this is defined and the configs are defined
1103
+ Deprecated compatibility field. Use the selected eMode category's \`isolated\` flag instead.
1075
1104
  """
1076
- isolationModeConfig: ReserveIsolationModeConfig
1105
+ isolationModeConfig: ReserveIsolationModeConfig @deprecated(reason: "Deprecated in v3.7+: use the selected eMode category's \`isolated\` flag instead")
1077
1106
 
1078
1107
  """If the reserve can use flash loans on it"""
1079
1108
  flashLoanEnabled: Boolean!
@@ -1195,15 +1224,15 @@ type ReserveInfo {
1195
1224
 
1196
1225
  type ReserveIsolationModeConfig {
1197
1226
  """This means that it can be used to borrow"""
1198
- canBeCollateral: Boolean!
1199
- canBeBorrowed: Boolean!
1200
- debtCeiling: TokenAmount!
1227
+ canBeCollateral: Boolean! @deprecated(reason: "Deprecated in v3.7+: use the selected eMode category's \`isolated\` flag instead")
1228
+ canBeBorrowed: Boolean! @deprecated(reason: "Deprecated in v3.7+: use the selected eMode category's \`isolated\` flag instead")
1229
+ debtCeiling: TokenAmount! @deprecated(reason: "Deprecated in v3.7+: use the selected eMode category's \`isolated\` flag instead")
1201
1230
 
1202
1231
  """The decimals used for the debt ceiling"""
1203
- debtCeilingDecimals: Int!
1232
+ debtCeilingDecimals: Int! @deprecated(reason: "Deprecated in v3.7+: use the selected eMode category's \`isolated\` flag instead")
1204
1233
 
1205
1234
  """Only the amount that is borrowed by the users in isolation"""
1206
- totalBorrows: TokenAmount!
1235
+ totalBorrows: TokenAmount! @deprecated(reason: "Deprecated in v3.7+: use the selected eMode category's \`isolated\` flag instead")
1207
1236
  }
1208
1237
 
1209
1238
  input ReserveRequest {
@@ -1270,8 +1299,10 @@ type ReserveUserState {
1270
1299
  """If the user is in a state to be able to borrow from the reserve"""
1271
1300
  canBeBorrowed: Boolean!
1272
1301
 
1273
- """Is the user in isolation mode"""
1274
- isInIsolationMode: Boolean!
1302
+ """
1303
+ Deprecated compatibility field. Use the selected eMode category's \`isolated\` flag instead.
1304
+ """
1305
+ isInIsolationMode: Boolean! @deprecated(reason: "Deprecated in v3.7+: use the selected eMode category's \`isolated\` flag instead")
1275
1306
  }
1276
1307
 
1277
1308
  input SavingsGhoBalanceRequest {
@@ -1332,6 +1363,113 @@ input SayingsGhoDepositAmountInput {
1332
1363
  permitSig: ERC712Signature
1333
1364
  }
1334
1365
 
1366
+ type SghoUserPosition {
1367
+ """The user's sGHO shares balance"""
1368
+ shares: TokenAmount!
1369
+
1370
+ """GHO value of the shares at the current yield index (convertToAssets)"""
1371
+ balance: TokenAmount!
1372
+
1373
+ """
1374
+ Maximum GHO the user can deposit: min(wallet GHO balance, remaining supply cap); 0 when paused
1375
+ """
1376
+ maxDeposit: TokenAmount!
1377
+
1378
+ """Maximum GHO that can be withdrawn"""
1379
+ maxWithdraw: TokenAmount!
1380
+
1381
+ """User's GHO wallet balance (the underlying token they can deposit)"""
1382
+ underlyingBalance: TokenAmount!
1383
+ }
1384
+
1385
+ type SghoVault {
1386
+ """Total GHO locked in the vault"""
1387
+ totalAssets: TokenAmount!
1388
+
1389
+ """Total sGHO shares outstanding"""
1390
+ totalSupply: DecimalValue!
1391
+
1392
+ """Maximum GHO that can be deposited"""
1393
+ supplyCap: TokenAmount!
1394
+
1395
+ """Target yield APR in basis points (e.g. 500 = 5%)"""
1396
+ targetRate: PercentValue!
1397
+
1398
+ """
1399
+ Whether the vault is currently paused (deposits and withdrawals are blocked)
1400
+ """
1401
+ paused: Boolean!
1402
+
1403
+ """User position \u2014 present only when \`user\` is provided in the request"""
1404
+ user: SghoUserPosition
1405
+ }
1406
+
1407
+ input SghoVaultDepositAmountInput {
1408
+ """The amount of GHO to deposit."""
1409
+ value: BigDecimal!
1410
+
1411
+ """
1412
+ Optional ERC20 permit signature to avoid a separate approval transaction.
1413
+ """
1414
+ permitSig: ERC712Signature
1415
+ }
1416
+
1417
+ input SghoVaultDepositRequest {
1418
+ """The amount of GHO to deposit."""
1419
+ amount: SghoVaultDepositAmountInput!
1420
+
1421
+ """The user depositing GHO."""
1422
+ depositor: EvmAddress!
1423
+
1424
+ """The address to receive sGHO shares \u2014 defaults to \`depositor\`."""
1425
+ sharesRecipient: EvmAddress
1426
+
1427
+ """The chain id"""
1428
+ chainId: ChainId!
1429
+ }
1430
+
1431
+ input SghoVaultPreviewRequest {
1432
+ """The amount in human-readable form"""
1433
+ amount: BigDecimal!
1434
+
1435
+ """The chain id"""
1436
+ chainId: ChainId!
1437
+ }
1438
+
1439
+ input SghoVaultRedeemSharesAmount @oneOf {
1440
+ """Redeem all sGHO shares for GHO."""
1441
+ maxRedeem: AlwaysTrue
1442
+
1443
+ """Redeem an exact number of sGHO shares for GHO."""
1444
+ shares: BigDecimal
1445
+ }
1446
+
1447
+ input SghoVaultRedeemSharesRequest {
1448
+ """The redeem amount \u2014 redeem all shares or an exact share count."""
1449
+ amount: SghoVaultRedeemSharesAmount!
1450
+
1451
+ """
1452
+ The address whose sGHO shares will be burned (normally the caller's own wallet).
1453
+ """
1454
+ sharesOwner: EvmAddress!
1455
+
1456
+ """The address to receive GHO \u2014 defaults to \`shares_owner\`."""
1457
+ recipient: EvmAddress
1458
+
1459
+ """The chain id"""
1460
+ chainId: ChainId!
1461
+ }
1462
+
1463
+ input SghoVaultRequest {
1464
+ """
1465
+ Optional user address to include position data (shares balance, max deposit/withdraw)
1466
+ """
1467
+ user: EvmAddress
1468
+
1469
+ """The chain id"""
1470
+ chainId: ChainId!
1471
+ }
1472
+
1335
1473
  scalar Signature
1336
1474
 
1337
1475
  input SupplyAPYHistoryRequest {
@@ -2307,5 +2445,5 @@ input WithdrawRequest {
2307
2445
 
2308
2446
  """The chain id"""
2309
2447
  chainId: ChainId!
2310
- }`;var i=buildSchema(e);export{i as schema};//# sourceMappingURL=test-utils.js.map
2448
+ }`;var o=buildSchema(e);export{o as schema};//# sourceMappingURL=test-utils.js.map
2311
2449
  //# sourceMappingURL=test-utils.js.map