Entire course and video content updated June 15, 2024
Blockchain Developer, Smart Contract, & Solidity Career Path - Powered By AI - Beginner to Expert Course
| Foundry Edition 2024 |
Learn smart contract development, and level up your career
Welcome to the repository for the Blockchain Developer, Smart Contract, & Solidity Cyfrin Updraft - Career Path
| Powered By AI |
| Beginner to Expert Path |
| Foundry Edition 2024 |
This repository houses course resources and discussions for the course.
Please refer to this for an in-depth explanation of the content:
- Website - Join Cyfrin Updraft and enjoy 50+ hours of smart contract development courses
- Twitter - Stay updated with the latest course releases
- LinkedIn - Add Updraft to your learning experiences
- Discord - Join a community of 3000+ developers and auditors
- Newsletter - Weekly security research tips and resources to level up your career
- Codehawks - Smart contracts auditing competitions to help secure web3
Sections 0 - 6 | Sections 7 - 11 | Sections 12 - 15 |
---|---|---|
Cyfrin Updraft Courses:
- Cyfrin Updraft - Blockchain basics
- Cyfrin Updraft - Solidity basics
- Cyfrin Updraft - Foundry Fundamentals
- Cyfrin Updraft - Advanced Foundry
YouTube Playlist of each section
All the sections for on this repo are for several courses on the Solidity Developer Career path of Cyfrin Updraft.
Resources
Section 1: Blockchain Basics
- What is a Blockchain? What does a blockchain do?
- The Purpose Of Smart Contracts
- Other Blockchain Benefits
- What have Smart Contracts done so far?
- Making Your First Transaction
- Gas I: Introduction to Gas
- How Do Blockchains Work?
- Signing Transactions
- Gas II
- Gas II Summary
- High-Level Blockchain Fundamentals
- L1s L2s and Rollups
- Rollup Stages
- Making your First Transaction on zkSync
- Why zkSync is our Recommended Chain
Section 4: Remix Fund Me
- Introduction
- Setup
- Sending ETH through a function
- Reverts
- Getting real world price data (Chainlink)
- Quick recap I
- Interfaces
- AI Help III
- Importing from NPM / GitHub
- Getting Prices from Chainlink
- More solidity math
- msg.sender
- Quick recap II
- Library
- SafeMath
- For Loop
- Resetting an array
- Transfer, Send, and Call
- Constructor
- Modifiers
- Testnet Demo
- Advanced Solidity
- Section 4 Recap
Section 6: Foundry Simple Storage
- Introduction
- Installation & Setup (MacOS & Linux)
- Local Development Introduction
- Foundry Install
- VSCode Setup II
- Foundry Setup
- Formatting Solidity in VSCode
- Compiling in Foundry
- Deploying to a local chain I (Anvil or Ganache)
- Adding another network to metamask
- Deploying to a local chain II (Forge Create)
- Private Key Rant I
- Deploying to a local chain III (Forge Script)
- What is a transaction (But actually)
- Private Key Rant II
- Can you Encrypt a Private Key -> a keystore in foundry yet??
- ThirdWeb Deploy
- Private Key Rant Summary:
- Cast Send
- Deploying to a testnet or a mainnet
- Verifying a contract the manual way
- Cleaning up the project
- Alchemy and the mempool
- Summary
Section 7: Foundry Fund Me
- Introduction
- Setup
- Testing Introduction
- Setup Continued
- Tests
- Debugging Tests I
- Advanced Deploy Scripts I
- Forked Tests
- Refactoring I: Testing Deploy Scripts
- Refactoring II: Helper Config
- Refactoring III: Mocking (continued)
- Magic Numbers
- Break time!
- More Cheatcodes
- More Coverage
- Chisel
- Gas: Cheaper Withdraw
- Storage
- Gas: Cheaper Withdraw (continued)
- Interactions.s.sol
- Makefile
- Pushing to GitHub
- Recap
Section 9: Foundry Smart Contract Lottery
- Introduction
- Raffle.sol Setup
- Solidity Contract Layout
- Custom Errors
- Events
- block.timestamp
- Chainlink VRF
- Implementing Chainlink VRF - Introduction
- Modulo
- Enum
- Resetting an array
- Note on building
- CEI
- Introduction to Chainlink Automation
- Implementing Chainlink Keepers - checkUpkeep
- Implementing Chainlink Keepers - checkUpkeep continued
- Implementing Chainlink Keepers - performUpkeep
- Mid-Section Recap
- Tests & Deploy Script Setup
- Tests & Deploy Script Continued
- Lots of Tests
- Create Subscription Script
- Create Subscription from the UI
- Fund Subscription Script
- Add Consumer Script
- More Tests
- PerformUpkeep Tests
- Getting Event Data into Foundry Scripts
- Intro to Fuzz tests
- One Big Test
- Passing the private key to vm.startBroadcast
- Integrations Test
- Testnet Demo - Makefile setup
- Testnet Demo - The Demo
- Console.log Debugging
- forge test --debug
- Recap
Section 11: Foundry NFTs | MoodNFT
- Introduction
- What is an NFT?
- Foundry Setup
- IPFS
- Using IPFS
- Basic NFT: Deploy Script
- Basic NFT: Tests
- Basic NFT: Interactions
- Basic NFT: Testnet Demo
- The issue with IPFS & HTTPS TokenURI NFTs
- What is an SVG?
- SVG NFT: Introduction
- SVG NFT: Encoding the NFT
- SVG NFT: Flipping the mood
- SVG NFT: Deploy Script
- SVG NFT: Debugging practice & some notes
- SVG NFT: Anvil Demo
- Advanced: EVM Opcodes, Encoding, and Calling
- Verifying Metamask Transactions
- Filecoin & Arweave
- Section 11 Recap
Section 12: Foundry DeFi | Stablecoin (The PINNACLE PROJECT!! GET HERE!)
- What is DeFi?
- Code Walkthrough
- What is a stablecoin (But actually)
- DecentralizedStableCoin.sol
- DSCEngine.sol Setup
- Deposit Collateral
- Mint DSC
- Testing while developing
- depositCollateralAndMintDsc
- redeemCollateral
- Liquidate
- Leveling up your testing skillz
- Fuzz (Invariant) Testing
- Open-based Fuzz tests
- Handler-based Fuzz tests
- Price Feed Handling
- OracleLib
- Note on audit preparedness
- Recap
- Lens Protocol
Section 13: Foundry Merkle Airdrop and Signatures
- Introduction to Merkle Airdrops and Code Walkthrough
- Project Setup
- Merkle Proofs
- Base Airdrop Contract
- Already Claimed Check
- Merkle Tree Scripts
- Writing the Tests
- Deployment Script
- Adding Signature Verification
- Signature Standards
- ECDSA Signatures
- Transaction Types Introduction
- Transaction Types
- Blob Transactions
- Type 113 Transactions
- Implementing Signatures
- Modifying the Tests
- Test on zkSync (optional)
- Create Claiming Script
- Creating a Signature
- Splitting a Signature
- Executing the Anvil Script
- Deploy and Claim on zkSync Local Node
- Deploy and Claim on zkSync Sepolia
- Summary
- Recommended Testnet: Sepolia
- Recommended DevOps: foundry-devops
- Main (Sepolia): Sepolia GCP Faucet
- Alchemy Faucet (Sepolia): https://sepoliafaucet.com/
- Infura Faucet (Sepolia): https://www.infura.io/faucet/sepolia
- zkSync Faucets (zkSync Sepolia): https://docs.zksync.io/build/tooling/network-faucets.html
- zkSync Bridge: https://portal.zksync.io/bridge/
⚠️ All code associated with this course is for demo purposes only. They have not been audited and should not be considered production ready. Please use at your own risk.
- AI Frens
- ChatGPT
- Just know that it will often get things wrong, but it's very fast!
- Phind
- Like ChatGPT, but it searches the web
- Bard
- Other AI extensions
- ChatGPT
- Github Discussions
- Ask questions and chat about the course here!
- Stack Exchange Ethereum
- Great place for asking technical questions about Ethereum
- Peeranha
- Decentralized Stack Exchange!
- Cookbook
- A smart contract registry and co-pilot
These are 100% optional to do.
After every section, in this GitHub repo will be a link to a contract on Sepolia or zkSync. They contain a challenge for you to solve, and in return, you'll be given an AWESOME NFT.
IF YOU DECIDE TO MINT THE REAL NFT:
- We didn't audit the NFT, so if you want to make sure you'll be safe, interact with the contract using a burner wallet (a wallet with very little money that you don't use for anything else)
- In fact... Get good at interacting with wallets from a burner wallet
- Read my Tweet thread on basic wallet safety
- It might be a good idea to wait till later in the course when we teach you about verifying metamask transactions.
- Feel free to mint NFTs on sepolia without worrying about the above
- The process for bridging looks like the following:
- Send ETH -> one of your wallets like:
- Use the zkSync Bridge
⭐️ (0:00:00) | Section 0: Welcome!
- Follow the repository: While going through the course be 100% certain to follow along with the github repository. If you run into an issue check the chronological-updates in the repo.
- Be Active in the community: Ask questions and engage with other developers going through the course in the discussions tab, be sure to go and say hello or gm! This space is different from the other industries, you don't have to be secretive; communicate, network and learn with others :)
- Learn at your own pace: It doesn't matter if it takes you a day, a week, a month or even a year. Progress >>> Perfection
- Take Breaks: You will exhaust your mind and recall less if you go all out and watch the entire course in one sitting. Suggested Strategy every 25 minutes take a 5 min break, and every 2 hours take a longer 30 min break
- Refer to Documentation: Things are constantly being updated, so whenever Patrick opens up some documentation, open it on your end and maybe even have the code sample next to you.
- Use ChatGPT and/or the course chat
(back to top) ⬆️
⭐️ (0:13:54) | Section 1: Blockchain Basics
- Bitcoin Whitepaper
- Ethereum Whitepaper
- What is a Smart Contract?
- Nick Szabo
- Hybrid Smart Contracts
- Blockchain Oracles
- Terminology
- Web3
- What is a blockchain
⌨️ (0:24:26) | The Purpose Of Smart Contracts
- 🎥 Original Video
- 🦬 My ETH Denver Talk
- 🍔 McDonalds Scandal
- ⛓ More on the evolution of agreements
- ✍️ What is a Smart Contract?
- 🧱 How does a blockchain work?
- 🔮 Chainlink & Oracles
⌨️ (0:39:53) | Other Blockchain Benefits
- Decentralized
- Transparency & Flexibility
- Speed & Efficiency
- Security & Immutability
- Counterparty Risk Removal
- Trust Minimized Agreements
⌨️ (0:44:20) | What have Smart Contracts done so far?
⌨️ (0:46:55) | Making Your First Transaction
- Metamask Download Link
- Etherscan
- Sepolia Etherscan
- Sepolia Faucet (Check the link token contracts page)
- NOTE: The Chainlink documentation always has the most up to date faucets on their link token contracts page. If the faucet above is broken, check the chainlink documentation for the most up to date faucet.
- OR, use the Sepolia ETH Faucet, just be sure to swap your metamask to Sepolia!
⌨️ (1:06:16) | Gas I: Introduction to Gas
⌨️ (1:15:39) | How Do Blockchains Work?
⌨️ (1:33:09) | Signing Transactions
- Block Rewards
- Advanced Gas
- EIP 1559
- GWEI, WEI, and ETH
⌨️ (1:51:36) | High-Level Blockchain Fundamentals
(back to top) ⬆️
💻 Code: https://github.com/cyfrin/remix-simple-storage-cu
⭐️ (2:10:42) | Section 2: Welcome to Remix - Simple Storage
⌨️ (2:16:40) | Setting Up Your First Contract
- Versioning
- Take notes in your code!
- What is a software license
- SPDX License
- Compiling
- Contract Declaration
⌨️ (2:24:09) | Basic Solidity Types
- Types & Declaring Variables
uint256
,int256
,bool
,string
,address
,bytes32
- Solidity Types
- Bits and Bytes
- Default Initializations
- Comments
⌨️ (2:31:57) | Basic Solidity Functions
- Functions
- Deploying a Contract
- Smart Contracts have addresses just like our wallets
- Calling a public state-changing Function
- Visibility
- Gas III | An example
- Scope
- View & Pure Functions
⌨️ (2:51:29) | Basic Solidity Arrays & Structs
- Structs
- Intro to Storage
- Arrays
- Dynamic & Fixed Sized
push
array function
⌨️ (3:03:31) | Basic Solidity Errors & Warnings
- Yellow: Warnings are Ok
- Red: Errors are not Ok
⌨️ (3:08:13) | Basic Solidity Memory, Storage, & Calldata (Intro)
- 6 Places you can store and access data
- calldata
- memory
- storage
- code
- logs
- stack
⌨️ (3:14:37) | Basic Solidity Mappings
⌨️ (3:17:46) | Deploying your First Contract
- A testnet or mainnet
- Connecting Metamask
- Find faucets here!
- See the faucets at the top of this readme!
- Interacting with Deployed Contracts
- zkSync compiler edition: 0.8.24
⌨️ (3:27:07) | The EVM & A Recap of Section 2
- The EVM
(back to top) ⬆️
💻 Code: https://github.com/cyfrin/remix-storage-factory-cu
⭐️ (3:29:58) | Section 3 | Storage Factory
⌨️ (3:41:30) | Importing Contracts into other Contracts
⌨️ (3:52:49) | Interacting with other contracts
- To interact, you always need: ABI + Address
- ABI
⌨️ (4:00:44) | Inheritance & Overrides
⌨️ (4:07:37) | Section 3 Recap
(back to top) ⬆️
💻 Code: https://github.com/Cyfrin/remix-fund-me-cu
⭐️ (4:09:08) | Section 4 | Fund Me
⌨️ (4:14:00) | Sending ETH through a function
- Ethereum Unit Converter
- Fields in a Transaction
- More on v,r,s
- payable
- msg.value & Other global keywords
- require
- revert
⌨️ (4:22:06) | Getting real world price data (Chainlink)
- What is a blockchain oracle?
- What is the oracle problem?
- Chainlink
- Chainlink Price Feeds (Data Feeds)
- Chainlink VRF
- Chainlink Keepers
- Chainlink API Calls
- Importing Tokens into your Metamask
- Request and Receive Chainlink Model
- For reference - ChainLink Interface's Repo
⌨️ (4:46:03) | Importing from NPM / GitHub
⌨️ (4:48:07) | Getting Prices from Chainlink
⌨️ (4:52:00) | More Solidity math
- Multiply before you divide
- tuple
- Floating Point Numbers in Solidity
- Type Casting
- Gas Estimation Failed
- Someone should make an article explaining this error
- msg.sender
- named mappings
- For Loop
/* */
is another way to make comments
⌨️ (5:15:32) | Resetting an array
⌨️ (5:16:32) | Transfer, Send, and Call
⌨️ (5:34:01) | Advanced Solidity
⌨️ (5:34:53) | Immutable & Constant
- Immutable
- Constant
- Current ETH Gas Prices
- Don't stress about gas optimizations! (yet)
- Naming Conventions
⌨️ (5:44:56) | Receive & Fallback Functions
⌨️ (5:57:10) | Section 4 Recap
(back to top) ⬆️
DO NOT SKIP THIS!!
⭐️ (6:00:00) | Section 5 | AI Prompting
⌨️ (6:12:57) | Setting up GitHub
⌨️ (6:14:24) | Formatting a question
- It's a good idea to ask your AI buddy to format your questions in markdown *
⌨️ (6:19:58) | SpeedRunEthereum
- Special Guest Austin
(back to top) ⬆️
💻 Code: https://github.com/Cyfrin/foundry-simple-storage-cu
⭐️ (6:23:59) | Section 6 | Foundry Simple Storage
⌨️ (6:29:44) | Installation & Setup (MacOS & Linux)
⌨️ (6:32:26) | Windows Setup (WSL)
- Special Guest Vasiliy
- WSL
- When working in WSL, use Linux commands instead of Windows commands
- TroubleShooting
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
⚠️ Please use Gitpod as an absolute last resort
- Gitpod
- If using this, NEVER share a private key with real money on Gitpod
- Ideally you figure out the MacOS, Linux, or Windows install though
CMD + K
orCTRL + K
clears the terminalcode .
to open VSCode in a new VSCode window
⌨️ (6:44:37) | Foundry Install
⌨️ (6:52:00) | VSCode Setup II
- CoPilot
- Copilot labs
- Hardhat Solidity Extension
- VSCodium
mkdir foundry-cu
cd foundry-cu
mkdir foundry-simple-storage-cu
- FreeCodeCamp Bash
⌨️ (7:04:19) | Formatting Solidity in VSCode
- Format your solidity code with in your
settings.json
"[solidity]": {
"editor.defaultFormatter": "NomicFoundation.hardhat-solidity"
},
"[javascript]":{
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
⌨️ (7:08:31) | Compiling in Foundry
⌨️ (7:09:49) | Deploying to a local chain I (Anvil or Ganache)
⌨️ (7:17:44) | Adding another network to Metamask
⌨️ (7:19:41) | Deploying to a local chain II (Forge Create)
- 2 Ways to deploy:
-
forge create
-
forge script
-
⌨️ (7:23:45) | Private Key Rant I
history -c
⌨️ (7:26:17) | Deploying to a local chain III (Forge Script)
⌨️ (7:36:02) | What is a transaction (But actually)
cast --to-base 0x01 dec
⌨️ (7:41:41) | Private Key Rant II
cast send
source .env
⌨️ (7:45:00) | Can you Encrypt a Private Key -> a keystore in foundry yet??
- A:
NoYes, try the new feature by
cast wallet import your-account-name --interactive
Enter private key:
Enter password:
`your-account-name` keystore was saved successfully. Address: address-corresponding-to-private-key
forge script <script> --rpc-url <rpc_url> --account <account_name> --sender <address> --broadcast
⌨️ (7:51:44) | ThirdWeb Deploy
- Special Guest Ciara
- nodejs install
- npm install
- thirdweb
⌨️ (7:56:25) | Private Key Rant Summary
Summary:
When you look to deploy
with real money, you should use either:
1. A password encrypted keystore
2. Something like thirdweb deploy
The idea is you never want to have
your private key or password
ANYWHERE written in plain text
(Aka, you always want it encrypted)
⌨️ (8:00:26) | Deploying to a testnet or a mainnet
⌨️ (8:06:06) | Verifying a contract the manual way
⌨️ (8:07:43) | Cleaning up the project
forge fmt
README.md
⌨️ (8:10:28) | Alchemy and the mempool
(back to top) ⬆️
🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊
🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊
⭐️ (0:00:00) | Section 7: Foundry Fund Me
💻 Code: https://github.com/Cyfrin/foundry-fund-me-cu
⌨️ (4:40) | Testing Introduction
- Chainlink Brownie Contracts Github Repo
forge install smartcontractkit/[email protected] --no-commit
- Dependencies
- remappings
- Chainlink Brownie Contracts
⌨️ (20:45) | Debugging Tests I
⌨️ (23:16) | Advanced Deploy Scripts I
- The test option
-m
regex is deprecated. Please use--match-test
or--mt
instead.
forge test -m testPriceFeedVersionIsAccurate -vvv
is deprecated. Please use
forge test --match-test testPriceFeedVersionIsAccurate -vvv
- 4 types of testing:
1. Unit: Testing a single function
2. Integration: Testing multiple functions
3. Forked: Testing on a forked network
4. Staging: Testing on a live network (testnet or mainnet)
⌨️ (34:17) | Refactoring I: Testing Deploy Scripts
⌨️ (41:28) | Refactoring II: Helper Config
- block.chainid
- Chain ID List
- 11155111 is ETH Sepolia
- 1 is ETH Mainnet
⌨️ (54:32) | Refactoring III: Mocking
- Mocking
- Chainlink Github
- Multiple Versions of Solidity
⌨️ (1:00:45) | Refactoring III: Mocking (continued)
Take a break!
⌨️ (1:05:06) | More Cheatcodes
- State tree testing
- Arrange, Act, Assert
- hoax
- uint160 -> address
- vm.startPrank
⌨️ (1:33:50) | Gas: Cheaper Withdraw
- Gas Reporter
forge snapshot
vm.txGasPrice
gasLeft()
tx.getprice
- ** Advanced **
- Storage Layout
- Purpose of the memory keyword
cast storage
- Opcodes
- Opcodes by Gas
- Opcodes by Gas
- Append
s_
to storage variables - Append
i_
to immutable variables - Caps lock and underscore constant variables
- Chainlink Solidity Style Guide
⌨️ (1:48:20) | Gas: Cheaper Withdraw (continued)
⌨️ (1:56:11) | Interactions.s.sol
⌨️ (2:19:17) | Pushing to GitHub
- Add these to your
.gitignore
.env
lib/
broadcast/
- Git Docs
- GitHub docs
- Github Quickstart
- What is Git?
- The quickstart that we follow in the video
- Learn about git and GitHub
⌨️ (2:34:56) | Tweet Me (add your repo in)!
⌨️ (2:35:13) | Section 7: Recap
(back to top) ⬆️
⭐️ (2:37:02) | Section 8: HTML Fund Me
💻 Code: https://github.com/Cyfrin/html-fund-me-cu
⌨️ (2:40:25) | How Metamask works with your browser
⌨️ (2:52:34) | Introduction to function selectors
- IPFS hash for website - ipfs://QmdCBj5B188qzXgG1LUCD6aKe6RJHqbSgu7YfPyncDirzh
(back to top) ⬆️
⭐️ (3:04:09) | Section 9: Smart Contract Lottery
💻 Code: https://github.com/Cyfrin/foundry-smart-contract-lottery-cu
⌨️ (3:08:16) | Raffle.sol Setup
- Raffle.sol Setup
⌨️ (3:15:53) | Solidity Contract Layout
// Layout of Contract:
// version
// imports
// errors
// interfaces, libraries, contracts
// Type declarations
// State variables
// Events
// Modifiers
// Functions
// Layout of Functions:
// constructor
// receive function (if exists)
// fallback function (if exists)
// external
// public
// internal
// private
// internal & private view & pure functions
// external & public view & pure functions
- Custom Errors in Solidity
- Introduction to Events
- Events & Logging Video
- Events & Logging in Hardhat
⌨️ (3:33:29) | block.timestamp
- Introduction to Chainlink VRF
- Special Guest Richard
- Chainlink VRFv2 Docs
- Chainlink VRFv2 Walkthrough
- Chainlink Contracts
⌨️ (3:47:21) | Implementing Chainlink VRF - Introduction
- Implementing Chainlink VRF
forge install smartcontractkit/[email protected] --no-commit
- Modulo
⌨️ (4:13:04) | Resetting an array
⌨️ (4:14:31) | Note on building
⌨️ (4:16:00) | CEI (Checks, Effects, Interactions)
⌨️ (4:18:31) | Introduction to Chainlink Automation
- Chainlink Automation Docs
- Chainlink Automation Walkthrough
⌨️ (4:33:47) | Implementing Chainlink Keepers - checkUpkeep
- Enum
- block.timestamp
⌨️ (4:40:10) | Implementing Chainlink Keepers - performUpkeep
⌨️ (4:43:00) | Mid-Section Recap
⌨️ (4:44:08) | Tests & Deploy Script Setup
⌨️ (4:52:02) | Mock Chainlink VRF Coordinator
⌨️ (4:56:25) | Tests & Deploy Script Continued
⌨️ (5:09:37) | Testing Events in Foundry
⌨️ (5:12:37) | vm.roll & vm.warp
⌨️ (5:15:21) | Create Subscription Script
⌨️ (5:26:41) | Create Subscription from the UI
⌨️ (5:30:19) | Fund Subscription Script
⌨️ (5:42:29) | Add Consumer Script
forge coverage --report debug
⌨️ (5:59:12) | PerformUpkeep Tests
- Expecting Custom Errors
⌨️ (6:03:23) | Getting Event Data into Foundry Scripts
vm.recordLogs
⌨️ (6:11:48) | Intro to Fuzz tests
⌨️ (6:26:30) | Passing the private key to vm.startBroadcast
⌨️ (6:41:08) | Integrations Test
⌨️ (6:44:42) | Testnet Demo - Makefile setup
⌨️ (6:52:33) | Testnet Demo - The Demo
⌨️ (6:59:30) | Console.log Debugging
⌨️ (7:01:06) | forge test --debug
- Chainlink VRF: 2 LINK
- Chainlink Keepers: 8 LINK
(back to top) ⬆️
⭐️ (7:08:04) | Section 10: ERC20s
💻 Code: https://github.com/Cyfrin/foundry-erc20-cu
- What is an EIP?
- EIPs codebase
⌨️ (7:10:42) | What is an ERC20?
- Video (using brownie/python)
- EIP-20
- ERC-677
- EIP-777
⌨️ (7:12:06) | Manually Creating an ERC20 Token
.github
⌨️ (7:19:01) | ERC20 Token - Openzeppelin
(back to top) ⬆️
⭐️ (7:40:56) | Section 11: NFTs
💻 Code: https://github.com/Cyfrin/foundry-nft-cu
⌨️ (7:43:21) | What is an NFT?
- Video
- Optional: All on Chain SVG NFT
- EIP-721
- TokenURI
- Pudgy Penguin Example
⌨️ (8:13:59) | Basic NFT: Deploy Script
⌨️ (8:15:25) | Basic NFT: Tests
- Comparing strings in solidity
chisel
⌨️ (8:25:31) | Basic NFT: Interactions
⌨️ (8:28:24) | Basic NFT: Testnet Demo
⌨️ (8:34:32) | The issue with IPFS & HTTPS TokenURI NFTs
⌨️ (8:38:30) | What is an SVG?
⌨️ (8:45:54) | SVG NFT: Introduction
⌨️ (8:50:03) | SVG NFT: Encoding the NFT
⌨️ (9:06:41) | SVG NFT: Flipping the mood
⌨️ (9:08:44) | SVG NFT: Deploy Script
⌨️ (9:25:46) | SVG NFT: Debugging practice & some notes
⌨️ (9:31:29) | SVG NFT: Anvil Demo
⌨️ (9:44:02) | Advanced: EVM Opcodes, Encoding, and Calling
- abi.encode
- abi.encodePacked Thanks to Alex Roan for his help on this session!
- Example Contract Creation Transaction What REALLY is the ABI?
- EVM Opcodes
- More EVM Opcodes
- Solidity Cheatsheet
- abi.encode vs abi.encodePacked
⌨️ (10:06:27) | Introduction to Encoding Function Calls Directly
⌨️ (10:12:16) | Introduction to Encoding Function Calls Recap
⌨️ (10:14:15) | Encoding Function Calls Directly
- Function Selector
- Function Signature
⌨️ (10:28:45) | Verifying Metamask Transactions
- Check the address
- Check the function selector
- Decode the calldata
⌨️ (10:36:31) | Section 11 Recap
(back to top) ⬆️
🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊
🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊
💻 Code: https://github.com/Cyfrin/foundry-defi-stablecoin-cu
⭐️ (0:00:00) | Section 12: DeFi Stablecoins
- What is DeFi?
- DefiLlama
- Bankless
- MEV
- Aave
- My Previous Aave Video on Shorting Assets
- DAI
- Uniswap
- Maximal Extractable Value (MEV)
⌨️ (0:09:17) | Code Walkthrough
⌨️ (0:12:23) | What is a stablecoin (But actually)
⌨️ (0:40:41) | DecentralizedStableCoin.sol
⌨️ (0:54:44) | DSCEngine.sol Setup
⌨️ (1:04:49) | Deposit Collateral
- Other DeFi Examples:
⌨️ (1:22:51) | Getting the value of our collateral
⌨️ (1:46:02) | Minting the DSC
⌨️ (2:13:45) | depositCollateralAndMintDsc
⌨️ (2:16:12) | redeemCollateral
⌨️ (2:56:55) | Leveling up your testing skillz
⌨️ (3:13:50) | Fuzz (Invariant) Testing
⌨️ (3:27:18) | Open-based Fuzz tests
⌨️ (3:46:55) | revert_on_fail = true
⌨️ (4:03:57) | Redeeming Collateral
⌨️ (4:15:01) | Debugging Fuzz Tests
⌨️ (4:23:30) | Price Feed Handling
⌨️ (4:39:57) | Note on audit preparedness
- Special Guest Nader
- Lens Protocol
(back to top) ⬆️
💻 Code: https://github.com/Cyfrin/foundry-merkle-airdrop-cu
- Introduction to Merkle Airdrops and Code Walkthrough
- Project Setup
- Merkle Proofs
-
Already Claimed Check
-
Merkle Tree Scripts
-
Writing the Tests
-
Deployment Script
-
Adding Signature Verification
- Transaction Types Introduction
- Type 113 Transactions
- Implementing Signatures
- Modifying the Tests
- Test on zkSync (optional)
- Create Claiming Script
- Creating a Signature
- Splitting a Signature
- Executing the Anvil Script
- Deploy and Claim on zkSync Local Node
- Deploy and Claim on zkSync Sepolia
- Summary
💻 Code: https://github.com/Cyfrin/foundry-upgrades-cu
⭐️ (4:47:00) | Section 13: Upgradable Contracts & Proxies
- Parameter
- Social Migrate
- Proxy
⌨️ (5:10:24) | Small Proxy Example
- UUPS vs Transparent
- Abstract Contracts
(back to top) ⬆️
💻 Code: https://github.com/Cyfrin/minimal-account-abstraction
- What is account abstraction?
- What is native account abstraction?
- How does zkSync do account abstraction?
- What is EIP-4337?
- What are zkSync system contracts?
Plutocracy is bad! Don't default to ERC20 token voting!!
💻 Code: https://github.com/Cyfrin/foundry-dao-cu
⭐️ (6:05:45) | Section 14 | DAOs & Governance
- What is a DAO?
- Special Guest Juliette
- How to build a DAO
- That's Patrick
- PY Code
- Python Video
- Special Guest Harrison
(back to top) ⬆️
Developers 100% should know all about this! Don't leave the course without at least watching this section!
Important
We highly recommend you head over to the end-to-end Cyfrin Updraft Security and Auditing Curriculum.
🖥️ Code: https://github.com/PatrickAlphaC/denver-security
⭐️ (7:21:12) | Section 15 | Security & Auditing
⌨️ (7:24:47) | What is a smart contract audit?
⌨️ (7:31:11) | What tools do security professionals use?
⌨️ (7:42:32) | Manual Review with Tincho
⌨️ (7:56:35) | Formal Verification
- Common Attacks
- Best Practices
- Attacks
- Damn Vulnerable Defi
- Ethernaut
- Top Smart Contract Auditors
- Some Smart Contract Auditors:
(back to top) ⬆️
🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊 Completed The Course! 🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊
- Top 10 learning resources
- Patrick Collins
- CryptoZombies
- Alchemy University
- Speed Run Ethereum
- Ethereum.org
Be sure to check out project grant programs!
And make today an amazing day!
(back to top) ⬆️
Transparency is important! So we want to disclose any potential conflicts that might have affected my judgement so you can pick tools that are right for you. Patrick is co-founder of Alpha Chain, a blockchain infrastructure company. Alpha Chain runs Chainlink, Ethereum, Binance, Polygon, Harmony, Solana, Moonbeam, and Moonriver blockchain services. Alpha Chain often works with Alchemy and receives discounted services. Patrick is the co-founder of Cyfrin, and they do smart contract security & auditing services. Patrick is also the co-founder of Chain Accel, who is an advisor on the Peeranha project.
Because of all this, I have added alternatives to each section where we suggest a tool.
(back to top) ⬆️
A huge thank you to our sponsors. These are the groups and technologies
(back to top) ⬆️
Thanks to everyone who is taking, participating in, and working on this course. It's been a passion project and a data dump of everything I've learnt in the web3 space to get you up to speed quickly. Also, a big thank you to Cyfrin & Chain Accel for encouraging this course to come to light, and many, many, many people from the community.
And thanks to the Cyfrin team for making this possible!
Cyfrin Updraft content is open-sourced licensed as GPLv3.
(back to top) ⬆️