From 6aef8df66a91e838ea6ac9d25992e14b4aa2fccd Mon Sep 17 00:00:00 2001 From: alexander-sei Date: Fri, 4 Apr 2025 17:37:07 +0200 Subject: [PATCH 1/4] Add EVM Contract wizard --- content/evm/_meta.js | 1 + content/evm/evm-wizard.mdx | 109 +++++++++++++++++++++++++++++ content/evm/solidity-resources.mdx | 11 +-- 3 files changed, 111 insertions(+), 10 deletions(-) create mode 100644 content/evm/evm-wizard.mdx diff --git a/content/evm/_meta.js b/content/evm/_meta.js index 17295c85..76cd5cd4 100644 --- a/content/evm/_meta.js +++ b/content/evm/_meta.js @@ -25,6 +25,7 @@ export default { 'evm-general': 'EVM (General)', 'evm-hardhat': 'EVM with Hardhat', 'evm-foundry': 'EVM with Foundry', + 'evm-wizard': 'EVM Contract Wizard', 'solidity-resources': 'Solidity Resources', 'nft-contract-tutorial': 'ERC721 (NFT) Contracts', diff --git a/content/evm/evm-wizard.mdx b/content/evm/evm-wizard.mdx new file mode 100644 index 00000000..cdfdaa98 --- /dev/null +++ b/content/evm/evm-wizard.mdx @@ -0,0 +1,109 @@ +# Using the OpenZeppelin Wizard + +## What is the OpenZeppelin Wizard? + +The OpenZeppelin Wizard is a powerful interactive tool that simplifies the creation of secure, standard-compliant smart contracts for Sei EVM. It provides a user-friendly interface for generating production-ready contract code based on OpenZeppelin's battle-tested libraries. + +## Benefits of Using the Wizard + +- **Security First**: All generated contracts use audited, industry-standard implementations +- **Time-Saving**: Eliminate boilerplate code and common setup configurations +- **Customizable**: Tailor contracts to your specific requirements through an intuitive UI +- **Educational**: Learn best practices by examining professionally structured contract code +- **Up-to-Date**: Always generates code compatible with the latest Solidity versions and standards + +## Available Contract Types + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Contract TypeDescriptionCommon Use Cases
ERC20Standard fungible tokenCryptocurrencies, utility tokens, governance tokens
ERC721Non-fungible token (NFT)Digital collectibles, art, real estate, certifications
ERC1155Multi-token standardGaming assets, mixed fungible/non-fungible collections
GovernorOn-chain governanceDAO voting systems, protocol management
CustomSpecialized contractsAccess control, payment systems, timelock functions
+
+ +## Step-by-Step Guide + +1. **Access the Wizard**: Use the embedded widget (from OpenZeppelin) below or visit [wizard.openzeppelin.com](https://wizard.openzeppelin.com/) +2. **Select Contract Type**: Choose the standard that matches your project needs (ERC20, ERC721, etc.) +3. **Configure Basic Settings**: + - Set token name and symbol + - Choose Solidity version + - Select access control mechanism (Ownable, Roles, etc.) +4. **Add Security Features**: + - Pausable functionality + - Permit extensions + - Flash minting capabilities + - Voting mechanisms +5. **Customize Token Behavior**: + - Premint options + - Burning capabilities + - Token transfer rules + - Supply management +6. **Review Generated Code**: The code updates in real-time as you make selections +7. **Copy and Implement**: Use the "Copy to clipboard" button to export your contract code +8. **Deploy**: The generated code is ready for compilation and deployment + +## Interactive OpenZeppelin Wizard + +Explore and create your custom smart contracts using the embedded wizard below: + +
+