Skip to content

Commit 90535b2

Browse files
cursoragentjakeloo
andcommitted
Deprecate pre-built modular contracts from explore and documentation
Co-authored-by: jake <[email protected]>
1 parent 9f88b5c commit 90535b2

File tree

4 files changed

+66
-53
lines changed

4 files changed

+66
-53
lines changed

apps/dashboard/src/app/(app)/(dashboard)/explore/data.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ const MODULAR_CONTRACTS = {
189189
displayName: "Modular Contracts",
190190
id: "modular-contracts",
191191
name: "modular",
192+
// DEPRECATED: Modular contracts are no longer shown in explore
193+
showInExplore: false,
192194
} satisfies ExploreCategory;
193195

194196
const SUPERCHAIN = {
@@ -315,6 +317,7 @@ const SMART_WALLET = {
315317

316318
const CATEGORIES: Record<string, ExploreCategory> = {
317319
[POPULAR.id]: POPULAR,
320+
// Keep MODULAR_CONTRACTS available for existing users but deprecated from explore
318321
[MODULAR_CONTRACTS.id]: MODULAR_CONTRACTS,
319322
[SUPERCHAIN.id]: SUPERCHAIN,
320323
[NFTS.id]: NFTS,

apps/portal/src/app/contracts/explore/pre-built-modular/nft-collection/page.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ import collectionMintable from '../assets/erc721_mintable.png'
99

1010
# Deploy a modular NFT Collection contract
1111

12+
<Callout variant="warning" title="Deprecated">
13+
Pre-built modular contracts have been deprecated from the Explore section. While this documentation remains available for existing users, we recommend using [standard NFT collection contracts](/contracts/explore/pre-built-contracts/nft-collection) for new deployments.
14+
</Callout>
15+
1216
The NFT Collection contract creates a unique collection of NFTs based on the ERC-721A standard. NFTs are minted to the creator’s wallet as they are added to the collection. NFTs are still transferable, able to be sold on a marketplace, and perform any other actions as defined by ERC-721A.
1317

1418
For advanced use-cases requiring , NFT Collection includes signature-based minting capabilities.

apps/portal/src/app/contracts/explore/pre-built-modular/token/page.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ import tokenTransferable from '../assets/erc20_transferable.png'
1010

1111
# Deploy a modular Token Contract
1212

13+
<Callout variant="warning" title="Deprecated">
14+
Pre-built modular contracts have been deprecated from the Explore section. While this documentation remains available for existing users, we recommend using [standard token contracts](/contracts/explore/pre-built-contracts/token) for new deployments.
15+
</Callout>
16+
1317
The modular Token contract creates digital currencies and is compliant with the ERC-20 standard. This contract defines a common set of
1418
rules for tokens including how they can be transferred, how transactions are approved, and how data about token balances is accessed.
1519

apps/portal/src/app/contracts/sidebar.tsx

Lines changed: 55 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -56,54 +56,56 @@ export const sidebar: SideBar = {
5656
href: "/contracts/explore/overview",
5757
name: "Overview",
5858
},
59-
{
60-
links: [
61-
{
62-
links: [
63-
{
64-
href: `${prebuiltModular}/token`,
65-
name: "Token",
66-
},
67-
{
68-
href: `${prebuiltModular}/token-drop`,
69-
name: "Token Drop",
70-
},
71-
],
72-
name: "ERC-20",
73-
},
74-
{
75-
links: [
76-
{
77-
href: `${prebuiltModular}/nft-collection`,
78-
name: "NFT Collection",
79-
},
80-
{
81-
href: `${prebuiltModular}/nft-drop`,
82-
name: "NFT Drop",
83-
},
84-
{
85-
href: `${prebuiltModular}/open-edition`,
86-
name: "Open Edition",
87-
},
88-
],
89-
name: "ERC-721",
90-
},
91-
{
92-
links: [
93-
{
94-
href: `${prebuiltModular}/edition`,
95-
name: "Edition",
96-
},
97-
{
98-
href: `${prebuiltModular}/edition-drop`,
99-
name: "Edition Drop",
100-
},
101-
],
102-
name: "ERC-1155",
103-
},
104-
],
105-
name: "Pre-built Modular",
106-
},
59+
// DEPRECATED: Pre-built Modular contracts have been deprecated from explore
60+
// Keeping framework documentation available but removing pre-built contract references
61+
// {
62+
// links: [
63+
// {
64+
// links: [
65+
// {
66+
// href: `${prebuiltModular}/token`,
67+
// name: "Token",
68+
// },
69+
// {
70+
// href: `${prebuiltModular}/token-drop`,
71+
// name: "Token Drop",
72+
// },
73+
// ],
74+
// name: "ERC-20",
75+
// },
76+
// {
77+
// links: [
78+
// {
79+
// href: `${prebuiltModular}/nft-collection`,
80+
// name: "NFT Collection",
81+
// },
82+
// {
83+
// href: `${prebuiltModular}/nft-drop`,
84+
// name: "NFT Drop",
85+
// },
86+
// {
87+
// href: `${prebuiltModular}/open-edition`,
88+
// name: "Open Edition",
89+
// },
90+
// ],
91+
// name: "ERC-721",
92+
// },
93+
// {
94+
// links: [
95+
// {
96+
// href: `${prebuiltModular}/edition`,
97+
// name: "Edition",
98+
// },
99+
// {
100+
// href: `${prebuiltModular}/edition-drop`,
101+
// name: "Edition Drop",
102+
// },
103+
// ],
104+
// name: "ERC-1155",
105+
// },
106+
// ],
107+
// name: "Pre-built Modular",
108+
// },
107109
{
108110
links: [
109111
{
@@ -448,11 +450,11 @@ export const sidebar: SideBar = {
448450
href: `${buildSlug}/get-started`,
449451
name: "Get Started",
450452
},
451-
// modular contracts
452-
{
453-
href: `${buildSlug}/modular-contracts`,
454-
name: "Modular Contracts",
455-
},
453+
// DEPRECATED: Modular contracts deprecated from build section
454+
// {
455+
// href: `${buildSlug}/modular-contracts`,
456+
// name: "Modular Contracts",
457+
// },
456458
// base contracts
457459
{
458460
href: `${baseContractsSlug}`,

0 commit comments

Comments
 (0)