Skip to content
Snippets Groups Projects
Unverified Commit 3d64077e authored by Xiliang Chen's avatar Xiliang Chen Committed by GitHub
Browse files

update event mapping (#547)

parent 51341d92
No related branches found
No related tags found
No related merge requests found
...@@ -113,14 +113,15 @@ pub mod module { ...@@ -113,14 +113,15 @@ pub mod module {
#[pallet::event] #[pallet::event]
#[pallet::generate_deposit(pub(crate) fn deposit_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> { 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>), 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>), 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>), 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>), Withdrawn(CurrencyIdOf<T>, T::AccountId, BalanceOf<T>),
} }
......
...@@ -169,11 +169,11 @@ pub mod module { ...@@ -169,11 +169,11 @@ pub mod module {
#[pallet::generate_deposit(fn deposit_event)] #[pallet::generate_deposit(fn deposit_event)]
#[pallet::metadata(T::AccountId = "AccountId", VestingScheduleOf<T> = "VestingScheduleOf", BalanceOf<T> = "Balance")] #[pallet::metadata(T::AccountId = "AccountId", VestingScheduleOf<T> = "VestingScheduleOf", BalanceOf<T> = "Balance")]
pub enum Event<T: Config> { 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>), VestingScheduleAdded(T::AccountId, T::AccountId, VestingScheduleOf<T>),
/// Claimed vesting. [who, locked_amount] /// Claimed vesting. \[who, locked_amount\]
Claimed(T::AccountId, BalanceOf<T>), Claimed(T::AccountId, BalanceOf<T>),
/// Updated vesting schedules. [who] /// Updated vesting schedules. \[who\]
VestingSchedulesUpdated(T::AccountId), VestingSchedulesUpdated(T::AccountId),
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment