Trait pallet_anchors::pallet::Config
source · pub trait Config: Config + Config {
type Fees: Fees<AccountId = Self::AccountId, Balance = <<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>;
type CommitAnchorFeeKey: Get<<Self::Fees as Fees>::FeeKey>;
type PreCommitDepositFeeKey: Get<<Self::Fees as Fees>::FeeKey>;
type WeightInfo: WeightInfo;
type Currency: ReservableCurrency<Self::AccountId>;
}
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§
sourcetype Fees: Fees<AccountId = Self::AccountId, Balance = <<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
type Fees: Fees<AccountId = Self::AccountId, Balance = <<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::Balance>
Entity used to pay fees
sourcetype CommitAnchorFeeKey: Get<<Self::Fees as Fees>::FeeKey>
type CommitAnchorFeeKey: Get<<Self::Fees as Fees>::FeeKey>
Key used to retrieve the fee balances in the commit method.
sourcetype PreCommitDepositFeeKey: Get<<Self::Fees as Fees>::FeeKey>
type PreCommitDepositFeeKey: Get<<Self::Fees as Fees>::FeeKey>
Key to identify the amount of funds reserved in a
Pallet::pre_commit()
call. These funds will be unreserved once
the user make the Pallet::commit()
succesfully
or call Pallet::evict_pre_commits()
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Type representing the weight of this pallet
Object Safety§
This trait is not object safe.