Skip to content

Commit

Permalink
test: remove unused functions from Base_Test
Browse files Browse the repository at this point in the history
  • Loading branch information
andreivladbrg committed Mar 11, 2024
1 parent bcd435d commit f0f7b36
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions test/Base.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -115,54 +115,6 @@ abstract contract Base_Test is Assertions, DeployOptimized, Events, Merkle, V2Co
CALL EXPECTS
//////////////////////////////////////////////////////////////////////////*/

/// @dev Expects a call to {ISablierV2LockupDynamic.createWithDurations}.
function expectCallToCreateWithDurationsLD(LockupDynamic.CreateWithDurations memory params) internal {
vm.expectCall({
callee: address(lockupDynamic),
data: abi.encodeCall(ISablierV2LockupDynamic.createWithDurations, (params))
});
}

/// @dev Expects a call to {ISablierV2LockupLinear.createWithDurations}.
function expectCallToCreateWithDurationsLL(LockupLinear.CreateWithDurations memory params) internal {
vm.expectCall({
callee: address(lockupLinear),
data: abi.encodeCall(ISablierV2LockupLinear.createWithDurations, (params))
});
}

/// @dev Expects a call to {ISablierV2LockupTranched.createWithDurations}.
function expectCallToCreateWithDurationsLT(LockupTranched.CreateWithDurations memory params) internal {
vm.expectCall({
callee: address(lockupTranched),
data: abi.encodeCall(ISablierV2LockupTranched.createWithDurations, (params))
});
}

/// @dev Expects a call to {ISablierV2LockupDynamic.createWithTimestamps}.
function expectCallToCreateWithTimestampsLD(LockupDynamic.CreateWithTimestamps memory params) internal {
vm.expectCall({
callee: address(lockupDynamic),
data: abi.encodeCall(ISablierV2LockupDynamic.createWithTimestamps, (params))
});
}

/// @dev Expects a call to {ISablierV2LockupLinear.createWithTimestamps}.
function expectCallToCreateWithTimestampsLL(LockupLinear.CreateWithTimestamps memory params) internal {
vm.expectCall({
callee: address(lockupLinear),
data: abi.encodeCall(ISablierV2LockupLinear.createWithTimestamps, (params))
});
}

/// @dev Expects a call to {ISablierV2LockupTranched.createWithTimestamps}.
function expectCallToCreateWithTimestampsLT(LockupTranched.CreateWithTimestamps memory params) internal {
vm.expectCall({
callee: address(lockupTranched),
data: abi.encodeCall(ISablierV2LockupTranched.createWithTimestamps, (params))
});
}

/// @dev Expects a call to {IERC20.transfer}.
function expectCallToTransfer(address to, uint256 amount) internal {
expectCallToTransfer(address(dai), to, amount);
Expand Down

0 comments on commit f0f7b36

Please sign in to comment.