Scaffold-Stark / speedrunstark

SpeedRunStark challenges (Powered by Scaffold-Stark)
https://www.speedrunstark.com
18 stars 18 forks source link

🏗 Scaffold-Stark Challenges

Learn how to use 🏗 Scaffold-Stark to create decentralized applications on Starknet. 🚀


🚩 Challenge 0: 🎟 Simple NFT Example

🎫 Create a simple NFT to learn the basics of 🏗 scaffold-stark. You'll use Scarb to compile and Starknet.js to deploy smart contracts. Then, you'll use a template React app full of important Starknet components and hooks. Finally, you'll deploy an NFT to a public network to share with friends! 🚀

https://github.com/Scaffold-Stark/speedrunstark/tree/challenge-0-simple-nft


🚩 Challenge 1: 🔏 Decentralized Staking App

🦸 A superpower of Starknet is allowing you, the builder, to create a simple set of rules that an adversarial group of players can use to work together. In this challenge, you create a decentralized application where users can coordinate a group funding effort. If the users cooperate, the money is collected in a second smart contract. If they defect, the worst that can happen is everyone gets their money back. The users only have to trust the code. We'll learn about the "approve" pattern for ERC20s.

https://github.com/Scaffold-Stark/speedrunstark/tree/challenge-1-decentralized-staking


🚩 Challenge 2: 🏵 Token Vendor

🤖 Smart contracts are kind of like "always on" vending machines that anyone can access. Let's make a decentralized, digital currency. Then, let's build an unstoppable vending machine that will buy and sell the currency. We'll learn how contract to contract interactions work.

https://github.com/Scaffold-Stark/speedrunstark/tree/challenge-2-token-vendor


🚩 Challenge 3: 🎲 Dice Game

🎰 Randomness is tricky on a public deterministic blockchain. In this challenge you will explore creating random numbers using block hash and how that may be exploitable. Attack the dice game with your own contract by predicting the randomness ahead of time to always roll a winner!

https://github.com/Scaffold-Stark/speedrunstark/tree/challenge-3-dice-game


🚩 Challenge 4: ⚖️ Build a DEX Challenge

💵 Build an exchange that swaps ETH to tokens and tokens to ETH. 💰 This is possible because the smart contract holds reserves of both assets and has a price function based on the ratio of the reserves. Liquidity providers are issued a token that represents their share of the reserves and fees...

https://github.com/Scaffold-Stark/speedrunstark/tree/challenge-4-dex