Skip to content
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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

rename Snaps #535

wants to merge 8 commits into from

Conversation

nishim3
Copy link
Contributor

@nishim3 nishim3 commented Mar 27, 2024

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)

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");
Copy link
Contributor

@hensha256 hensha256 Mar 27, 2024

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

@@ -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");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
snapStart("DynamicFees.updateDynamicSwapFee_beforeSwap");
snapStart("DynamicFees.swap_updateDynamicSwapFeeInBeforeSwap");

@@ -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");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
snapStart("PoolManager.simpleSwap");
snapStart("PoolManager.swap_simple");

@@ -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");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
snapStart("PoolManager.simpleSwap_withNative");
snapStart("PoolManager.swap_simpleWithNative");

Copy link
Contributor

@hensha256 hensha256 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left some suggestions :)

@nishim3 nishim3 reopened this Mar 27, 2024
Copy link
Member

@snreynolds snreynolds left a 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

@nishim3
Copy link
Contributor Author

nishim3 commented Apr 19, 2024

@snreynolds done!

@prosperring
Copy link
Contributor

Hello @snreynolds @hensha256 Request to have this merged. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants