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 |
|