The Updraft 2024 update is here✨ All courses are now updated to the latest tools and best practices 🚀

eth logo eth logo

Foundry Fundamentals

Foundry Fundamentals

Intermediate

Learn advanced web3 development concepts like Chainlink Blockchain oracles, smart contracts testing, spinning up local networks, and industry-leading tools like Foundry Forge and Anvil.

Avatar 8Avatar 6Avatar 9Avatar 5Avatar 3

500+ users have taken this course.


Course Details

10hrs
103 lessons
3 projects
10+ languages

Last updated on July 16, 2024

Solidity Developer

Foundry Fundamentals


1. Introduction - Foundry simple storage
Duration: 7min Introduction to transitioning from Remix IDE to Foundry for professional smart contract development, along with resources for troubleshooting.
2. Development environment setup (Mac, Linux)
Duration: 3min Guide to setting up a development environment on Mac and Linux, including installing Visual Studio Code (VSCode) and Git.
3. Development environment setup (Windows)
Duration: 9min Tutorial on setting up a development environment on Windows using WSL (Windows Subsystem for Linux) and installing Visual Studio Code.
4. Develop in cloud using Gitpod
Duration: 4min Overview of using Gitpod for cloud-based development, highlighting its benefits, limitations, and precautions for usage.
5. Local Setup
Duration: 1min
6. Foundry setup
Duration: 6min Step-by-step guide on installing and operating Foundry, a tool for smart contract development, compatible with Windows, Linux, and MacOS.
7. Setup your VSCode
Duration: 6min Comprehensive guide on mastering Visual Studio Code and GitHub Copilot for optimizing programming efficiency and project folder organization.
8. Create a new Foundry project
Duration: 7min Step-by-step instructions on creating a new simple storage project using Foundry, including project folder setup, terminal tips, and initial project structure.
9. Foundry Setup Wsl
Duration: 5min
10. VSCode Solidity setup
Duration: 4min Tutorial on formatting Solidity code in Visual Studio Code using various extensions and settings, and tips for automatic code formatting and TOML file formatting.
11. Compile a smart contract using Foundry
Duration: 1min Guide to compiling Solidity smart contracts using Foundry, including steps for using the Foundry console, understanding the 'out' file, and terminal command recall.
12. Deploy a smart contract locally using Ganache
Duration: 9min Guide on deploying smart contracts locally using Ganache and Foundry's Anvil, including setting up Ganache, using MetaMask for custom networks, and integrating Anvil.
13. How to add a new network to Metamask
Duration: 2min Tutorial on adding new Ganache local chains and EVM compatible chains to MetaMask, including managing private keys and understanding RPC URLs.
14. Deploy a smart contract locally using Forge
Duration: 4min Comprehensive guide on deploying smart contracts locally using Forge in Foundry, detailing command line usage, potential issues, and deployment steps.
15. Important: private key safety pt.1
Duration: 3min In-depth guide on private key safety for blockchain developers, covering best practices, shell history clearing, and secure methods for handling private keys.
16. Deploy a smart contract locally using Anvil
Duration: 10min Tutorial on deploying smart contracts locally using Anvil, focusing on script creation, Solidity contract language, and Foundry cheat codes for deployment.
17. What is a transaction
Duration: 6min Exploration of blockchain transactions, including a detailed overview of transaction components, contract deployment, and data fields in Ethereum.
18. Important: private key safety pt.2
Duration: 10min Guide on private key safety for interacting with deployed contracts, covering command line interfaces, environment file setup, and secure coding practices.
19. Never Use A Env File
Duration: 10min In this lesson we'll finally rid ourselves of risky development practices and learn to employ methods to properly safeguard our private keys. Move past .env variables and never mistakenly compromise yourself again.
20. Interact with a smart contract using the CLI
Duration: 4min Comprehensive guide on interacting with smart contracts using CLI and Foundry's Cast tool, detailing command usage for sending transactions and reading blockchain data.
21. Deploying a smart contract on testnet (Sepolia)
Duration: 6min Step-by-step tutorial on deploying smart contracts to Ethereum's Sepolia testnet using Foundry and Alchemy, including setting up RPC URLs and private keys.
22. Verify a smart contract on Etherscan
Duration: 1min Guide on verifying Ethereum smart contracts on Etherscan, covering manual verification steps and the importance of contract readability and accessibility.
23. Cleaning Up the Project
Duration: 3min Cleaning up the project!
24. Foundry Zksync
Duration: 0min
25. Compiling Foundry Zksync
Duration: 2min
26. Zksync Local Node
Duration: 10min
27. Zksync Local Deploy
Duration: 3min
28. Tx Types
Duration: 9min
29. Why L2
Duration: 6min
30. Introduction to Alchemy
Duration: 11min Introduction to Alchemy, a developer platform for Web3 applications, covering its features, benefits, and steps to create an account and use its services.
31. Wrap up, congratulations!
Duration: 3min Summary and congratulations on completing the Foundry project, highlighting key learnings, tools used, and encouraging continued learning and coding practice.

Course Overview


What you'll learn

Foundryup, Forge, and Anvil
Blockchain Oracles
How to create local Blockchain testnets
How to verify a smart contract
How to write and run smart contract tests

Course Prerequisites

  • Blockchain Basics
  • Solidity Fundamentals

Course Description

With over 100,000 students taught, 60 lectures, and more than 10 hours of videos and written content, if you’re a smart contract developer, already know some Solidity, and want to learn web3 development skills, the Foundry Fundamentals course is the right resource for you.

This comprehensive course gives you the skills you’ll need to start developing your smart contracts and protocols using industry-standard web3 development tools and frameworks like Chainlink, Alchemy, and Foundry, you will learn things such as:

  • Foundryup, forge, and anvil - the industry-standard framework to build, deploy and test your smart contract.
  • How to install and use foundryup and create local testnets using Anvil
  • Chainlink Blockchain Oracles
  • Setting up your RPC using Alchemy
  • Introduction to smart contracts testing using Foundry
  • Writing and running smart contract tests
  • Verify smart contract using

If you have some experience with Solidity programming, this course is the right step to take you from beginner to intermediate web3 developer. Here's why:

  • The course is taught by some of the world's best solidity smart contract developers and web3 educators.
  • It's continuously updated to keep you updated with major companies' latest tools, technologies, and protocols.
  • The curriculum was meticulously developed over two years, incorporating extensive student testing, feedback, and reviews.
  • A community of thousands of web3 developers to support your during your learning journey
  • We have successfully taught over 100,000 students to write secure Solidity smart contracts. Many have significantly transformed their lives by becoming professional web3 developers or starting their own companies.
  • We are committed to teaching the best industry tools, free from bias.
  • The course is regularly updated with fresh content, including new projects and modules.

We'll take you step-by-step through engaging video tutorials and teach you everything you need to know to succeed as a web3 developer.

Project-based, the Foundry fundamentals Solidity smart contract and web3 development course includes quizzes, tests, exercises, and assignments, as well as 3 projects to start creating your Solidity smart contracts portfolio!

Learn how to use Foundry and Oracles, verify contracts, test them using Foundry Forge, and spin up local networks using Anvil through real-world examples and projects. Regardless of your operating system, whether it's Linux, MacOS, or Windows, we've got you covered.

By the end of this course, you will be able to develop, deploy, and test your smart contracts using state-of-the-art tools and frameworks used by top Blockchain protocols worldwide!

You will get lifetime access to over 60 lectures, corresponding resources, and repositories.

So what are you waiting for? Learn web3 development and kickstart your career as a smart contract developer!


Who is this course for?

  • Software engineers
  • Web3 developers
  • Blockchain security researchers

Potential Careers

Security researcher Smart Contract Engineer Web3 developer Web3 Developer Relations Smart Contract Auditor

Solidity Developer

Solidity Developer path

Blockchain Basics

Blockchain Basics

Beginner

Start where you’re comfortable! Learn how blockchains work, smart contracts, and how to sign your first transaction. Whether you’re new or are a seasoned developer, there’s something here for you.

Solidity Developer path

Solidity Smart Contract Development

Solidity Smart Contract Development

Beginner

Start here if you’re new to writing smart contracts! Learn Solidity smart contract development from industry-leading experts and kickstart your career as a web3 developer.

Current

Solidity Developer path

Foundry Fundamentals

Foundry Fundamentals

Intermediate

Learn advanced web3 development concepts like Chainlink Blockchain oracles, smart contracts testing, spinning up local networks, and industry-leading tools like Foundry Forge and Anvil.

Solidity Developer path

Advanced Foundry

Advanced Foundry

Intermediate

Learn smart contract development techniques to write, deploy, test, optimize, and interact with your smart contract using industry-standard tools taught by the top smart contracts engineers in web3

Solidity Developer path

Smart Contract Security

Smart Contract Security

Advanced

Start your career as a smart contract security researcher! Learn smart contract auditing and the best practices for writing secure and optimized protocols. Explore fuzzing, invariant testing, and formal verification to identify bugs and protect web3 protocols.

Solidity Developer path

Assembly and Formal Verification

Assembly and Formal Verification

Advanced

Learn exactly how the solidity compiler and opcodes work. Write contracts using Assembly and Yul, then learn how to write formal verification tests to guarantee your invariants hold.

Solidity Developer path

Smart Contract DevOps

Smart Contract DevOps

Advanced

Following web3 DevOps guidelines and keeping an eye on smart contracts after they're live is key to making protocols and their users, safer. This course teaches you the best practices when dealing with web3 wallets and post-deployment security, teaching you how to keep smart contracts under control, even after they've been launched.


Meet your instructors

Patrick Collins

Patrick Collins

Founder at Cyfrin

Web3 engineer, educator, and Cyfrin co-founder. Patrick's smart contract development and security courses have helped hundreds of thousands of engineers kickstarting their careers into web3.

Guest lecturers:

Richard Gottleber

Richard Gottleber

Developer relations at Chainlink

Vasiliy Gualoto

Vasiliy Gualoto

Developer relations at Cyfrin


Testimonials

Students Reviews

Read what our students have to say about this course.

If there’s one resource that Web3 developers point to, it’s Cyfrin’s ultimate tutorials. They’re standout resources that have empowered countless developers to learn blockchains, learn Solidity, and dive deep into Web3 development.

Chainlink

Chainlink

Chainlink

We can build systems for Ethereum scaling but without education, it’s all for nothing. Updraft is the first step towards adoption for Web3 education. We can now mint security focused developers at scale!

Tony Olendo

Tony Olendo

Lead Devrel Engineer, Polygon

Cyfrin's course was a cornerstone of my journey into Web3, providing me with the fundamentals and hands-on experience that have been pivotal to my journey in the blockchain space.

Raza

Raza

Lead Developer Relations, Scroll

Cyfrin Updraft videos on smart contract development have been instrumental in my blockchain journey, standing out with their clarity and accessibility. Their readiness to support and engage with learners makes me excited for more of their interactive and insightful content in the Web3 space

Francesco Andreoli

Francesco Andreoli

MetaMask

I took Cyfrin course and I’ve been working as a solutions developer at OpenZeppelin for the last few months. It was by far the most comprehensive resource and the one that really teached me the fundamentals and made me want to switch from web2 to web3

Gustavo Gonzalez

Gustavo Gonzalez

Solutions Engineer, OpenZeppelin

The Cyfrin courses were a game-changer for me. They provided a well-structured and comprehensive introduction to web3 and blockchain development. The knowledge I gained allowed me to transition into a full-time role as a blockchain developer. I can't recommend these courses enough!

Albert Hu

Albert Hu

DeForm Founding Engineer

I took Cyfrin’s courses, and I took them seriously. At least one hour every day, documented the progress, didn’t skip any second. Haven’t found a better web3 course since. Now I’m full-time in web3, working as Senior Developer Advocate at Ceramic Network.

Radek

Radek

Senior Developer Advocate, Ceramic

Cyfrin have been an absolute game-changers in my journey into blockchain. Saying their courses were remarkable, would be an understatement. Thanks to their expert guidance, I gained a deep understanding of blockchain to its roots. I'm forever grateful for their role in helping me get started in web3.

Boidushya

Boidushya

WalletConnect

Cyfrin blockchain and Foundry/AI courses were incredible. I've gained valuable knowledge, grown, empowering myself and others. Thank you, Cyfrin!

Idris

Idris

Developer Relations Engineer, Axelar