pub trait Config: Config + Debug {
Show 25 associated items
type RuntimeCall: Parameter + Dispatchable<PostInfo = PostDispatchInfo, RuntimeOrigin = <Self as Config>::RuntimeOrigin> + GetDispatchInfo + DeriveDidCallAuthorizationVerificationKeyRelationship;
type DidIdentifier: Parameter + DidVerifiableIdentifier<AccountIdOf<Self>> + MaxEncodedLen + From<AccountIdOf<Self>>;
type RuntimeOrigin: From<RawOrigin<DidIdentifierOf<Self>>>;
type EnsureOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin, Success = <Self as Config>::OriginSuccess>;
type OriginSuccess: CallSources<AccountIdOf<Self>, DidIdentifierOf<Self>>;
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type RuntimeHoldReason: From<HoldReason>;
type Currency: Balanced<AccountIdOf<Self>> + MutateHold<AccountIdOf<Self>, Reason = Self::RuntimeHoldReason>;
type BaseDeposit: Get<BalanceOf<Self>>;
type ServiceEndpointDeposit: Get<BalanceOf<Self>>;
type KeyDeposit: Get<BalanceOf<Self>>;
type Fee: Get<BalanceOf<Self>>;
type FeeCollector: OnUnbalanced<Credit<<Self as Config>::AccountId, <Self as Config>::Currency>>;
type MaxPublicKeysPerDid: Get<u32> + Clone;
type MaxNewKeyAgreementKeys: Get<u32> + Parameter;
type MaxTotalKeyAgreementKeys: Get<u32> + Debug + Clone + PartialEq;
type MaxBlocksTxValidity: Get<BlockNumberFor<Self>>;
type MaxNumberOfServicesPerDid: Get<u32>;
type MaxServiceIdLength: Get<u32>;
type MaxServiceTypeLength: Get<u32>;
type MaxNumberOfTypesPerService: Get<u32>;
type MaxServiceUrlLength: Get<u32>;
type MaxNumberOfUrlsPerService: Get<u32>;
type WeightInfo: WeightInfo;
type BalanceMigrationManager: BalanceMigrationManager<AccountIdOf<Self>, 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§
sourcetype RuntimeCall: Parameter + Dispatchable<PostInfo = PostDispatchInfo, RuntimeOrigin = <Self as Config>::RuntimeOrigin> + GetDispatchInfo + DeriveDidCallAuthorizationVerificationKeyRelationship
type RuntimeCall: Parameter + Dispatchable<PostInfo = PostDispatchInfo, RuntimeOrigin = <Self as Config>::RuntimeOrigin> + GetDispatchInfo + DeriveDidCallAuthorizationVerificationKeyRelationship
Type for a dispatchable call that can be proxied through the DID pallet to support DID-based authorisation.
sourcetype DidIdentifier: Parameter + DidVerifiableIdentifier<AccountIdOf<Self>> + MaxEncodedLen + From<AccountIdOf<Self>>
type DidIdentifier: Parameter + DidVerifiableIdentifier<AccountIdOf<Self>> + MaxEncodedLen + From<AccountIdOf<Self>>
Type for a DID subject identifier.
type RuntimeOrigin: From<RawOrigin<DidIdentifierOf<Self>>>
sourcetype EnsureOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin, Success = <Self as Config>::OriginSuccess>
type EnsureOrigin: EnsureOrigin<<Self as Config>::RuntimeOrigin, Success = <Self as Config>::OriginSuccess>
The origin check for all DID calls inside this pallet.
sourcetype OriginSuccess: CallSources<AccountIdOf<Self>, DidIdentifierOf<Self>>
type OriginSuccess: CallSources<AccountIdOf<Self>, DidIdentifierOf<Self>>
The return type when the DID origin check was successful.
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
Overarching event type.
type RuntimeHoldReason: From<HoldReason>
sourcetype Currency: Balanced<AccountIdOf<Self>> + MutateHold<AccountIdOf<Self>, Reason = Self::RuntimeHoldReason>
type Currency: Balanced<AccountIdOf<Self>> + MutateHold<AccountIdOf<Self>, Reason = Self::RuntimeHoldReason>
The currency that is used to reserve funds for each did.
sourcetype BaseDeposit: Get<BalanceOf<Self>>
type BaseDeposit: 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 deposits increase by the amount of used keys and service endpoints. The deposit can be reclaimed when the DID is deleted.
sourcetype ServiceEndpointDeposit: Get<BalanceOf<Self>>
type ServiceEndpointDeposit: Get<BalanceOf<Self>>
The amount of balance that will be taken for each service endpoint as a deposit to incentivise fair use of the on chain storage. The deposit can be reclaimed when the service endpoint is removed or the DID deleted.
sourcetype KeyDeposit: Get<BalanceOf<Self>>
type KeyDeposit: Get<BalanceOf<Self>>
The amount of balance that will be taken for each added key as a deposit to incentivise fair use of the on chain storage.
sourcetype Fee: Get<BalanceOf<Self>>
type Fee: Get<BalanceOf<Self>>
The amount of balance that will be taken for each DID as a fee to incentivise fair use of the on chain storage. The fee will not get refunded when the DID is deleted.
sourcetype FeeCollector: OnUnbalanced<Credit<<Self as Config>::AccountId, <Self as Config>::Currency>>
type FeeCollector: OnUnbalanced<Credit<<Self as Config>::AccountId, <Self as Config>::Currency>>
The logic for handling the fee.
sourcetype MaxPublicKeysPerDid: Get<u32> + Clone
type MaxPublicKeysPerDid: Get<u32> + Clone
Maximum number of total public keys which can be stored per DID key identifier. This includes the ones currently used for authentication, key agreement, attestation, and delegation.
sourcetype MaxNewKeyAgreementKeys: Get<u32> + Parameter
type MaxNewKeyAgreementKeys: Get<u32> + Parameter
Maximum number of key agreement keys that can be added in a creation operation.
sourcetype MaxTotalKeyAgreementKeys: Get<u32> + Debug + Clone + PartialEq
type MaxTotalKeyAgreementKeys: Get<u32> + Debug + Clone + PartialEq
Maximum number of total key agreement keys that can be stored for a DID subject.
Should be greater than MaxNewKeyAgreementKeys
.
sourcetype MaxBlocksTxValidity: Get<BlockNumberFor<Self>>
type MaxBlocksTxValidity: Get<BlockNumberFor<Self>>
The maximum number of blocks a DID-authorized operation is considered valid after its creation.
sourcetype MaxNumberOfServicesPerDid: Get<u32>
type MaxNumberOfServicesPerDid: Get<u32>
The maximum number of services that can be stored under a DID.
sourcetype MaxServiceIdLength: Get<u32>
type MaxServiceIdLength: Get<u32>
The maximum length of a service ID.
sourcetype MaxServiceTypeLength: Get<u32>
type MaxServiceTypeLength: Get<u32>
The maximum length of a service type description.
sourcetype MaxNumberOfTypesPerService: Get<u32>
type MaxNumberOfTypesPerService: Get<u32>
The maximum number of a types description for a service endpoint.
sourcetype MaxServiceUrlLength: Get<u32>
type MaxServiceUrlLength: Get<u32>
The maximum length of a service URL.
sourcetype MaxNumberOfUrlsPerService: Get<u32>
type MaxNumberOfUrlsPerService: Get<u32>
The maximum number of a URLs for a service endpoint.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
sourcetype BalanceMigrationManager: BalanceMigrationManager<AccountIdOf<Self>, BalanceOf<Self>>
type BalanceMigrationManager: BalanceMigrationManager<AccountIdOf<Self>, BalanceOf<Self>>
Migration manager to handle new created entries