-
Notifications
You must be signed in to change notification settings - Fork 976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate Tick tests from HardHat to Foundry #322
Migrate Tick tests from HardHat to Foundry #322
Conversation
Hi @ewilz I also refactored this PR to use forge-gas-snapshot, ready for the review. |
The PR needs changes similar to #317 , in progress... |
e3bfd50
to
63c0321
Compare
Hi @ewilz this PR is ready for the next review round, too. |
Hi @0xb10ckdev thank you for the review, I am on it! |
…eton to Foundry. Ref: Uniswap#315
MIN_TICK and MAX_TICK constants. Ref: Uniswap#315
The test contract was a middle layer between library and was used by javascript / HardHat tests. Due to the middle layer using Foundry, gas cost usage was calculated incorrectly. Generate correct gas snapshots using direct library calls. Delete unnecessary comments. Functions moved and internalized from TickTest.sol: * ticks() * tickSpacingToMaxLiquidityPerTick() * setTick(), * getFeeGrowthInside() * update() * clear() Ref: Uniswap#315
577986d
to
7261dc6
Compare
Hi @0xb10ckdev I rebased to the latest main branch and applied all suggestions. PR is ready for another review round. |
Need to delete js snapshots & TIckTest.sol + could delete |
I am on it. |
Hi @ewilz the PR is ready for another round of the review. |
pushed up some small changes to avoid annoying churn. Thanks so much for all the work you've been doing on testing!!! |
Related Issue
This pull request migrates Tick tests from HardHat to Foundry (32 test cases), a part of #315 .
Description of changes
Note: This PR must be merged after #317 since it uses
./utils/Constants.sol
.