deps: remove polkadot-sdk umbrella crate (#1926)

* deps: get rid of polkadot-sdk umbrella crate

* fix nits

* Update subxt/src/backend/mod.rs

* Update subxt/src/events/events_client.rs

* Update metadata/src/utils/validation.rs

* cargo clippy fix

* fix ui tests
This commit is contained in:
Niklas Adolfsson
2025-02-24 12:38:21 +01:00
committed by GitHub
parent 816a86423b
commit 69ce6d726f
29 changed files with 222 additions and 5783 deletions
+3 -2
View File
@@ -59,7 +59,7 @@ cfg-if = { workspace = true }
codec = { package = "parity-scale-codec", workspace = true, features = [
"derive",
] }
polkadot-sdk = { workspace = true, features = ["sp-crypto-hashing"] }
sp-crypto-hashing = { workspace = true }
pbkdf2 = { workspace = true }
sha2 = { workspace = true }
hmac = { workspace = true }
@@ -87,7 +87,8 @@ getrandom = { workspace = true, optional = true }
[dev-dependencies]
proptest = { workspace = true }
hex-literal = { workspace = true }
polkadot-sdk = { workspace = true, features = ["sp-core", "sp-keyring"] }
sp-core = { workspace = true }
sp-keyring = { workspace = true }
[package.metadata.cargo-machete]
ignored = ["getrandom"]
-1
View File
@@ -3,7 +3,6 @@
// see LICENSE for license details.
use codec::{Decode, Encode};
use polkadot_sdk::sp_crypto_hashing;
// This code is taken from sp_core::crypto::DeriveJunction. The logic should be identical,
// though the API is tweaked a touch.
+1 -2
View File
@@ -8,7 +8,6 @@ use codec::Encode;
use crate::crypto::{seed_from_entropy, DeriveJunction, SecretUri};
use core::str::FromStr;
use hex::FromHex;
use polkadot_sdk::sp_crypto_hashing;
use secp256k1::{ecdsa::RecoverableSignature, Message, Secp256k1, SecretKey};
use secrecy::ExposeSecret;
@@ -362,7 +361,7 @@ mod test {
use super::*;
use polkadot_sdk::sp_core::{self, crypto::Pair as _, ecdsa::Pair as SpPair};
use sp_core::{self, crypto::Pair as _, ecdsa::Pair as SpPair};
#[test]
fn check_from_phrase_matches() {
+1 -2
View File
@@ -354,8 +354,7 @@ mod test {
use super::*;
use polkadot_sdk::sp_core::{self, crypto::Pair as _, sr25519::Pair as SpPair};
use polkadot_sdk::sp_keyring;
use sp_core::{self, crypto::Pair as _, sr25519::Pair as SpPair};
#[test]
fn check_from_phrase_matches() {