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

Merge 3-peg-love-to-weth into main ce13509 · on main · rickub · 1h ago
README.md

Love

The official LOVE token.

Install

forge install
cp .env.example .env

Build & test

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

Deploy

Deployment uses CREATE2, so the token has the same address on every EVM network.

forge script script/Love.s.sol:LoveScript --sig 'predict()'   # print the address

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

To check determinism for real, deploy on two local chains and compare:

./script/multichain-check.sh

It starts two anvil nodes (chain IDs 31337 and 31338), broadcasts the script on
both, and exits non-zero if the addresses differ. Override PORT_A, PORT_B,
CHAIN_ID_A, CHAIN_ID_B or SALT as needed.

Mint

cast send <LOVE_ADDRESS> "mint(address,uint256)" <RECIPIENT> 1000000000000000000 \
  --rpc-url base_sepolia \
  --account "$DEPLOYER_ACCOUNT"

License

GPL-3.0

Contact

Julien Béranger (GitHub)