mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-05 03:57:24 +00:00
Annotated parameter names for events (#1440)
* annotated parameter names for events * Update runtime/parachains/src/inclusion.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8eecdd61b8
commit
d2c4e0cc8e
@@ -132,7 +132,7 @@ decl_event!(
|
|||||||
Balance = BalanceOf<T>,
|
Balance = BalanceOf<T>,
|
||||||
AccountId = <T as frame_system::Trait>::AccountId
|
AccountId = <T as frame_system::Trait>::AccountId
|
||||||
{
|
{
|
||||||
/// Someone claimed some DOTs.
|
/// Someone claimed some DOTs. [who, ethereum_address, amount]
|
||||||
Claimed(AccountId, EthereumAddress, Balance),
|
Claimed(AccountId, EthereumAddress, Balance),
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -187,12 +187,19 @@ decl_event! {
|
|||||||
<T as frame_system::Trait>::AccountId,
|
<T as frame_system::Trait>::AccountId,
|
||||||
Balance = BalanceOf<T>,
|
Balance = BalanceOf<T>,
|
||||||
{
|
{
|
||||||
|
/// Create a new crowdfunding campaign. [fund_index]
|
||||||
Created(FundIndex),
|
Created(FundIndex),
|
||||||
|
/// Contributed to a crowd sale. [who, fund_index, amount]
|
||||||
Contributed(AccountId, FundIndex, Balance),
|
Contributed(AccountId, FundIndex, Balance),
|
||||||
|
/// Withdrew full balance of a contributor. [who, fund_index, amount]
|
||||||
Withdrew(AccountId, FundIndex, Balance),
|
Withdrew(AccountId, FundIndex, Balance),
|
||||||
|
/// Fund is placed into retirement. [fund_index]
|
||||||
Retiring(FundIndex),
|
Retiring(FundIndex),
|
||||||
|
/// Fund is dissolved. [fund_index]
|
||||||
Dissolved(FundIndex),
|
Dissolved(FundIndex),
|
||||||
|
/// The deploy data of the funded parachain is setted. [fund_index]
|
||||||
DeployDataFixed(FundIndex),
|
DeployDataFixed(FundIndex),
|
||||||
|
/// Onboarding process for a winning parachain fund is completed. [find_index, parachain_id]
|
||||||
Onboarded(FundIndex, ParaId),
|
Onboarded(FundIndex, ParaId),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,19 +107,19 @@ decl_event!(
|
|||||||
Balance = BalanceOf<T>,
|
Balance = BalanceOf<T>,
|
||||||
BlockNumber = <T as frame_system::Trait>::BlockNumber,
|
BlockNumber = <T as frame_system::Trait>::BlockNumber,
|
||||||
{
|
{
|
||||||
/// A new account was created
|
/// A [new] account was created.
|
||||||
AccountCreated(AccountId),
|
AccountCreated(AccountId),
|
||||||
/// Someone's account validity was updated
|
/// Someone's account validity was updated. [who, validity]
|
||||||
ValidityUpdated(AccountId, AccountValidity),
|
ValidityUpdated(AccountId, AccountValidity),
|
||||||
/// Someone's purchase balance was updated. (Free, Locked)
|
/// Someone's purchase balance was updated. [who, free, locked]
|
||||||
BalanceUpdated(AccountId, Balance, Balance),
|
BalanceUpdated(AccountId, Balance, Balance),
|
||||||
/// A payout was made to a purchaser.
|
/// A payout was made to a purchaser. [who, free, locked]
|
||||||
PaymentComplete(AccountId, Balance, Balance),
|
PaymentComplete(AccountId, Balance, Balance),
|
||||||
/// A new payment account was set.
|
/// A new payment account was set. [who]
|
||||||
PaymentAccountSet(AccountId),
|
PaymentAccountSet(AccountId),
|
||||||
/// A new statement was set.
|
/// A new statement was set.
|
||||||
StatementUpdated,
|
StatementUpdated,
|
||||||
/// A new statement was set.
|
/// A new statement was set. [block_number]
|
||||||
UnlockBlockUpdated(BlockNumber),
|
UnlockBlockUpdated(BlockNumber),
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -268,22 +268,25 @@ decl_event!(
|
|||||||
ParaId = ParaId,
|
ParaId = ParaId,
|
||||||
Balance = BalanceOf<T>,
|
Balance = BalanceOf<T>,
|
||||||
{
|
{
|
||||||
/// A new lease period is beginning.
|
/// A new [lease_period] is beginning.
|
||||||
NewLeasePeriod(LeasePeriod),
|
NewLeasePeriod(LeasePeriod),
|
||||||
/// An auction started. Provides its index and the block number where it will begin to
|
/// An auction started. Provides its index and the block number where it will begin to
|
||||||
/// close and the first lease period of the quadruplet that is auctioned.
|
/// close and the first lease period of the quadruplet that is auctioned.
|
||||||
|
/// [auction_index, lease_period, ending]
|
||||||
AuctionStarted(AuctionIndex, LeasePeriod, BlockNumber),
|
AuctionStarted(AuctionIndex, LeasePeriod, BlockNumber),
|
||||||
/// An auction ended. All funds become unreserved.
|
/// An auction ended. All funds become unreserved. [auction_index]
|
||||||
AuctionClosed(AuctionIndex),
|
AuctionClosed(AuctionIndex),
|
||||||
/// Someone won the right to deploy a parachain. Balance amount is deducted for deposit.
|
/// Someone won the right to deploy a parachain. Balance amount is deducted for deposit.
|
||||||
|
/// [bidder, range, parachain_id, amount]
|
||||||
WonDeploy(NewBidder<AccountId>, SlotRange, ParaId, Balance),
|
WonDeploy(NewBidder<AccountId>, SlotRange, ParaId, Balance),
|
||||||
/// An existing parachain won the right to continue.
|
/// An existing parachain won the right to continue.
|
||||||
/// First balance is the extra amount reseved. Second is the total amount reserved.
|
/// First balance is the extra amount reseved. Second is the total amount reserved.
|
||||||
|
/// [parachain_id, range, extra_reseved, total_amount]
|
||||||
WonRenewal(ParaId, SlotRange, Balance, Balance),
|
WonRenewal(ParaId, SlotRange, Balance, Balance),
|
||||||
/// Funds were reserved for a winning bid. First balance is the extra amount reserved.
|
/// Funds were reserved for a winning bid. First balance is the extra amount reserved.
|
||||||
/// Second is the total.
|
/// Second is the total. [bidder, extra_reserved, total_amount]
|
||||||
Reserved(AccountId, Balance, Balance),
|
Reserved(AccountId, Balance, Balance),
|
||||||
/// Funds were unreserved since bidder is no longer active.
|
/// Funds were unreserved since bidder is no longer active. [bidder, amount]
|
||||||
Unreserved(AccountId, Balance),
|
Unreserved(AccountId, Balance),
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -154,11 +154,11 @@ decl_error! {
|
|||||||
|
|
||||||
decl_event! {
|
decl_event! {
|
||||||
pub enum Event<T> where <T as frame_system::Trait>::Hash {
|
pub enum Event<T> where <T as frame_system::Trait>::Hash {
|
||||||
/// A candidate was backed.
|
/// A candidate was backed. [candidate, head_data]
|
||||||
CandidateBacked(CandidateReceipt<Hash>, HeadData),
|
CandidateBacked(CandidateReceipt<Hash>, HeadData),
|
||||||
/// A candidate was included.
|
/// A candidate was included. [candidate, head_data]
|
||||||
CandidateIncluded(CandidateReceipt<Hash>, HeadData),
|
CandidateIncluded(CandidateReceipt<Hash>, HeadData),
|
||||||
/// A candidate timed out.
|
/// A candidate timed out. [candidate, head_data]
|
||||||
CandidateTimedOut(CandidateReceipt<Hash>, HeadData),
|
CandidateTimedOut(CandidateReceipt<Hash>, HeadData),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user