The first thing you should do is get Foundry installed.
Do do this, follow the instructions here under the "Use Foundryup" section. Namely:
- Run
curl -L https://foundry.paradigm.xyz | bash
in your terminal. - Run
foundryup
in your terminal.
Once that has successfully run, then run forge build
in the top directory of this repository in your terminal to compile and link all of the code (with the libraries) up.
Once you do this, you are ready to start editing, compiling, testing, and deploying the code in this repository.
Below you can find documentation on how to use forge (the Soldity development framework being used in this repository) and other Foundry tools available to you after running foundryup
.
$ forge build
$ forge test
$ forge fmt
$ forge snapshot
$ anvil
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
$ cast <subcommand>
$ forge --help
$ anvil --help
$ cast --help