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)
- Element: @julienbrg:matrix.org
- Farcaster: julien-
- Telegram: @julienbrg