| document setup b1c9b0d julienbrg 8h ago | 1 | # love |
| 2 | |
| 3 | A [Foundry](https://getfoundry.sh) project. |
| 4 | |
| 5 | `Love` is a minimal contract that records units of love sent from one address to |
| 6 | another — a placeholder to build on. |
| 7 | |
| 8 | ## Setup |
| 9 | |
| 10 | ```shell |
| 11 | forge install |
| 12 | cp .env.example .env |
| 13 | ``` |
| 14 | |
| 15 | ## Usage |
| 16 | |
| 17 | ```shell |
| 18 | forge build # compile |
| 19 | forge test # run tests |
| 20 | forge test -vvv # with traces |
| 21 | forge fmt # format |
| 22 | forge coverage # coverage report |
| 23 | forge snapshot # gas snapshot |
| 24 | anvil # local node |
| 25 | ``` |
| 26 | |
| 27 | ## Deploy |
| 28 | |
| 29 | ```shell |
| 30 | forge script script/Love.s.sol:LoveScript \ |
| 31 | --rpc-url base_sepolia \ |
| 32 | --account "$DEPLOYER_ACCOUNT" \ |
| 33 | --broadcast \ |
| 34 | --verify |
| 35 | ``` |
| 36 | |
| 37 | Drop `--broadcast` for a dry run. |
| 38 | |
| 39 | ## Layout |
| 40 | |
| 41 | | Path | Contents | |
| 42 | | --------- | ------------------- | |
| 43 | | `src/` | Contracts | |
| 44 | | `test/` | Tests | |
| 45 | | `script/` | Deployment scripts | |
| 46 | | `lib/` | Dependencies | |