| Merge 1-add-main-logic into main dded29a rickub 9h ago | 1 | # Love |
| document setup b1c9b0d julienbrg 10h ago | 2 | |
| Merge 1-add-main-logic into main dded29a rickub 9h ago | 3 | The official LOVE token. |
| document setup b1c9b0d julienbrg 10h ago | 4 | |
| Merge 1-add-main-logic into main dded29a rickub 9h ago | 5 | ## Install |
| document setup b1c9b0d julienbrg 10h ago | 6 | |
| 7 | ```shell |
| 8 | forge install |
| 9 | cp .env.example .env |
| 10 | ``` |
| 11 | |
| Merge 1-add-main-logic into main dded29a rickub 9h ago | 12 | ## Build & test |
| document setup b1c9b0d julienbrg 10h ago | 13 | |
| 14 | ```shell |
| 15 | forge build # compile |
| 16 | forge test # run tests |
| 17 | forge test -vvv # with traces |
| 18 | forge fmt # format |
| 19 | anvil # local node |
| 20 | ``` |
| 21 | |
| 22 | ## Deploy |
| 23 | |
| Merge 1-add-main-logic into main dded29a rickub 9h ago | 24 | Deployment uses CREATE2, so the token has the same address on every EVM network. |
| 25 | |
| document setup b1c9b0d julienbrg 10h ago | 26 | ```shell |
| Merge 1-add-main-logic into main dded29a rickub 9h ago | 27 | forge script script/Love.s.sol:LoveScript --sig 'predict()' # print the address |
| 28 | |
| document setup b1c9b0d julienbrg 10h ago | 29 | forge script script/Love.s.sol:LoveScript \ |
| 30 | --rpc-url base_sepolia \ |
| 31 | --account "$DEPLOYER_ACCOUNT" \ |
| 32 | --broadcast \ |
| 33 | --verify |
| 34 | ``` |
| 35 | |
| document multichain check 3a20a7c julienbrg 9h ago | 36 | To check determinism for real, deploy on two local chains and compare: |
| 37 | |
| 38 | ```shell |
| 39 | ./script/multichain-check.sh |
| 40 | ``` |
| 41 | |
| 42 | It starts two anvil nodes (chain IDs 31337 and 31338), broadcasts the script on |
| 43 | both, 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 10h ago | 46 | ## Mint |
| 47 | |
| 48 | ```shell |
| 49 | cast 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 9h ago | 53 | |
| 54 | ## License |
| 55 | |
| 56 | GPL-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) |