Solidity solutions for Base Camp, the smart contract learning program, using Foundry.
# 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
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.