/uniswap-v2-puzzles

Primary LanguageSolidityGNU Affero General Public License v3.0AGPL-3.0

UniswapV2-Puzzles by RareSkills

How to play

  • Git clone the Repo

  • Install dependencies

    $ forge install
  • Start hacking.

Run test

The test forks mainnet so as to interact with contracts on a real network and also give a more realistic experience. Go to Alchemy or infura to get your_mainnet_rpc_url.

$ forge test --fork-url <your_mainnet_rpc_url> --match-path test/<test_filename> -vvv

Test Your RPC with HelloWorld Puzzle

Run the following command:

$ forge test --fork-url <your_mainnet_rpc_url> --match-path test/HelloWorld.t.sol -vvv

If the test passes, RPC is working, else, it might have exceeded its rate limit or typo in the url.

Suggested order for the puzzles