Skip to content

Add event type mapping for currencies #546

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

Closed
xlc opened this issue Jul 13, 2021 · 1 comment
Closed

Add event type mapping for currencies #546

xlc opened this issue Jul 13, 2021 · 1 comment

Comments

@xlc
Copy link
Member

xlc commented Jul 13, 2021

#[pallet::event]
#[pallet::generate_deposit(pub(crate) fn deposit_event)]
pub enum Event<T: Config> {
/// Currency transfer success. [currency_id, from, to, amount]
Transferred(CurrencyIdOf<T>, T::AccountId, T::AccountId, BalanceOf<T>),
/// Update balance success. [currency_id, who, amount]
BalanceUpdated(CurrencyIdOf<T>, T::AccountId, AmountOf<T>),
/// Deposit success. [currency_id, who, amount]
Deposited(CurrencyIdOf<T>, T::AccountId, BalanceOf<T>),
/// Withdraw success. [currency_id, who, amount]
Withdrawn(CurrencyIdOf<T>, T::AccountId, BalanceOf<T>),
}

Maybe some other pallets also missing event type name mapping

@xlc
Copy link
Member Author

xlc commented Jul 13, 2021

closed by #547

@xlc xlc closed this as completed Jul 13, 2021
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

No branches or pull requests

1 participant