julien/lovepublic Fork 0
4c8048e23e8787ba74fddc54b0d8a91a7f32661c
Commits
Clone
git clone https://git.rickub.com/julien/love.git
git clone ssh://git@rickub.com/julien/love.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

document setup b1c9b0d · on 4c8048e23e8787ba74fddc54b0d8a91a7f32661c · julienbrg · 7h ago
README.md · 46 lines · 928 Bmarkdown
Blame HistoryOpen raw

love

A Foundry project.

Love is a minimal contract that records units of love sent from one address to
another — a placeholder to build on.

Setup

forge install
cp .env.example .env

Usage

forge build            # compile
forge test             # run tests
forge test -vvv        # with traces
forge fmt              # format
forge coverage         # coverage report
forge snapshot         # gas snapshot
anvil                  # local node

Deploy

forge script script/Love.s.sol:LoveScript \
  --rpc-url base_sepolia \
  --account "$DEPLOYER_ACCOUNT" \
  --broadcast \
  --verify

Drop --broadcast for a dry run.

Layout

Path Contents
src/ Contracts
test/ Tests
script/ Deployment scripts
lib/ Dependencies
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# love

A [Foundry](https://getfoundry.sh) project.

`Love` is a minimal contract that records units of love sent from one address to
another — a placeholder to build on.

## Setup

```shell
forge install
cp .env.example .env
```

## Usage

```shell
forge build            # compile
forge test             # run tests
forge test -vvv        # with traces
forge fmt              # format
forge coverage         # coverage report
forge snapshot         # gas snapshot
anvil                  # local node
```

## Deploy

```shell
forge script script/Love.s.sol:LoveScript \
  --rpc-url base_sepolia \
  --account "$DEPLOYER_ACCOUNT" \
  --broadcast \
  --verify
```

Drop `--broadcast` for a dry run.

## Layout

| Path      | Contents            |
| --------- | ------------------- |
| `src/`    | Contracts           |
| `test/`   | Tests               |
| `script/` | Deployment scripts  |
| `lib/`    | Dependencies        |