Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/forty-mugs-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aave/graphql": minor
---

chore: updated schema for v3.6 upgrade
8 changes: 7 additions & 1 deletion packages/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ type EmodeMarketReserveInfo {

"""If the underlying token can be borrowed with this eMode on"""
canBeBorrowed: Boolean!

"""If the underlying token has LTV zero in this eMode"""
hasLtvZero: Boolean!
}

"""The emode reserve information"""
Expand All @@ -295,6 +298,9 @@ type EmodeReserveInfo {

"""If the underlying token can be borrowed with this eMode on"""
canBeBorrowed: Boolean!

"""If the underlying token has LTV zero in this eMode"""
hasLtvZero: Boolean!
}

input Erc20AmountInput {
Expand Down Expand Up @@ -1073,7 +1079,7 @@ type Reserve {
flashLoanEnabled: Boolean!

"""The unbacked amount in the reserve"""
unbacked: TokenAmount!
unbacked: TokenAmount! @deprecated(reason: "This field is no longer supported")

"""The interest rate strategy address"""
interestRateStrategyAddress: EvmAddress!
Expand Down
4 changes: 1 addition & 3 deletions packages/graphql/src/fragments/reserve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ export const EmodeReserveInfoFragment = graphql(
}
canBeCollateral
canBeBorrowed
hasLtvZero
}`,
[PercentValueFragment],
);
Expand Down Expand Up @@ -321,9 +322,6 @@ export const ReserveFragment = graphql(
isFrozen
isPaused
flashLoanEnabled
unbacked{
...TokenAmount
}
interestRateStrategyAddress
permitSupported
supplyInfo {
Expand Down
4 changes: 2 additions & 2 deletions packages/graphql/src/graphql-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export type introspection_types = {
'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; }; } }; }; };
'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 }]; };
'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; }; }; }; } }; }; };
'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; }; } }; 'underlyingToken': { name: 'underlyingToken'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Currency'; ofType: null; }; } }; }; };
'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; }; } }; '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; }; } }; }; };
'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; }; } }; }; };
'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; }; } }; }; };
'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 }]; };
'EvmAddress': unknown;
'ExecutionPlan': { kind: 'UNION'; name: 'ExecutionPlan'; fields: {}; possibleTypes: 'ApprovalRequired' | 'InsufficientBalanceError' | 'TransactionRequest'; };
Expand Down
1 change: 0 additions & 1 deletion packages/spec/markets/reserve.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ describe('Given an Aave Market reserve', () => {
usdExchangeRate: expect.any(String),
vToken: expect.any(Object),
supplyInfo: expect.any(Object),
unbacked: expect.any(Object),
borrowInfo: expect.any(Object),
eModeInfo: expect.any(Array),
market: expect.any(Object),
Expand Down
Loading