No description
Find a file
2025-02-26 14:21:48 -08:00
lib import Archive.zip compromised 2025-02-26 13:02:33 -08:00
node_modules allow adding node modules 2025-02-26 14:21:48 -08:00
src Finish env setup 2025-02-26 13:28:12 -08:00
test fix challenge 2025-02-26 14:20:21 -08:00
.gitignore allow adding node modules 2025-02-26 14:21:48 -08:00
.gitmodules import Archive.zip compromised 2025-02-26 13:02:33 -08:00
foundry.toml import Archive.zip compromised 2025-02-26 13:02:33 -08:00
package-lock.json import Archive.zip compromised 2025-02-26 13:02:33 -08:00
package.json import Archive.zip compromised 2025-02-26 13:02:33 -08:00
README.md Foundry init 2025-02-26 12:54:44 -08:00
remappings.txt Linter formatting changes 2025-02-26 13:54:59 -08:00

Foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.

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

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

Deploy

$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>

Cast

$ cast <subcommand>

Help

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