-
Notifications
You must be signed in to change notification settings - Fork 968
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
rename Snaps #535
base: main
Are you sure you want to change the base?
rename Snaps #535
Conversation
test/PoolManager.t.sol
Outdated
modifyLiquidityRouter.modifyLiquidity{value: 1 ether}(nativeKey, LIQ_PARAMS, ZERO_BYTES); | ||
snapEnd(); | ||
} | ||
|
||
function test_removeLiquidity_withNative_gas() public { | ||
snapStart("removeLiquidity with native token"); | ||
snapStart("PoolManager.removeLiquidityWithNativeToken"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to go
ContractName.functionName_extraNotes
e.g.
PoolManager.removeLiquidity_withNative
PoolManager.swap_simple
PoolManager.collectProtocolFees_withNative
test/DynamicFees.t.sol
Outdated
@@ -142,7 +142,7 @@ contract TestDynamicFees is Test, Deployers, GasSnapshot { | |||
vm.expectEmit(true, true, true, true, address(manager)); | |||
emit Swap(key.toId(), address(swapRouter), -100, 98, 79228162514264329749955861424, 1e18, -1, 123); | |||
|
|||
snapStart("update dynamic fee in before swap"); | |||
snapStart("DynamicFees.updateDynamicSwapFee_beforeSwap"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
snapStart("DynamicFees.updateDynamicSwapFee_beforeSwap"); | |
snapStart("DynamicFees.swap_updateDynamicSwapFeeInBeforeSwap"); |
test/PoolManager.t.sol
Outdated
@@ -566,7 +566,7 @@ contract PoolManagerTest is Test, Deployers, GasSnapshot { | |||
PoolSwapTest.TestSettings memory testSettings = | |||
PoolSwapTest.TestSettings({withdrawTokens: true, settleUsingTransfer: true, currencyAlreadySent: false}); | |||
|
|||
snapStart("simple swap"); | |||
snapStart("PoolManager.simpleSwap"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
snapStart("PoolManager.simpleSwap"); | |
snapStart("PoolManager.swap_simple"); |
test/PoolManager.t.sol
Outdated
@@ -578,7 +578,7 @@ contract PoolManagerTest is Test, Deployers, GasSnapshot { | |||
PoolSwapTest.TestSettings memory testSettings = | |||
PoolSwapTest.TestSettings({withdrawTokens: true, settleUsingTransfer: true, currencyAlreadySent: false}); | |||
|
|||
snapStart("simple swap with native"); | |||
snapStart("PoolManager.simpleSwap_withNative"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
snapStart("PoolManager.simpleSwap_withNative"); | |
snapStart("PoolManager.swap_simpleWithNative"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left some suggestions :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update main? Then happy to approve/merge
@snreynolds done! |
Hello @snreynolds @hensha256 Request to have this merged. Thanks. |
Related Issue
Which issue does this pull request resolve?
#390
Description of changes
Renaming the snapshots according to #390 (standardize snapshot names (no spaces, maybe something like : testFile.testName)