Skip to content

feat(sweep_controller): emit SweepExecutedMulti with per-asset paymen…#400

Merged
phertyameen merged 1 commit into
bridgelet-org:mainfrom
vaishnavidesai09:feature/149-multi-asset-sweep
Jul 26, 2026
Merged

feat(sweep_controller): emit SweepExecutedMulti with per-asset paymen…#400
phertyameen merged 1 commit into
bridgelet-org:mainfrom
vaishnavidesai09:feature/149-multi-asset-sweep

Conversation

@vaishnavidesai09

@vaishnavidesai09 vaishnavidesai09 commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Multi-asset token transfer already worked — `execute_transfers` loops
over every recorded payment. The gap was the documented
`SweepExecutedMulti` event: it existed only in interface docs, never
defined or emitted on either sweep path.

  • Added `SweepExecutedMulti { destination, payments }` event type
  • Emitted from `execute_sweep()` (via `sweep_account()`) and `claim()`
  • New test: `test_claim_emits_sweep_executed_multi_with_all_assets`
  • All 24 integration tests + unit tests passing (run twice, consistent)
  • Note: issue referenced a nonexistent Add API reference docs #21; no related issue/PR found
  • Note: `cargo clippy -D warnings` surfaces 8 pre-existing lint errors
    (needless_borrow, get_first) in tests/integration.rs unrelated to this
    change — not touched here, flagging separately rather than folding an
    unrelated cleanup into this PR" \

Closes #149

…t breakdown

execute_transfers already handled multi-asset transfers via a loop over
all recorded payments. The documented SweepExecutedMulti event was never
defined or wired up on either sweep path. Add the event type and emit it
from both execute_sweep() (via sweep_account()) and claim(), alongside
the existing SweepCompleted summary event.

Adds test_claim_emits_sweep_executed_multi_with_all_assets covering the
gas-free claim() path with 2 distinct assets.

Closes bridgelet-org#149
@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

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

@vaishnavidesai09

Copy link
Copy Markdown
Contributor Author

@Ibinola review this pr

@phertyameen
phertyameen merged commit 336e20a into bridgelet-org:main Jul 26, 2026
1 check passed
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 multi-asset sweep in SweepController

2 participants