This is the smart contracts repo for pizza.split, a little protocol + dApp for splitting ETH and ERC-20s among friends.
This project was created in collaboration with Garden Labs and funded by PayPal to explore and demonstrate developer use cases of the PYUSD ERC-20 stablecoin.
Clone the repo.
Run forge install
.
Copy the .env.example
file to .env
and fill in your own values.
For this project I've gone ahead and just created a Makefile for common build targets. You can run tests with the bare make
command:
make
See Foundry docs for more testing options.
Check out the Makefile for build/deploy targets. Example:
make deploy-sepolia-dryrun
make deploy-sepolia
The private key is only used for deployment.
Depending on your development needs and risk tolerance, your key can be managed any way you like. My recommended approach is to use some kind of encrypted key storage. Check out Foundry's encrypted keystore, or use something like 1Password's op
CLI.