Core Protocol contracts
- Use Foundry:
forge install
- Use Hardhat:
npm install
- Write / run tests with either Hardhat or Foundry:
forge test
# or
npx hardhat test
- Use Hardhat's task framework
npx hardhat example
Whenever you install new libraries using Foundry, make sure to update your remappings.txt
file by running forge remappings > remappings.txt
. This is required because we use hardhat-preprocessor
and the remappings.txt
file to allow Hardhat to resolve libraries you install with Foundry.