sp_objects/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Primitives for Objects.

#![cfg_attr(not(feature = "std"), no_std)]
// TODO: Suppression because of https://github.com/paritytech/polkadot-sdk/issues/3533
#![allow(clippy::multiple_bound_locations)]

use subspace_core_primitives::objects::BlockObjectMapping;

sp_api::decl_runtime_apis! {
    pub trait ObjectsApi {
        /// Extract block object mapping for a given block
        fn extract_block_object_mapping(block: Block) -> BlockObjectMapping;
    }
}