pub trait Config: Config {
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type PalletId: Get<PalletId>;
    type SubmissionDeposit: Get<<<<Self as Config>::Auctioneer as Auctioneer<<Self as Config>::BlockNumber>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
    type MinContribution: Get<<<<Self as Config>::Auctioneer as Auctioneer<<Self as Config>::BlockNumber>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
    type RemoveKeysLimit: Get<u32>;
    type Registrar: Registrar<AccountId = Self::AccountId>;
    type Auctioneer: Auctioneer<Self::BlockNumber, AccountId = Self::AccountId, LeasePeriod = Self::BlockNumber>;
    type MaxMemoLength: Get<u8>;
    type WeightInfo: WeightInfo;
}
Expand description

Configuration trait of this pallet.

Implement this type for a runtime in order to customize this pallet.

Required Associated Types§

source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

source

type PalletId: Get<PalletId>

PalletId for the crowdloan pallet. An appropriate value could be PalletId(*b"py/cfund")

source

type SubmissionDeposit: Get<<<<Self as Config>::Auctioneer as Auctioneer<<Self as Config>::BlockNumber>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>

The amount to be held on deposit by the depositor of a crowdloan.

source

type MinContribution: Get<<<<Self as Config>::Auctioneer as Auctioneer<<Self as Config>::BlockNumber>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>

The minimum amount that may be contributed into a crowdloan. Should almost certainly be at least ExistentialDeposit.

source

type RemoveKeysLimit: Get<u32>

Max number of storage keys to remove per extrinsic call.

source

type Registrar: Registrar<AccountId = Self::AccountId>

The parachain registrar type. We just use this to ensure that only the manager of a para is able to start a crowdloan for its slot.

source

type Auctioneer: Auctioneer<Self::BlockNumber, AccountId = Self::AccountId, LeasePeriod = Self::BlockNumber>

The type representing the auctioning system.

source

type MaxMemoLength: Get<u8>

The maximum length for the memo attached to a crowdloan contribution.

source

type WeightInfo: WeightInfo

Weight Information for the Extrinsics in the Pallet

Implementors§