Trait pallet_quorum::pallet::Config
source · pub trait Config: Config + Config<AssetId = AssetId, Balance = Balance> {
Show 14 associated items
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type QuorumPalletId: Get<PalletId>;
type ProposalsCap: Get<u32>;
type BurnedCap: Get<u32>;
type ProposalLifetime: Get<Self::BlockNumber>;
type WeightInfo: WeightInfo;
type Security: SecurityExt<Self::AccountId, Self::BlockNumber>;
type Sunrise: SunriseExt<Self::AccountId, Self::BlockNumber>;
type StringLimit: Get<u32>;
type VotesLimit: Get<u32>;
type WatchListLimit: Get<u32>;
type PubkeyLimitPerAsset: Get<u32>;
type AssetRegistry: AssetRegistryExt;
type CurrencyTidefi: Inspect<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Mutate<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Transfer<Self::AccountId, AssetId = CurrencyId, Balance = Balance>;
}
Expand description
Configure the pallet by specifying the parameters and types on which it depends.
Required Associated Types§
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
Events
sourcetype QuorumPalletId: Get<PalletId>
type QuorumPalletId: Get<PalletId>
Pallet ID
sourcetype ProposalsCap: Get<u32>
type ProposalsCap: Get<u32>
Proposals capacity
sourcetype ProposalLifetime: Get<Self::BlockNumber>
type ProposalLifetime: Get<Self::BlockNumber>
Proposals lifetime
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weights
sourcetype Security: SecurityExt<Self::AccountId, Self::BlockNumber>
type Security: SecurityExt<Self::AccountId, Self::BlockNumber>
Security traits
sourcetype Sunrise: SunriseExt<Self::AccountId, Self::BlockNumber>
type Sunrise: SunriseExt<Self::AccountId, Self::BlockNumber>
Sunrise traits
sourcetype StringLimit: Get<u32>
type StringLimit: Get<u32>
The maximum length of string (public keys etc..)
sourcetype VotesLimit: Get<u32>
type VotesLimit: Get<u32>
The maximum number of votes per proposal
sourcetype WatchListLimit: Get<u32>
type WatchListLimit: Get<u32>
The maximum number of proposals per account watch list
sourcetype PubkeyLimitPerAsset: Get<u32>
type PubkeyLimitPerAsset: Get<u32>
The pubkey per asset (should always be more than current member size)
sourcetype AssetRegistry: AssetRegistryExt
type AssetRegistry: AssetRegistryExt
Asset registry traits
sourcetype CurrencyTidefi: Inspect<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Mutate<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Transfer<Self::AccountId, AssetId = CurrencyId, Balance = Balance>
type CurrencyTidefi: Inspect<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Mutate<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Transfer<Self::AccountId, AssetId = CurrencyId, Balance = Balance>
Tidechain currency wrapper