-
Click the green "Use this template" button. Make your solution repo private, and invite dhruvinparikh and fiqureshi1 to the repo once you're ready to submit.
-
AT THE TOP OF EACH CONTRACT FILE, PLEASE LIST GITHUB LINKS TO ANY AND ALL REPOS YOU BORROW FROM THAT YOU DO NOT EXPLICITLY IMPORT FROM ETC.
-
PLEASE WRITE AS MUCH OR AS LITTLE CODE AS YOU THINK IS NEEDED TO COMPLETE THE TASK
-
LIBRARIES AND UTILITY CONTRACTS (SUCH AS THOSE FROM OPENZEPPELIN) ARE FAIR GAME
-
Fill in the Challenge contract's functions so that the unit tests pass in
tests/Challenge.spec.ts
- Please be overly explicit with your code comments
- Since the unit tests are written according to the incomplete contract, please do not rename functions or variables
- You are required to comment comment above each lines for errors if any for each contract.
- Explain the error and how to mitigate that error.
- Coding of the solution is not required.
- You are only required to comment on way of fixing error in short paragraph
-
Debug the contract
- Debugging includes incorrect code, anti-patterns, bad formatting, gas considerations etc
- Please comment your code explaining your reasoning for changes/additions
- There are no unit tests associated with the MockERC1155 contract
- In case you're unfamiliar, please read about the ERC1155 standard here, but please do not spend any time converting the contract into a proper ERC1155 contract
- Build a contract that does the following:
- Implements an ERC20 token
- Creates its own Uniswap V3 pair with ETH
- Seeds that Uniswap pair with liquidity
- The above requirements should be implemented directly in the token contract
- Include tests, deployment/migration scripts, and documentation.
- Please feel free to use any code/packages from the following Github Organizations and Docs:
Before running any command, make sure to install dependencies:
$ yarn install
Compile the smart contracts with Hardhat:
$ yarn compile
Generate the code coverage report:
$ yarn coverage
Deploy the contracts to Hardhat Network:
$ yarn deploy
Run the Mocha tests:
$ yarn test
Compile the smart contracts and generate TypeChain artifacts:
$ yarn typechain