From 2777eb858b0cb2018bd77508ebcd61706813d9c1 Mon Sep 17 00:00:00 2001 From: Valentin L Date: Mon, 27 Oct 2025 10:51:04 +0200 Subject: [PATCH 1/3] feat: product types details --- src/constants/productTypesDetails.ts | 57 ++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/constants/productTypesDetails.ts diff --git a/src/constants/productTypesDetails.ts b/src/constants/productTypesDetails.ts new file mode 100644 index 00000000..2dea7952 --- /dev/null +++ b/src/constants/productTypesDetails.ts @@ -0,0 +1,57 @@ +import { ProductTypes } from '../../generated/types'; + +export const DEPRECATED_PRODUCT_TYPE: Record = { + [ProductTypes.ethSlashing]: true, + [ProductTypes.liquidCollectiveEthStaking]: true, + [ProductTypes.stakewiseEthStaking]: true, + [ProductTypes.sherlockQuotaShare]: true, + [ProductTypes.unoReQuotaShare]: true, + [ProductTypes.theRetailMutual]: true, + [ProductTypes.singleProtocol]: false, + [ProductTypes.multiProtocol]: false, + [ProductTypes.custody]: true, + [ProductTypes.yieldToken]: true, + [ProductTypes.sherlockExcess]: true, + [ProductTypes.nativeProtocol]: false, + [ProductTypes.ethSlashingUmbrella]: false, + [ProductTypes.openCoverTransaction]: false, + [ProductTypes.fundPortfolio]: false, + [ProductTypes.sherlockBugBounty]: false, + [ProductTypes.deFiPass]: false, + [ProductTypes.followOn]: true, + [ProductTypes.immunefiBugBounty]: false, + [ProductTypes.nexusMutual]: false, + [ProductTypes.generalizedFundPortfolio]: false, + [ProductTypes.crypto]: false, + [ProductTypes.nativeSyndicate]: false, + [ProductTypes.spearbitCantina]: false, + [ProductTypes.leveragedLiquidation]: false, +}; + +export const PRIVATE_PRODUCT_TYPE: Record = { + [ProductTypes.ethSlashing]: true, + [ProductTypes.liquidCollectiveEthStaking]: true, + [ProductTypes.stakewiseEthStaking]: true, + [ProductTypes.sherlockQuotaShare]: true, + [ProductTypes.unoReQuotaShare]: true, + [ProductTypes.theRetailMutual]: false, + [ProductTypes.singleProtocol]: false, + [ProductTypes.multiProtocol]: false, + [ProductTypes.custody]: false, + [ProductTypes.yieldToken]: false, + [ProductTypes.sherlockExcess]: true, + [ProductTypes.nativeProtocol]: true, + [ProductTypes.ethSlashingUmbrella]: true, + [ProductTypes.openCoverTransaction]: true, + [ProductTypes.fundPortfolio]: true, + [ProductTypes.sherlockBugBounty]: true, + [ProductTypes.deFiPass]: true, + [ProductTypes.followOn]: true, + [ProductTypes.immunefiBugBounty]: true, + [ProductTypes.nexusMutual]: false, + [ProductTypes.generalizedFundPortfolio]: true, + [ProductTypes.crypto]: false, + [ProductTypes.nativeSyndicate]: true, + [ProductTypes.spearbitCantina]: true, + [ProductTypes.leveragedLiquidation]: true, +}; From e1c9c9c82384a9665e3ba33383f7d52c6ad9011e Mon Sep 17 00:00:00 2001 From: Valentin L Date: Mon, 27 Oct 2025 13:43:33 +0200 Subject: [PATCH 2/3] fix: update retail mutual flags --- src/constants/productTypesDetails.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants/productTypesDetails.ts b/src/constants/productTypesDetails.ts index 2dea7952..d26fa094 100644 --- a/src/constants/productTypesDetails.ts +++ b/src/constants/productTypesDetails.ts @@ -6,7 +6,7 @@ export const DEPRECATED_PRODUCT_TYPE: Record = { [ProductTypes.stakewiseEthStaking]: true, [ProductTypes.sherlockQuotaShare]: true, [ProductTypes.unoReQuotaShare]: true, - [ProductTypes.theRetailMutual]: true, + [ProductTypes.theRetailMutual]: false, [ProductTypes.singleProtocol]: false, [ProductTypes.multiProtocol]: false, [ProductTypes.custody]: true, @@ -34,7 +34,7 @@ export const PRIVATE_PRODUCT_TYPE: Record = { [ProductTypes.stakewiseEthStaking]: true, [ProductTypes.sherlockQuotaShare]: true, [ProductTypes.unoReQuotaShare]: true, - [ProductTypes.theRetailMutual]: false, + [ProductTypes.theRetailMutual]: true, [ProductTypes.singleProtocol]: false, [ProductTypes.multiProtocol]: false, [ProductTypes.custody]: false, From 757a87e0e72aa4215db34614f0f8b8b7592a7167 Mon Sep 17 00:00:00 2001 From: Valentin L Date: Mon, 27 Oct 2025 15:20:46 +0200 Subject: [PATCH 3/3] feat: reorder for a better visualisation --- src/constants/productTypesDetails.ts | 34 +++++++++++++++------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/constants/productTypesDetails.ts b/src/constants/productTypesDetails.ts index d26fa094..9bf8672f 100644 --- a/src/constants/productTypesDetails.ts +++ b/src/constants/productTypesDetails.ts @@ -1,24 +1,15 @@ import { ProductTypes } from '../../generated/types'; export const DEPRECATED_PRODUCT_TYPE: Record = { - [ProductTypes.ethSlashing]: true, - [ProductTypes.liquidCollectiveEthStaking]: true, - [ProductTypes.stakewiseEthStaking]: true, - [ProductTypes.sherlockQuotaShare]: true, - [ProductTypes.unoReQuotaShare]: true, - [ProductTypes.theRetailMutual]: false, [ProductTypes.singleProtocol]: false, + [ProductTypes.theRetailMutual]: false, [ProductTypes.multiProtocol]: false, - [ProductTypes.custody]: true, - [ProductTypes.yieldToken]: true, - [ProductTypes.sherlockExcess]: true, [ProductTypes.nativeProtocol]: false, [ProductTypes.ethSlashingUmbrella]: false, [ProductTypes.openCoverTransaction]: false, [ProductTypes.fundPortfolio]: false, [ProductTypes.sherlockBugBounty]: false, [ProductTypes.deFiPass]: false, - [ProductTypes.followOn]: true, [ProductTypes.immunefiBugBounty]: false, [ProductTypes.nexusMutual]: false, [ProductTypes.generalizedFundPortfolio]: false, @@ -26,19 +17,32 @@ export const DEPRECATED_PRODUCT_TYPE: Record = { [ProductTypes.nativeSyndicate]: false, [ProductTypes.spearbitCantina]: false, [ProductTypes.leveragedLiquidation]: false, -}; - -export const PRIVATE_PRODUCT_TYPE: Record = { + // Deprecated product types [ProductTypes.ethSlashing]: true, [ProductTypes.liquidCollectiveEthStaking]: true, [ProductTypes.stakewiseEthStaking]: true, [ProductTypes.sherlockQuotaShare]: true, [ProductTypes.unoReQuotaShare]: true, - [ProductTypes.theRetailMutual]: true, + [ProductTypes.custody]: true, + [ProductTypes.yieldToken]: true, + [ProductTypes.sherlockExcess]: true, + [ProductTypes.followOn]: true, +}; + +export const PRIVATE_PRODUCT_TYPE: Record = { [ProductTypes.singleProtocol]: false, [ProductTypes.multiProtocol]: false, [ProductTypes.custody]: false, [ProductTypes.yieldToken]: false, + [ProductTypes.nexusMutual]: false, + [ProductTypes.crypto]: false, + // Private product types + [ProductTypes.ethSlashing]: true, + [ProductTypes.liquidCollectiveEthStaking]: true, + [ProductTypes.stakewiseEthStaking]: true, + [ProductTypes.sherlockQuotaShare]: true, + [ProductTypes.unoReQuotaShare]: true, + [ProductTypes.theRetailMutual]: true, [ProductTypes.sherlockExcess]: true, [ProductTypes.nativeProtocol]: true, [ProductTypes.ethSlashingUmbrella]: true, @@ -48,9 +52,7 @@ export const PRIVATE_PRODUCT_TYPE: Record = { [ProductTypes.deFiPass]: true, [ProductTypes.followOn]: true, [ProductTypes.immunefiBugBounty]: true, - [ProductTypes.nexusMutual]: false, [ProductTypes.generalizedFundPortfolio]: true, - [ProductTypes.crypto]: false, [ProductTypes.nativeSyndicate]: true, [ProductTypes.spearbitCantina]: true, [ProductTypes.leveragedLiquidation]: true,