seanmc9 / chain-self-care

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solidity Development Template

The first thing you should do is get Foundry installed.

Do do this, follow the instructions here under the "Use Foundryup" section. Namely:

  1. Run curl -L https://foundry.paradigm.xyz | bash in your terminal.
  2. 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.

Foundry Documentation

https://book.getfoundry.sh/

Foundry 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

About

License:GNU Affero General Public License v3.0


Languages

Language:Solidity 100.0%