Set up a Foundry project
In this workshop we will learn how to create an evm project with hardhat
Part 1: Installing Foundry
Prerequisites
Installation Methods
Option 1: Using Foundryup (Recommended)
curl -L https://foundry.paradigm.xyz | bashfoundryupfoundryup --version nightly
Option 2: Building from Source
Option 3: Using Docker
Verification
Platform-Specific Notes
Troubleshooting
Security Note
Part 2: Initializing a Foundry Project
Creating a New Project
Understanding the Project Structure
Key Directories Explained
Setting Up Soldeer Package Manager
Building Your Project
Running Tests
Understanding the Foundry Tools
Tool
Purpose
Adding Dependencies with Soldeer
Customizing Your Project
Part 3: Setting Up Your Environment
Installing MetaMask
Adding XRPL EVM Sidechain to MetaMask
Getting Your Private Key
Getting Test Tokens from the Faucet
Setting Up Environment Variables
Configuring Foundry for XRPL
Testing Your Setup
Security Best Practices
Part 4: Deploying Your Smart Contract
Understanding the Counter Contract
Deploying with forge create
Basic Deployment Command
Using Environment Variables
Using Foundry Configuration
Understanding Deployment Output
Deploying Contracts with Constructor Arguments
Dry Run Deployment
Verifying Your Deployment
Contract Verification (Optional)
Deployment Best Practices
Troubleshooting Common Issues
Using Legacy Transactions
Last updated

