Skip to content

Commit df5bbb2

Browse files
authored
Merge pull request #156 from aave/feat/v3.7
feat: v3.7
2 parents ba9dad1 + c1c3712 commit df5bbb2

3 files changed

Lines changed: 24 additions & 12 deletions

File tree

.changeset/jolly-geese-call.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@aave/graphql": patch
3+
---
4+
5+
**fix:** update schema for v3.7 (backwards compatible with v3.6)

packages/graphql/schema.graphql

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ type EmodeMarketCategory {
258258
"""The liquidation penalty applied in efficiency mode"""
259259
liquidationPenalty: PercentValue!
260260

261+
"""Whether this eMode category is isolated in v3.7+"""
262+
isolated: Boolean!
263+
261264
"""The list of reserves which will tailor for this eMode"""
262265
reserves: [EmodeMarketReserveInfo!]!
263266
}
@@ -605,8 +608,10 @@ type MarketUserState {
605608
"""The loan to value of the user"""
606609
ltv: PercentValue!
607610

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")
610615
}
611616

612617
input MarketsRequest {
@@ -1071,9 +1076,9 @@ type Reserve {
10711076
isPaused: Boolean!
10721077

10731078
"""
1074-
If the reserve supports isolation mode this is defined and the configs are defined
1079+
Deprecated compatibility field. Use the selected eMode category's `isolated` flag instead.
10751080
"""
1076-
isolationModeConfig: ReserveIsolationModeConfig
1081+
isolationModeConfig: ReserveIsolationModeConfig @deprecated(reason: "Deprecated in v3.7+: use the selected eMode category's `isolated` flag instead")
10771082

10781083
"""If the reserve can use flash loans on it"""
10791084
flashLoanEnabled: Boolean!
@@ -1195,15 +1200,15 @@ type ReserveInfo {
11951200

11961201
type ReserveIsolationModeConfig {
11971202
"""This means that it can be used to borrow"""
1198-
canBeCollateral: Boolean!
1199-
canBeBorrowed: Boolean!
1200-
debtCeiling: TokenAmount!
1203+
canBeCollateral: Boolean! @deprecated(reason: "Deprecated in v3.7+: use the selected eMode category's `isolated` flag instead")
1204+
canBeBorrowed: Boolean! @deprecated(reason: "Deprecated in v3.7+: use the selected eMode category's `isolated` flag instead")
1205+
debtCeiling: TokenAmount! @deprecated(reason: "Deprecated in v3.7+: use the selected eMode category's `isolated` flag instead")
12011206

12021207
"""The decimals used for the debt ceiling"""
1203-
debtCeilingDecimals: Int!
1208+
debtCeilingDecimals: Int! @deprecated(reason: "Deprecated in v3.7+: use the selected eMode category's `isolated` flag instead")
12041209

12051210
"""Only the amount that is borrowed by the users in isolation"""
1206-
totalBorrows: TokenAmount!
1211+
totalBorrows: TokenAmount! @deprecated(reason: "Deprecated in v3.7+: use the selected eMode category's `isolated` flag instead")
12071212
}
12081213

12091214
input ReserveRequest {
@@ -1270,8 +1275,10 @@ type ReserveUserState {
12701275
"""If the user is in a state to be able to borrow from the reserve"""
12711276
canBeBorrowed: Boolean!
12721277

1273-
"""Is the user in isolation mode"""
1274-
isInIsolationMode: Boolean!
1278+
"""
1279+
Deprecated compatibility field. Use the selected eMode category's `isolated` flag instead.
1280+
"""
1281+
isInIsolationMode: Boolean! @deprecated(reason: "Deprecated in v3.7+: use the selected eMode category's `isolated` flag instead")
12751282
}
12761283

12771284
input SavingsGhoBalanceRequest {

packages/graphql/src/graphql-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export type introspection_types = {
3030
'DecimalValue': { kind: 'OBJECT'; name: 'DecimalValue'; fields: { 'decimals': { name: 'decimals'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; 'raw': { name: 'raw'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'BigInt'; ofType: null; }; } }; 'value': { name: 'value'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'BigDecimal'; ofType: null; }; } }; }; };
3131
'DomainData': { kind: 'OBJECT'; name: 'DomainData'; fields: { 'chainId': { name: 'chainId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ChainId'; ofType: null; }; } }; 'name': { name: 'name'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'verifyingContract': { name: 'verifyingContract'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; 'version': { name: 'version'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; };
3232
'ERC712Signature': { kind: 'INPUT_OBJECT'; name: 'ERC712Signature'; isOneOf: false; inputFields: [{ name: 'value'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Signature'; ofType: null; }; }; defaultValue: null }, { name: 'deadline'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; }; defaultValue: null }]; };
33-
'EmodeMarketCategory': { kind: 'OBJECT'; name: 'EmodeMarketCategory'; fields: { 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; 'label': { name: 'label'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'liquidationPenalty': { name: 'liquidationPenalty'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentValue'; ofType: null; }; } }; 'liquidationThreshold': { name: 'liquidationThreshold'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentValue'; ofType: null; }; } }; 'maxLTV': { name: 'maxLTV'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentValue'; ofType: null; }; } }; 'reserves': { name: 'reserves'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'EmodeMarketReserveInfo'; ofType: null; }; }; }; } }; }; };
33+
'EmodeMarketCategory': { kind: 'OBJECT'; name: 'EmodeMarketCategory'; fields: { 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; 'isolated': { name: 'isolated'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'label': { name: 'label'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'liquidationPenalty': { name: 'liquidationPenalty'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentValue'; ofType: null; }; } }; 'liquidationThreshold': { name: 'liquidationThreshold'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentValue'; ofType: null; }; } }; 'maxLTV': { name: 'maxLTV'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentValue'; ofType: null; }; } }; 'reserves': { name: 'reserves'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'EmodeMarketReserveInfo'; ofType: null; }; }; }; } }; }; };
3434
'EmodeMarketReserveInfo': { kind: 'OBJECT'; name: 'EmodeMarketReserveInfo'; fields: { 'canBeBorrowed': { name: 'canBeBorrowed'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'canBeCollateral': { name: 'canBeCollateral'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'hasLtvZero': { name: 'hasLtvZero'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'underlyingToken': { name: 'underlyingToken'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Currency'; ofType: null; }; } }; }; };
3535
'EmodeReserveInfo': { kind: 'OBJECT'; name: 'EmodeReserveInfo'; fields: { 'canBeBorrowed': { name: 'canBeBorrowed'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'canBeCollateral': { name: 'canBeCollateral'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'categoryId': { name: 'categoryId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; 'hasLtvZero': { name: 'hasLtvZero'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'label': { name: 'label'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'liquidationPenalty': { name: 'liquidationPenalty'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentValue'; ofType: null; }; } }; 'liquidationThreshold': { name: 'liquidationThreshold'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentValue'; ofType: null; }; } }; 'maxLTV': { name: 'maxLTV'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentValue'; ofType: null; }; } }; }; };
3636
'Erc20AmountInput': { kind: 'INPUT_OBJECT'; name: 'Erc20AmountInput'; isOneOf: false; inputFields: [{ name: 'currency'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }, { name: 'value'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'BigDecimal'; ofType: null; }; }; defaultValue: null }, { name: 'permitSig'; type: { kind: 'INPUT_OBJECT'; name: 'ERC712Signature'; ofType: null; }; defaultValue: null }]; };

0 commit comments

Comments
 (0)