mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-08 21:47:23 +00:00
WIP: CI: add spellcheck (#3421)
* CI: add spellcheck * revert me * CI: explicit command for spellchecker * spellcheck: edit misspells * CI: run spellcheck on diff * spellcheck: edits * spellcheck: edit misspells * spellcheck: add rules * spellcheck: mv configs * spellcheck: more edits * spellcheck: chore * spellcheck: one more thing * spellcheck: and another one * spellcheck: seems like it doesn't get to an end * spellcheck: new words after rebase * spellcheck: new words appearing out of nowhere * chore * review edits * more review edits * more edits * wonky behavior * wonky behavior 2 * wonky behavior 3 * change git behavior * spellcheck: another bunch of new edits * spellcheck: new words are koming out of nowhere * CI: finding the master * CI: fetching master implicitly * CI: undebug * new errors * a bunch of new edits * and some more * Update node/core/approval-voting/src/approval_db/v1/mod.rs Co-authored-by: Andronik Ordian <write@reusable.software> * Update xcm/xcm-executor/src/assets.rs Co-authored-by: Andronik Ordian <write@reusable.software> * Apply suggestions from code review Co-authored-by: Andronik Ordian <write@reusable.software> * Suggestions from the code review * CI: scan only changed files Co-authored-by: Andronik Ordian <write@reusable.software>
This commit is contained in:
@@ -89,7 +89,7 @@ pub mod pallet {
|
||||
|
||||
/// The length of each sample to take during the ending period.
|
||||
///
|
||||
/// EndingPeriod / SampleLength = Total # of Samples
|
||||
/// `EndingPeriod` / `SampleLength` = Total # of Samples
|
||||
#[pallet::constant]
|
||||
type SampleLength: Get<Self::BlockNumber>;
|
||||
|
||||
@@ -114,24 +114,24 @@ pub mod pallet {
|
||||
pub enum Event<T: Config> {
|
||||
/// 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.
|
||||
/// [auction_index, lease_period, ending]
|
||||
/// `[auction_index, lease_period, ending]`
|
||||
AuctionStarted(AuctionIndex, LeasePeriodOf<T>, T::BlockNumber),
|
||||
/// An auction ended. All funds become unreserved. [auction_index]
|
||||
/// An auction ended. All funds become unreserved. `[auction_index]`
|
||||
AuctionClosed(AuctionIndex),
|
||||
/// Funds were reserved for a winning bid. First balance is the extra amount reserved.
|
||||
/// Second is the total. [bidder, extra_reserved, total_amount]
|
||||
/// Second is the total. `[bidder, extra_reserved, total_amount]`
|
||||
Reserved(T::AccountId, BalanceOf<T>, BalanceOf<T>),
|
||||
/// Funds were unreserved since bidder is no longer active. [bidder, amount]
|
||||
/// Funds were unreserved since bidder is no longer active. `[bidder, amount]`
|
||||
Unreserved(T::AccountId, BalanceOf<T>),
|
||||
/// Someone attempted to lease the same slot twice for a parachain. The amount is held in reserve
|
||||
/// but no parachain slot has been leased.
|
||||
/// \[parachain_id, leaser, amount\]
|
||||
/// `[parachain_id, leaser, amount]`
|
||||
ReserveConfiscated(ParaId, T::AccountId, BalanceOf<T>),
|
||||
/// A new bid has been accepted as the current winner.
|
||||
/// \[who, para_id, amount, first_slot, last_slot\]
|
||||
/// `[who, para_id, amount, first_slot, last_slot]`
|
||||
BidAccepted(T::AccountId, ParaId, BalanceOf<T>, LeasePeriodOf<T>, LeasePeriodOf<T>),
|
||||
/// The winning offset was chosen for an auction. This will map into the `Winning` storage map.
|
||||
/// \[auction_index, block_number\]
|
||||
/// `[auction_index, block_number]`
|
||||
WinningOffset(AuctionIndex, T::BlockNumber),
|
||||
}
|
||||
|
||||
@@ -565,7 +565,7 @@ impl<T: Config> Pallet<T> {
|
||||
/// Calculate the final winners from the winning slots.
|
||||
///
|
||||
/// This is a simple dynamic programming algorithm designed by Al, the original code is at:
|
||||
/// https://github.com/w3f/consensus/blob/master/NPoS/auctiondynamicthing.py
|
||||
/// `https://github.com/w3f/consensus/blob/master/NPoS/auctiondynamicthing.py`
|
||||
fn calculate_winners(
|
||||
mut winning: WinningData<T>
|
||||
) -> WinnersData<T> {
|
||||
|
||||
Reference in New Issue
Block a user