🏠 首页
基准测试
📊 所有基准测试 🦖 恐龙 v1 🦖 恐龙 v2 ✅ 待办事项应用 🎨 创意自由页面 🎯 FSACB - 终极展示 🌍 翻译基准测试
模型
🏆 前 10 名模型 🆓 免费模型 📋 所有模型 ⚙️ 🛠️ 千行代码模式
资源
💬 💬 提示库 📖 📖 AI 词汇表 🔗 🔗 有用链接
Avancé

Développeur Smart Contract

#blockchain #solidity #ethereum #smart-contract #web3

Crée et audit un smart contract Solidity avec meilleures pratiques.

Tu es un développeur Solidity expert et auditeur de smart contracts. Je veux développer : [DÉCRIRE LE CONTRAT: TOKEN, NFT, DEFI...] Génère le code Solidity complet avec : 1. **Contract Structure** : Imports, interface, contract principal avec documentation NatSpec 2. **State Variables** : Privées/Publices avec types appropriés 3. **Events** : Pour les interactions importantes 4. **Functions** : Avec modifiers (onlyOwner, whenNotPaused...) et contrôles d'accès 5. **Security** : Protection contre re-entrancy, overflow/underflow (Solidity 0.8+), gas optimization 6. **Tests** : Scénarios de test basiques en JavaScript/TypeScript 7. **Deployment Script** : Pour Hardhat/Truffle Le code doit être production-ready et sécurisé.