Skip to content

Commit

Permalink
docs: Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mgnfy-view committed Dec 19, 2024
1 parent 7655498 commit 2f0baa5
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SafeSubscriptions
[Git Source](https://github.com/mgnfy-view/safe-subscriptions/blob/ee23a85b61e1a2fcb6f4711abea433f68c6a08e4/src/SafeSubscriptions.sol)
[Git Source](https://github.com/mgnfy-view/safe-subscriptions/blob/7655498651b4e9751995b9d5f9d47397b3b97bd0/src/SafeSubscriptions.sol)

**Inherits:**
EIP712, [ISafeSubscriptions](/src/interfaces/ISafeSubscriptions.sol/interface.ISafeSubscriptions.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,91 @@
# ISafeSubscriptions
[Git Source](https://github.com/mgnfy-view/safe-subscriptions/blob/ee23a85b61e1a2fcb6f4711abea433f68c6a08e4/src/interfaces/ISafeSubscriptions.sol)
[Git Source](https://github.com/mgnfy-view/safe-subscriptions/blob/7655498651b4e9751995b9d5f9d47397b3b97bd0/src/interfaces/ISafeSubscriptions.sol)


## Functions
### createSubscription


```solidity
function createSubscription(
Subscription memory _subscription,
uint256 _deadline,
uint256 _nonce,
bytes memory _signatures
)
external
returns (bytes32);
```

### cancelSubscription


```solidity
function cancelSubscription(
bytes32 _subscriptionDataHash,
uint256 _deadline,
uint256 _nonce,
bytes memory _signatures
)
external;
```

### withdrawFromSubscription


```solidity
function withdrawFromSubscription(bytes32 _subscriptionDataHash) external;
```

### getSafe


```solidity
function getSafe() external view returns (address);
```

### getNextNonce


```solidity
function getNextNonce() external view returns (uint256);
```

### getSubscriptionData


```solidity
function getSubscriptionData(bytes32 _subscriptionDataHash) external view returns (Subscription memory);
```

### isSubscriptionCancelled


```solidity
function isSubscriptionCancelled(bytes32 _subscriptionDataHash) external view returns (bool);
```

### getEncodedSubscriptionDataAndHash


```solidity
function getEncodedSubscriptionDataAndHash(
Subscription memory _subscription,
uint256 _deadline,
uint256 _nonce
)
external
view
returns (bytes memory, bytes32);
```

### getSubscriptionDataHash


```solidity
function getSubscriptionDataHash(Subscription memory _subscription) external pure returns (bytes32);
```

## Events
### SubscriptionCreated

Expand Down

0 comments on commit 2f0baa5

Please sign in to comment.