This repository contains all Paraswap smart contracts
Before running any command, you need to create a .env file and set a BIP-39 compatible mnemonic as an environment variable. Follow the example in .env.example. If you don't already have a mnemonic, use this website to generate one.
Clone Paraswap-SmartContracts
git clone https://github.com/paraswap/paraswap-contracts.git
cd paraswap-contracts
yarnyarn compileyarn deployRun all tests (requires Node version >=8 for async/await, and will automatically run TestRPC in the background):
yarn testGet test coverage stats(requires Node version >=8 for async/await, and will automatically run TestRPC in the background):
yarn coverageI created new task, so we can deploy any contract and verify it for certain fork in order to test it. In order to use it, set appropriate envs and run:
npx hardhat deploy_verify_tenderly --network tenderly