mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
Finish migration to v2 primitives (#5037)
* remove v0 primitives from polkadot-primitives * first pass: remove v0 * fix fallout in erasure-coding * remove v1 primitives, consolidate to v2 * the great import update * update runtime_api_impl_v1 to v2 as well * guide: add `Version` request for runtime API * add version query to runtime API * reintroduce OldV1SessionInfo in a limited way
This commit is contained in:
committed by
GitHub
parent
3394cbb142
commit
49f7e5cce4
@@ -139,7 +139,7 @@ mod enter {
|
||||
#[test]
|
||||
fn test_session_is_tracked_in_on_chain_scraping() {
|
||||
use crate::disputes::run_to_block;
|
||||
use primitives::v1::{
|
||||
use primitives::v2::{
|
||||
DisputeStatement, DisputeStatementSet, ExplicitDisputeStatement,
|
||||
InvalidDisputeStatementKind, ValidDisputeStatementKind,
|
||||
};
|
||||
@@ -861,8 +861,8 @@ mod enter {
|
||||
}
|
||||
}
|
||||
|
||||
fn default_header() -> primitives::v1::Header {
|
||||
primitives::v1::Header {
|
||||
fn default_header() -> primitives::v2::Header {
|
||||
primitives::v2::Header {
|
||||
parent_hash: Default::default(),
|
||||
number: 0,
|
||||
state_root: Default::default(),
|
||||
@@ -878,7 +878,7 @@ mod sanitizers {
|
||||
back_candidate, collator_sign_candidate, BackingKind, TestCandidateBuilder,
|
||||
};
|
||||
use bitvec::order::Lsb0;
|
||||
use primitives::v1::{
|
||||
use primitives::v2::{
|
||||
AvailabilityBitfield, GroupIndex, Hash, Id as ParaId, SignedAvailabilityBitfield,
|
||||
ValidatorIndex,
|
||||
};
|
||||
@@ -887,7 +887,7 @@ mod sanitizers {
|
||||
use crate::mock::Test;
|
||||
use futures::executor::block_on;
|
||||
use keyring::Sr25519Keyring;
|
||||
use primitives::v0::PARACHAIN_KEY_TYPE_ID;
|
||||
use primitives::v2::PARACHAIN_KEY_TYPE_ID;
|
||||
use sc_keystore::LocalKeystore;
|
||||
use sp_keystore::{SyncCryptoStore, SyncCryptoStorePtr};
|
||||
use std::sync::Arc;
|
||||
|
||||
Reference in New Issue
Block a user