Skip to content

Commit

Permalink
Add asset name to SAC events (#1521)
Browse files Browse the repository at this point in the history
  • Loading branch information
sisuresh committed Aug 14, 2024
1 parent db530fd commit 2128e4e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions core/cap-0046-06.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ fn allowance(e: &Host, from: Address, spender: Address) -> Result<i128, HostErro
/// # Events
///
/// Emits an event with topics `["approve", from: Address,
/// spender: Address], data = [amount: i128, expiration_ledger: u32]`
/// spender: Address, sep0011_asset: String], data = [amount: i128, expiration_ledger: u32]`
fn approve(
e: &Host,
from: Address,
Expand Down Expand Up @@ -214,7 +214,7 @@ fn authorized(env: Env, id: Address) -> bool;
///
/// # Events
///
/// Emits an event with topics `["transfer", from: Address, to: Address],
/// Emits an event with topics `["transfer", from: Address, to: Address, sep0011_asset: String],
/// data = [amount: i128]`
fn transfer(env: Env, from: Address, to: Address, amount: i128);

Expand All @@ -232,7 +232,7 @@ fn transfer(env: Env, from: Address, to: Address, amount: i128);
///
/// # Events
///
/// Emits an event with topics `["transfer", from: Address, to: Address],
/// Emits an event with topics `["transfer", from: Address, to: Address, sep0011_asset: String],
/// data = [amount: i128]`
fn transfer_from(env: Env, spender: Address, from: Address, to: Address, amount: i128);

Expand All @@ -246,7 +246,7 @@ fn transfer_from(env: Env, spender: Address, from: Address, to: Address, amount:
///
/// # Events
///
/// Emits an event with topics `["burn", from: Address], data = [amount:
/// Emits an event with topics `["burn", from: Address, sep0011_asset: String], data = [amount:
/// i128]`
fn burn(env: Env, from: Address, amount: i128);

Expand All @@ -262,7 +262,7 @@ fn burn(env: Env, from: Address, amount: i128);
///
/// # Events
///
/// Emits an event with topics `["burn", from: Address], data = [amount:
/// Emits an event with topics `["burn", from: Address, sep0011_asset: String], data = [amount:
/// i128]`
fn burn_from(env: Env, spender: Address, from: Address, amount: i128);
```
Expand All @@ -287,7 +287,7 @@ compliance functionality.
///
/// # Events
///
/// Emits an event with topics `["set_admin", admin: Address], data =
/// Emits an event with topics `["set_admin", admin: Address, sep0011_asset: String], data =
/// [new_admin: Address]`
fn set_admin(env: Env, new_admin: Address);

Expand All @@ -308,7 +308,7 @@ fn admin(env: Env) -> Address;
///
/// # Events
///
/// Emits an event with topics `["set_authorized", id: Address], data =
/// Emits an event with topics `["set_authorized", id: Address, sep0011_asset: String], data =
/// [authorize: bool]`
fn set_authorized(env: Env, id: Address, authorize: bool);

Expand All @@ -321,7 +321,7 @@ fn set_authorized(env: Env, id: Address, authorize: bool);
///
/// # Events
///
/// Emits an event with topics `["mint", admin: Address, to: Address], data
/// Emits an event with topics `["mint", admin: Address, to: Address, sep0011_asset: String], data
/// = [amount: i128]`
fn mint(env: Env, to: Address, amount: i128);

Expand All @@ -336,7 +336,7 @@ fn mint(env: Env, to: Address, amount: i128);
///
/// # Events
///
/// Emits an event with topics `["clawback", admin: Address, to: Address],
/// Emits an event with topics `["clawback", admin: Address, to: Address, sep0011_asset: String],
/// data = [amount: i128]`
fn clawback(env: Env, from: Address, amount: i128);
```
Expand Down

0 comments on commit 2128e4e

Please sign in to comment.