Performing flash loan through AAVE
- Sign up for Infura, Etherscan, and have a MetaMask wallet
- Install Hardhat CLI
- Clone repo
npm i
- Update .env file with keys from Infura, etherscan, and private key from metamask wallet
npx hardhat compile
- In a new terminal window:
npx hardhat node
npx hardhat run scrips/deploy-flash-loan.sol --network localhost
Advanced Legacy Hardhat Project Commands
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
npx hardhat help
REPORT_GAS=true npx hardhat test
npx hardhat coverage
npx hardhat run scripts/deploy.ts
TS_NODE_FILES=true npx ts-node scripts/deploy.ts
npx eslint '**/*.{js,ts}'
npx eslint '**/*.{js,ts}' --fix
npx prettier '**/*.{json,sol,md}' --check
npx prettier '**/*.{json,sol,md}' --write
npx solhint 'contracts/**/*.sol'
npx solhint 'contracts/**/*.sol' --fix