๐ Scaffold-ETH: Gamification to mitigate ownership concentration issues
The illustrative proof of concept app gamifies the minting of an on-chain NFT, providing a speedbump to mass minting by any single actor. It accomplishes this by requiring that the player randomly draws a prime number between 1 and 100 before being able to mint a NFT. Being able to win a portion of the accumulated balance provides the risk/reward element of the game. The gameplay is designed to teach basic concepts of Ethereum and blockchain technology to new users. ๐
The smart contract
YourContract.sol
contains detailed comments regarding the relevant smart contract considerations for this build
๐ You can find the core smart contract YourContract.sol
in packages/hardhat/contracts
. You will need to update this file for your own subscrition ID (check out the constructor within the YourContract.sol
file) to make it work.
Go here (https://vrf.chain.link/) to create and manage your subscriptions (i.e. add your newly deployed smart contract to the list of consumers).
๐ฑ You will need to deploy it to Goerli to make it work
๐ Documentation
Documentation, tutorials, challenges, and many more resources, visit: docs.scaffoldeth.io
๐ฆ Other Flavors
- scaffold-eth-typescript
- scaffold-eth-tailwind
- scaffold-nextjs
- scaffold-chakra
- eth-hooks
- eth-components
- scaffold-eth-expo
- scaffold-eth-truffle
๐ญ Learning Solidity
๐ Read the docs: https://docs.soliditylang.org
๐ Go through each topic from solidity by example editing YourContract.sol
in ๐ scaffold-eth
๐ง Learn the Solidity globals and units
๐ Buidl
Check out all the active branches, open issues, and join/fund the ๐ฐ BuidlGuidl!
-
๐ซ Extend the NFT example to make a "buyer mints" marketplace
-
โ๏ธ Learn how ecrecover works
-
๐ฉโ๐ฉโ๐งโ๐ง Build a multi-sig that uses off-chain signatures
-
โ๏ธ Learn how a simple DEX works
-
๐ฆ Ape into learning!
๐ P.S.
๐ You need an RPC key for testnets and production deployments, create an Alchemy account and replace the value of ALCHEMY_KEY = xxx
in packages/react-app/src/constants.js
with your new key.
๐ฃ Make sure you update the InfuraID
before you go to production. Huge thanks to Infura for our special account that fields 7m req/day!
๐๐จ Speedrun Ethereum
Register as a builder here and start on some of the challenges and build a portfolio.
๐ฌ Support Chat
Join the telegram support chat ๐ฌ to ask questions and find others building with ๐ scaffold-eth!
๐ Please check out our Gitcoin grant too!