Introduce add_memo for Crowdloans (#2728)

* Add memo, but don't use it yet

* add_memo

* add weights

* Update lib.rs

* Update crowdloan.rs

* add event
This commit is contained in:
Shawn Tabrizi
2021-03-27 17:36:48 +01:00
committed by GitHub
parent c503fbc2a0
commit 7f6ef6fb7b
3 changed files with 87 additions and 13 deletions
+3
View File
@@ -660,6 +660,8 @@ parameter_types! {
pub const MinContribution: Balance = 1 * DOLLARS;
pub const RetirementPeriod: BlockNumber = 6 * HOURS;
pub const RemoveKeysLimit: u32 = 500;
// Allow 32 bytes for an additional memo to a crowdloan.
pub const MaxMemoLength: u8 = 32;
}
impl crowdloan::Config for Runtime {
@@ -672,6 +674,7 @@ impl crowdloan::Config for Runtime {
type RemoveKeysLimit = RemoveKeysLimit;
type Registrar = Registrar;
type Auctioneer = Auctions;
type MaxMemoLength = MaxMemoLength;
type WeightInfo = crowdloan::TestWeightInfo;
}