๐ฉโ๐ซ๐จโ๐ซ Staking Course Design App
This project was created for the ETH NYC Hacakthon organized by ETH Global
The app will allow users to create courses with built-in crypto incentives!
Here's what a course created with the Staking Course Design app looks like:
- Students stake funds to get access to the course
- Students can get a share of their funds back as they complete steps of the course
- Students are issued NFTs that show they've completed a step of the course.
๐งช A course creator you can use the contracts that are created with these built-in mechanisms!
๐โโ๏ธ Quick Start
-
Prerequisites: Node (v16 LTS) plus Yarn and Git
-
Clone/fork ๐ this repo
git clone https://github.com/carletex/ethnyc-2022.git
- Install and start your ๐ทโ Hardhat chain:
cd ethnyc-2022
yarn install
yarn chain
- In a second terminal window, start your ๐ฑ frontend:
cd ethnyc-2022
yarn start
- In a third terminal window, ๐ฐ deploy your contract:
cd ethnyc-2022
yarn deploy
-
๐ฑ Open http://localhost:3000 to see the app
-
Create a new course on the Course Adim Page.
-
Once the contract(a) are deployed for a new course. Get the address of the staking course and add it to SignUpPage.jsx: The staking contract address (line 14). You will also need to add the address of the NFT Badge contract to MyBadges.jsx: The badges contract address (line 9).
-
Now students can go to the student view, signup and get started!
๐ 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
๐ Buidl
Check out all the active branches, open issues, and join/fund the ๐ฐ BuidlGuidl!
- ๐ค Follow the full Ethereum Speed Run
- ๐ Create your first NFT
- ๐ฅฉ Build a staking smart contract
- ๐ต Deploy a token and vendor
- ๐ซ Extend the NFT example to make a "buyer mints" marketplace
- ๐ฒ Learn about commit/reveal
- โ๏ธ Learn how ecrecover works
- ๐ฉโ๐ฉโ๐งโ๐ง Build a multi-sig that uses off-chain signatures
- โณ Extend the multi-sig to stream ETH
- โ๏ธ 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!