pub trait SchemasRuntimeApi<Block: BlockT>: Core<Block> {
// Provided methods
fn get_by_schema_id(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
schema_id: SchemaId,
) -> Result<Option<SchemaResponse>, ApiError> { ... }
fn get_schema_by_id(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
schema_id: SchemaId,
) -> Result<Option<SchemaResponseV2>, ApiError> { ... }
fn get_schema_versions_by_name(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
schema_name: Vec<u8>,
) -> Result<Option<Vec<SchemaVersionResponse>>, ApiError> { ... }
fn get_registered_entities_by_name(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
name: Vec<u8>,
) -> Result<Option<Vec<NameLookupResponse>>, ApiError> { ... }
fn get_intent_by_id(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
intent_id: IntentId,
include_schemas: bool,
) -> Result<Option<IntentResponse>, ApiError> { ... }
fn get_intent_group_by_id(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
intent_group_id: IntentGroupId,
) -> Result<Option<IntentGroupResponse>, ApiError> { ... }
}Expand description
Runtime Version for Schemas
- See: https://paritytech.github.io/polkadot/doc/polkadot_primitives/runtime_api/index.html Runtime API definition for Schemas
Provided Methods§
Sourcefn get_by_schema_id(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
schema_id: SchemaId,
) -> Result<Option<SchemaResponse>, ApiError>
👎Deprecated: Please use get_schema_by_id
fn get_by_schema_id( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, schema_id: SchemaId, ) -> Result<Option<SchemaResponse>, ApiError>
Fetch the schema by id
Sourcefn get_schema_by_id(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
schema_id: SchemaId,
) -> Result<Option<SchemaResponseV2>, ApiError>
fn get_schema_by_id( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, schema_id: SchemaId, ) -> Result<Option<SchemaResponseV2>, ApiError>
Fetch the schema by id
Sourcefn get_schema_versions_by_name(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
schema_name: Vec<u8>,
) -> Result<Option<Vec<SchemaVersionResponse>>, ApiError>
👎Deprecated: Schemas no longer have names; use get_registered_entities_by_name instead
fn get_schema_versions_by_name( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, schema_name: Vec<u8>, ) -> Result<Option<Vec<SchemaVersionResponse>>, ApiError>
Fetch the schema versions by name
Sourcefn get_registered_entities_by_name(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
name: Vec<u8>,
) -> Result<Option<Vec<NameLookupResponse>>, ApiError>
fn get_registered_entities_by_name( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, name: Vec<u8>, ) -> Result<Option<Vec<NameLookupResponse>>, ApiError>
Fetch registered entity identifiers by name
Sourcefn get_intent_by_id(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
intent_id: IntentId,
include_schemas: bool,
) -> Result<Option<IntentResponse>, ApiError>
fn get_intent_by_id( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, intent_id: IntentId, include_schemas: bool, ) -> Result<Option<IntentResponse>, ApiError>
Fetch the Intent by id
Sourcefn get_intent_group_by_id(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
intent_group_id: IntentGroupId,
) -> Result<Option<IntentGroupResponse>, ApiError>
fn get_intent_group_by_id( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, intent_group_id: IntentGroupId, ) -> Result<Option<IntentGroupResponse>, ApiError>
Fetch the IntentGroup by id