diff --git a/Cargo.lock b/Cargo.lock index 571e6757fff..2f6aabc1621 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12600,7 +12600,6 @@ dependencies = [ "clap", "env_logger", "frame-support", - "node-primitives", "parity-scale-codec", "sp-core", "sp-io", @@ -12628,7 +12627,6 @@ dependencies = [ "hex", "itertools 0.11.0", "log", - "node-primitives", "paris", "parity-scale-codec", "polkadot-primitives", diff --git a/Cargo.toml b/Cargo.toml index e4f11ebb638..d993cf5fe6b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -62,8 +62,6 @@ sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", branch = "lia substrate-cli-test-utils = { git = "https://github.com/paritytech/polkadot-sdk", branch = "liam-remote-ext-snapshot-header" } substrate-rpc-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "liam-remote-ext-snapshot-header" } -node-executor = { package = "staging-node-executor", git = "https://github.com/paritytech/polkadot-sdk", branch = "liam-remote-ext-snapshot-header" } -node-primitives = { git = "https://github.com/paritytech/polkadot-sdk", branch = "liam-remote-ext-snapshot-header" } polkadot-primitives = { git = "https://github.com/paritytech/polkadot-sdk", branch = "liam-remote-ext-snapshot-header" } cumulus-primitives-parachain-inherent = { git = "https://github.com/paritytech/polkadot-sdk", branch = "liam-remote-ext-snapshot-header" } cumulus-primitives-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "liam-remote-ext-snapshot-header" } diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 9e4b3dbddc4..9c90501d0d8 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -27,8 +27,6 @@ sp-runtime = { workspace = true } sp-state-machine = { workspace = true } sp-storage = { workspace = true } -node-primitives = { workspace = true } - try-runtime-core = { workspace = true } frame-support = { workspace = true } diff --git a/core/Cargo.toml b/core/Cargo.toml index 1451db81585..d8f2a161ad4 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -34,8 +34,6 @@ frame-try-runtime = { workspace = true, features=["try-runtime"] } sc-cli = { workspace = true } sc-executor = { workspace = true } -node-primitives = { workspace = true } - sp-api = { workspace = true } sp-consensus-aura = { workspace = true } sp-consensus-babe = { workspace = true } diff --git a/core/tests/create_snapshot.rs b/core/tests/create_snapshot.rs index 03534b5f128..6c88c350a06 100644 --- a/core/tests/create_snapshot.rs +++ b/core/tests/create_snapshot.rs @@ -24,7 +24,11 @@ use std::{ use assert_cmd::cargo::cargo_bin; use frame_remote_externalities::{Builder, Mode, OfflineConfig, SnapshotConfig}; -use node_primitives::{Block, Hash}; +use sp_runtime::{ + generic::{Block, Header}, + traits::BlakeTwo256, + OpaqueExtrinsic, +}; use substrate_cli_test_utils as common; use tokio::process::Command; @@ -57,7 +61,11 @@ async fn create_snapshot_works() { let snap_file_path = temp_dir.path().join("snapshot.snap"); common::run_with_timeout(Duration::from_secs(60), async move { - fn create_snapshot(ws_url: &str, snap_file: &PathBuf, at: Hash) -> tokio::process::Child { + fn create_snapshot( + ws_url: &str, + snap_file: &PathBuf, + at: sp_core::H256, + ) -> tokio::process::Child { Command::new(cargo_bin("try-runtime")) .stdout(std::process::Stdio::piped()) .stderr(std::process::Stdio::piped()) @@ -82,14 +90,15 @@ async fn create_snapshot_works() { assert!(snapshot_is_on_disk, "Snapshot was not written to disk"); // Try and load the snapshot we have created by running `create-snapshot`. - let snapshot_loading_result = Builder::::new() - .mode(Mode::Offline(OfflineConfig { - state_snapshot: SnapshotConfig { - path: snap_file_path, - }, - })) - .build() - .await; + let snapshot_loading_result = + Builder::, OpaqueExtrinsic>>::new() + .mode(Mode::Offline(OfflineConfig { + state_snapshot: SnapshotConfig { + path: snap_file_path, + }, + })) + .build() + .await; assert!( snapshot_loading_result.is_ok(), diff --git a/core/tests/execute_block.rs b/core/tests/execute_block.rs index c247321b7d2..3d5243c3c6f 100644 --- a/core/tests/execute_block.rs +++ b/core/tests/execute_block.rs @@ -20,7 +20,6 @@ use std::time::Duration; use assert_cmd::cargo::cargo_bin; -use node_primitives::Hash; use regex::Regex; use substrate_cli_test_utils as common; use tokio::process::Command; @@ -49,7 +48,7 @@ async fn execute_block_works() { common::run_with_timeout(Duration::from_secs(60), async move { let ws_url = format!("ws://localhost:{}", port); - fn execute_block(ws_url: &str, at: Hash) -> tokio::process::Child { + fn execute_block(ws_url: &str, at: sp_core::H256) -> tokio::process::Child { Command::new(cargo_bin("try-runtime")) .stdout(std::process::Stdio::piped()) .stderr(std::process::Stdio::piped())