pub trait UnlockConfig<I>: 'static {
type Hash: Parameter;
type AccountId: Parameter + Ord;
type Currency: LockableCurrency<Self::AccountId> + ReservableCurrency<Self::AccountId>;
type TipReportDepositBase: Get<<<Self as UnlockConfig<I>>::Currency as Currency<<Self as UnlockConfig<I>>::AccountId>>::Balance>;
type DataDepositPerByte: Get<<<Self as UnlockConfig<I>>::Currency as Currency<<Self as UnlockConfig<I>>::AccountId>>::Balance>;
type PalletName: Get<&'static str>;
type DbWeight: Get<RuntimeDbWeight>;
type BlockNumber: Parameter + Zero + Copy + Ord;
}
Expand description
The configuration for UnreserveDeposits
.
Required Associated Types§
sourcetype Currency: LockableCurrency<Self::AccountId> + ReservableCurrency<Self::AccountId>
type Currency: LockableCurrency<Self::AccountId> + ReservableCurrency<Self::AccountId>
The currency type used in the runtime.
Should match the currency type previously used for the pallet, if applicable.
sourcetype TipReportDepositBase: Get<<<Self as UnlockConfig<I>>::Currency as Currency<<Self as UnlockConfig<I>>::AccountId>>::Balance>
type TipReportDepositBase: Get<<<Self as UnlockConfig<I>>::Currency as Currency<<Self as UnlockConfig<I>>::AccountId>>::Balance>
Base deposit to report a tip.
Should match the currency type previously used for the pallet, if applicable.
sourcetype DataDepositPerByte: Get<<<Self as UnlockConfig<I>>::Currency as Currency<<Self as UnlockConfig<I>>::AccountId>>::Balance>
type DataDepositPerByte: Get<<<Self as UnlockConfig<I>>::Currency as Currency<<Self as UnlockConfig<I>>::AccountId>>::Balance>
Deposit per byte to report a tip.
Should match the currency type previously used for the pallet, if applicable.
sourcetype PalletName: Get<&'static str>
type PalletName: Get<&'static str>
The name of the pallet as previously configured in
construct_runtime!
.
sourcetype DbWeight: Get<RuntimeDbWeight>
type DbWeight: Get<RuntimeDbWeight>
The DB weight as configured in the runtime to calculate the correct weight.