Last active
August 17, 2022 20:53
-
-
Save KolevDarko/a7b455df4575dd8bcafd9d8e055ed29f to your computer and use it in GitHub Desktop.
Subscription Mgr 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract SubscriptionManager { | |
struct Subscription { | |
address payer; | |
address receiver; | |
uint256 amount; | |
address token; | |
uint256 payoutPeriod; | |
uint256 lastPayout; | |
bool active; | |
} | |
mapping(uint256 => Subscription) public subscriptions; | |
uint256 public subscriptionCounter; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment