Trait kilt_runtime_api_did::Did
source · 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§
sourcefn 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_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
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>
sourcefn 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_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
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>
sourcefn 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_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