pub trait NftsApi<Block: BlockT, AccountId, CollectionId, ItemId>: Core<Block>where
    AccountId: Encode + Decode,
    CollectionId: Encode,
    ItemId: Encode,{
    // Provided methods
    fn owner(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        collection: CollectionId,
        item: ItemId
    ) -> Result<Option<AccountId>, ApiError> { ... }
    fn collection_owner(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        collection: CollectionId
    ) -> Result<Option<AccountId>, ApiError> { ... }
    fn attribute(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        collection: CollectionId,
        item: ItemId,
        key: Vec<u8>
    ) -> Result<Option<Vec<u8>>, ApiError> { ... }
    fn custom_attribute(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        account: AccountId,
        collection: CollectionId,
        item: ItemId,
        key: Vec<u8>
    ) -> Result<Option<Vec<u8>>, ApiError> { ... }
    fn system_attribute(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        collection: CollectionId,
        item: ItemId,
        key: Vec<u8>
    ) -> Result<Option<Vec<u8>>, ApiError> { ... }
    fn collection_attribute(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        collection: CollectionId,
        key: Vec<u8>
    ) -> Result<Option<Vec<u8>>, ApiError> { ... }
}

Provided Methods§

source

fn owner( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, collection: CollectionId, item: ItemId ) -> Result<Option<AccountId>, ApiError>

source

fn collection_owner( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, collection: CollectionId ) -> Result<Option<AccountId>, ApiError>

source

fn attribute( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, collection: CollectionId, item: ItemId, key: Vec<u8> ) -> Result<Option<Vec<u8>>, ApiError>

source

fn custom_attribute( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, account: AccountId, collection: CollectionId, item: ItemId, key: Vec<u8> ) -> Result<Option<Vec<u8>>, ApiError>

source

fn system_attribute( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, collection: CollectionId, item: ItemId, key: Vec<u8> ) -> Result<Option<Vec<u8>>, ApiError>

source

fn collection_attribute( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, collection: CollectionId, key: Vec<u8> ) -> Result<Option<Vec<u8>>, ApiError>

Trait Implementations§

source§

impl<Block: BlockT, AccountId, CollectionId, ItemId> RuntimeApiInfo for dyn NftsApi<Block, AccountId, CollectionId, ItemId>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§