The primary tea token.
Minting permissions controlled by the registry.owner()
with a minter role being given to the TeaMasterChef
contract by the factory.
A minting cap (not a supply cap due to burning) is hardcoded.
This repo uses PaulRBerg's foundry-template.
To write a new test contract, you start by importing PRBTest and inherit from
it in your test contract. PRBTest comes with a pre-instantiated cheatcodes
environment accessible via the vm
property. If you would like to view the logs in the terminal output you can add the
-vvv
flag and use console.log.
This is a list of the most frequently needed commands.
Build the contracts:
forge build
Delete the build artifacts and cache directories:
forge clean
Compile the contracts:
forge build
Get a test coverage report:
forge coverage
Format the contracts:
forge fmt
Get a gas report:
forge test --gas-report
Lint the contracts:
pnpm lint
Run the tests:
forge test
- Foundry uses git submodules to manage dependencies. For detailed instructions on working with dependencies, please refer to the guide in the book
- You don't have to create a
.env
file, but filling in the environment variables may be useful when debugging and testing against a fork.
This project is licensed under Apache License, Version 2.0.