Trait pallet_msa_rpc::MsaApiClient
source · pub trait MsaApiClient<BlockHash, AccountId>: ClientTwhere
BlockHash: Send + Sync + 'static,
AccountId: Send + Sync + 'static,{
// Provided methods
fn check_delegations<'life0, 'async_trait>(
&'life0 self,
delegator_msa_ids: Vec<DelegatorId>,
provider_msa_id: ProviderId,
block_number: BlockNumber,
schema_id: Option<SchemaId>
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<(DelegatorId, bool)>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_granted_schemas_by_msa_id<'life0, 'async_trait>(
&'life0 self,
delegator_msa_id: DelegatorId,
provider_msa_id: ProviderId
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Vec<SchemaGrant<SchemaId, BlockNumber>>>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Client implementation for the MsaApi
RPC API.
Provided Methods§
sourcefn check_delegations<'life0, 'async_trait>(
&'life0 self,
delegator_msa_ids: Vec<DelegatorId>,
provider_msa_id: ProviderId,
block_number: BlockNumber,
schema_id: Option<SchemaId>
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<(DelegatorId, bool)>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn check_delegations<'life0, 'async_trait>( &'life0 self, delegator_msa_ids: Vec<DelegatorId>, provider_msa_id: ProviderId, block_number: BlockNumber, schema_id: Option<SchemaId> ) -> Pin<Box<dyn Future<Output = RpcResult<Vec<(DelegatorId, bool)>>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,
Check for a list of delegations Given a single provider, test a list of potential delegators At a given block number
sourcefn get_granted_schemas_by_msa_id<'life0, 'async_trait>(
&'life0 self,
delegator_msa_id: DelegatorId,
provider_msa_id: ProviderId
) -> Pin<Box<dyn Future<Output = RpcResult<Option<Vec<SchemaGrant<SchemaId, BlockNumber>>>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_granted_schemas_by_msa_id<'life0, 'async_trait>( &'life0 self, delegator_msa_id: DelegatorId, provider_msa_id: ProviderId ) -> Pin<Box<dyn Future<Output = RpcResult<Option<Vec<SchemaGrant<SchemaId, BlockNumber>>>>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,
Retrieve the list of currently granted schemas given a delegator and provider pair