Custom asset#57
Merged
Merged
Conversation
|
@RemmyAcee 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
Author
|
Done, Close: #57 |
Contributor
|
Clean merge. 822-line Stellar custom assets guide + 175-line SAC compatibility audit + the federation guide content + types reference all land cleanly. Substantial. Thanks @RemmyAcee. This also supersedes #52 (federation) since the federation guide content is included here. Closing that one as superseded. |
This was referenced Jun 25, 2026
Closed
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.
Close: #35
Here's a summary of what was produced:
2026-06-sac-compatibility.md
— created from scratch since the file didn't exist yet. Contains:
Compatibility matrix (10 asset/flag combinations × 5 columns)
7 numbered findings (F-01 through F-07) covering: USDC/EURC safety, Protocol 22 trust() trustline elimination, AUTH_REQUIRED incompatibility, AUTH_CLAWBACK_ENABLED risk, AUTH_REVOCABLE monitoring, burn/mint edge cases, 64-bit amount limits
Issuer addresses table (USDC + EURC mainnet + testnet, verified against Circle)
Test results table (8 test cases with pass/fail)
stellar-custom-assets.mdx
— 637 lines, 10 sections:
SAC Overview — how stealth-sender uses the SAC (trust() → transfer() → announce() atomically), trustline mechanics and Protocol 22 behaviour
USDC Issuer Addresses — mainnet + testnet addresses for USDC and EURC, SAC contract address derivation via Asset.contractId()
Send USDC via agent — one-liner chat call + curl
Sender Flow (low-level) — SAC address derivation → stealth address generation → sender trustline + balance check → stealth-sender Soroban invocation with correct i128 USDC scaling (7 decimal places) → createAccount + send combined in one tx for fresh addresses
Recipient Flow — scanning for USDC, checking stealth address balances, auto-establishing destination trustline, signing withdrawals with the stealth scalar via signStellarTransaction
Path Payments — pathPaymentStrictReceive with a separate announcer.announce() call, path-finding via Horizon strictReceivePaths
Fees — complete cost table (classic ops vs Soroban, reserve cost), fee estimation via simulateTransaction
SAC Compatibility Matrix — faithfully reproduced from the audit, condensed to 5 columns
AUTH_REQUIRED / Clawback Warnings — why AUTH_REQUIRED breaks stealth flows, what clawback means in practice, checkAssetFlags() helper, agent warning messages
Testnet Example — complete copy-pasteable end-to-end flow: create two agents, fund via Friendbot, send 50 USDC, scan, withdraw
docs.json — guides/stellar-custom-assets added to navigation