Trait pallet_tidefi_stake::pallet::Config
source · pub trait Config: Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type StakePalletId: Get<PalletId>;
type StakeAccountCap: Get<u32>;
type StakingRewardCap: Get<u32>;
type BlocksForceUnstake: Get<Self::BlockNumber>;
type BatchSize: Get<u32>;
type WeightInfo: WeightInfo;
type AssetRegistry: AssetRegistryExt;
type Security: SecurityExt<Self::AccountId, Self::BlockNumber>;
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 StakePalletId: Get<PalletId>
type StakePalletId: Get<PalletId>
Pallet ID
sourcetype StakeAccountCap: Get<u32>
type StakeAccountCap: Get<u32>
Maximum active stake / account
sourcetype StakingRewardCap: Get<u32>
type StakingRewardCap: Get<u32>
Maximum number of periods defined
sourcetype BlocksForceUnstake: Get<Self::BlockNumber>
type BlocksForceUnstake: Get<Self::BlockNumber>
Number of block to wait before unstake if forced.
sourcetype BatchSize: Get<u32>
type BatchSize: Get<u32>
Batch size.
This many accounts and unstake are processed in each on_idle` request.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
sourcetype AssetRegistry: AssetRegistryExt
type AssetRegistry: AssetRegistryExt
Asset registry traits
sourcetype Security: SecurityExt<Self::AccountId, Self::BlockNumber>
type Security: SecurityExt<Self::AccountId, Self::BlockNumber>
Security 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