-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
CCIP-4428 Decouple LiquidityManager tests with LockReleaseTokenPool #16017
CCIP-4428 Decouple LiquidityManager tests with LockReleaseTokenPool #16017
Conversation
0xsuryansh
commented
Jan 21, 2025
•
edited
Loading
edited
- Decouple LiquidityManager tests from LockReleaseTokenPool by creating a stub for lock release pool
- Split & rename tests according to foundry style guide
Solidity Review Jira issueHey! We have taken the liberty to link this PR to a Jira issue for Solidity Review. This is a new feature, that's currently in the pilot phase, so please make sure that the linkage is correct. In a contrary case, please update it manually in JIRA and replace Solidity Review issue key in the changeset file with the correct one. Any changes to the Solidity Review Jira issue should be reflected in the changeset file. If you need to update the issue key, please do so manually in the following changeset file: This PR has been linked to Solidity Review Jira issue: CCIP-3966 |
…getests-ccip-pool' into CCIP-4428_decouple-liquiditymanagetests-ccip-pool
contracts/src/v0.8/liquiditymanager/test/LiquidityManager.report.t.sol
Outdated
Show resolved
Hide resolved
import {LiquidityManager} from "../LiquidityManager.sol"; | ||
|
||
contract LiquidityManager_setCrossChainRebalancer is LiquidityManagerSetup { | ||
event CrossChainRebalancerSet( |
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 this event be imported from LiquidityManager directly instead of being redefined.
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.
This was not resolved
contracts/src/v0.8/liquiditymanager/test/LiquidityManager.setCrossChainRebalancer.t.sol
Outdated
Show resolved
Hide resolved
contracts/src/v0.8/liquiditymanager/test/mocks/MockTokenPool.sol
Outdated
Show resolved
Hide resolved
contracts/src/v0.8/liquiditymanager/test/LiquidityManagerSetup.t.sol
Outdated
Show resolved
Hide resolved
contracts/src/v0.8/liquiditymanager/test/LiquidityManager.setLocalLiquidityContainer.t.sol
Outdated
Show resolved
Hide resolved
import {LiquidityManagerSetup} from "./LiquidityManagerSetup.t.sol"; | ||
|
||
contract LiquidityManager_receive is LiquidityManagerSetup { | ||
event NativeDeposited(uint256 amount, address depositor); |
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.
Please always reference events instead of duplicating if possible
contract LiquidityManager_receive is LiquidityManagerSetup { | ||
event NativeDeposited(uint256 amount, address depositor); | ||
|
||
address private depositor = makeAddr("depositor"); |
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.
Probably not needed as global with a single test?
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.
yeah, moved to local
import {LiquidityManager} from "../LiquidityManager.sol"; | ||
|
||
contract LiquidityManager_setCrossChainRebalancer is LiquidityManagerSetup { | ||
event CrossChainRebalancerSet( |
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.
This was not resolved
|
||
import {IERC20} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; | ||
|
||
// FOUNDRY_PROFILE=liquiditymanager forge test --match-path src/v0.8/liquiditymanager/test/LiquidityManager.t.sol |
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.
to remove
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.
removed
Quality Gate passedIssues Measures |