mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 12:17:58 +00:00
sp-api: Move macro related re-exports to __private (#2446)
This moves the macro related re-exports to `__private` to make it more obvious for downstream users that they are using an internal api. --------- Co-authored-by: command-bot <>
This commit is contained in:
@@ -29,13 +29,13 @@ use jsonrpsee::core::{async_trait, RpcResult};
|
||||
use sc_client_api::{
|
||||
Backend, BlockBackend, BlockchainEvents, CallExecutor, ExecutorProvider, StorageProvider,
|
||||
};
|
||||
use sp_api::{CallApiAt, CallContext, NumberFor};
|
||||
use sp_api::{CallApiAt, CallContext};
|
||||
use sp_blockchain::{
|
||||
Backend as BlockChainBackend, Error as BlockChainError, HeaderBackend, HeaderMetadata,
|
||||
};
|
||||
use sp_core::Bytes;
|
||||
use sp_runtime::{
|
||||
traits::{Block as BlockT, Header as HeaderT},
|
||||
traits::{Block as BlockT, Header as HeaderT, NumberFor},
|
||||
SaturatedConversion,
|
||||
};
|
||||
use std::{collections::HashSet, marker::PhantomData, sync::Arc};
|
||||
|
||||
@@ -22,8 +22,8 @@ use std::{collections::VecDeque, marker::PhantomData, sync::Arc};
|
||||
|
||||
use sc_client_api::{Backend, ChildInfo, StorageKey, StorageProvider};
|
||||
use sc_utils::mpsc::TracingUnboundedSender;
|
||||
use sp_api::BlockT;
|
||||
use sp_core::storage::well_known_keys;
|
||||
use sp_runtime::traits::Block as BlockT;
|
||||
|
||||
use crate::chain_head::event::OperationStorageItems;
|
||||
|
||||
|
||||
@@ -24,14 +24,15 @@ use sc_client_api::{
|
||||
StorageData, StorageEventStream, StorageKey, StorageProvider,
|
||||
};
|
||||
use sc_utils::mpsc::{tracing_unbounded, TracingUnboundedSender};
|
||||
use sp_api::{CallApiAt, CallApiAtParams, NumberFor, RuntimeVersion};
|
||||
use sp_api::{CallApiAt, CallApiAtParams};
|
||||
use sp_blockchain::{BlockStatus, CachedHeaderMetadata, HeaderBackend, HeaderMetadata, Info};
|
||||
use sp_consensus::BlockOrigin;
|
||||
use sp_runtime::{
|
||||
generic::SignedBlock,
|
||||
traits::{Block as BlockT, Header as HeaderT},
|
||||
traits::{Block as BlockT, Header as HeaderT, NumberFor},
|
||||
Justifications,
|
||||
};
|
||||
use sp_version::RuntimeVersion;
|
||||
use std::sync::Arc;
|
||||
use substrate_test_runtime::{Block, Hash, Header};
|
||||
|
||||
@@ -235,7 +236,7 @@ impl<Block: BlockT, Client: CallApiAt<Block>> CallApiAt<Block> for ChainHeadMock
|
||||
fn initialize_extensions(
|
||||
&self,
|
||||
at: <Block as BlockT>::Hash,
|
||||
extensions: &mut sp_api::Extensions,
|
||||
extensions: &mut sp_externalities::Extensions,
|
||||
) -> Result<(), sp_api::ApiError> {
|
||||
self.client.initialize_extensions(at, extensions)
|
||||
}
|
||||
|
||||
@@ -34,7 +34,6 @@ use jsonrpsee::{
|
||||
use sc_block_builder::BlockBuilderBuilder;
|
||||
use sc_client_api::ChildInfo;
|
||||
use sc_service::client::new_in_mem;
|
||||
use sp_api::BlockT;
|
||||
use sp_blockchain::HeaderBackend;
|
||||
use sp_consensus::BlockOrigin;
|
||||
use sp_core::{
|
||||
@@ -42,6 +41,7 @@ use sp_core::{
|
||||
testing::TaskExecutor,
|
||||
Blake2Hasher, Hasher,
|
||||
};
|
||||
use sp_runtime::traits::Block as BlockT;
|
||||
use sp_version::RuntimeVersion;
|
||||
use std::{
|
||||
collections::{HashMap, HashSet},
|
||||
|
||||
Reference in New Issue
Block a user