pub trait ProviderLookup {
    type BlockNumber;
    type MaxSchemaGrantsPerDelegation: Get<u32>;
    type SchemaId;

    // Required method
    fn get_delegation_of(
        delegator: DelegatorId,
        provider: ProviderId
    ) -> Option<Delegation<Self::SchemaId, Self::BlockNumber, Self::MaxSchemaGrantsPerDelegation>>;
}
Expand description

A behavior that allows for looking up delegator-provider relationships

Required Associated Types§

source

type BlockNumber

Type for block number.

source

type MaxSchemaGrantsPerDelegation: Get<u32>

Type for maximum number of schemas that can be granted to a provider.

source

type SchemaId

Schema Id is the unique identifier for a Schema

Required Methods§

source

fn get_delegation_of( delegator: DelegatorId, provider: ProviderId ) -> Option<Delegation<Self::SchemaId, Self::BlockNumber, Self::MaxSchemaGrantsPerDelegation>>

Gets the relationship information for this delegator, provider pair

Object Safety§

This trait is not object safe.

Implementors§