Subscription Hub is a decentralized application (dApp) that allows projects and users to create and manage subscription plans on the blockchain. This smart contract system enables seamless integration of subscription-based models into decentralized applications (dApps) and traditional web applications.
Note: The Subscription Hub is currently under development. Not all features are available in the contract for the first release. Some of the features listed above are planned for future releases.
-
Flexible Subscription Plans: Create customizable subscription plans with various payment amounts, durations, and features. Projects can define subscription plans tailored to their specific needs.
-
Integration with dApps and Web Applications: Seamlessly integrate the subscription plans into dApps and traditional web applications, allowing users to access exclusive content, features, or services.
-
Automated Payment and Expiration: Streamline the payment process and plan expiration by leveraging smart contract automation. Users can subscribe, make payments, and receive notifications about plan renewals or expirations.
-
Cancel and Refund Flows: Provide users with the ability to cancel their subscriptions and initiate refund processes, adhering to predefined cancellation policies and refund rules.
-
Multi-Organization Support: Allow projects to create and manage multiple organizations, each with its own set of subscription plans. Users can subscribe to plans offered by different organizations.
-
Metadata and Customization: Add metadata and custom data to the subscription plans and organizations, providing additional information and flexibility for project owners and users.
-
Native and CW20 Tokens: Support for native tokens and CW20 tokens, allowing projects to accept payments in different currencies.
To compile the contract code and create the wasm file, run the following command:
./scripts/optimize.sh
To run the tests, run the following command:
cargo test
To try out the contract take a look at the TS scripts README file
This project is licensed under the Apache License, Version 2.0. Feel free to use, modify, and distribute this project in accordance with the terms of the license.
For any questions or inquiries about the Subscription Hub, please reach out to the project maintainers:
- Maintainer Name: findolor