pub trait SchemaGrantValidator<BlockNumber> {
    // Required method
    fn ensure_valid_schema_grant(
        provider_id: ProviderId,
        delegator_id: DelegatorId,
        schema_id: SchemaId,
        block_number: BlockNumber
    ) -> DispatchResult;
}
Expand description

A behavior that allows for validating a schema grant

Required Methods§

source

fn ensure_valid_schema_grant( provider_id: ProviderId, delegator_id: DelegatorId, schema_id: SchemaId, block_number: BlockNumber ) -> DispatchResult

Validates if the provider is allowed to use the particular schema id currently

Object Safety§

This trait is not object safe.

Implementors§