[WIP] Getting to a demoable "full" circuit #4
[WIP] Getting to a demoable "full" circuit #4juanmardefago wants to merge 2 commits intomaoueh/feature/sds-pluginfrom
Conversation
- Wire consumer ReportUsage to provider PaymentSession stream (handle rav_request → rav_submission, allow cost omission when gateway configured, close stream on EndSession) - Enforce provider-side underpay protection: reject/STOP if submitted RAV < current + server-computed usage delta (stream + SubmitRAV) - Propagate session close: provider ends session when PaymentSession closes (EOF/cancel) - Add integration tests for consumer wiring, underpay rejection, and close propagation; stabilize integration TestMain cleanup to avoid devenv port collisions - Update backlog: mark SDS-034/035/036 done
- Add 'sds demo setup' to prepare devenv on-chain state (mint/approve/deposit escrow, provision/register provider, authorize signer) and print copy/paste commands - Add 'sds demo flow' harness to run Init → ReportUsage loop → EndSession and verify the provider session becomes inactive - Wire new commands under 'sds demo' and mark SDS-037/SDS-031 done in backlog
|
I think sadly you might have gone too fast here. I needed to do a full refactoring and many many changes, hopefully Codex will be able to go back on its feet. I decided to create a Anyway, my branch is now merged, happy to discuss further on Slack or over a call as needed. |
|
For example, locally you should be able: Feel free to refactor how |
No worries! I was expecting some more changes in the plugins but didn't want to block you so I started planning/implementing the remaining steps to get to a workable demo (while taking as an assumption that the plugin would work eventually). I'll probably see if I can simply reuse the current work, or worst case scenario just re-use the planning steps if possible and rebuild it from scratch. I'll take a look at the refactored code tomorrow and continue from there! Thanks for the headsup! |
|
FYI, I'm not planning on changing anything else this week, at least nothing that should have global impact. My next steps is to replace the |
No description provided.