Workspace
Overview of the Workspace Interface
Work Space Navigation Panel
Located on the left-hand side, this panel provides quick navigation between the following key actions:
Work Space: The main area where you define and customize your smart contract.
Compile: Allows you to compile the smart contract to identify syntax or logical errors.
Deploy: Facilitates the deployment of the compiled contract to the blockchain.
Contract Categories
At the top of the workspace, you can choose from various contract types:
ERC20: For creating fungible tokens.
ERC721: For creating non-fungible tokens (NFTs).
ERC1155: For multi-token standards.
Stablecoin: For creating pegged assets.
Real-World Asset: For tokenizing tangible assets.
Governor: For building governance contracts.
Custom: For creating custom smart contracts.
Settings Panel
Located on the left side of the workspace, this section allows you to customize your smart contract with various options:
Name and Symbol: Specify the token's name and symbol (e.g., "My Token," "MTK").
Pre-mint: Define the initial supply of tokens to be minted upon contract creation.
Features:
Mintable: Enables token minting after deployment.
Burnable: Allows token holders to burn (destroy) tokens.
Pausable: Adds the ability to pause contract functionality in certain scenarios.
Permit: Enables gasless approvals using EIP-2612.
Flash Minting: Supports flash loans with immediate repayment.
Voting Options:
Block Number: Voting based on blockchain block numbers.
Timestamp: Voting based on timestamps.
Access Control:
Ownable: Grants ownership-based access control.
Roles: Enables role-based permissions for contract management.
Managed: Allows for advanced management of contract functionalities.
Upgradeability: Adds support for upgradable contracts.
Code Editor
The central area displays the generated Solidity code based on the selected options in the settings panel.
Users can preview, edit, or copy the code for further modifications.
The editor includes comments and import statements for necessary libraries like
ERC20
andERC20Permit
.
Download Button
Located in the top-right corner, the "Download" button lets you export the generated Solidity code file for external use.
Step-by-Step Guide to Using the Workspace
Choose a Contract Type
Select the desired contract type (e.g., ERC20) from the tabs at the top.
Configure Contract Settings
Enter the Name and Symbol for your token.
Adjust additional settings like pre-minting, mintability, burnability, and more, depending on your use case.
Customize Access Control and Voting
Enable access control mechanisms such as ownership or roles.
Configure voting mechanisms based on block numbers or timestamps if applicable.
Preview and Edit the Code
Review the generated Solidity code in the editor.
Make manual changes if necessary to meet advanced or unique requirements.
Download the Code
Once satisfied with the contract, click the "Download" button to save the Solidity file for further compilation or deployment.
Last updated