Trait polkadot_runtime_common::crowdloan::pallet::Config
source · 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<BlockNumberFor<Self>>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
type MinContribution: Get<<<<Self as Config>::Auctioneer as Auctioneer<BlockNumberFor<Self>>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
type RemoveKeysLimit: Get<u32>;
type Registrar: Registrar<AccountId = Self::AccountId>;
type Auctioneer: Auctioneer<BlockNumberFor<Self>, AccountId = Self::AccountId, LeasePeriod = BlockNumberFor<Self>>;
type MaxMemoLength: Get<u8>;
type WeightInfo: WeightInfo;
}
Expand description
Configuration trait of this pallet.
The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.
Consequently, a runtime that wants to include this pallet must implement this trait.
Required Associated Types§
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
sourcetype PalletId: Get<PalletId>
type PalletId: Get<PalletId>
PalletId
for the crowdloan pallet. An appropriate value could be
PalletId(*b"py/cfund")
sourcetype SubmissionDeposit: Get<<<<Self as Config>::Auctioneer as Auctioneer<BlockNumberFor<Self>>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
type SubmissionDeposit: Get<<<<Self as Config>::Auctioneer as Auctioneer<BlockNumberFor<Self>>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
The amount to be held on deposit by the depositor of a crowdloan.
sourcetype MinContribution: Get<<<<Self as Config>::Auctioneer as Auctioneer<BlockNumberFor<Self>>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
type MinContribution: Get<<<<Self as Config>::Auctioneer as Auctioneer<BlockNumberFor<Self>>>::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
.
sourcetype RemoveKeysLimit: Get<u32>
type RemoveKeysLimit: Get<u32>
Max number of storage keys to remove per extrinsic call.
sourcetype Registrar: Registrar<AccountId = Self::AccountId>
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.
sourcetype Auctioneer: Auctioneer<BlockNumberFor<Self>, AccountId = Self::AccountId, LeasePeriod = BlockNumberFor<Self>>
type Auctioneer: Auctioneer<BlockNumberFor<Self>, AccountId = Self::AccountId, LeasePeriod = BlockNumberFor<Self>>
The type representing the auctioning system.
sourcetype MaxMemoLength: Get<u8>
type MaxMemoLength: Get<u8>
The maximum length for the memo attached to a crowdloan contribution.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight Information for the Extrinsics in the Pallet