Smart Contract Development with Foundry

Smart Contract Development with Foundry



In this video you’ll learn how to build, test, and deploy smart contracts with Solidity using Foundry. We’ll start with an overview of the various CLIs and libraries that make up Foundry, what they do, and how to install them.

๐Ÿ”— Foundry Tutorial – https://nader.mirror.xyz/6Mn3HjrqKLhHzu2balLPv4SqE5a-oEESl4ycpRkWFsc
๐Ÿ”— Foundry Cheatsheet – https://github.com/dabit3/foundry-cheatsheet
๐Ÿ”— Foundry Book – https://book.getfoundry.sh/
๐Ÿ”— Foundry GitHub – https://github.com/foundry-rs/foundry

We’ll then spin up a new project, walk through the file structure, and create an example smart contract. From there we’ll create and run tests for the contract. Next, we’ll run a local test Ethereum network, deploy the contract to the network, and use cast to call end execute transactions to the test network.

We’ll then deploy the to Optimism to show how to deploy to a live network. Finally, we’ll create an ERC721 contract and learn how to mock users to test out various functions like minting a token, transferring a token, and burning a token.

By the end of this video, you should have a good understanding of how Foundry works and how to use it to build, test, and deploy smart contracts.

0:00 – Introduction
03:15 – Creating a new project
04:13 – Remappings
05:35 – Compiling and ABIs
06:00 – Creating the first contract
08:13 – Writing tests
14:28 – Deploying to the local network
18:33 – Using cast to make contract calls
20:59 – Deploying to Optimism
23:06 – Testing an ERC721 contract

source

views 3448

Leave a Comment

Your email address will not be published.

Scroll to Top