Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit c717dbb

Browse files
Release parachain host API v4 (#6885)
1 parent 40ab88b commit c717dbb

File tree

30 files changed

+129
-120
lines changed

30 files changed

+129
-120
lines changed

node/core/candidate-validation/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ use polkadot_node_subsystem::{
4242
use polkadot_node_subsystem_util::executor_params_at_relay_parent;
4343
use polkadot_parachain::primitives::{ValidationParams, ValidationResult as WasmValidationResult};
4444
use polkadot_primitives::{
45-
vstaging::ExecutorParams, CandidateCommitments, CandidateDescriptor, CandidateReceipt, Hash,
45+
CandidateCommitments, CandidateDescriptor, CandidateReceipt, ExecutorParams, Hash,
4646
OccupiedCoreAssumption, PersistedValidationData, PvfExecTimeoutKind, PvfPrepTimeoutKind,
4747
ValidationCode, ValidationCodeHash,
4848
};

node/core/pvf/src/artifacts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use crate::{error::PrepareError, host::PrepareResultSender, prepare::PrepareStats};
1818
use always_assert::always;
1919
use polkadot_parachain::primitives::ValidationCodeHash;
20-
use polkadot_primitives::vstaging::ExecutorParamsHash;
20+
use polkadot_primitives::ExecutorParamsHash;
2121
use std::{
2222
collections::HashMap,
2323
path::{Path, PathBuf},
@@ -219,7 +219,7 @@ impl Artifacts {
219219
#[cfg(test)]
220220
mod tests {
221221
use super::{ArtifactId, Artifacts};
222-
use polkadot_primitives::vstaging::ExecutorParamsHash;
222+
use polkadot_primitives::ExecutorParamsHash;
223223
use sp_core::H256;
224224
use std::{path::Path, str::FromStr};
225225

node/core/pvf/src/execute/queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use futures::{
3030
stream::{FuturesUnordered, StreamExt as _},
3131
Future, FutureExt,
3232
};
33-
use polkadot_primitives::vstaging::{ExecutorParams, ExecutorParamsHash};
33+
use polkadot_primitives::{ExecutorParams, ExecutorParamsHash};
3434
use slotmap::HopSlotMap;
3535
use std::{
3636
collections::VecDeque,

node/core/pvf/src/execute/worker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use futures_timer::Delay;
3030
use parity_scale_codec::{Decode, Encode};
3131

3232
use polkadot_parachain::primitives::ValidationResult;
33-
use polkadot_primitives::vstaging::ExecutorParams;
33+
use polkadot_primitives::ExecutorParams;
3434
use std::{
3535
path::{Path, PathBuf},
3636
sync::{mpsc::channel, Arc},

node/core/pvf/src/executor_intf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
//! Interface to the Substrate Executor
1818
19-
use polkadot_primitives::vstaging::executor_params::{ExecutorParam, ExecutorParams};
19+
use polkadot_primitives::{ExecutorParam, ExecutorParams};
2020
use sc_executor_common::{
2121
runtime_blob::RuntimeBlob,
2222
wasm_runtime::{HeapAllocStrategy, InvokeMethod, WasmModule as _},

node/core/pvf/src/host.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use futures::{
3333
Future, FutureExt, SinkExt, StreamExt,
3434
};
3535
use polkadot_parachain::primitives::ValidationResult;
36-
use polkadot_primitives::vstaging::ExecutorParams;
36+
use polkadot_primitives::ExecutorParams;
3737
use std::{
3838
collections::HashMap,
3939
path::{Path, PathBuf},

node/core/pvf/src/pvf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use crate::artifacts::ArtifactId;
1818
use parity_scale_codec::{Decode, Encode};
1919
use polkadot_parachain::primitives::ValidationCodeHash;
20-
use polkadot_primitives::vstaging::ExecutorParams;
20+
use polkadot_primitives::ExecutorParams;
2121
use sp_core::blake2_256;
2222
use std::{
2323
cmp::{Eq, PartialEq},

node/core/pvf/src/testing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
//! N.B. This is not guarded with some feature flag. Overexposing items here may affect the final
2020
//! artifact even for production builds.
2121
22-
use polkadot_primitives::vstaging::ExecutorParams;
22+
use polkadot_primitives::ExecutorParams;
2323

2424
pub mod worker_common {
2525
pub use crate::worker_common::{spawn_with_program_path, SpawnErr};

node/core/pvf/tests/it/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use polkadot_node_core_pvf::{
2121
JOB_TIMEOUT_WALL_CLOCK_FACTOR,
2222
};
2323
use polkadot_parachain::primitives::{BlockData, ValidationParams, ValidationResult};
24-
use polkadot_primitives::vstaging::{ExecutorParam, ExecutorParams};
24+
use polkadot_primitives::{ExecutorParam, ExecutorParams};
2525
use std::time::Duration;
2626
use tokio::sync::Mutex;
2727

node/core/runtime-api/src/cache.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ use lru::LruCache;
2020
use sp_consensus_babe::Epoch;
2121

2222
use polkadot_primitives::{
23-
vstaging::ExecutorParams, AuthorityDiscoveryId, BlockNumber, CandidateCommitments,
24-
CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeState,
25-
GroupRotationInfo, Hash, Id as ParaId, InboundDownwardMessage, InboundHrmpMessage,
26-
OccupiedCoreAssumption, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes,
27-
SessionIndex, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorId, ValidatorIndex,
28-
ValidatorSignature,
23+
AuthorityDiscoveryId, BlockNumber, CandidateCommitments, CandidateEvent, CandidateHash,
24+
CommittedCandidateReceipt, CoreState, DisputeState, ExecutorParams, GroupRotationInfo, Hash,
25+
Id as ParaId, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption,
26+
PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionIndex, SessionInfo,
27+
ValidationCode, ValidationCodeHash, ValidatorId, ValidatorIndex, ValidatorSignature,
2928
};
3029

3130
/// For consistency we have the same capacity for all caches. We use 128 as we'll only need that

0 commit comments

Comments
 (0)