referrerpolicy=no-referrer-when-downgrade

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§

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<BlockNumberFor<Self>>>::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<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.

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<BlockNumberFor<Self>, AccountId = Self::AccountId, LeasePeriod = BlockNumberFor<Self>>

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

Object Safety§

This trait is not object safe.

Implementors§