Stylus Modular Contracts: Mintable and Transferable Modules

Stylus Modular Contracts: Mintable and Transferable Modules

We have added support for creating and deploying modular contracts with Stylus. Users can now install rust based modules into the original solidity based modular contracts as described in the main design doc.

This plug-n-play model also allows users to write their own custom minting logic in rust, taking advantage of Stylus' interoperability and gas savings. These modules work with existing router contracts and modules written in solidity.

What's new?

| Learn how to deploy and interact with Stylus contracts through thirdweb documentation.

Deploy through dashboard

Here's a quick overview of how to deploy and setup your modular contracts via thirdweb dashboard.

  • Navigate to thirdweb explore page and select one of the core contracts to use. For e.g. Modular NFT Collection:
  • Once you have deployed one of these contracts, the modules come pre-installed, both solidity and rust ones.
  • If you wish to install / uninstall, navigate to modules tab on your contract page:

In addition, you can also write your own modules in rust and deploy / publish those using thirdweb CLI.

Additional Resources

Support

Need help? Please reach out to our support team