Skip to content

Solidity solutions for exercises in Base Camp, the smart contract learning program, using Foundry.

Notifications You must be signed in to change notification settings

MrSaints/base-camp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base-camp

Solidity solutions for exercises in Base Camp, the smart contract learning program, using Foundry.

This repository is intended for those who have already solved the exercises, and are looking for alternative approaches. Please do not use the solutions here as your own if you have not solved them. I strongly suggest attempting the exercises yourself! Otherwise, you are only cheating yourself.

Getting Started

# Install Foundry
curl -L https://foundry.paradigm.xyz | bash
foundryup

# Build
forge build

# Testing
forge test
forge test --match-contract ControlStructures -vvvv

# Adding Deps (GitHub repository)
forge install openzeppelin/openzeppelin-contracts

Deployment

Set the MNEMONIC environment variable when deploying.

forge script script/01_BasicMath.s.sol:DeployBasicMath --broadcast --verify --rpc-url base-goerli

See scripts for more examples.

About

Solidity solutions for exercises in Base Camp, the smart contract learning program, using Foundry.

Topics

Resources

Stars

Watchers

Forks