Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAP-0046-06: Fix events emitted #1564

Merged
merged 2 commits into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions core/cap-0046-06.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,15 @@ fn allowance(e: &Host, from: Address, spender: Address) -> Result<i128, HostErro
/// * `spender` - The address being authorized to spend the tokens held by
/// `from`.
/// * `amount` - The tokens to be made availabe to `spender`.
/// * `expiration_ledger` - The ledger number where this allowance expires. Cannot
/// * `live_until_ledger` - The ledger number where this allowance expires. Cannot
dmkozh marked this conversation as resolved.
Show resolved Hide resolved
/// be less than the current ledger number unless the amount is being set to 0.
/// An expired entry (where expiration_ledger < the current ledger number)
/// should be treated as a 0 amount allowance.
///
/// # Events
///
/// Emits an event with topics `["approve", from: Address,
/// spender: Address, sep0011_asset: String], data = [amount: i128, expiration_ledger: u32]`
/// spender: Address, sep0011_asset: String], data = [amount: i128, live_until_ledger: u32]`
fn approve(
e: &Host,
from: Address,
Expand Down Expand Up @@ -288,7 +288,7 @@ compliance functionality.
/// # Events
///
/// Emits an event with topics `["set_admin", admin: Address, sep0011_asset: String], data =
/// [new_admin: Address]`
/// new_admin: Address`
fn set_admin(env: Env, new_admin: Address);

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

/// Mints `amount` to `to`.
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, sep0011_asset: String],
/// Emits an event with topics `["clawback", admin: Address, from: Address, sep0011_asset: String],
/// data = amount: i128`
fn clawback(env: Env, from: Address, amount: i128);
```
Expand Down
Loading