From 9f836b04c88b0cd5edaa64e71fbe0b34e43ce6df Mon Sep 17 00:00:00 2001 From: Elliot Date: Thu, 14 May 2026 16:55:29 -0500 Subject: [PATCH] update the SAC interface to include CAP-73's `trust` function --- docs/tokens/stellar-asset-contract.mdx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/tokens/stellar-asset-contract.mdx b/docs/tokens/stellar-asset-contract.mdx index 93273bbc69..88c8d7db2b 100644 --- a/docs/tokens/stellar-asset-contract.mdx +++ b/docs/tokens/stellar-asset-contract.mdx @@ -196,6 +196,25 @@ pub trait StellarAssetInterface { /// Emits an event with topics `["clawback", admin: Address, to: Address], /// data = amount: i128` fn clawback(env: Env, from: Address, amount: i128); + + /// Creates this contract asset's unlimited trustline for the provided + /// address. + /// + /// This is a no-op if the input address is a C-address, or if the + /// 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). + /// + /// # Arguments + /// + /// * `addr` - The address for which a trustline will be created. + /// + /// # Panics + /// + /// Panics during trustline creation if the asset issuer does not exist, + /// or when a new trustline cannot be created. + fn trust(env: Env, addr: Address); } ```