Skip to content

Commit

Permalink
chore: Add functions to the interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mgnfy-view committed Dec 19, 2024
1 parent 2dc3ee5 commit 7655498
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/interfaces/ISafeSubscriptions.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,34 @@ interface ISafeSubscriptions {
error TransactionFailed();
error DeadlinePassed(uint256 deadline, uint256 currentTimestamp);
error InvalidNonce(uint256 givenNonce, uint256 expectedNonce);

function createSubscription(
Subscription memory _subscription,
uint256 _deadline,
uint256 _nonce,
bytes memory _signatures
)
external
returns (bytes32);
function cancelSubscription(
bytes32 _subscriptionDataHash,
uint256 _deadline,
uint256 _nonce,
bytes memory _signatures
)
external;
function withdrawFromSubscription(bytes32 _subscriptionDataHash) external;
function getSafe() external view returns (address);
function getNextNonce() external view returns (uint256);
function getSubscriptionData(bytes32 _subscriptionDataHash) external view returns (Subscription memory);
function isSubscriptionCancelled(bytes32 _subscriptionDataHash) external view returns (bool);
function getEncodedSubscriptionDataAndHash(
Subscription memory _subscription,
uint256 _deadline,
uint256 _nonce
)
external
view
returns (bytes memory, bytes32);
function getSubscriptionDataHash(Subscription memory _subscription) external pure returns (bytes32);
}

0 comments on commit 7655498

Please sign in to comment.