mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 20:01:08 +00:00
deps: use polkadot-sdk umbrella crate (#1786)
* deps: unify usage of polkadot-sdk crates * cargo fmt * fix macro crate * make tests compile * fix more nits * fix doc tests * fix more nits * more nits * core: remove polkadot-sdk/std * cargo fmt * remove polkadot-sdk/std by default * Update metadata/Cargo.toml * remove more std * Update Cargo.toml
This commit is contained in:
@@ -507,7 +507,7 @@ mod test_utils {
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use futures::TryStreamExt;
|
||||
use sp_core::H256;
|
||||
use polkadot_sdk::sp_core::H256;
|
||||
|
||||
use super::super::follow_stream::test_utils::{
|
||||
ev_best_block, ev_finalized, ev_initialized, ev_new_block,
|
||||
|
||||
@@ -339,10 +339,10 @@ mod test {
|
||||
pub use crate::backend::rpc::{RawRpcFuture, RawRpcSubscription};
|
||||
pub use crate::{backend::StorageResponse, error::RpcError};
|
||||
pub use futures::StreamExt;
|
||||
pub use polkadot_sdk::sp_core::{self, H256};
|
||||
pub use rpc::RpcClientT;
|
||||
pub use serde::Serialize;
|
||||
pub use serde_json::value::RawValue;
|
||||
pub use sp_core::H256;
|
||||
pub use std::collections::{HashMap, VecDeque};
|
||||
pub use subxt_core::{config::DefaultExtrinsicParams, Config};
|
||||
pub use tokio::sync::{mpsc, Mutex};
|
||||
|
||||
@@ -81,9 +81,10 @@
|
||||
//! # {
|
||||
//! use subxt::config::PolkadotConfig;
|
||||
//! use std::str::FromStr;
|
||||
//! use polkadot_sdk::{sp_core, sp_keyring};
|
||||
//!
|
||||
//! //// 1. Use a `subxt_signer` impl:
|
||||
//! use subxt_signer::{ SecretUri, sr25519 };
|
||||
//! use subxt_signer::{SecretUri, sr25519};
|
||||
//!
|
||||
//! // Get hold of a `Signer` for a test account:
|
||||
//! let alice = sr25519::dev::alice();
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
use crate::backend::{Backend, BackendExt, BlockRef};
|
||||
use crate::{client::OnlineClientT, error::Error, events::Events, Config};
|
||||
use derive_where::derive_where;
|
||||
use polkadot_sdk::sp_crypto_hashing;
|
||||
use std::future::Future;
|
||||
|
||||
/// A client for working with events.
|
||||
|
||||
+1
-1
@@ -217,7 +217,7 @@ pub mod ext {
|
||||
/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale",
|
||||
/// substitute_type(
|
||||
/// path = "sp_runtime::multiaddress::MultiAddress<A, B>",
|
||||
/// with = "::subxt::utils::Static<::sp_runtime::MultiAddress<A, B>>"
|
||||
/// with = "::subxt::utils::Static<polkadot_sdk::sp_runtime::MultiAddress<A, B>>"
|
||||
/// )
|
||||
/// )]
|
||||
/// mod polkadot {}
|
||||
|
||||
@@ -12,6 +12,7 @@ use crate::{
|
||||
use codec::Decode;
|
||||
use derive_where::derive_where;
|
||||
use futures::StreamExt;
|
||||
use polkadot_sdk::sp_crypto_hashing;
|
||||
use std::{future::Future, marker::PhantomData};
|
||||
use subxt_core::storage::address::{Address, StorageHashers, StorageKey};
|
||||
use subxt_core::utils::Yes;
|
||||
|
||||
@@ -635,8 +635,8 @@ mod test {
|
||||
|
||||
#[test]
|
||||
fn transaction_validity_decoding_is_ok() {
|
||||
use sp_runtime::transaction_validity as sp;
|
||||
use sp_runtime::transaction_validity::TransactionValidity as T;
|
||||
use polkadot_sdk::sp_runtime::transaction_validity as sp;
|
||||
use polkadot_sdk::sp_runtime::transaction_validity::TransactionValidity as T;
|
||||
|
||||
let pairs = vec![
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user