@@ -183,6 +183,8 @@ export type AssetsFilters = {
183183 isCollateralAsset ?: InputMaybe < Scalars [ "Boolean" ] [ "input" ] > ;
184184 /** Filter assets that are listed as loan on at least one market */
185185 isLoanAsset ?: InputMaybe < Scalars [ "Boolean" ] [ "input" ] > ;
186+ /** Filter assets that are listed on at least one market (collateral or loan) */
187+ isMarketAsset ?: InputMaybe < Scalars [ "Boolean" ] [ "input" ] > ;
186188 /** Filter assets that are listed by at least one vault */
187189 isVaultAsset ?: InputMaybe < Scalars [ "Boolean" ] [ "input" ] > ;
188190 search ?: InputMaybe < Scalars [ "String" ] [ "input" ] > ;
@@ -194,6 +196,22 @@ export type AssetsFilters = {
194196 whitelisted ?: InputMaybe < Scalars [ "Boolean" ] [ "input" ] > ;
195197} ;
196198
199+ export type BadDebtRealizedMarketWarningMetadata = {
200+ __typename ?: "BadDebtRealizedMarketWarningMetadata" ;
201+ badDebtAssets : Scalars [ "BigInt" ] [ "output" ] ;
202+ badDebtShare : Scalars [ "Float" ] [ "output" ] ;
203+ badDebtUsd : Maybe < Scalars [ "Float" ] [ "output" ] > ;
204+ totalSupplyAssets : Scalars [ "BigInt" ] [ "output" ] ;
205+ } ;
206+
207+ export type BadDebtUnrealizedMarketWarningMetadata = {
208+ __typename ?: "BadDebtUnrealizedMarketWarningMetadata" ;
209+ badDebtAssets : Scalars [ "BigInt" ] [ "output" ] ;
210+ badDebtShare : Scalars [ "Float" ] [ "output" ] ;
211+ badDebtUsd : Maybe < Scalars [ "Float" ] [ "output" ] > ;
212+ totalSupplyAssets : Scalars [ "BigInt" ] [ "output" ] ;
213+ } ;
214+
197215export type BigIntDataPoint = {
198216 __typename ?: "BigIntDataPoint" ;
199217 x : Scalars [ "Float" ] [ "output" ] ;
@@ -328,7 +346,6 @@ export type CuratorState = {
328346 curatorId : Scalars [ "ID" ] [ "output" ] ;
329347} ;
330348
331- /** Custom Warning Metadata */
332349export type CustomMetadata = {
333350 __typename ?: "CustomMetadata" ;
334351 content : Maybe < Scalars [ "String" ] [ "output" ] > ;
@@ -340,11 +357,26 @@ export type FloatDataPoint = {
340357 y : Maybe < Scalars [ "Float" ] [ "output" ] > ;
341358} ;
342359
343- /** Hardcoded Price Metadata */
344- export type HardcodedPriceMetadata = {
345- __typename ?: "HardcodedPriceMetadata" ;
346- symbolFrom : Maybe < Scalars [ "String" ] [ "output" ] > ;
347- symbolTo : Maybe < Scalars [ "String" ] [ "output" ] > ;
360+ export type HighRiskAddressVaultV2WarningMetadata = {
361+ __typename ?: "HighRiskAddressVaultV2WarningMetadata" ;
362+ blacklistedAddresses : Array < Scalars [ "Address" ] [ "output" ] > ;
363+ highRiskAddresses : Array < Scalars [ "Address" ] [ "output" ] > ;
364+ } ;
365+
366+ export type HighRiskAddressVaultWarningMetadata = {
367+ __typename ?: "HighRiskAddressVaultWarningMetadata" ;
368+ blacklistedAddresses : Array < Scalars [ "Address" ] [ "output" ] > ;
369+ highRiskAddresses : Array < Scalars [ "Address" ] [ "output" ] > ;
370+ } ;
371+
372+ export type HighRiskAssetMarketWarningMetadata = {
373+ __typename ?: "HighRiskAssetMarketWarningMetadata" ;
374+ highRiskAssets : Array < Asset > ;
375+ } ;
376+
377+ export type HighRiskAssetVaultWarningMetadata = {
378+ __typename ?: "HighRiskAssetVaultWarningMetadata" ;
379+ highRiskAssets : Array < Asset > ;
348380} ;
349381
350382/** IRM curve data point */
@@ -358,12 +390,30 @@ export type IrmCurveDataPoint = {
358390 utilization : Scalars [ "Float" ] [ "output" ] ;
359391} ;
360392
393+ export type IncorrectOracleConfigurationMarketWarningMetadata = {
394+ __typename ?: "IncorrectOracleConfigurationMarketWarningMetadata" ;
395+ expectedScaleFactor : Maybe < Scalars [ "BigInt" ] [ "output" ] > ;
396+ expectedScaleFactorExponent : Maybe < Scalars [ "BigInt" ] [ "output" ] > ;
397+ scaleFactor : Maybe < Scalars [ "BigInt" ] [ "output" ] > ;
398+ type : Scalars [ "String" ] [ "output" ] ;
399+ } ;
400+
361401export type IntDataPoint = {
362402 __typename ?: "IntDataPoint" ;
363403 x : Scalars [ "Float" ] [ "output" ] ;
364404 y : Maybe < Scalars [ "Int" ] [ "output" ] > ;
365405} ;
366406
407+ export type InvalidNameVaultWarningMetadata = {
408+ __typename ?: "InvalidNameVaultWarningMetadata" ;
409+ reason : Scalars [ "String" ] [ "output" ] ;
410+ } ;
411+
412+ export type InvalidSymbolVaultWarningMetadata = {
413+ __typename ?: "InvalidSymbolVaultWarningMetadata" ;
414+ reason : Scalars [ "String" ] [ "output" ] ;
415+ } ;
416+
367417/** Morpho Blue market */
368418export type Market = {
369419 __typename ?: "Market" ;
@@ -440,7 +490,6 @@ export type Market = {
440490 targetBorrowUtilization : Scalars [ "BigInt" ] [ "output" ] ;
441491 targetWithdrawUtilization : Scalars [ "BigInt" ] [ "output" ] ;
442492 uniqueKey : Scalars [ "MarketId" ] [ "output" ] ;
443- /** Market warnings */
444493 warnings : Array < MarketWarning > ;
445494 /**
446495 * Weekly market APYs
@@ -1582,15 +1631,22 @@ export type MarketV1CapData = {
15821631 marketParams : MarketParams ;
15831632} ;
15841633
1585- /** Market warning */
15861634export type MarketWarning = {
15871635 __typename ?: "MarketWarning" ;
15881636 level : WarningLevel ;
15891637 metadata : Maybe < MarketWarningMetadata > ;
15901638 type : Scalars [ "String" ] [ "output" ] ;
15911639} ;
15921640
1593- export type MarketWarningMetadata = CustomMetadata | HardcodedPriceMetadata ;
1641+ export type MarketWarningMetadata =
1642+ | BadDebtRealizedMarketWarningMetadata
1643+ | BadDebtUnrealizedMarketWarningMetadata
1644+ | CustomMetadata
1645+ | HighRiskAssetMarketWarningMetadata
1646+ | IncorrectOracleConfigurationMarketWarningMetadata
1647+ | UnrecognizedCollateralAssetMarketWarningMetadata
1648+ | UnrecognizedLoanAssetMarketWarningMetadata
1649+ | UnsafeVaultAsCollateralMarketWarningMetadata ;
15941650
15951651export type MetaMorphoAdapter = VaultV2Adapter & {
15961652 __typename ?: "MetaMorphoAdapter" ;
@@ -2615,6 +2671,11 @@ export type SetWithdrawQueueEventData = {
26152671 withdrawQueue : Array < Market > ;
26162672} ;
26172673
2674+ export type ShortTimelockVaultWarningMetadata = {
2675+ __typename ?: "ShortTimelockVaultWarningMetadata" ;
2676+ timelock : Scalars [ "BigInt" ] [ "output" ] ;
2677+ } ;
2678+
26182679/** Skim event data */
26192680export type SkimEventData = {
26202681 __typename ?: "SkimEventData" ;
@@ -2628,6 +2689,18 @@ export type TimelockEventData = {
26282689 timelock : Scalars [ "BigInt" ] [ "output" ] ;
26292690} ;
26302691
2692+ export type TimelockFailedCheckVaultV2WarningMetadata = {
2693+ __typename ?: "TimelockFailedCheckVaultV2WarningMetadata" ;
2694+ currentTimelock : Scalars [ "BigInt" ] [ "output" ] ;
2695+ functionName : Scalars [ "String" ] [ "output" ] ;
2696+ requiredTimelock : Scalars [ "BigInt" ] [ "output" ] ;
2697+ } ;
2698+
2699+ export type TimelockVaultV2WarningMetadata = {
2700+ __typename ?: "TimelockVaultV2WarningMetadata" ;
2701+ failedChecks : Array < TimelockFailedCheckVaultV2WarningMetadata > ;
2702+ } ;
2703+
26312704export enum TimeseriesInterval {
26322705 /** @deprecated Use startTimestamp and endTimestamp instead. */
26332706 All = "ALL" ,
@@ -2784,6 +2857,31 @@ export enum TransactionsOrderBy {
27842857 Timestamp = "Timestamp" ,
27852858}
27862859
2860+ export type UnrecognizedCollateralAssetMarketWarningMetadata = {
2861+ __typename ?: "UnrecognizedCollateralAssetMarketWarningMetadata" ;
2862+ asset : Asset ;
2863+ } ;
2864+
2865+ export type UnrecognizedDepositAssetVaultWarningMetadata = {
2866+ __typename ?: "UnrecognizedDepositAssetVaultWarningMetadata" ;
2867+ asset : Asset ;
2868+ } ;
2869+
2870+ export type UnrecognizedLoanAssetMarketWarningMetadata = {
2871+ __typename ?: "UnrecognizedLoanAssetMarketWarningMetadata" ;
2872+ asset : Asset ;
2873+ } ;
2874+
2875+ export type UnrecognizedMarketVaultWarningMetadata = {
2876+ __typename ?: "UnrecognizedMarketVaultWarningMetadata" ;
2877+ marketWarnings : Array < MarketWarning > ;
2878+ } ;
2879+
2880+ export type UnsafeVaultAsCollateralMarketWarningMetadata = {
2881+ __typename ?: "UnsafeVaultAsCollateralMarketWarningMetadata" ;
2882+ vault : Vault ;
2883+ } ;
2884+
27872885/** User */
27882886export type User = {
27892887 __typename ?: "User" ;
@@ -2960,7 +3058,10 @@ export type Vault = {
29603058 */
29613059 monthlyApys : Maybe < VaultApyAggregates > ;
29623060 name : Scalars [ "String" ] [ "output" ] ;
2963- /** Vault pending caps */
3061+ /**
3062+ * Vault pending caps
3063+ * @deprecated Use `vault.state.pendingConfigs` with `functionName_in: [SetCap]` instead.
3064+ */
29643065 pendingCaps : Array < VaultPendingCap > ;
29653066 /** A vault V1 is promoted via internal, manual review. */
29663067 promoted : Scalars [ "Boolean" ] [ "output" ] ;
@@ -2970,7 +3071,6 @@ export type Vault = {
29703071 riskAnalysis : Array < RiskAnalysis > ;
29713072 state : Maybe < VaultState > ;
29723073 symbol : Scalars [ "String" ] [ "output" ] ;
2973- /** Vault warnings */
29743074 warnings : Array < VaultWarning > ;
29753075 /**
29763076 * Weekly vault APY
@@ -3451,11 +3551,14 @@ export type VaultPendingConfig = {
34513551 __typename ?: "VaultPendingConfig" ;
34523552 decodedData : VaultPendingConfigDecodedData ;
34533553 functionName : VaultTimelockedFunctionName ;
3554+ /** Transaction hash that submitted the pending action */
3555+ txHash : Scalars [ "HexString" ] [ "output" ] ;
34543556 /** Timestamp at which the pending config can be applied */
34553557 validAt : Scalars [ "BigInt" ] [ "output" ] ;
34563558} ;
34573559
34583560export type VaultPendingConfigDecodedData =
3561+ | VaultRemoveMarketPendingData
34593562 | VaultSetCapPendingData
34603563 | VaultSetGuardianPendingData
34613564 | VaultSetTimelockPendingData ;
@@ -3643,10 +3746,17 @@ export enum VaultReallocateType {
36433746 ReallocateWithdraw = "ReallocateWithdraw" ,
36443747}
36453748
3749+ /** Vault pending market removal */
3750+ export type VaultRemoveMarketPendingData = {
3751+ __typename ?: "VaultRemoveMarketPendingData" ;
3752+ caller : Account ;
3753+ market : Maybe < Market > ;
3754+ } ;
3755+
36463756/** Vault pending cap */
36473757export type VaultSetCapPendingData = {
36483758 __typename ?: "VaultSetCapPendingData" ;
3649- market : Market ;
3759+ market : Maybe < Market > ;
36503760 /** Pending supply cap */
36513761 supplyCap : Scalars [ "BigInt" ] [ "output" ] ;
36523762} ;
@@ -3725,24 +3835,24 @@ export type VaultState = {
37253835 pendingConfigs : PaginatedVaultPendingConfig ;
37263836 /**
37273837 * Pending guardian address.
3728- * @deprecated Use `pendingTimelocks ` instead.
3838+ * @deprecated Use `pendingConfigs` with `functionName_in: [SetGuardian] ` instead.
37293839 */
37303840 pendingGuardian : Maybe < Scalars [ "Address" ] [ "output" ] > ;
37313841 /**
37323842 * Pending guardian apply timestamp.
3733- * @deprecated Use `pendingTimelocks ` instead.
3843+ * @deprecated Use `pendingConfigs` with `functionName_in: [SetGuardian] ` instead.
37343844 */
37353845 pendingGuardianValidAt : Maybe < Scalars [ "BigInt" ] [ "output" ] > ;
37363846 /** Pending owner address. */
37373847 pendingOwner : Maybe < Scalars [ "Address" ] [ "output" ] > ;
37383848 /**
37393849 * Pending timelock in seconds.
3740- * @deprecated Use `pendingTimelocks ` instead.
3850+ * @deprecated Use `pendingConfigs` with `functionName_in: [SetTimelock] ` instead.
37413851 */
37423852 pendingTimelock : Maybe < Scalars [ "BigInt" ] [ "output" ] > ;
37433853 /**
37443854 * Pending timelock apply timestamp.
3745- * @deprecated Use `pendingTimelocks ` instead.
3855+ * @deprecated Use `pendingConfigs` with `functionName_in: [SetTimelock] ` instead.
37463856 */
37473857 pendingTimelockValidAt : Maybe < Scalars [ "BigInt" ] [ "output" ] > ;
37483858 /** Quarterly Vault APY excluding rewards, before deducting the performance fee. */
@@ -3815,6 +3925,7 @@ export type VaultStateReward = {
38153925} ;
38163926
38173927export enum VaultTimelockedFunctionName {
3928+ RemoveMarket = "RemoveMarket" ,
38183929 SetCap = "SetCap" ,
38193930 SetGuardian = "SetGuardian" ,
38203931 SetTimelock = "SetTimelock" ,
@@ -3886,7 +3997,6 @@ export type VaultV2 = {
38863997 /** Total assets deposited to the vault. At the moment, interest is not virtually accrued */
38873998 totalAssetsUsd : Maybe < Scalars [ "Float" ] [ "output" ] > ;
38883999 totalSupply : Scalars [ "BigInt" ] [ "output" ] ;
3889- /** Vault V2 warnings */
38904000 warnings : Array < VaultV2Warning > ;
38914001 /** A VaultV2 is whitelisted if the curator is whitelisted and the vault passes our sanity checks. */
38924002 whitelisted : Scalars [ "Boolean" ] [ "output" ] ;
@@ -4474,11 +4584,10 @@ export type VaultV2TransferData = {
44744584 to : Scalars [ "String" ] [ "output" ] ;
44754585} ;
44764586
4477- /** Vault V2 warning */
44784587export type VaultV2Warning = {
44794588 __typename ?: "VaultV2Warning" ;
44804589 level : VaultV2WarningLevel ;
4481- metadata : Maybe < CustomMetadata > ;
4590+ metadata : Maybe < VaultV2WarningMetadata > ;
44824591 type : Scalars [ "String" ] [ "output" ] ;
44834592} ;
44844593
@@ -4489,6 +4598,11 @@ export enum VaultV2WarningLevel {
44894598 Yellow = "YELLOW" ,
44904599}
44914600
4601+ export type VaultV2WarningMetadata =
4602+ | CustomMetadata
4603+ | HighRiskAddressVaultV2WarningMetadata
4604+ | TimelockVaultV2WarningMetadata ;
4605+
44924606/** Filtering options for vault V2 warnings. AND operator is used for multiple filters, while OR operator is used for multiple values in the same filter. */
44934607export type VaultV2WarningsFilters = {
44944608 /** Filter by warning level */
@@ -4519,14 +4633,23 @@ export enum VaultVersion {
45194633 V2 = "V2" ,
45204634}
45214635
4522- /** Vault warning */
45234636export type VaultWarning = {
45244637 __typename ?: "VaultWarning" ;
45254638 level : WarningLevel ;
4526- metadata : Maybe < CustomMetadata > ;
4639+ metadata : Maybe < VaultWarningMetadata > ;
45274640 type : Scalars [ "String" ] [ "output" ] ;
45284641} ;
45294642
4643+ export type VaultWarningMetadata =
4644+ | CustomMetadata
4645+ | HighRiskAddressVaultWarningMetadata
4646+ | HighRiskAssetVaultWarningMetadata
4647+ | InvalidNameVaultWarningMetadata
4648+ | InvalidSymbolVaultWarningMetadata
4649+ | ShortTimelockVaultWarningMetadata
4650+ | UnrecognizedDepositAssetVaultWarningMetadata
4651+ | UnrecognizedMarketVaultWarningMetadata ;
4652+
45304653export enum WarningLevel {
45314654 Red = "RED" ,
45324655 Yellow = "YELLOW" ,
0 commit comments