Skip to content
Snippets Groups Projects
Unverified Commit a42b1b22 authored by warfollowsme | ryabina.io's avatar warfollowsme | ryabina.io Committed by GitHub
Browse files

Annotate event parameter names (#234)

parent 203ad973
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ decl_event!( ...@@ -44,7 +44,7 @@ decl_event!(
<T as Trait>::Balance, <T as Trait>::Balance,
<T as Trait>::AuctionId, <T as Trait>::AuctionId,
{ {
/// A bid is placed (auction_id, bidder, bidding_amount) /// A bid is placed. [auction_id, bidder, bidding_amount]
Bid(AuctionId, AccountId, Balance), Bid(AuctionId, AccountId, Balance),
} }
); );
......
...@@ -92,13 +92,13 @@ decl_event!( ...@@ -92,13 +92,13 @@ decl_event!(
Balance = BalanceOf<T>, Balance = BalanceOf<T>,
CurrencyId = CurrencyIdOf<T> CurrencyId = CurrencyIdOf<T>
{ {
/// Currency transfer success (currency_id, from, to, amount) /// Currency transfer success. [currency_id, from, to, amount]
Transferred(CurrencyId, AccountId, AccountId, Balance), Transferred(CurrencyId, AccountId, AccountId, Balance),
/// Update balance success (currency_id, who, amount) /// Update balance success. [currency_id, who, amount]
BalanceUpdated(CurrencyId, AccountId, Amount), BalanceUpdated(CurrencyId, AccountId, Amount),
/// Deposit success (currency_id, who, amount) /// Deposit success. [currency_id, who, amount]
Deposited(CurrencyId, AccountId, Balance), Deposited(CurrencyId, AccountId, Balance),
/// Withdraw success (currency_id, who, amount) /// Withdraw success. [currency_id, who, amount]
Withdrawn(CurrencyId, AccountId, Balance), Withdrawn(CurrencyId, AccountId, Balance),
} }
); );
......
...@@ -68,11 +68,11 @@ decl_event!( ...@@ -68,11 +68,11 @@ decl_event!(
pub enum Event<T> where pub enum Event<T> where
<T as frame_system::Trait>::BlockNumber, <T as frame_system::Trait>::BlockNumber,
{ {
/// Gradually update added (key, per_block, target_value) /// Gradually update added. [key, per_block, target_value]
GraduallyUpdateAdded(StorageKey, StorageValue, StorageValue), GraduallyUpdateAdded(StorageKey, StorageValue, StorageValue),
/// Gradually update cancelled (key) /// Gradually update cancelled. [key]
GraduallyUpdateCancelled(StorageKey), GraduallyUpdateCancelled(StorageKey),
/// Gradually update applied (block_number, key, target_value) /// Gradually update applied. [block_number, key, target_value]
Updated(BlockNumber, StorageKey, StorageValue), Updated(BlockNumber, StorageKey, StorageValue),
} }
); );
......
...@@ -188,7 +188,7 @@ decl_event!( ...@@ -188,7 +188,7 @@ decl_event!(
<T as Trait>::OracleKey, <T as Trait>::OracleKey,
<T as Trait>::OracleValue, <T as Trait>::OracleValue,
{ {
/// New feed data is submitted (sender, values) /// New feed data is submitted. [sender, values]
NewFeedData(AccountId, Vec<(OracleKey, OracleValue)>), NewFeedData(AccountId, Vec<(OracleKey, OracleValue)>),
} }
); );
......
...@@ -34,13 +34,13 @@ decl_event!( ...@@ -34,13 +34,13 @@ decl_event!(
pub enum Event<T> where pub enum Event<T> where
<T as frame_system::Trait>::BlockNumber, <T as frame_system::Trait>::BlockNumber,
{ {
/// Add schedule dispatch success (BlockNumber, DispatchId) /// Add schedule dispatch success. [block_number, dispatch_id]
ScheduleDispatch(BlockNumber, DispatchId), ScheduleDispatch(BlockNumber, DispatchId),
/// Cancel delayed dispatch success (DispatchId) /// Cancel delayed dispatch success. [dispatch_id]
CancelDelayedDispatch(DispatchId), CancelDelayedDispatch(DispatchId),
/// Schedule dispatch success (BlockNumber, DispatchId) /// Schedule dispatch success. [block_number, dispatch_id]
ScheduleDispatchSuccess(BlockNumber, DispatchId), ScheduleDispatchSuccess(BlockNumber, DispatchId),
/// Schedule dispatch failed (DispatchId, DispatchError) /// Schedule dispatch failed. [dispatch_id, dispatch_error]
ScheduleDispatchFail(DispatchId, DispatchError), ScheduleDispatchFail(DispatchId, DispatchError),
} }
); );
......
...@@ -176,7 +176,7 @@ decl_event!( ...@@ -176,7 +176,7 @@ decl_event!(
<T as Trait>::CurrencyId, <T as Trait>::CurrencyId,
<T as Trait>::Balance <T as Trait>::Balance
{ {
/// Token transfer success (currency_id, from, to, amount) /// Token transfer success. [currency_id, from, to, amount]
Transferred(CurrencyId, AccountId, AccountId, Balance), Transferred(CurrencyId, AccountId, AccountId, Balance),
} }
); );
......
...@@ -138,11 +138,11 @@ decl_event!( ...@@ -138,11 +138,11 @@ decl_event!(
Balance = BalanceOf<T>, Balance = BalanceOf<T>,
VestingSchedule = VestingScheduleOf<T> VestingSchedule = VestingScheduleOf<T>
{ {
/// Added new vesting schedule (from, to, vesting_schedule) /// Added new vesting schedule. [from, to, vesting_schedule]
VestingScheduleAdded(AccountId, AccountId, VestingSchedule), VestingScheduleAdded(AccountId, AccountId, VestingSchedule),
/// Claimed vesting (who, locked_amount) /// Claimed vesting. [who, locked_amount]
Claimed(AccountId, Balance), Claimed(AccountId, Balance),
/// Updated vesting schedules (who) /// Updated vesting schedules. [who]
VestingSchedulesUpdated(AccountId), VestingSchedulesUpdated(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