Skip to content

Commit 81f03d1

Browse files
committed
stylus zk projects
1 parent edf3aad commit 81f03d1

File tree

1 file changed

+14
-0
lines changed
  • packages/thirdweb/src/cli/commands/stylus

1 file changed

+14
-0
lines changed

packages/thirdweb/src/cli/commands/stylus/create.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ export async function createStylusProject() {
5858
{ title: "Airdrop ERC20", value: "airdrop20" },
5959
{ title: "Airdrop ERC721", value: "airdrop721" },
6060
{ title: "Airdrop ERC1155", value: "airdrop1155" },
61+
{ title: "ZK ERC721", value: "zk-erc721" },
62+
{ title: "ZK ERC20", value: "zk-erc20" },
6163
],
6264
message: "Select a template:",
6365
name: "projectType",
@@ -119,6 +121,18 @@ export async function createStylusProject() {
119121
newProject = spawnSync("git", ["clone", repoUrl, projectName], {
120122
stdio: "inherit",
121123
});
124+
} else if (projectType === "zk-erc721") {
125+
const repoUrl = "[email protected]:thirdweb-example/stylus-zk-erc721.git";
126+
spinner.start(`Creating new ZK ERC721 Stylus project: ${projectName}...`);
127+
newProject = spawnSync("git", ["clone", repoUrl, projectName], {
128+
stdio: "inherit",
129+
});
130+
} else if (projectType === "zk-erc20") {
131+
const repoUrl = "[email protected]:thirdweb-example/stylus-zk-erc20.git";
132+
spinner.start(`Creating new ZK ERC20 Stylus project: ${projectName}...`);
133+
newProject = spawnSync("git", ["clone", repoUrl, projectName], {
134+
stdio: "inherit",
135+
});
122136
}
123137

124138
if (!newProject || newProject.status !== 0) {

0 commit comments

Comments
 (0)