Follow installation + build instructions in the primary README. Then, run:
yarn build
Testing on a live network is a bit more complicated than testing locally. You'll need the following in order to do so:
- A pre-funded wallet with at least 40 ETH.
- URLs to an L1 and L2 node.
- The address of the address manager contract.
- The chain ID of the L2.
Once you have all the necessary info, create a .env
file like the one in .env.example
and fill it in with the values above. Then, run:
yarn test:integration:live
This will take quite a long time. Kovan, for example, takes about 30 minutes to complete.
You can also set environment variables on the command line instead of inside .env
if you want:
L1_URL=whatever L2_URL=whatever yarn test:integration:live
To run the Uniswap integration tests against a deployed set of Uniswap contracts, add the following env vars:
UNISWAP_POSITION_MANAGER_ADDRESS=<non fungible position manager address>
UNISWAP_ROUTER_ADDRESS=<router address>