proposal-45/contracts/interfaces/ISablier.sol
2024-01-03 19:12:52 +00:00

23 lines
544 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
struct SablierStream {
address sender;
address recipient;
uint256 deposit;
address token;
uint256 startTime;
uint256 stopTime;
uint256 remainingBalance;
uint256 ratePerSecond;
}
interface ISablier {
function createStream(address recipent, uint256 deposit, address tokenAddress, uint256 startTime, uint256 stopTime)
external
returns (uint256);
function getStream(uint256 streamId) external view returns (SablierStream memory);
}