mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-18 16:25:40 +00:00
Use same fmt and clippy configs as in Substrate (#7611)
* Use same rustfmt.toml as Substrate Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * format format file Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Format with new config Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add Substrate Clippy config Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Print Clippy version in CI Otherwise its difficult to reproduce locally. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Make fmt happy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update node/core/pvf/src/error.rs Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io> * Update node/core/pvf/src/error.rs Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io>
This commit is contained in:
committed by
GitHub
parent
ac435c96cf
commit
342d720573
@@ -113,11 +113,12 @@ pub trait Leaser<BlockNumber> {
|
||||
///
|
||||
/// `leaser` shall have a total of `amount` balance reserved by the implementer of this trait.
|
||||
///
|
||||
/// Note: The implementer of the trait (the leasing system) is expected to do all reserve/unreserve calls. The
|
||||
/// caller of this trait *SHOULD NOT* pre-reserve the deposit (though should ensure that it is reservable).
|
||||
/// Note: The implementer of the trait (the leasing system) is expected to do all
|
||||
/// reserve/unreserve calls. The caller of this trait *SHOULD NOT* pre-reserve the deposit
|
||||
/// (though should ensure that it is reservable).
|
||||
///
|
||||
/// The lease will last from `period_begin` for `period_count` lease periods. It is undefined if the `para`
|
||||
/// already has a slot leased during those periods.
|
||||
/// The lease will last from `period_begin` for `period_count` lease periods. It is undefined if
|
||||
/// the `para` already has a slot leased during those periods.
|
||||
///
|
||||
/// Returns `Err` in the case of an error, and in which case nothing is changed.
|
||||
fn lease_out(
|
||||
@@ -128,8 +129,8 @@ pub trait Leaser<BlockNumber> {
|
||||
period_count: Self::LeasePeriod,
|
||||
) -> Result<(), LeaseError>;
|
||||
|
||||
/// Return the amount of balance currently held in reserve on `leaser`'s account for leasing `para`. This won't
|
||||
/// go down outside a lease period.
|
||||
/// Return the amount of balance currently held in reserve on `leaser`'s account for leasing
|
||||
/// `para`. This won't go down outside a lease period.
|
||||
fn deposit_held(
|
||||
para: ParaId,
|
||||
leaser: &Self::AccountId,
|
||||
@@ -147,7 +148,8 @@ pub trait Leaser<BlockNumber> {
|
||||
fn lease_period_index(block: BlockNumber) -> Option<(Self::LeasePeriod, bool)>;
|
||||
|
||||
/// Returns true if the parachain already has a lease in any of lease periods in the inclusive
|
||||
/// range `[first_period, last_period]`, intersected with the unbounded range [`current_lease_period`..] .
|
||||
/// range `[first_period, last_period]`, intersected with the unbounded range
|
||||
/// [`current_lease_period`..] .
|
||||
fn already_leased(
|
||||
para_id: ParaId,
|
||||
first_period: Self::LeasePeriod,
|
||||
@@ -169,7 +171,8 @@ pub enum AuctionStatus<BlockNumber> {
|
||||
/// will be `EndingPeriod(1, 5)`.
|
||||
EndingPeriod(BlockNumber, BlockNumber),
|
||||
/// We have completed the bidding process and are waiting for the VRF to return some acceptable
|
||||
/// randomness to select the winner. The number represents how many blocks we have been waiting.
|
||||
/// randomness to select the winner. The number represents how many blocks we have been
|
||||
/// waiting.
|
||||
VrfDelay(BlockNumber),
|
||||
}
|
||||
|
||||
@@ -224,9 +227,9 @@ pub trait Auctioneer<BlockNumber> {
|
||||
/// - `last_slot`: The last lease period index of the range to be bid on (inclusive).
|
||||
/// - `amount`: The total amount to be the bid for deposit over the range.
|
||||
///
|
||||
/// The account `Bidder` must have at least `amount` available as a free balance in `Currency`. The
|
||||
/// implementation *MUST* remove or reserve `amount` funds from `bidder` and those funds should be returned
|
||||
/// or freed once the bid is rejected or lease has ended.
|
||||
/// The account `Bidder` must have at least `amount` available as a free balance in `Currency`.
|
||||
/// The implementation *MUST* remove or reserve `amount` funds from `bidder` and those funds
|
||||
/// should be returned or freed once the bid is rejected or lease has ended.
|
||||
fn place_bid(
|
||||
bidder: Self::AccountId,
|
||||
para: ParaId,
|
||||
|
||||
Reference in New Issue
Block a user