Web3, Full Stack Solidity, Smart Contract & Blockchain - Beginner to Expert ULTIMATE Course | Javascript Edition
Welcome to the repository for the Ultimate Web3, Full Stack Solidity, and Smart Contract - Beginner to Expert Full Course | Javascript Edition FreeCodeCamp Course!
Link to video: https://www.youtube.com/watch?v=gyMwXuJrbJQ
All code references have both a javascript and a typescript edition.
Recommended Testnet: Rinkeby
Main Faucet: https://faucets.chain.link
Backup Faucet: https://rinkebyfaucet.com/
⚠️ 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.
- Github Discussions
- Ask questions and chat about the course here!
- Stack Exchange Ethereum
- Great place for asking technical questions about Ethereum
- StackOverflow
- Great place for asking technical questions overall
Lesson 4: Remix Fund Me
- Introduction
- Sending ETH Through a Function & Reverts
- Chainlink & Oracles
- Review of Sending ETH and working with Chainlink
- Interfaces & Price Feeds
- Importing from GitHub & NPM
- Floating Point Math in Solidity
- Basic Solidity: Arrays & Structs II
- Review of Interfacs, Importing from GitHub, & Math in Solidity
- Libraries
- SafeMath, Overflow Checking, and the "unchecked" keywork
- Basic Solidity: For Loop
- Basic Solidity: Resetting an Array
- Sending ETH from a Contract
- Basic Solidity: Constructor
- Basic Solidity: Modifiers
- Testnet Demo
- Advanced Solidity
Lesson 5: Ethers.js Simple Storage
- Effective Debugging Strategies & Getting Help
- Installation & Setup
- Local Development Introduction
- Tiny Javascript Refresher
- Asynchronous Programming in Javascript
- Compiling our Solidity
- Ganache & Networks
- Introduction to Ethers.js
- Adding Transaction Overrides
- Transaction Receipts
- Sending a "raw" Transaction in Ethersjs
- Interacting with Contracts in Ethersjs
- Environment Variables
- Better Private Key Management
- Optional Prettier Formatting
- Deploying to a Testnet or a Mainnet
- Verifying on Block Explorers from the UI
- Alchemy Dashboard & The Mempool
- Lesson 5 Recap
Lesson 6: Hardhat Simple Storage
- Introduction
- Hardhat Setup
- Hardhat Setup Continued
- Deploying SimpleStorage from Hardhat
- Networks in Hardhat
- Programatic Verification
- Interacting with Contracts in Hardhat
- Artifacts Troubleshooting
- Custom Hardhat Tasks
- Hardhat Localhost Node
- The Hardhat Console
- Hardhat Tests
- Hardhat Gas Reporter
- Solidity Coverage
- Hardhat Waffle
- Lesson 6 Recap
Lesson 7: Hardhat Fund Me
- Introduction
- Hardhat Setup - Fund Me
- Linting
- Hardhat Setup - Fund Me - Continued
- Importing from NPM
- Hardhat Deploy
- Mocking
- Utils Folder
- Testnet Demo - Hardhat Fund Me
- Solidity Style Guide
- Testing Fund Me
- Breakpoints & Debugging
- Gas III:
- console.log & Debugging
- Testing Fund Me II
- Storage in Solidity
- Gas Optimizations using Storage Knowledge
- Solidity Chainlink Style Guide
- Storage Review
- Staging Tests
- Running Scripts on a Local Node
- Adding Scripts to your package.json
- Pushing to GitHub
- 🐸🐦 Tweet Me (add your repo in)!
Lesson 8: HTML / Javascript Fund Me (Full Stack / Front End)
- Introduction
- How Websites work with Web3 Wallets
- HTML Setup
- Connecting HTML to Metamask
- Javascript in it's own file
- ES6 vs Nodejs
- Sending a transaction from a Website
- Resetting an Account in Metamask
- Listening for Events and Completed Transactions
- Input Forms
- Reading from the Blockchain
- Withdraw Function
- Lesson 8 Recap
Lesson 9: Hardhat Smart Contract Lottery
- Introduction
- Hardhat Setup - Smart Contract Lottery
- Raffle.sol Setup
- Introduction to Events
- Events in Raffle.sol
- Introduction to Chainlink VRF
- Implementing Chainlink VRF - Introduction
- Implementing Chainlink VRF - The Request
- Implementing Chainlink VRF - The FulFill
- Introduction to Chainlink Keepers
- Implementing Chainlink Keepers - checkUpkeep
- Implementing Chainlink Keepers - checkUpkeep continued
- Implementing Chainlink Keepers - performUpkeep
- Code Cleanup
- Deploying Raffle.sol
- Raffle.sol Unit Tests
- Hardhat Methods & Time Travel
- Callstatic
- Raffle.sol Staging Tests
- Testing on a Testnet
- Conclusion
- Typescript - Smart Contract Lottery
Lesson 10: NextJS Smart Contract Lottery (Full Stack / Front End)
- Introduction
- NextJS Setup
- Manual Header I
- Manual Header II
- useEffect Hook
- Local Storage
- isWeb3EnabledLoading
- web3uikit
- Introduction to Calling Functions in Nextjs
- useState
- Calling Functions in NextJS
- useNotification
- Reading & Displaying Contract Data
- A Note about
onSuccess - A Challenge to You
- Tailwind & Styling
- Introduction to Hosting your Site
- IPFS
- Hosting on IPFS
- Hosting on IPFS & Filecoin using Fleek
- Filecoin Overview
- Lesson 10 Recap
Lesson 14: Hardhat NFTs (EVERYTHING you need to know about NFTs)
Lesson 15: NextJS NFT Marketplace (If you finish this lesson, you are a full-stack MONSTER!)
- Introduction
- Part I: NFT Marketplace Contracts
- Reentrancy
- Part II: Moralis Front End
- What is Moralis?
- NextJS Setup
- Adding Tailwind
- Introduction to Indexing in Web3
- Connecting Moralis to our Local Hardhat Node
- Moralis Event Sync
- Moralis Cloud Functions
- Moralis Cloud Functions II
- Querying the Moralis Database
- Rendering the NFT Images
- Update Listing Modal
- Buy NFT Listing
- Listing NFTs for Sale
- Part III: TheGraph Front End
More Resources
⌨️ (00:00:00) Lesson 0: Welcome To Blockchain
- Follow the repository: While going through the course be 100% certain to follow along with the github repository. If you run into in 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 your end and maybe even have the code sample next to you.
⌨️ (00:09:05) Lesson 1: Blockchain Basics
⌨️ (00:09:06) What is a Blockchain? What does a blockchain do?
- Bitcoin Whitepaper
- Ethereum Whitepaper
- What is a Smart Contract?
- Nick Szabo
- Hybrid Smart Contracts
- Blockchain Oracles
- Terminology
- Web3
- What is a blockchain
⌨️ (00:18:27) 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
⌨️ (00:30:41) Other Blockchain Benefits
- Decentralized
- Transparency & Flexibility
- Speed & Efficiency
- Security & Immutability
- Counterparty Risk Removal
- Trust Minimized Agreements
⌨️ (00:36:36) What have Smart Contracts done so far?
⌨️ (00:39:17) Your First Transaction
- Metamask Download Link
- Etherscan
- Rinkeby Etherscan
- Kovan Etherscan
- Rinkeby 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 Kovan ETH Faucet, just be sure to swap your metamask to kovan!
⌨️ (00:59:00) Gas I: Introduction to Gas
⌨️ (01:05:31) How Do Blockchains Work?
⌨️ (01:22:55) Signing Transactions
⌨️ (01:30:22) Gas II: Block Rewards & EIP 1559
- Block Rewards
- Advanced Gas
- EIP 1559
- GWEI, WEI, and ETH
⌨️ (01:39:33) High-Level Blockchain Fundamentals
🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊 Completed Blockchain Basics! 🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊
Lesson 2: Welcome to Remix! Simple Storage
⌨️ (02:01:16) Lesson 2: Welcome to Remix! Simple Storage
💻 Code: https://github.com/PatrickAlphaC/simple-storage-fcc
⌨️ (02:05:18) Setting Up Your First Contract
- Versioning
- Take notes in your code!
- What is a software license
- SPDX License
- Compiling
- Contract Declaration
⌨️ (02:12:28) Basic Solidity: Types
- Types & Declaring Variables
uint256,int256,bool,string,address,bytes32- Solidity Types
- Bits and Bytes
- Default Initializations
- Comments
⌨️ (02:18:41) 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
⌨️ (02:35:29) Basic Solidity: Arrays & Structs
- Structs
- Intro to Storage
- Arrays
- Dynamic & Fixed Sized
pusharray function
⌨️ (02:45:34) Basic Solidity: Compiler Errors and Warnings
- Yellow: Warnings are Ok
- Red: Errors are not Ok
⌨️ (02:46:34) Basic Solidity: Memory, Storage & Calldata (Intro)
- 6 Places you can store and access data
- calldata
- memory
- storage
- code
- logs
- stack
⌨️ (02:53:38) Deploying your First Contract
- A testnet or mainnet
- Connecting Metamask
- Find a faucet here
- See the faucets at the top of this readme!
- Interacting with Deployed Contracts
⌨️ (03:03:07) The EVM & A Recap of Lesson 2
- The EVM
⌨️ (03:05:34) Lesson 3: Remix Storage Factory
💻 Code: https://github.com/PatrickAlphaC/storage-factory-fcc
⌨️ (03:07:30) Importing Contracts into other Contracts
⌨️ (03:16:36) Interacting with other Contracts
- To interact, you always need: ABI + Address
- ABI
⌨️ (03:25:23) Inheritance & Overrides
⌨️ (03:31:55) Lesson 4: Remix Fund Me
💻 Code: https://github.com/PatrickAlphaC/fund-me-fcc
⌨️ (03:34:12) Sending ETH Through a Function & Reverts
⌨️ (03:42:34) Chainlink & Oracles
- 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
⌨️ (04:00:31) Review of Sending ETH and working with Chainlink
⌨️ (04:01:53) Interfaces & Price Feeds
⌨️ (04:09:10) Importing from GitHub & NPM
⌨️ (04:09:10) Floating Point Math in Solidity
- tuple
- Floating Point Numbers in Solidity
- Type Casting
- Gas Estimation Failed
- Someone should make an article explaining this error
⌨️ (04:21:58) Basic Solidity: Arrays & Structs II
⌨️ (04:23:50) Review of Interfaces, Importing from GitHub, & Math in Solidity
⌨️ (04:29:53) SafeMath, Overflow Checking, and the "unchecked" keyword
⌨️ (04:34:30) Basic Solidity: For Loop
- For Loop
/* */is another way to make comments
⌨️ (04:42:01) Basic Solidity: Resetting an Array
⌨️ (04:42:36) Sending ETH from a Contract
⌨️ (04:50:26) Basic Solidity: Constructor
⌨️ (04:53:19) Basic Solidity: Modifiers
⌨️ (05:04:32) Advanced Solidity Concepts
- Immutable
- Constant
- Current ETH Gas Prices
- Don't stress about gas optimizations! (yet)
- Naming Conventions
🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊 Completed Solidity Basics! 🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊
⌨️ (05:30:42) Lesson 5: Ethers.js Simple Storage
💻 Code: https://github.com/PatrickAlphaC/ethers-simple-storage-fcc
🧪 Alchemy: https://alchemy.com/?a=673c802981
⌨️ (05:30:46) Effective Debugging Stategies & Getting Help
- Tinker and isolate problem
- For this course, take at LEAST 15 minutes to figure out a bug.
- Google / Web Search the Exact problem
- Go to this GitHub Repo / Discussions
- Ask a question on a Forum like Stack Exchange Ethereum or Stack Overflow
- Format your questions!!
- Use Markdown
⌨️ (05:41:54) How to Debug Anything
⌨️ (05:53:47) Installation & Setup
⌨️ (05:58:54) Mac & Linux Install
- 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
⌨️ (06:12:50) Working with Gitpod
- 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
⌨️ (06:17:00) Local Development Introduction
CMD + KorCTRL + Kclears the terminalmkdir ethers-simple-storage-fcccode .to open VSCode in a new VSCode window
-
Import your
SimpleStorage.sol -
Format your solidity code with:
"[solidity]": {
"editor.defaultFormatter": "NomicFoundation.hardhat-solidity"
},
"[javascript]":{
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
In your .vscode/settings.json file.
⌨️ (06:34:07) Tiny Javascript Refresher
⌨️ (06:38:07) Asynchronous Programming in Javascript
⌨️ (06:46:17) Compiling our Solidity
- Yarn Install
- solc-js
yarn add [email protected]
- yarn scripts
⌨️ (06:55:13) Ganache & Networks
- Ganache
- Networks in Metamask
- RPC URL
- Geth
- JSON RPC Spec Playground
⌨️ (07:00:10) Introduction to Ethers.js
⌨️ (07:08:39) A Note on the await Keyword
⌨️ (07:10:24) Adding Transaction Overrides
⌨️ (07:12:18) Transaction Receipts
⌨️ (07:14:56) Sending a "raw" Transaction in Ethers.js
⌨️ (07:24:58) Interacting with Contracts in Ethers.js
⌨️ (07:34:08) Environment Variables
⌨️ (07:40:01) Better Private Key Management
⌨️ (07:54:00) Optional Prettier Formatting
⌨️ (07:57:52) Deploying to a Testnet or a Mainnet
- Alchemy
- Getting your private key from Metamask
CTRL + Cstops any terminal command
⌨️ (08:04:29) Verifying on Block Explorers from the UI
⌨️ (08:07:25) Alchemy Dashboard & The Mempool
⌨️ (08:17:08) Optional: TypeScript
⌨️ (08:20:17) Lesson 6: Hardhat Simple Storage
💻 Code: https://github.com/PatrickAlphaC/hardhat-simple-storage-fcc
⌨️ (08:29:43) Troubleshooting Hardhat Setup
⌨️ (08:31:48) Hardhat Setup Continued
⌨️ (08:33:10) Deploying SimpleStorage from Hardhat
⌨️ (08:41:44) Networks in Hardhat
⌨️ (08:51:16) Programmatic Verification
⌨️ (09:06:37) Interacting with Contracts in Hardhat
⌨️ (09:09:42) Artifacts Troubleshooting
⌨️ (09:10:52) Custom Hardhat Tasks
⌨️ (09:18:12) Hardhat Localhost Node
⌨️ (09:23:11) The Hardhat Console
⌨️ (09:38:10) Hardhat Gas Reporter
⌨️ (09:44:40) Solidity Coverage
⌨️ (09:52:15) Typescript Hardhat Simple Storage
yarn add --dev @typechain/ethers-v5 @typechain/hardhat @types/chai @types/node @types/mocha ts-node typechain typescript
⌨️ (10:00:48) Lesson 7: Hardhat Fund Me
💻 Code: https://github.com/PatrickAlphaC/hardhat-fund-me-fcc
⌨️ (10:03:41) Hardhat Setup - Fund Me
⌨️ (10:07:47) Hardhat Setup - Fund Me - Continued
⌨️ (10:09:38) Importing from NPM
⌨️ (10:21:05) Mocking and helper-hardhat-config
- Mocking
- Aave Github
- Chainlink Github
- Multiple Versions of Solidity
- Tags in hardhat
⌨️ (10:55:45) Testnet Demo - Hardhat Fund Me
- Hardhat Deploy Block Confirmations
⌨️ (11:00:10) Solidity Style Guide
- Unit Testing
- Hardhat Deploy Fixtures
- ethers.getContract
- expect
- ethers.utils.parseUnits
- Waffle Chai Matchers
⌨️ (11:30:39) Breakpoints & Debugging
⌨️ (11:36:35) console.log & Debugging
⌨️ (11:37:31) Testing Fund Me II
⌨️ (11:44:34) Storage in Solidity
⌨️ (11:52:38) Gas Optimizations using Storage Knowledge
- Opcodes
- Opcodes by Gas
- Opcodes by Gas
- Append
s_to storage variables - Append
i_to immutable variables - Caps lock and underscore constant variables
⌨️ (12:05:29) Solidity Chainlink Style Guide
⌨️ (12:17:58) Running Scripts on a Local Node
⌨️ (12:22:00) Adding Scripts to your package.json
⌨️ (12:25:17) Pushing to GitHub
- Github Quickstart
- What is Git?
- The quickstart that we follow in the video
- Learn about git and GitHub
⌨️ (12:32:57) Lesson 8: HTML / Javascript Fund Me (Full Stack / Front End)
💻 Code: https://github.com/PatrickAlphaC/html-fund-me-fcc
⌨️ (12:40:02) How Websites work with Web3 Wallets
- Live Server: ExtensionID: ritwickdey.LiveServer
⌨️ (12:50:11) Connecting HTML to Metamask
⌨️ (12:57:08) Javascript in it's own file
⌨️ (12:59:12) ES6 (Frontend Js) vs Nodejs
⌨️ (13:07:58) Sending a transaction from a Website
⌨️ (13:19:01) Resetting an Account in Metamask
MetaMask - RPC Error:
[ethjs-query] while formatting ouputs from RPC '{"value":{"code":-32603,"data":{"code":-32000,"message":"Nonce too high. Expected nonce to be 2 but got 4. Note that transactions can't be queued when automining."}}}'
⌨️ (13:20:06) Listening for Events and Completed Transactions
⌨️ (13:33:34) Reading from the Blockchain
⌨️ (13:35:50) Withdraw Function
⌨️ (13:41:02) Lesson 9: Hardhat Smart Contract Lottery
💻 Code: https://github.com/PatrickAlphaC/hardhat-smartcontract-lottery-fcc
- Install dependencies:
yarn add --dev @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers ethers @nomiclabs/hardhat-etherscan @nomiclabs/hardhat-waffle chai ethereum-waffle hardhat hardhat-contract-sizer hardhat-deploy hardhat-gas-reporter prettier prettier-plugin-solidity solhint solidity-coverage dotenv- Install dependencies (Typescript version):
yarn add --dev @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers ethers @nomiclabs/hardhat-etherscan @nomiclabs/hardhat-waffle chai ethereum-waffle hardhat hardhat-contract-sizer hardhat-deploy hardhat-gas-reporter prettier prettier-plugin-solidity solhint solidity-coverage dotenv @typechain/ethers-v5 @typechain/hardhat @types/chai @types/node ts-node typechain typescript⌨️ (13:46:55) Raffle.sol Setup
⌨️ (13:54:02) Introduction to Events
⌨️ (14:00:47) Events in Raffle.sol
⌨️ (14:02:30) Introduction to Chainlink VRF (Randomness in Web3)
⌨️ (14:09:53) Implementing Chainlink VRF (Introduction)
⌨️ (14:14:31) Hardhat Shorthand
⌨️ (14:15:31) Implementing Chainlink VRF (The Request)
⌨️ (14:22:57) Implementing Chainlink VRF (The FulFill)
⌨️ (14:28:27) Introduction to Chainlink Keepers
⌨️ (14:34:45) Implementing Chainlink Keepers (checkUpkeep)
⌨️ (14:42:05) Implementing Chainlink Keepers - checkUpkeep continued
- block.timestamp
⌨️ (14:47:15) Implementing Chainlink Keepers (performUpkeep)
⌨️ (14:56:00) Deploying Raffle.sol
⌨️ (15:04:28) Mock Chainlink VRF Coordinator
⌨️ (15:20:08) Raffle.sol Unit Tests
- We use
async functionin the describe blocks at the start, but we correctly take them out later.
⌨️ (15:30:20) Testing Events & Chai Matchers
⌨️ (15:31:30) Raffle.sol Unit Tests Continued I
⌨️ (15:32:46) Hardhat Methods & Time Travel
⌨️ (15:37:11) Raffle.sol Unit Tests Continued II
⌨️ (15:40:00) Raffle.sol Unit Tests Continued III
⌨️ (15:52:12) Massive Promise Test
⌨️ (16:07:26) Raffle.sol Unit Tests Continued IV
⌨️ (16:07:44) Raffle.sol Staging Tests
⌨️ (16:18:18) Testing on a Testnet
- Chainlink VRF: 2 LINK
- Chainlink Keepers: 13 LINK
⌨️ (16:30:57) Smart Contract Lottery Conclusion
⌨️ (16:32:39) Typescript - Smart Contract Lottery
🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊 Completed Hardhat Basics! 🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊
⌨️ (16:34:07) Lesson 10: NextJS Smart Contract Lottery (Full Stack / Front End)
💻 Code: https://github.com/PatrickAlphaC/nextjs-smartcontract-lottery-fcc
⚡️⚡️ Live Demo IPFS: ipfs://QmXwACyjcS8tL7UkYwimpqMqW9sKzSHUjE4uSZBSyQVuEH
⚡️⚡️ Live Demo Fleek: https://fancy-dream-3458.on.fleek.co/
We move into using NextJS for our front end. NextJS is a React framework for building websites.
- 6 Ways to connect your dapp to a wallet
- NextJS Crash Course
- Other React libraries:
- Other Full Stack Web3 Templates
- React being quite popular
- Why use react?
yarn create next-app .
⌨️ (17:01:04) Manual Header II
⌨️ (17:18:23) isWeb3Enabled Loading
⌨️ (17:22:25) Introduction to Calling Functions in Nextjs
⌨️ (17:26:29) Automatic Constant Value UI Updater
⌨️ (17:38:37) runContractFunction
⌨️ (17:49:50) Calling Functions in NextJS
- Add
onErrorto all yourrunContractFunctioncalls
⌨️ (17:58:06) Reading & Displaying Contract Data
⌨️ (18:02:55) A Note about onSuccess
onSuccessjust checks to see if MetaMask sends the transaction, not
⌨️ (18:03:23) A Challenge to You
⌨️ (18:04:14) Tailwind & Styling
⌨️ (18:12:51) Introduction to Hosting your Site
- IPFS Companion
- Brave Browser
yarn build && yarn next export
⌨️ (18:25:46) Hosting on IPFS & Filecoin using Fleek
⌨️ (18:31:28) Filecoin Overview
- Special Guest Ally Haire
- IPFS URL of Ally's Video
⌨️ (18:40:47) IPFS & Filecoin GitHub projects
⌨️ (18:51:36) Lesson 11: Hardhat Starter Kit
💻 Code: https://github.com/smartcontractkit/hardhat-starter-kit
⌨️ (18:59:24) Lesson 12: Hardhat ERC20s
💻 Code: https://github.com/PatrickAlphaC/hardhat-erc20-fcc
⌨️ (18:59:27) What is an ERC? What is an EIP?ERC20s
⌨️ (19:01:40) What is an ERC20?
⌨️ (19:03:04) Manually Creating an ERC20 Token
⌨️ (19:09:24) Creating an ERC20 Token with Openzeppelin
⌨️ (19:16:13) Lesson 13: Hardhat DeFi & Aave
💻 Code: https://github.com/PatrickAlphaC/hardhat-defi-fcc
⌨️ (19:25:49) Programmatic Borrowing & Lending
⌨️ (19:30:51) WETH - Wrapped ETH
⌨️ (19:45:20) Depositing into Aave
⌨️ (19:57:40) Borrowing from Aave
⌨️ (20:12:02) Repaying with Aave
⌨️ (20:14:57) Visualizing the Transactions (And aTokens)
⌨️ (20:19:15) Happy Bow-Tie Friday with Austin Griffith
⌨️ (20:28:51) Lesson 14: Hardhat NFTs
💻 Code: https://github.com/PatrickAlphaC/hardhat-nft-fcc
⌨️ (21:03:19) Mapping Chainlink VRF Requests
⌨️ (21:07:40) Creating Rare NFTs
⌨️ (21:15:21) Setting the NFT Image
⌨️ (21:19:05) Setting an NFT Mint Price
⌨️ (21:31:12) Uploading Token Images with Pinata
⌨️ (21:47:32) Uploading Token URIs (metadata) with Pinata
⌨️ (22:00:55) Random IPFS NFT Tests
⌨️ (22:03:11) Dynamic SVG On-Chain NFT
⌨️ (22:16:33) abi.encode & abi.encodePacked
- 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
⌨️ (22:38:59) Introduction to Encoding Function Calls Directly
⌨️ (22:46:47) Encoding Function Calls Directly
⌨️ (23:01:13) Creating an NFT TokenURI on-Chain
⌨️ (23:09:24) Making the NFT Dynamic
⌨️ (23:22:14) Deploying the NFTs to a Testnet
Extra credit:
- Deconstructing Solidity
- Knowing and controlling your Smart Contract Address
- From Solidity to byte code
⌨️ (23:37:03) Lesson 15: NextJS NFT Marketplace (Full Stack / Front End)
💻 Code:
- Backend (Contracts): https://github.com/PatrickAlphaC/hardhat-nft-marketplace-fcc
- Frontend (Moralis Indexer): https://github.com/PatrickAlphaC/nextjs-nft-marketplace-moralis-fcc
- Frontend (TheGraph Indexer): https://github.com/PatrickAlphaC/nextjs-nft-marketplace-thegraph-fcc
Special thanks to Matt Durkin for help with this section.
⌨️ (23:46:11) NftMarketplace.sol
⌨️ (24:06:27) Reentrancy Attacks
⌨️ (24:19:14) NftMarketplace.sol - Continued
⌨️ (24:26:17) NftMarketplace.sol - Deploy Script
⌨️ (24:32:46) NftMarketplace.sol - Tests
⌨️ (24:43:38) NftMarketplace.sol - Scripts
⌨️ (24:48:28) Part II: Moralis Front End - Introduction
⌨️ (25:05:31) Introduction to Indexing in Web3
⌨️ (25:12:09) What is Moralis?
⌨️ (25:19:36) Connecting Moralis to our Local Hardhat Node
⌨️ (25:34:53) Connecting Moralis to our Local Hardhat Node
⌨️ (25:58:48) Resetting the Local Chain
⌨️ (26:00:55) Moralis Cloud Functions
- Moralis Cloud Functions
- Moralis Logging
- Hardhat Network Reference
- Moralis Database only confirms a transaction with a block confirmation - so we need to move blocks on our hardhat local node.
- Moralis Triggers
⌨️ (26:19:41) Practice Resetting the Local Chain
⌨️ (26:22:23) Moralis Cloud Functions II
⌨️ (26:30:25) Moralis Cloud Functions III
⌨️ (26:42:14) Querying the Moralis Database
⌨️ (26:48:43) Rendering the NFT Images
⌨️ (27:17:20) Update Listing Modal
⌨️ (27:40:54) Sell Page Listing NFTs for Sale
⌨️ (27:57:26) Part III: TheGraph Front End
⌨️ (28:03:07) What is The Graph?
⌨️ (28:07:06) Building a Subgraph
⌨️ (28:35:19) Deploying our Subgraph
⌨️ (28:39:58) Reading from The Graph
⌨️ (28:51:40) Hosting our Dapp
🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊 Completed Front End Basics! 🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊
⌨️ (28:53:11) Lesson 16: Hardhat Upgrades
💻 Code: https://github.com/PatrickAlphaC/hardhat-upgrades-fcc
- Optional Video
- [Links from Video]
- Parameter
- Social Migrate
- Proxy
⌨️ (29:16:00) Small Proxy Example
⌨️ (29:27:21) Transparent Upgradable Smart Contract
⌨️ (29:45:24) Lesson 17: Hardhat DAOs
⬆️ Up-to-date code: https://github.com/PatrickAlphaC/dao-template
💻 Code from video: https://github.com/PatrickAlphaC/hardhat-dao-fcc
⌨️ (30:02:39) How to build a DAO
- How to build a DAO
- That's Patrick
- PY Code
- Python Video
- Openzeppelin Governance
- Compound Governance
- Contract Wizard
- CastVoteBySig
⌨️ (31:28:32) Lesson 18: Security & Auditing
💻 Code: https://github.com/PatrickAlphaC/hardhat-security-fcc
⌨️ (31:41:23) Fuzzing and Eth Security Toolbox
⌨️ (31:47:06) Closing Security Thoughts
- Best Practices
- Attacks
- Damn Vulnerable Defi
- Ethernaut
- Some Auditors:
🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊 Completed The Course! 🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊🎊
- CryptoZombies
- Patrick Collins
- Dapp University
- ChainShot
- Cami Ramos Garzon
- Albert Hu
- Ivan Liljeqvist
- Ally Haire
- Stephen Fluin
- Eat the Blocks
- Austin Griffith
- Nader Dabit
- Ethereum.org
Be sure to check out project grant programs!
And make today an amazing day!
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 Chainlink Labs for encouraging this course to come to light-and to the many Chainlink Labs team members who helped with various assets!