diff --git a/currencies/src/lib.rs b/currencies/src/lib.rs index cec25c405ce7fa6e38f8f2f7946ae480c76a2a75..cc8281252a02d4704b6ecec5ed04627163a374bf 100644 --- a/currencies/src/lib.rs +++ b/currencies/src/lib.rs @@ -113,14 +113,15 @@ pub mod module { #[pallet::event] #[pallet::generate_deposit(pub(crate) fn deposit_event)] + #[pallet::metadata(CurrencyIdOf<T> = "Currency", T::AccountId = "AccountId", BalanceOf<T> = "Balance", AmountOf<T> = "Amount")] pub enum Event<T: Config> { - /// Currency transfer success. [currency_id, from, to, amount] + /// Currency transfer success. \[currency_id, from, to, amount\] Transferred(CurrencyIdOf<T>, T::AccountId, T::AccountId, BalanceOf<T>), - /// Update balance success. [currency_id, who, amount] + /// Update balance success. \[currency_id, who, amount\] BalanceUpdated(CurrencyIdOf<T>, T::AccountId, AmountOf<T>), - /// Deposit success. [currency_id, who, amount] + /// Deposit success. \[currency_id, who, amount\] Deposited(CurrencyIdOf<T>, T::AccountId, BalanceOf<T>), - /// Withdraw success. [currency_id, who, amount] + /// Withdraw success. \[currency_id, who, amount\] Withdrawn(CurrencyIdOf<T>, T::AccountId, BalanceOf<T>), } diff --git a/vesting/src/lib.rs b/vesting/src/lib.rs index 2739a7899d1214b941e6f4a380572593408f7f82..3c71308970d04de4ec23f1ab8c006b738a646993 100644 --- a/vesting/src/lib.rs +++ b/vesting/src/lib.rs @@ -169,11 +169,11 @@ pub mod module { #[pallet::generate_deposit(fn deposit_event)] #[pallet::metadata(T::AccountId = "AccountId", VestingScheduleOf<T> = "VestingScheduleOf", BalanceOf<T> = "Balance")] pub enum Event<T: Config> { - /// Added new vesting schedule. [from, to, vesting_schedule] + /// Added new vesting schedule. \[from, to, vesting_schedule\] VestingScheduleAdded(T::AccountId, T::AccountId, VestingScheduleOf<T>), - /// Claimed vesting. [who, locked_amount] + /// Claimed vesting. \[who, locked_amount\] Claimed(T::AccountId, BalanceOf<T>), - /// Updated vesting schedules. [who] + /// Updated vesting schedules. \[who\] VestingSchedulesUpdated(T::AccountId), }