Skip to content

Experiment: add pre-authorized gas-free claim flow#211

Merged
phertyameen merged 11 commits into
bridgelet-org:mainfrom
AJ0070:fix/120
Jun 27, 2026
Merged

Experiment: add pre-authorized gas-free claim flow#211
phertyameen merged 11 commits into
bridgelet-org:mainfrom
AJ0070:fix/120

Conversation

@AJ0070

@AJ0070 AJ0070 commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds an experimental Soroban auth-based claim path that lets a recipient pre-authorize a claim while a relayer or SDK submits the transaction and pays fees.

Changes

  • Added SweepController::claim(recipient, ephemeral_account)
  • Uses recipient require_auth() for pre-authorized claim submission
  • Uses authorize_as_current_contract() so the controller can authorize the downstream EphemeralAccount::sweep() call
  • Added integration coverage for successful claims, auth context recording, locked destination rejection, and missing recipient auth
  • Fixed account factory/shared type compile issues so the full workspace test suite passes
  • Updated docs for the claim API and current local sandbox CLI commands

fixes #120

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

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

@AJ0070

AJ0070 commented Jun 27, 2026

Copy link
Copy Markdown
Contributor Author

@phertyameen

@phertyameen phertyameen merged commit fd4a40e into bridgelet-org:main Jun 27, 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.

Experiment: pre-authorized invocations for gas-free claims

4 participants