diff --git a/contracts/interfaces/sablier/ISablierV2Lockup.sol b/contracts/interfaces/sablier/ISablierV2Lockup.sol deleted file mode 100644 index cce723e0..00000000 --- a/contracts/interfaces/sablier/ISablierV2Lockup.sol +++ /dev/null @@ -1,26 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.0; -import {LockupLinear2} from "../sablier/LockupLinear2.sol"; - -interface ISablierV2Lockup { - function withdrawableAmountOf( - uint256 streamId - ) external view returns (uint128 withdrawableAmount); - - function isCancelable(uint256 streamId) external view returns (bool result); - - function withdrawMax( - uint256 streamId, - address to - ) external returns (uint128 withdrawnAmount); - - function getStream( - uint256 streamId - ) external view returns (LockupLinear2.Stream memory); - - function cancel(uint256 streamId) external; - - function statusOf( - uint256 streamId - ) external view returns (LockupLinear2.Status status); -} diff --git a/contracts/interfaces/sablier/LockupLinear2.sol b/contracts/interfaces/sablier/LockupLinear2.sol deleted file mode 100644 index 2507cfb2..00000000 --- a/contracts/interfaces/sablier/LockupLinear2.sol +++ /dev/null @@ -1,31 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.0; - -library LockupLinear2 { - struct Stream { - address sender; - uint40 startTime; - uint40 endTime; - uint40 cliffTime; - bool cancelable; - bool wasCanceled; - address asset; - bool transferable; - uint128 totalAmount; - address recipient; - } - - /// @notice Enum representing the different statuses of a stream. - /// @custom:value0 PENDING Stream created but not started; assets are in a pending state. - /// @custom:value1 STREAMING Active stream where assets are currently being streamed. - /// @custom:value2 SETTLED All assets have been streamed; recipient is due to withdraw them. - /// @custom:value3 CANCELED Canceled stream; remaining assets await recipient's withdrawal. - /// @custom:value4 DEPLETED Depleted stream; all assets have been withdrawn and/or refunded. - enum Status { - PENDING, - STREAMING, - SETTLED, - CANCELED, - DEPLETED - } -}