Skip to content

Commit 9a277a2

Browse files
Update SAC event doc-comments to CAP-67 shapes (#1956)
### What The `StellarAssetInterface` doc-comments for `mint`, `clawback`, and `set_authorized` now describe the CAP-67 Stellar Asset Contract event shapes. ### Why CAP-0067 removed the `admin` topic from these SAC events. Also the trailing SEP-11 asset topic has been there for a while. ### Known limitations N/A Close #1955
1 parent f312342 commit 9a277a2

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

soroban-sdk/src/token.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,8 @@ pub trait StellarAssetInterface {
431431
///
432432
/// # Events
433433
///
434-
/// Emits an event with topics `["set_authorized", id: Address], data =
435-
/// [authorize: bool]`
434+
/// Emits an event with topics `["set_authorized", id: Address,
435+
/// sep0011_asset: String], data = authorize: bool`
436436
fn set_authorized(env: Env, id: Address, authorize: bool);
437437

438438
/// Returns true if `id` is authorized to use its balance.
@@ -451,8 +451,8 @@ pub trait StellarAssetInterface {
451451
///
452452
/// # Events
453453
///
454-
/// Emits an event with topics `["mint", to: Address], data
455-
/// = amount: i128`
454+
/// Emits an event with topics `["mint", to: Address,
455+
/// sep0011_asset: String], data = amount: i128`
456456
fn mint(env: Env, to: Address, amount: i128);
457457

458458
/// Clawback `amount` from `from` account. `amount` is burned in the
@@ -466,8 +466,8 @@ pub trait StellarAssetInterface {
466466
///
467467
/// # Events
468468
///
469-
/// Emits an event with topics `["clawback", admin: Address, to: Address],
470-
/// data = amount: i128`
469+
/// Emits an event with topics `["clawback", from: Address,
470+
/// sep0011_asset: String], data = amount: i128`
471471
fn clawback(env: Env, from: Address, amount: i128);
472472

473473
/// Creates this contract asset's unlimited trustline for the provided

stellar-asset-spec/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub(crate) const XDR_INPUT: &[&[u8]] = &[
5454
&SetAuthorized::spec_xdr(),
5555
];
5656

57-
pub(crate) const XDR_LEN: usize = 9128;
57+
pub(crate) const XDR_LEN: usize = 9184;
5858

5959
/// Returns the contract spec for Stellar Asset contract.
6060
pub const fn xdr() -> &'static [u8] {

0 commit comments

Comments
 (0)