๐คฉ Try on Rinkeby
- Unlike the starter code in the scaffold-eth-challenges repo, this one is based on a recent Scaffold Eth master (10 dec 2021)
- this app offers more than the core staker contract functionality
- users can create custom staker contracts and interact with them
- It is possible to withdraw for others because the challenge required it, but I personally wouldn't allow it in production (see contract comments for why).
- There is a countdown timer which only updates on new blocks. Time left until deadline is only read from contract and depends on current block. UX not optimal this way.
- => if you try this locally keep in mind that new blocks are only mined if necessary. You can use the faucet to produce new blocks.
everything you need to build on Ethereum! ๐
๐งช Quickly experiment with Solidity using a frontend that adapts to your smart contract:
Prerequisites: Node plus Yarn and Git
clone/fork ๐ scaffold-eth:
git clone https://github.com/scaffold-eth/scaffold-eth.git
install and start your ๐ทโ Hardhat chain:
cd scaffold-eth
yarn install
yarn chain
in a second terminal window, start your ๐ฑ frontend:
cd scaffold-eth
yarn start
in a third terminal window, ๐ฐ deploy your contract:
cd scaffold-eth
yarn deploy
๐ You need an RPC key for production deployments/Apps, create an Alchemy account and replace the value of ALCHEMY_KEY = xxx
in packages/react-app/src/constants.js
๐ Edit your smart contract YourContract.sol
in packages/hardhat/contracts
๐ Edit your frontend App.jsx
in packages/react-app/src
๐ผ Edit your deployment scripts in packages/hardhat/deploy
๐ฑ Open http://localhost:3000 to see the app
To deploy this project to Gitpod, click this button:
Documentation, tutorials, challenges, and many more resources, visit: docs.scaffoldeth.io
๐ 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
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!
Join the telegram support chat ๐ฌ to ask questions and find others building with ๐ scaffold-eth!
๐ Please check out our Gitcoin grant too!