refactor: zombienet-sdk rebrand and subxt compatibility fixes
Zombienet-SDK changes: - orchestrator: sc-chain-spec → pezsc-chain-spec - orchestrator: sp-core → pezsp-core imports - orchestrator: k8s-openapi v1_27 → v1_28 - provider: k8s-openapi v1_27 → v1_28 - sdk: k8s-openapi v1_27 → v1_28 Subxt vendor fixes: - Enable std features (remove default-features = false) - Fix lifetime annotations for Rust 2024 compatibility - Fix ecdsa/sr25519 password type conversions - Fix RecoveryId API change (i32::from → to_i32) Dependencies: - wasmtime: 35.0.0 → 37.0.0 (security fix) - tracing-subscriber: 0.3.18 → 0.3.20 (security fix) - thiserror: 1.0.64 → 2.0.17 Note: ring 0.16.20 vulnerability remains - requires libp2p 0.56 upgrade which needs extensive pezsc-network API changes.
This commit is contained in:
@@ -30,16 +30,13 @@ reqwest = { workspace = true }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde_json = { workspace = true, features = ["arbitrary_precision"] }
|
||||
sha2 = { workspace = true, default-features = false }
|
||||
sp-core = { workspace = true }
|
||||
pezsp-core = { workspace = true }
|
||||
thiserror = { workspace = true }
|
||||
tokio = { workspace = true, features = ["time"] }
|
||||
tracing = { workspace = true }
|
||||
uuid = { workspace = true }
|
||||
# staging-chain-spec-builder = { workspace = true }
|
||||
# parity-scale-codec = { version = "3.7.5", features = ["derive"] }
|
||||
# sc-chain-spec = {workspace = true, default-features = false}
|
||||
erased-serde = { workspace = true }
|
||||
sc-chain-spec = { workspace = true }
|
||||
pezsc-chain-spec = { workspace = true }
|
||||
|
||||
# Zombienet deps
|
||||
configuration = { workspace = true }
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ use provider::{
|
||||
types::{GenerateFileCommand, GenerateFilesOptions, TransferedFile},
|
||||
DynNamespace, ProviderError,
|
||||
};
|
||||
use sc_chain_spec::{GenericChainSpec, GenesisConfigBuilderRuntimeCaller};
|
||||
use pezsc_chain_spec::{GenericChainSpec, GenesisConfigBuilderRuntimeCaller};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::json;
|
||||
use support::{constants::THIS_IS_A_BUG, fs::FileSystem, replacer::apply_replacements};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use sp_core::{crypto::SecretStringError, ecdsa, ed25519, keccak_256, sr25519, Pair, H160, H256};
|
||||
use pezsp_core::{crypto::SecretStringError, ecdsa, ed25519, keccak_256, sr25519, Pair, H160, H256};
|
||||
|
||||
use super::errors::GeneratorError;
|
||||
use crate::shared::types::{Accounts, NodeAccount};
|
||||
@@ -59,7 +59,7 @@ mod tests {
|
||||
use super::*;
|
||||
#[test]
|
||||
fn generate_for_alice() {
|
||||
use sp_core::crypto::Ss58Codec;
|
||||
use pezsp_core::crypto::Ss58Codec;
|
||||
let s = "Alice";
|
||||
let seed = format!("//{s}");
|
||||
|
||||
@@ -84,7 +84,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn generate_for_zombie() {
|
||||
use sp_core::crypto::Ss58Codec;
|
||||
use pezsp_core::crypto::Ss58Codec;
|
||||
let s = "Zombie";
|
||||
let seed = format!("//{s}");
|
||||
|
||||
|
||||
@@ -1053,7 +1053,7 @@ pub enum ZombieRole {
|
||||
// re-exports
|
||||
pub use network::{AddCollatorOptions, AddNodeOptions};
|
||||
pub use network_helper::metrics;
|
||||
pub use sc_chain_spec;
|
||||
pub use pezsc_chain_spec;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ erased-serde = { workspace = true }
|
||||
flate2 = { workspace = true }
|
||||
futures = { workspace = true }
|
||||
hex = { workspace = true }
|
||||
k8s-openapi = { workspace = true, features = ["v1_27"] }
|
||||
k8s-openapi = { workspace = true, features = ["v1_28"] }
|
||||
kube = { workspace = true, features = ["runtime", "ws"] }
|
||||
nix = { workspace = true, features = ["signal"] }
|
||||
regex = { workspace = true }
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ provider = { workspace = true }
|
||||
support = { workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
k8s-openapi = { workspace = true, features = ["v1_27"] }
|
||||
k8s-openapi = { workspace = true, features = ["v1_28"] }
|
||||
kube = { workspace = true, features = ["runtime", "ws"] }
|
||||
serde_json = { workspace = true }
|
||||
tracing-subscriber = { workspace = true }
|
||||
|
||||
Reference in New Issue
Block a user