pub trait MsaApiClient<BlockHash, AccountId>: ClientT
where BlockHash: Send + Sync + 'static, AccountId: Send + Sync + 'static + DeserializeOwned,
{ // 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 = Result<Vec<(DelegatorId, bool)>, Error>> + 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 = Result<Option<Vec<SchemaGrant<SchemaId, BlockNumber>>>, Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } fn get_all_granted_delegations_by_msa_id<'life0, 'async_trait>( &'life0 self, delegator_msa_id: DelegatorId ) -> Pin<Box<dyn Future<Output = Result<Vec<DelegationResponse<SchemaId, BlockNumber>>, Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } fn get_keys_by_msa_id<'life0, 'async_trait>( &'life0 self, msa_id: MessageSourceId ) -> Pin<Box<dyn Future<Output = Result<Option<KeyInfoResponse<AccountId>>, Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } }
Expand description

Client implementation for the MsaApi RPC API.

Provided Methods§

source

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 = Result<Vec<(DelegatorId, bool)>, Error>> + 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

source

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 = Result<Option<Vec<SchemaGrant<SchemaId, BlockNumber>>>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Retrieve the list of currently granted schemas given a delegator and provider pair

source

fn get_all_granted_delegations_by_msa_id<'life0, 'async_trait>( &'life0 self, delegator_msa_id: DelegatorId ) -> Pin<Box<dyn Future<Output = Result<Vec<DelegationResponse<SchemaId, BlockNumber>>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Retrieve the list of all delegations for a MsaId

source

fn get_keys_by_msa_id<'life0, 'async_trait>( &'life0 self, msa_id: MessageSourceId ) -> Pin<Box<dyn Future<Output = Result<Option<KeyInfoResponse<AccountId>>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Retrieve the list of keys for msa id

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<TypeJsonRpseeInteral, BlockHash, AccountId> MsaApiClient<BlockHash, AccountId> for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT, BlockHash: Send + Sync + 'static, AccountId: Send + Sync + 'static + DeserializeOwned,