/mooncats-namer

Made by Daniel Bernstein here: https://x.com/goatishduck/status/1736955272369766781?s=20, I just made the repository to collaborate and write tests.

Primary LanguageSolidityMIT LicenseMIT

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