Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update reference - Main #130

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,38 @@

🎫 Create a simple NFT to learn the basics of 🏗 scaffold-stark. You'll use [Scarb](https://docs.swmansion.com/scarb/) to compile and [Starknet.js](https://www.starknetjs.com/) 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/Quantum3-Labs/speedrunstark/tree/challenge-0-simple-nft>
<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/Quantum3-Labs/speedrunstark/tree/challenge-1-decentralized-staking>
<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/Quantum3-Labs/speedrunstark/tree/challenge-2-token-vendor>
<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/Quantum3-Labs/speedrunstark/tree/challenge-3-dice-game>
<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/Quantum3-Labs/speedrunstark/tree/challenge-4-dex>
<https://github.com/Scaffold-Stark/speedrunstark/tree/challenge-4-dex>

---
6 changes: 3 additions & 3 deletions packages/nextjs/app/challenge/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ const PageView: React.FC = () => {
useEffect(() => {
const getMarkdown = async () => {
const response = await fetch(
`https://raw.githubusercontent.com/Quantum3-Labs/speedrunstark/${id}/README.md`,
`https://raw.githubusercontent.com/Scaffold-Stark/speedrunstark/${id}/README.md`,
);
let markdownData = await response.text();

const baseUrl = `https://raw.githubusercontent.com/Quantum3-Labs/speedrunstark/${id}/`;
const baseUrl = `https://raw.githubusercontent.com/Scaffold-Stark/speedrunstark/${id}/`;
markdownData = markdownData.replace(
/!\[(.*?)\]\((?!https?)(.*?)\)/g,
`![$1](${baseUrl}$2)`,
Expand All @@ -33,7 +33,7 @@ const PageView: React.FC = () => {

const handleClick = () => {
window.open(
`https://github.com/Quantum3-Labs/speedrunstark/tree/${id}`,
`https://github.com/Scaffold-Stark/speedrunstark/tree/${id}`,
"_blank",
);
};
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const Footer = () => {
<div className="flex justify-center items-center gap-2 text-sm w-full sm:text-[12px]">
<div className="text-center">
<a
href="https://github.com/Quantum3-Labs/scaffold-stark-2"
href="https://github.com/Scaffold-Stark/scaffold-stark-2"
target="_blank"
rel="noreferrer"
className="link"
Expand Down
Loading