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<<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§
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<<Self as Config>::BlockNumber>>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
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.
sourcetype MinContribution: 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>
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<Self::BlockNumber, AccountId = Self::AccountId, LeasePeriod = Self::BlockNumber>
type Auctioneer: Auctioneer<Self::BlockNumber, AccountId = Self::AccountId, LeasePeriod = Self::BlockNumber>
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