Trait pallet_did_lookup::pallet::Config
source · pub trait Config: Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type EnsureOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin, Success = Self::OriginSuccess>;
type OriginSuccess: CallSources<<Self as Config>::AccountId, <Self as Config>::DidIdentifier>;
type DidIdentifier: Parameter + AsRef<[u8]> + MaxEncodedLen + MaybeSerializeDeserialize;
type RuntimeHoldReason: From<HoldReason>;
type Currency: MutateHold<<Self as Config>::AccountId, Reason = Self::RuntimeHoldReason>;
type Deposit: Get<BalanceOf<Self>>;
type WeightInfo: WeightInfo;
type BalanceMigrationManager: BalanceMigrationManager<<Self as Config>::AccountId, BalanceOf<Self>>;
}
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§
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
sourcetype EnsureOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin, Success = Self::OriginSuccess>
type EnsureOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin, Success = Self::OriginSuccess>
The origin that can associate accounts to itself.
sourcetype OriginSuccess: CallSources<<Self as Config>::AccountId, <Self as Config>::DidIdentifier>
type OriginSuccess: CallSources<<Self as Config>::AccountId, <Self as Config>::DidIdentifier>
The information that is returned by the origin check.
sourcetype DidIdentifier: Parameter + AsRef<[u8]> + MaxEncodedLen + MaybeSerializeDeserialize
type DidIdentifier: Parameter + AsRef<[u8]> + MaxEncodedLen + MaybeSerializeDeserialize
The identifier to which accounts can get associated.
type RuntimeHoldReason: From<HoldReason>
sourcetype Currency: MutateHold<<Self as Config>::AccountId, Reason = Self::RuntimeHoldReason>
type Currency: MutateHold<<Self as Config>::AccountId, Reason = Self::RuntimeHoldReason>
The currency that is used to reserve funds for each did.
sourcetype Deposit: Get<BalanceOf<Self>>
type Deposit: Get<BalanceOf<Self>>
The amount of balance that will be taken for each DID as a deposit to incentivise fair use of the on chain storage. The deposit can be reclaimed when the DID is deleted.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
sourcetype BalanceMigrationManager: BalanceMigrationManager<<Self as Config>::AccountId, BalanceOf<Self>>
type BalanceMigrationManager: BalanceMigrationManager<<Self as Config>::AccountId, BalanceOf<Self>>
Migration manager to handle new created entries