This project uses Foundry.
- Clone and run
cp .env.example .env. - In a terminal, run:
forge install
forge test- In one terminal run:
./script/node.sh- In another terminal run:
forge script LocalScript --fork-url local --broadcast- The addresses of the deployed contracts are printed at the start of the log outputs.
Provided the memester frontend is in ../frontend relative to this repo, you can use the below script to update all ABIs:
./script/abis.shWe recommend installing the accompanying pre-commit hook to automatically run forge fmt and forge snapshot on commit:
cp hooks/pre-commit .git/hooks/pre-commitThis powers the on-chain meme competitions for https://memester.xyz but has been built to be as extensible as possible for other Lens applications.