Add sponsored announcements to Stellar sender - #133
Open
OlyraCreations wants to merge 3 commits into
Open
Conversation
|
@OlyraCreations 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! 🚀 |
Contributor
|
Rebase on latest |
Author
|
Thanks so much for the feed back |
Contributor
|
Merge conflicts against develop after the merge cascade. Rebase and CI should look different against the fixed workspace. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the fee-payer/sponsored announcement pattern requested in #101. Platforms can submit multiple independently authenticated announcement entries in one Soroban invocation while a sponsor supplies the transaction fee through Stellar fee-bump mechanics.
Fixes #101
What changed
SponsoredEntrytostellar/stealth-sender/src/lib.rswith the per-entry sender, token, amount, scheme ID, stealth address, ephemeral public key, and metadata.sponsored_announce(sponsor, entries).SponsoredBatchTooLarge = 6and enforced a maximum of 20 entries.stellar/integration-tests/sponsored.rsto verify a submitted futurenet transaction records the sponsor as Horizon'sfee_account.stellar/bench/src/main.rs.stellar/PERF.md.Acceptance criteria
SenderError::SponsoredBatchTooLarge.PERF.md.FUTURENET_TX_HASHandFUTURENET_SPONSOR_ADDRESSagainst Horizon after a fee-bumped transaction is submitted.Validation
cargo test -p stealth-sender: passed.Known repository issue
The full
cargo test --workspacecheck is currently blocked by pre-existing unrelated errors instealth-registry/src/lib.rs(mismatched closing delimiter). Workspace-wide formatting also reports existing formatting differences outside the files changed by this PR.The pre-existing untracked root
package-lock.jsonwas not included in this PR.