Description
Stylide is an open-source, lightweight IDE designed for developing Rust-based Stylus contracts on Arbitrum. Traditionally, a CLI is used for interacting with and deploying Stylus contracts, requiring extensive installation of Rust and other libraries. Stylide abstracts these complexities away, focusing entirely on Stylus contract development for smart contract developers. By deploying a contract using Stylide, developers can compile it to generate WASM and transactional data, which are then used to deploy the contracts with MetaMask. Additionally, developers also activate the contract programs and generate the ABI for the contract all within the IDE.
Motivation
Developers often face significant challenges when setting up environments for writing, compiling, and deploying Stylus contracts, especially given that Stylus is a new language. The need for extensive installations and complex configurations can be a learning curve with those learning Rust, deterring new users and slowing development progress. The novelty of Stylus can hinder the adoption and innovation of Stylus-based contracts.
Solution
Stylide addresses this challenge by providing an accessible environment that simplifies the development process, allowing developers to focus on creating and deploying high-quality Stylus contracts. Its simple UI and integration with popular tools like MetaMask facilitate interaction with Stylus-based blockchains such as Arbitrum, and can support other Stylus based blockchains. Stylide’s ease of use makes it ideal for workshops and tutorials, helping developers quickly grasp Stylus programming concepts and deploy contracts effortlessly. By lowering entry barriers and simplifying development, Stylide accelerates the adoption of Stylus technology within the blockchain space.
Stylus contract (0x76D4408E24954d50380914F6CB90d6430ee829e3) deployed with Stylide
By default, Stylide loads the Counter Contract, but it also offers an easy way to import contracts directly from GitHub. For example, import the Stylus ERC20 Contract from Offchain Labs Github Repo like the provided link.
https://stylus.solide0x.tech/?url=https://github.com/OffchainLabs/stylus-sdk-rs/tree/stylus/examples/erc20
And just like any IDE, Stylide allows developers to create, build, and deploy contracts using MetaMask or other Stylus-compatible chains. Interact with contracts directly from the browser by supplying the ABI either manually or via API.
Stylus contract deployed, activated and invoked on Sepolia using Stylide
If the user would like to use the compiled contract elsewhere, then download WASM or the contract itself.
Stylide is a public good and the project aims to advance the development of Stylus within the Arbitrum ecosystem. Within our smart contract hub app, it enables the exploration of different Stylus contracts by providing comprehensive documentation and guides. Developers can easily access various Stylus contract examples and resources, facilitating a smoother learning curve and a more efficient development process. Starting exploring now!
Arbitrum's Knowledge Hub, over 200+ contracts (both Solidity and Stylus) from Arbitrum and its ecosystem and protocols
Resources
If you'd like to support Stylide, give the repos a ⭐:
- Stylide: IDE
- Stylide Source Code: GitHub Repository
- Documentation: Stylide Documentation
Stylide History
-
accepted into GG21: Thriving Arbitrum Summer 1 month ago.