Repository navigation
feat(billing): add metered usage accumulator (#1329 #1330 #1331 #1332) - #1602
Merged
github-actions[bot] merged 1 commit intoNov 24, 2026
Merged
github-actions[bot] merged 1 commit into
github-actions[bot] merged 1 commit into
Conversation
|
@opascal221-design is attempting to deploy a commit to the smartdevs17's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@opascal221-design Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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
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.
Closes #1329
Closes #1330
Closes #1331
Closes #1332
#1330 — Implement usage-metered billing with per-second settlement accumulator
backend/src/services/meteredBilling.ts: pure functions (no clock, DB or network) for a per-second accumulator. Amounts are bigint in the smallest unit.backend/src/services/__tests__/meteredBilling.test.tscovering accrual, carry, free seconds, the cap, start/stop, settlement and period rollover.#1329, #1331, #1332 — not implemented in this PR
workProofChallenger.ts), collaboration log (collabLog.ts) and travel-rule exchange (compliance/travelRule.ts) are not included. Their issues are linked above because the branch covers the batch, but each still needs its own implementation.Not done / caveats