julien/lovepublic Fork 0
ce13509fab5b401d787ec19eb5198d7a4a4cbfc9
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 · 64 lines · 1.4 KBmarkdown Blame HistoryRaw
Merge 1-add-main-logic into main dded29a rickub 6h ago1# Love
document setup b1c9b0d julienbrg 7h ago2
Merge 1-add-main-logic into main dded29a rickub 6h ago3The official LOVE token.
document setup b1c9b0d julienbrg 7h ago4
Merge 1-add-main-logic into main dded29a rickub 6h ago5## Install
document setup b1c9b0d julienbrg 7h ago6
7```shell
8forge install
9cp .env.example .env
10```
11
Merge 1-add-main-logic into main dded29a rickub 6h ago12## Build & test
document setup b1c9b0d julienbrg 7h 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
Merge 1-add-main-logic into main dded29a rickub 6h ago24Deployment uses CREATE2, so the token has the same address on every EVM network.
25
document setup b1c9b0d julienbrg 7h ago26```shell
Merge 1-add-main-logic into main dded29a rickub 6h ago27forge script script/Love.s.sol:LoveScript --sig 'predict()' # print the address
28
document setup b1c9b0d julienbrg 7h ago29forge script script/Love.s.sol:LoveScript \
30 --rpc-url base_sepolia \
31 --account "$DEPLOYER_ACCOUNT" \
32 --broadcast \
33 --verify
34```
35
Merge 2-multichain-check into main 7c6b16b rickub 6h ago36To check determinism for real, deploy on two local chains and compare:
37
38```shell
39./script/multichain-check.sh
40```
41
42It starts two anvil nodes (chain IDs 31337 and 31338), broadcasts the script on
43both, and exits non-zero if the addresses differ. Override `PORT_A`, `PORT_B`,
44`CHAIN_ID_A`, `CHAIN_ID_B` or `SALT` as needed.
45
update docs for erc20 69c46a2 julienbrg 7h ago46## Mint
47
48```shell
49cast send <LOVE_ADDRESS> "mint(address,uint256)" <RECIPIENT> 1000000000000000000 \
50 --rpc-url base_sepolia \
51 --account "$DEPLOYER_ACCOUNT"
52```
Merge 1-add-main-logic into main dded29a rickub 6h ago53
54## License
55
56GPL-3.0
57
58## Contact
59
60**Julien Béranger** ([GitHub](https://github.com/julienbrg))
61
62- Element: [@julienbrg:matrix.org](https://matrix.to/#/@julienbrg:matrix.org)
63- Farcaster: [julien-](https://warpcast.com/julien-)
64- Telegram: [@julienbrg](https://t.me/julienbrg)