Skip to content

update the SAC interface to include CAP-73's trust function#2454

Open
ElliotFriend wants to merge 1 commit into
mainfrom
chore/cap-73-updates
Open

update the SAC interface to include CAP-73's trust function#2454
ElliotFriend wants to merge 1 commit into
mainfrom
chore/cap-73-updates

Conversation

@ElliotFriend
Copy link
Copy Markdown
Contributor

CAP-73 includes the new trustline creation function on the SAC interface. Documenting that function in the tokens section here.

Copilot AI review requested due to automatic review settings May 14, 2026 21:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents CAP-73’s new trust function on the Stellar Asset Contract (SAC) interface so developers can discover and understand the trustline-creation behavior from the tokens documentation.

Changes:

  • Added trust(env: Env, addr: Address) to the documented StellarAssetInterface trait.
  • Documented trust semantics (no-op cases, authorization requirement, panic conditions).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

/// provided G-address already has the respective trustline.
///
/// If the trustline is actually created, this will require authorization
/// from `addr` (i.e. `addr.require_auth` will be called).
Comment on lines +215 to +216
/// Panics during trustline creation if the asset issuer does not exist,
/// or when a new trustline cannot be created.
@stellar-jenkins-ci
Copy link
Copy Markdown

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.

2 participants