pub trait Did<Block: BlockT, DidIdentifier, AccountId, LinkableAccountId, Balance, Key, BlockNumber>: Core<Block>where
    DidIdentifier: Codec,
    AccountId: Codec,
    LinkableAccountId: Codec,
    BlockNumber: Codec + MaxEncodedLen,
    Key: Codec + Ord,
    Balance: Codec,{
    // Provided methods
    fn query_by_web3_name_before_version_2(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        name: Vec<u8>
    ) -> Result<Option<RawDidLinkedInfo<DidIdentifier, AccountId, AccountId, Balance, Key, BlockNumber>>, ApiError> { ... }
    fn query_by_web3_name(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        name: Vec<u8>
    ) -> Result<Option<RawDidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Balance, Key, BlockNumber>>, ApiError> { ... }
    fn query_by_account_before_version_2(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        account: AccountId
    ) -> Result<Option<RawDidLinkedInfo<DidIdentifier, AccountId, AccountId, Balance, Key, BlockNumber>>, ApiError> { ... }
    fn query_by_account(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        account: LinkableAccountId
    ) -> Result<Option<RawDidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Balance, Key, BlockNumber>>, ApiError> { ... }
    fn query_before_version_2(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        did: DidIdentifier
    ) -> Result<Option<RawDidLinkedInfo<DidIdentifier, AccountId, AccountId, Balance, Key, BlockNumber>>, ApiError> { ... }
    fn query(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        did: DidIdentifier
    ) -> Result<Option<RawDidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Balance, Key, BlockNumber>>, ApiError> { ... }
}

Provided Methods§

source

fn query_by_web3_name_before_version_2( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, name: Vec<u8> ) -> Result<Option<RawDidLinkedInfo<DidIdentifier, AccountId, AccountId, Balance, Key, BlockNumber>>, ApiError>

👎Deprecated

Given a web3name this returns:

  • the DID
  • public keys stored for the did
  • the web3name (optional)
  • associated accounts
  • service endpoints
source

fn query_by_web3_name( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, name: Vec<u8> ) -> Result<Option<RawDidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Balance, Key, BlockNumber>>, ApiError>

source

fn query_by_account_before_version_2( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, account: AccountId ) -> Result<Option<RawDidLinkedInfo<DidIdentifier, AccountId, AccountId, Balance, Key, BlockNumber>>, ApiError>

👎Deprecated

Given an account address this returns:

  • the DID
  • public keys stored for the did
  • the web3name (optional)
  • associated accounts
  • service endpoints
source

fn query_by_account( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, account: LinkableAccountId ) -> Result<Option<RawDidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Balance, Key, BlockNumber>>, ApiError>

source

fn query_before_version_2( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, did: DidIdentifier ) -> Result<Option<RawDidLinkedInfo<DidIdentifier, AccountId, AccountId, Balance, Key, BlockNumber>>, ApiError>

👎Deprecated

Given a did this returns:

  • the DID
  • public keys stored for the did
  • the web3name (optional)
  • associated accounts
  • service endpoints
source

fn query( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, did: DidIdentifier ) -> Result<Option<RawDidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Balance, Key, BlockNumber>>, ApiError>

Trait Implementations§

source§

impl<Block: BlockT, DidIdentifier, AccountId, LinkableAccountId, Balance, Key: Ord, BlockNumber: MaxEncodedLen> RuntimeApiInfo for dyn Did<Block, DidIdentifier, AccountId, LinkableAccountId, Balance, Key, BlockNumber>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 2u32

The version of the runtime api.

Implementors§