Skip to content

feat(stream): add total_streamed() view method to DripStream - #489

Open
chainsmt wants to merge 1 commit into
conduit-protocol:mainfrom
chainsmt:feat/issue-461
Open

feat(stream): add total_streamed() view method to DripStream#489
chainsmt wants to merge 1 commit into
conduit-protocol:mainfrom
chainsmt:feat/issue-461

Conversation

@chainsmt

Copy link
Copy Markdown

Adds total_streamed() as the canonical on-chain view for cumulative streamed tokens, delegating from the existing streamed_total() alias so both symbols stay available.

Also updates the frontend SDK to query total_streamed and adds a unit test asserting parity with streamed_total after elapsed time accrues.

Includes missing Error enum variants (BackdatedStream, StreamUnderfunded, InvalidRecipient) already referenced by lib.rs on main so the contract crate compiles for CI.

Testing

  • cargo test total_streamed in contracts/stream → 1 passed

Closes #461

@chainsmt
chainsmt requested a review from Jaydbrown as a code owner August 31, 2026 10:30
@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@chainsmt 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

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.

Add a total_streamed() view method to DripStream

1 participant