referrerpolicy=no-referrer-when-downgrade
pallet_nfts_runtime_api

Trait NftsApi

Source
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: Option<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: Option<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§

impl<__SrApiBlock__: BlockT, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> NftsApi<__SrApiBlock__, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32, u32> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>
where RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>, &'static RuntimeApiImplCall: Send,

impl<__SrApiBlock__: BlockT, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> NftsApi<__SrApiBlock__, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32, u32> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>
where RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>, &'static RuntimeApiImplCall: Send,