Skip to content

feat: implement Soroban-backed billing service#197

Merged
greatest0fallt1me merged 3 commits intoCalloraOrg:mainfrom
dimka90:feat/issue-22-soroban-billing
Mar 29, 2026
Merged

feat: implement Soroban-backed billing service#197
greatest0fallt1me merged 3 commits intoCalloraOrg:mainfrom
dimka90:feat/issue-22-soroban-billing

Conversation

@dimka90
Copy link
Copy Markdown
Contributor

@dimka90 dimka90 commented Mar 28, 2026

Summary

  • replace the placeholder billing flow with a Soroban-backed billing service that checks balance, retries transient deduct failures, and records usage events only on successful deducts
  • add a dedicated Soroban billing RPC client for balance and deduct invocations with optional idempotency passthrough
  • update the billing route and environment documentation for the new Soroban billing settings

Verification

  • npm test -- --runInBand src/services/billing.test.ts src/services/sorobanBilling.test.ts initially failed because jest was not installed locally
  • npm run typecheck initially failed because tsc was not installed locally
  • npm install --no-audit --no-fund was started to restore local tooling but did not produce usable binaries within this session, so checks remain unverified here
  • per instruction, I did not spend time fixing unrelated repo or environment issues beyond that

Closes #22

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 28, 2026

@dimka90 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! 🚀

Learn more about application limits

@greatest0fallt1me greatest0fallt1me merged commit 87d736c into CalloraOrg:main Mar 29, 2026
1 check failed
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.

Implement Billing Service (Deduct from Vault via Soroban)

2 participants