-
Notifications
You must be signed in to change notification settings - Fork 619
Stylus modules #8383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Stylus modules #8383
Changes from 7 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7b09d75
Deploy and install stylus modules
kumaryash90 19378f5
changeset
kumaryash90 5343a41
compatibility
kumaryash90 1e16b99
enable stylus modular contracts in explore
kumaryash90 4bb0d43
show in explore, beta
kumaryash90 02bc9f0
cli templates for creating rust modules
kumaryash90 b75c9b3
Merge branch 'main' into yash/stylus-deploy-modules
kumaryash90 883c575
fix dynamic contract tests
kumaryash90 6e931b2
Merge branch 'main' of github.com:thirdweb-dev/js into yash/stylus-de…
kumaryash90 6bae339
Merge branch 'yash/stylus-deploy-modules' of github.com:thirdweb-dev/…
kumaryash90 26c090d
docs
kumaryash90 16fc56d
lint
kumaryash90 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "thirdweb": patch | ||
| --- | ||
|
|
||
| deploy and install stylus modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,6 +60,12 @@ export async function createStylusProject() { | |
| { title: "Airdrop ERC1155", value: "airdrop1155" }, | ||
| { title: "ZK ERC721", value: "zk-erc721" }, | ||
| { title: "ZK ERC20", value: "zk-erc20" }, | ||
| { title: "Mint module - ERC20", value: "mintable20" }, | ||
| { title: "Transfer module - ERC20", value: "transferable20" }, | ||
| { title: "Mint module - ERC721", value: "mintable721" }, | ||
| { title: "Transfer module - ERC721", value: "transferable721" }, | ||
| { title: "Mint module - ERC1155", value: "mintable1155" }, | ||
| { title: "Transfer module - ERC1155", value: "transferable1155" }, | ||
| ], | ||
| message: "Select a template:", | ||
| name: "projectType", | ||
|
|
@@ -133,6 +139,49 @@ export async function createStylusProject() { | |
| newProject = spawnSync("git", ["clone", repoUrl, projectName], { | ||
| stdio: "inherit", | ||
| }); | ||
| } else if (projectType === "mintable20") { | ||
| const repoUrl = "[email protected]:thirdweb-example/stylus-mintable-erc20.git"; | ||
| spinner.start(`Creating new ERC20 Mintable module: ${projectName}...`); | ||
| newProject = spawnSync("git", ["clone", repoUrl, projectName], { | ||
| stdio: "inherit", | ||
| }); | ||
| } else if (projectType === "transferable20") { | ||
| const repoUrl = | ||
| "[email protected]:thirdweb-example/stylus-transferable-erc20.git"; | ||
| spinner.start(`Creating new ERC20 Transferable module: ${projectName}...`); | ||
| newProject = spawnSync("git", ["clone", repoUrl, projectName], { | ||
| stdio: "inherit", | ||
| }); | ||
| } else if (projectType === "mintable721") { | ||
| const repoUrl = | ||
| "[email protected]:thirdweb-example/stylus-mintable-erc721.git"; | ||
| spinner.start(`Creating new ERC721 Mintable module: ${projectName}...`); | ||
| newProject = spawnSync("git", ["clone", repoUrl, projectName], { | ||
| stdio: "inherit", | ||
| }); | ||
| } else if (projectType === "transferable721") { | ||
| const repoUrl = | ||
| "[email protected]:thirdweb-example/stylus-transferable-erc721.git"; | ||
| spinner.start(`Creating new ERC721 Transferable module: ${projectName}...`); | ||
| newProject = spawnSync("git", ["clone", repoUrl, projectName], { | ||
| stdio: "inherit", | ||
| }); | ||
| } else if (projectType === "mintable1155") { | ||
| const repoUrl = | ||
| "[email protected]:thirdweb-example/stylus-mintable-erc1155.git"; | ||
| spinner.start(`Creating new ERC1155 Mintable module: ${projectName}...`); | ||
| newProject = spawnSync("git", ["clone", repoUrl, projectName], { | ||
| stdio: "inherit", | ||
| }); | ||
| } else if (projectType === "transferable1155") { | ||
| const repoUrl = | ||
| "[email protected]:thirdweb-example/stylus-transferable-erc1155.git"; | ||
| spinner.start( | ||
| `Creating new ERC1155 Transferable module: ${projectName}...`, | ||
| ); | ||
| newProject = spawnSync("git", ["clone", repoUrl, projectName], { | ||
| stdio: "inherit", | ||
| }); | ||
kumaryash90 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| if (!newProject || newProject.status !== 0) { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.