Add Many Sanity Checks to Crowdloans (#2745)

* Add many sanity checks to Crowdloans

* fix tests

* test contribution block in integration test

* fix rococo build

* remove leaser from crowdloans

* fix docs and terms

* fix compile
This commit is contained in:
Shawn Tabrizi
2021-03-29 16:52:55 +02:00
committed by GitHub
parent 7c21dbbdf4
commit 76db00f398
4 changed files with 148 additions and 90 deletions
+6
View File
@@ -174,6 +174,12 @@ pub trait Auctioneer {
/// Returns the current lease period.
fn lease_period_index() -> Self::LeasePeriod;
/// Returns the length of a lease period.
fn lease_period() -> Self::LeasePeriod;
/// Check if the para and user combination has won an auction in the past.
fn has_won_an_auction(para: ParaId, bidder: &Self::AccountId) -> bool;
}
/// Runtime hook for when we swap a parachain and parathread.