Une application décentralisée permettant de parier de l'ETH sur un lancer de pièce, avec gains 2x en cas de victoire.
- ✨ Interface moderne et professionnelle
- 💰 Logique de paris complète (2x gain)
- 📊 Statistiques en temps réel
- 🔗 Intégration Web3 (MetaMask)
- 🎨 Design responsive et élégant
- ⚡ Smart contract optimisé
Terminal 1 : Réseau local
cd packages/foundry && yarn chainTerminal 2 : Déployer le contrat
cd packages/foundry && yarn deploy
node scripts-js/updateDeployedContracts.jsTerminal 3 : Lancer l'app
cd packages/nextjs && yarn devAllez sur http://localhost:3000 🎉
- QUICK_START.md - Lancement en 5 min
- INSTALL.md - Installation détaillée
- FIX_CONTRACT_ERROR.md - Dépannage
Frontend: React 19 + Tailwind CSS + Wagmi Smart Contract: Solidity 0.8.20 + Foundry Blockchain: Anvil (local)
node --version # v18+
yarn --version # v1.22+
forge --version # Latest- Connectez votre wallet MetaMask
- Sélectionnez un montant (0.01 - 0.5 ETH)
- Choisissez Heads 👑 ou Tails 🌙
- Cliquez "FLIP NOW"
- Gagnez 2x ou perdez votre mise
Voir FIX_CONTRACT_ERROR.md pour la solution complète.
En résumé :
- ✅ Lancez
yarn chain - ✅ Lancez
yarn deploy - ✅ Lancez
node scripts-js/updateDeployedContracts.js - ✅ Lancez
yarn dev
MIT
Bon jeu ! 🎲✨
This command deploys a test smart contract to the local network. The contract is located in packages/foundry/contracts and can be modified to suit your needs. The yarn deploy command uses the deploy script located in packages/foundry/script to deploy the contract to the network. You can also customize the deploy script.
- On a third terminal, start your NextJS app:
yarn start
Visit your app on: http://localhost:3000. You can interact with your smart contract using the Debug Contracts page. You can tweak the app config in packages/nextjs/scaffold.config.ts.
Run smart contract test with yarn foundry:test
- Edit your smart contracts in
packages/foundry/contracts - Edit your frontend homepage at
packages/nextjs/app/page.tsx. For guidance on routing and configuring pages/layouts checkout the Next.js documentation. - Edit your deployment scripts in
packages/foundry/script
Visit our docs to learn how to start building with Scaffold-ETH 2.
To know more about its features, check out our website.
We welcome contributions to Scaffold-ETH 2!
Please see CONTRIBUTING.MD for more information and guidelines for contributing to Scaffold-ETH 2.