julien/lovepublic Fork 0
1-add-main-logic
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.

README.md · 54 lines · 1.0 KBmarkdown Blame HistoryRaw
trim readme 1a71b77 julienbrg 5h ago1# Love
document setup b1c9b0d julienbrg 6h ago2
trim readme 1a71b77 julienbrg 5h ago3The official LOVE token.
document setup b1c9b0d julienbrg 6h ago4
trim readme 1a71b77 julienbrg 5h ago5## Install
document setup b1c9b0d julienbrg 6h ago6
7```shell
8forge install
9cp .env.example .env
10```
11
trim readme 1a71b77 julienbrg 5h ago12## Build & test
document setup b1c9b0d julienbrg 6h ago13
14```shell
15forge build # compile
16forge test # run tests
17forge test -vvv # with traces
18forge fmt # format
19anvil # local node
20```
21
22## Deploy
23
trim readme 1a71b77 julienbrg 5h ago24Deployment uses CREATE2, so the token has the same address on every EVM network.
document create2 deployment 1c407d3 julienbrg 5h ago25
26```shell
trim readme 1a71b77 julienbrg 5h ago27forge script script/Love.s.sol:LoveScript --sig 'predict()' # print the address
document create2 deployment 1c407d3 julienbrg 5h ago28
document setup b1c9b0d julienbrg 6h ago29forge script script/Love.s.sol:LoveScript \
30 --rpc-url base_sepolia \
31 --account "$DEPLOYER_ACCOUNT" \
32 --broadcast \
33 --verify
34```
35
update docs for erc20 69c46a2 julienbrg 6h ago36## Mint
37
38```shell
39cast send <LOVE_ADDRESS> "mint(address,uint256)" <RECIPIENT> 1000000000000000000 \
40 --rpc-url base_sepolia \
41 --account "$DEPLOYER_ACCOUNT"
42```
trim readme 1a71b77 julienbrg 5h ago43
44## License
45
46GPL-3.0
47
48## Contact
49
50**Julien Béranger** ([GitHub](https://github.com/julienbrg))
51
52- Element: [@julienbrg:matrix.org](https://matrix.to/#/@julienbrg:matrix.org)
53- Farcaster: [julien-](https://warpcast.com/julien-)
54- Telegram: [@julienbrg](https://t.me/julienbrg)