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§

source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

source

type EnsureOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin, Success = Self::OriginSuccess>

The origin that can associate accounts to itself.

source

type OriginSuccess: CallSources<<Self as Config>::AccountId, <Self as Config>::DidIdentifier>

The information that is returned by the origin check.

source

type DidIdentifier: Parameter + AsRef<[u8]> + MaxEncodedLen + MaybeSerializeDeserialize

The identifier to which accounts can get associated.

source

type RuntimeHoldReason: From<HoldReason>

source

type Currency: MutateHold<<Self as Config>::AccountId, Reason = Self::RuntimeHoldReason>

The currency that is used to reserve funds for each did.

source

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.

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

source

type BalanceMigrationManager: BalanceMigrationManager<<Self as Config>::AccountId, BalanceOf<Self>>

Migration manager to handle new created entries

Implementors§