Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EIP: Subscription-Based Token #6933

Closed
wants to merge 23 commits into from
Closed

Conversation

0xRobinR
Copy link

The subscription-based ERC-20 token extends the basic ERC-20 token standard with a subscribe and unsubscribe function, which allow users to subscribe or unsubscribe from the subscription service. The subscriptionFee and subscriptionFrequency variables define the cost and frequency of the subscription. The nextPaymentDate mapping keeps track of the next payment date for each subscriber.

This EIP also proposes adding renewSubscription functions to the token contract, that can be used by token holders to renew their subscription to a service or product that requires recurring payments in the form of the token.

@0xRobinR 0xRobinR requested a review from eth-bot as a code owner April 25, 2023 12:52
@github-actions github-actions bot added c-new Creates a brand new proposal s-draft This EIP is a Draft t-erc labels Apr 25, 2023
@eth-bot
Copy link
Collaborator

eth-bot commented Apr 25, 2023

File EIPS/eip-6932.md

Requires 1 more reviewers from @axic, @Pandapip1, @SamWilsn, @xinbenlv

@eth-bot eth-bot changed the title Add EIP: Subscription-Based ERC 20 Token Add EIP: Subscription-Based ERC20 Token Apr 25, 2023
@eth-bot eth-bot added e-consensus Waiting on editor consensus e-review Waiting on editor to review labels Apr 25, 2023
@github-actions github-actions bot added the w-ci Waiting on CI to pass label Apr 25, 2023
@eth-bot eth-bot changed the title Add EIP: Subscription-Based ERC20 Token Add EIP: Subscription-Based Token Apr 25, 2023
@github-actions github-actions bot removed c-new Creates a brand new proposal t-erc s-draft This EIP is a Draft labels Apr 25, 2023
@eth-bot eth-bot enabled auto-merge (squash) April 25, 2023 13:04
eth-bot
eth-bot previously approved these changes Apr 25, 2023
Copy link
Collaborator

@eth-bot eth-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All Reviewers Have Approved; Performing Automatic Merge...

auto-merge was automatically disabled April 25, 2023 13:04

Head branch was pushed to by a user without write access

@github-actions github-actions bot added c-new Creates a brand new proposal s-draft This EIP is a Draft t-erc and removed w-ci Waiting on CI to pass labels Apr 25, 2023
@github-actions github-actions bot added c-new Creates a brand new proposal s-draft This EIP is a Draft t-erc and removed t-erc s-draft This EIP is a Draft labels Apr 27, 2023
@0xRobinR
Copy link
Author

@abcoathup will you share an update on this ?

@abcoathup
Copy link
Contributor

@abcoathup will you share an update on this ?

You need to add a rationale and security considerations section. Then you will need an EIP editor to review.

@0xRobinR 0xRobinR dismissed a stale review via 9dad1cf May 24, 2023 07:44
@github-actions
Copy link

The commit 9dad1cf (as a parent of e0f2e86) contains errors.
Please inspect the Run Summary for details.

@github-actions github-actions bot added the w-ci Waiting on CI to pass label May 24, 2023
@github-actions github-actions bot removed the w-ci Waiting on CI to pass label May 24, 2023
@0xRobinR
Copy link
Author

0xRobinR commented Jun 1, 2023

https://github.com/360core/eip-6932

working implementation of eip-6932

@axic @Pandapip1 @SamWilsn @xinbenlv @abcoathup

@0xRobinR 0xRobinR changed the title Add EIP: Subscription-Based Token Add EIP: Auto-Debit Subscription-Based Token Jun 1, 2023

## Specification

The Subscription Token implements an interface following the guidelines defined in [ERC-1337](./eip-1337.md), ensuring consistency and interoperability across different implementations. Key features include:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mentioning ERC-1337 creates an implicit dependency between your proposal and that one. There's nothing wrong with doing so, if it's intentional, but I want to point it out because your proposal won't be able to advance past the status of ERC-1337 (so you'd be stuck in draft.)

We enforce this rule because the author of ERC-1337 could completely change the contents of their proposal, making yours nonsensical.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I will minimize this

EIPS/eip-6932.md Outdated Show resolved Hide resolved
Comment on lines +42 to +64
#### subscribers

subscribers list for the subscription

#### subscriptionInfo

struct containing metadata of the subscription, ex, `subscriptionID`, `subscriptionName`, `subscriptionDesc` and `subscriptionTandC`, and many more fields if reqd.

#### subscriptionFee

the fee amount for the subcription

#### subscriptionFrequency

frequency of subscription, interval at which the `subscriptionFee` will be charged.

#### subscribe

function to subscribe toh the subscription

#### unsubscribe

revoke subscription
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The content here is a bit light, even for a draft. After reading, I don't really have a good idea of what these entities are.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add more details to this

/// @return the address at index `idx` of subscribers
function subscribers(uint idx) external view returns (address);

/// @dev can be extended accorging to the requirements
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notes like this don't really belong in a standard. You should completely define the interface, with formal ways to extend it if necessary.

Comment on lines +95 to +97
The introduction of the Subscription Token EIP addresses several critical aspects of the Ethereum ecosystem, providing a rationale for its adoption and implementation.

Traditional subscription models often require users to manually initiate recurring payments, leading to inconvenience and potential disruptions in service delivery. By establishing a Subscription Token standard, users can authorize automatic deductions from their balances at predefined intervals. This automation simplifies the subscription management process, ensuring uninterrupted access to subscribed services without the need for repetitive manual actions.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all reads more like it belongs in the Motivation section. The Rationale section should justify technical choices made within the EIP itself, while the Motivation justifies the EIP as a whole.

@eth-bot eth-bot changed the title Add EIP: Auto-Debit Subscription-Based Token Add EIP: Subscription-Based Token Sep 20, 2023
0xRobinR and others added 3 commits September 23, 2023 09:08
update to recommended description

Co-authored-by: Sam Wilson <57262657+SamWilsn@users.noreply.github.com>
@SamWilsn
Copy link
Contributor

Just checking if this is ready for re-review?

@0xRobinR
Copy link
Author

Just checking if this is ready for re-review?

Yes, just updating with the required changes, I'll push and tag you then

@SamWilsn
Copy link
Contributor

I am closing this pull request because we are in the process of separating EIPs and ERCs into distinct repositories. Unfortunately, as far as we are aware, GitHub does not provide any tools to ease this migration, so every pull request will need to be re-opened manually.

As this is a PR to create / modify an ERC, I will kindly ask you to redirect this to the new repository at ethereum/ERCs. We have prepared a guide to help with the process.

If there is relevant history here, please link to this PR from the new pull request.

On behalf of the EIP Editors, I apologize for this inconvenience.

@SamWilsn SamWilsn closed this Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-new Creates a brand new proposal e-consensus Waiting on editor consensus e-review Waiting on editor to review s-draft This EIP is a Draft t-erc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants