Skip to content

Latest commit

 

History

History

foundry-fundamentals

Foundry Fundamentals

Resources:

Cyfrin Updraft - Foundry Fundamentals

Foundry Book

Repo Cyfrin F23

Foundry Simple Storage

Foundry Fund Me

Foundry Smart Contract Lottery



Summary

Create Foundry project: forge init

Basic Foundry commands

Deploy: forge create or forge script

forge script <script> --rpc-url <rpc_url> --account <account_name> --sender <address> --broadcast

Interact with contract: cast <subcommand>

Local blockchain testnet: anvil


Project layout

.
├── foundry.toml
├── lib
│   └── forge-std
│       ├── foundry.toml
│       ├── lib
│       ├── LICENSE-APACHE
│       ├── LICENSE-MIT
│       ├── package.json
│       ├── README.md
│       ├── scripts
│       ├── src
│       └── test
├── README.md
├── script
│   └── Counter.s.sol
├── src
│   └── Counter.sol
└── test
    └── Counter.t.sol

10 directories, 10 files