Skip to content

Commit 1e16b99

Browse files
committed
enable stylus modular contracts in explore
1 parent 5343a41 commit 1e16b99

File tree

1 file changed

+51
-1
lines changed
  • apps/dashboard/src/app/(app)/(dashboard)/explore

1 file changed

+51
-1
lines changed

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

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,62 @@ const STYLUS = {
183183
],
184184
description:
185185
"Airdrop your NFTs or tokens to a large number of recipients. Built with Arbitrum Stylus.",
186-
displayName: "Arbitrum Stylus Contracts",
186+
displayName: "Airdrop - Arbitrum Stylus",
187187
id: "stylus",
188188
name: "Stylus",
189189
showInExplore: true,
190190
isBeta: true,
191191
} satisfies ExploreCategory;
192192

193+
const MODULAR_CONTRACTS_STYLUS = {
194+
contracts: [
195+
// erc721 token
196+
[
197+
"thirdweb.eth/ERC721CoreInitializable",
198+
[
199+
"0x6453a486d52e0eb6e79ec4491038e2522a926936/StylusMintableERC721",
200+
"deployer.thirdweb.eth/BatchMetadataERC721",
201+
"0x6453a486d52e0eb6e79ec4491038e2522a926936/StylusTransferableERC721",
202+
],
203+
{
204+
description: "ERC721 NFTs that only owners can mint.",
205+
title: "Modular NFT Collection",
206+
},
207+
],
208+
// erc1155 token
209+
[
210+
"thirdweb.eth/ERC1155CoreInitializable",
211+
[
212+
"0x6453a486d52e0eb6e79ec4491038e2522a926936/StylusMintableERC1155",
213+
"deployer.thirdweb.eth/BatchMetadataERC1155",
214+
"0x6453a486d52e0eb6e79ec4491038e2522a926936/StylusTransferableERC1155",
215+
"deployer.thirdweb.eth/SequentialTokenIdERC1155",
216+
],
217+
{
218+
description: "ERC1155 NFTs that only owners can mint.",
219+
title: "Modular Edition",
220+
},
221+
],
222+
// erc20 token
223+
[
224+
"thirdweb.eth/ERC20CoreInitializable",
225+
[
226+
"0x6453a486d52e0eb6e79ec4491038e2522a926936/StylusMintableERC20",
227+
"0x6453a486d52e0eb6e79ec4491038e2522a926936/StylusTransferableERC20",
228+
],
229+
{
230+
description: "ERC20 Tokens that only owners can mint.",
231+
title: "Modular Token",
232+
},
233+
],
234+
],
235+
description:
236+
"Collection of highly customizable and upgradeable smart contracts built with the modular contracts framework.",
237+
displayName: "Modular Contracts - Arbitrum Stylus",
238+
id: "modular-contracts",
239+
name: "modular",
240+
} satisfies ExploreCategory;
241+
193242
const CATEGORIES: Record<string, ExploreCategory> = {
194243
[POPULAR.id]: POPULAR,
195244
[NFTS.id]: NFTS,
@@ -203,6 +252,7 @@ const CATEGORIES: Record<string, ExploreCategory> = {
203252
[COMMERCE.id]: COMMERCE,
204253
[STAKING.id]: STAKING,
205254
[GOVERNANCE.id]: GOVERNANCE,
255+
[MODULAR_CONTRACTS_STYLUS.id]: MODULAR_CONTRACTS_STYLUS,
206256
};
207257

208258
export function getCategory(id: string) {

0 commit comments

Comments
 (0)