pub trait StatefulStorageRuntimeApi<Block: BlockT>: Core<Block> {
    // Provided methods
    fn get_paginated_storage(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        msa_id: MessageSourceId,
        schema_id: SchemaId
    ) -> Result<Result<Vec<PaginatedStorageResponse>, DispatchError>, ApiError> { ... }
    fn get_itemized_storage(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        msa_id: MessageSourceId,
        schema_id: SchemaId
    ) -> Result<Result<ItemizedStoragePageResponse, DispatchError>, ApiError> { ... }
}
Expand description

Runtime Version for Stateful Storage

  • MUST be incremented if anything changes
  • Also update in js/api-augment
  • See: https://paritytech.github.io/polkadot/doc/polkadot_primitives/runtime_api/index.html Runtime APIs for Stateful Storage

Provided Methods§

source

fn get_paginated_storage( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, msa_id: MessageSourceId, schema_id: SchemaId ) -> Result<Result<Vec<PaginatedStorageResponse>, DispatchError>, ApiError>

Retrieve the paginated storage for a particular msa and schema

source

fn get_itemized_storage( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, msa_id: MessageSourceId, schema_id: SchemaId ) -> Result<Result<ItemizedStoragePageResponse, DispatchError>, ApiError>

Retrieve the itemized storage for a particular msa and schema

Trait Implementations§

source§

impl<Block: BlockT> RuntimeApiInfo for dyn StatefulStorageRuntimeApi<Block>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§