EridianAlpha / foundry-fundme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FundMe Template Project - Foundry

This project is a template showing how to get started with Foundry, testing, and deploying a simple smart contract.

Foundry consists of:

  • Forge: Ethereum testing framework (like Truffle, Hardhat and DappTools).
  • Cast: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
  • Anvil: Local Ethereum node, akin to Ganache, Hardhat Network.
  • Chisel: Fast, utilitarian, and verbose solidity REPL.

Documentation

https://book.getfoundry.sh

Usage

Makefile

• Use the Makefile to run common commands

make help
make anvil
make deploy
make fund
make withdraw

Build

forge build

Test

forge test
forge test -vvv

Test Coverage

forge coverage

Coverage line highlighting in VSCode

Format

forge fmt

Gas Snapshots

forge snapshot

Anvil

anvil

Deploy

Cast

cast <subcommand>

Help

forge --help
anvil --help
cast --help

About

License:MIT License


Languages

Language:Solidity 67.4%Language:JavaScript 16.9%Language:TypeScript 11.6%Language:Ruby 3.8%Language:Shell 0.2%Language:Makefile 0.1%Language:Python 0.0%Language:Nix 0.0%