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

New media branch #37

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

Conversation

Maphikza
Copy link
Member

No description provided.

…ith stats db as sql is easier to update and query
- Add SubscriptionTier struct with data_limit and price fields
- Update RelaySettings struct to include subscription_tiers field
- Modify settings handlers to process subscription tiers data
- Update viper config to handle subscription tiers storage
- Ensure proper JSON serialization/deserialization of tier data
…date

- Enhanced  function to conditionally create a new kind 411 event if there are changes in .
- Passed  as a parameter to  and related route handlers.
- Improved configuration update logic and comparison checks for  to minimize unnecessary kind 411 creation.
…date

- Enhanced updateRelaySettings function to conditionally create a new kind 411 event if there are changes in subscription_tiers.
- Passed store as a parameter to updateRelaySettings and related route handlers.
- Improved configuration update logic and comparison checks for subscription_tiers to minimize unnecessary kind 411 creation.
- Updated createNIP88EventIfNotExists and createOrUpdateNIP88Event functions to include dynamic 'subscription_tier' tags based on values retrieved via Viper configuration.
- Implemented type assertions and error handling for retrieving and parsing 'subscription_tiers' from configuration.
- Ensured consistent tagging for tiers, including data limits and prices, with improved error logging for type conversions and assertions.
…ers when the relay runner needs to make an adjustment to the tier prices it will take too much effort changing all the kind 888 to reflect this change so if we just update it on kind 411 then subscribers can pull the updated pricing fron 411
Adds functionality to retrieve subscriber information by Bitcoin address.
This method supports transaction processing by allowing lookup of subscriber
details when processing incoming Bitcoin payments.

- Implements GetSubscriberByAddress in GormSubscriberStore
- Returns complete subscriber record including npub for payment processing
- Handles both 'not found' and general database error cases
@f7f376a1fcd0d0e11a10ed1b6577c9
Copy link
Member

Is there a reason why we have a new sqlite database specifically for subscriber information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants