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§
sourcefn 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_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
sourcefn get_itemized_storage(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
msa_id: MessageSourceId,
schema_id: SchemaId
) -> Result<Result<ItemizedStoragePageResponse, 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>
Retrieve the itemized storage for a particular msa and schema