-
Notifications
You must be signed in to change notification settings - Fork 21
feat: Implement comprehensive credit-based cost calculation and lifecycle management #836
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
Merged
Conversation
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
e871285
to
96663a1
Compare
nesitor
previously approved these changes
Aug 14, 2025
374c799
to
a694825
Compare
8c90358
to
635619f
Compare
a694825
to
1cce176
Compare
… it in /api/v0/addresses/{address}/balance
…piration and expenses
…+ new one for the next 24 hours
…+ new one for the next 24 hours
* Fix: Solve issue on format getting IPFS file sizes before downloading the entire content. * Fix: Added test cae for string dag_node format
253d2d7
to
e50dd4a
Compare
1d91bd5
to
53a9ac4
Compare
nesitor
approved these changes
Oct 8, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR depends on #827
Summary
Implements a complete credit-based payment system for Aleph resources,
extending the existing cost calculation framework to support credit
payments alongside hold and stream payments. Includes cost calculation,
balance validation, automated resource cleanup, and 1-day minimum runtime
protection.
Key Features
types (VMs, programs, storage)
runtime requirement
manages resource cleanup
handlers
Major Changes
Database & Configuration
management
all service tiers
Cost System
order)
types
Message Handlers
protection
validation methods
reporting
Automated Management
resource lifecycle
Technical Implementation
24-hour operation
payment detection
sufficient
Files Changed
configuration
Backward Compatibility
Deployment
This provides a complete credit payment ecosystem with automated resource
management while maintaining full backward compatibility.