mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 17:31:05 +00:00
Switch to edition 2021 (#4976)
* Switch to edition 2021 * Reset bridges * Fix compilation * Fix test-runtime * Fix malus
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ description = "Implementation of a `https://polkadot.network` node in Rust based
|
||||
license = "GPL-3.0-only"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
rust-version = "1.57.0" # custom profiles
|
||||
readme = "README.md"
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ use pallet_bridge_messages::benchmarking::{
|
||||
use sp_core::Hasher;
|
||||
use sp_runtime::traits::Header;
|
||||
use sp_std::prelude::*;
|
||||
use sp_trie::{record_all_keys, trie_types::TrieDBMut, Layout, MemoryDB, Recorder, TrieMut};
|
||||
use sp_trie::{record_all_keys, trie_types::TrieDBMutV1, LayoutV1, MemoryDB, Recorder, TrieMut};
|
||||
|
||||
/// Generate ed25519 signature to be used in
|
||||
/// `pallet_brdige_call_dispatch::CallOrigin::TargetAccount`.
|
||||
@@ -102,7 +102,7 @@ where
|
||||
let mut root = Default::default();
|
||||
let mut mdb = MemoryDB::default();
|
||||
{
|
||||
let mut trie = TrieDBMut::<H>::new(&mut mdb, &mut root);
|
||||
let mut trie = TrieDBMutV1::<H>::new(&mut mdb, &mut root);
|
||||
|
||||
// insert messages
|
||||
for nonce in params.message_nonces.clone() {
|
||||
@@ -131,7 +131,7 @@ where
|
||||
|
||||
// generate storage proof to be delivered to This chain
|
||||
let mut proof_recorder = Recorder::<H::Out>::new();
|
||||
record_all_keys::<Layout<H>, _>(&mdb, &root, &mut proof_recorder)
|
||||
record_all_keys::<LayoutV1<H>, _>(&mdb, &root, &mut proof_recorder)
|
||||
.map_err(|_| "record_all_keys has failed")
|
||||
.expect("record_all_keys should not fail in benchmarks");
|
||||
let storage_proof = proof_recorder.drain().into_iter().map(|n| n.data.to_vec()).collect();
|
||||
@@ -175,7 +175,7 @@ where
|
||||
let mut root = Default::default();
|
||||
let mut mdb = MemoryDB::default();
|
||||
{
|
||||
let mut trie = TrieDBMut::<H>::new(&mut mdb, &mut root);
|
||||
let mut trie = TrieDBMutV1::<H>::new(&mut mdb, &mut root);
|
||||
trie.insert(&storage_key, ¶ms.inbound_lane_data.encode())
|
||||
.map_err(|_| "TrieMut::insert has failed")
|
||||
.expect("TrieMut::insert should not fail in benchmarks");
|
||||
@@ -184,7 +184,7 @@ where
|
||||
|
||||
// generate storage proof to be delivered to This chain
|
||||
let mut proof_recorder = Recorder::<H::Out>::new();
|
||||
record_all_keys::<Layout<H>, _>(&mdb, &root, &mut proof_recorder)
|
||||
record_all_keys::<LayoutV1<H>, _>(&mdb, &root, &mut proof_recorder)
|
||||
.map_err(|_| "record_all_keys has failed")
|
||||
.expect("record_all_keys should not fail in benchmarks");
|
||||
let storage_proof = proof_recorder.drain().into_iter().map(|n| n.data.to_vec()).collect();
|
||||
@@ -209,11 +209,11 @@ fn grow_trie<H: Hasher>(mut root: H::Out, mdb: &mut MemoryDB<H>, trie_size: Proo
|
||||
ProofSize::HasExtraNodes(size) => (8, 1, size),
|
||||
};
|
||||
|
||||
let mut key_index = 0;
|
||||
let mut key_index = 0u32;
|
||||
loop {
|
||||
// generate storage proof to be delivered to This chain
|
||||
let mut proof_recorder = Recorder::<H::Out>::new();
|
||||
record_all_keys::<Layout<H>, _>(mdb, &root, &mut proof_recorder)
|
||||
record_all_keys::<LayoutV1<H>, _>(mdb, &root, &mut proof_recorder)
|
||||
.map_err(|_| "record_all_keys has failed")
|
||||
.expect("record_all_keys should not fail in benchmarks");
|
||||
let size: usize = proof_recorder.drain().into_iter().map(|n| n.data.len()).sum();
|
||||
@@ -221,7 +221,7 @@ fn grow_trie<H: Hasher>(mut root: H::Out, mdb: &mut MemoryDB<H>, trie_size: Proo
|
||||
return root
|
||||
}
|
||||
|
||||
let mut trie = TrieDBMut::<H>::from_existing(mdb, &mut root)
|
||||
let mut trie = TrieDBMutV1::<H>::from_existing(mdb, &mut root)
|
||||
.map_err(|_| "TrieDBMut::from_existing has failed")
|
||||
.expect("TrieDBMut::from_existing should not fail in benchmarks");
|
||||
for _ in 0..iterations {
|
||||
|
||||
@@ -3,7 +3,7 @@ name = "polkadot-cli"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
description = "Polkadot Relay-chain Client Node"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[package.metadata.wasm-pack.profile.release]
|
||||
# `wasm-opt` has some problems on Linux, see
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-core-primitives"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-erasure-coding"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
polkadot-primitives = { path = "../primitives" }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "erasure_coding_fuzzer"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
polkadot-erasure-coding = { path = ".." }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-client"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-collation-generation"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-core-approval-voting"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-core-av-store"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-core-backing"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-core-bitfield-signing"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-core-candidate-validation"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
async-trait = "0.1.52"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-core-chain-api"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -3,7 +3,7 @@ name = "polkadot-node-core-chain-selection"
|
||||
description = "Chain Selection Subsystem"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-core-dispute-coordinator"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-core-parachains-inherent"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-core-provisioner"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
bitvec = { version = "0.20.1", default-features = false, features = ["alloc"] }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-core-pvf-checker"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-core-pvf"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[[bin]]
|
||||
name = "puppet_worker"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-core-runtime-api"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-jaeger"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "Polkadot Jaeger primitives"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -4,7 +4,7 @@ description = "Misbehaving nodes for local testnets, system and Simnet tests."
|
||||
license = "GPL-3.0-only"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
readme = "README.md"
|
||||
publish = false
|
||||
|
||||
@@ -13,7 +13,7 @@ name = "malus"
|
||||
path = "src/malus.rs"
|
||||
|
||||
[dependencies]
|
||||
polkadot-cli = { path = "../../cli", default-features = false, features = ["cli", "malus"] }
|
||||
polkadot-cli = { path = "../../cli", default-features = false, features = ["cli", "malus", "polkadot-native"] }
|
||||
polkadot-node-subsystem = { path = "../subsystem" }
|
||||
polkadot-node-subsystem-util = { path = "../subsystem-util" }
|
||||
polkadot-node-subsystem-types = { path = "../subsystem-types" }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "metered-channel"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "Channels with attached Meters"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-metrics"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "Subsystem metric helpers"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-approval-distribution"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
polkadot-node-primitives = { path = "../../primitives" }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-availability-distribution"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-availability-recovery"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-availability-bitfield-distribution"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-network-bridge"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
async-trait = "0.1.52"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-collator-protocol"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
always-assert = "0.1.2"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-dispute-distribution"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-gossip-support"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
sp-application-crypto = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-network-protocol"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "Primitives types for the Node-side"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -3,7 +3,7 @@ name = "polkadot-statement-distribution"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
description = "Statement Distribution Subsystem"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-overseer"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
client = { package = "sc-client-api", git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-overseer-gen"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "Generate an overseer including builder pattern and message wrapper from a single struct."
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-overseer-gen-proc-macro"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "Generate an overseer including builder pattern and message wrapper from a single annotated struct definition."
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
|
||||
@@ -47,7 +47,6 @@ use sp_core::crypto::Pair as _;
|
||||
use super::*;
|
||||
|
||||
fn block_info_to_pair(blocks: impl IntoIterator<Item = BlockInfo>) -> Vec<(Hash, BlockNumber)> {
|
||||
use std::iter::FromIterator;
|
||||
Vec::from_iter(
|
||||
blocks
|
||||
.into_iter()
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-primitives"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "Primitives types for the Node-side"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-service"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
# Substrate Client
|
||||
|
||||
@@ -178,7 +178,6 @@ where
|
||||
Spawner: 'static + SpawnNamed + Clone + Unpin,
|
||||
{
|
||||
use polkadot_node_subsystem_util::metrics::Metrics;
|
||||
use std::iter::FromIterator;
|
||||
|
||||
let metrics = <OverseerMetrics as MetricsTrait>::register(registry)?;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-subsystem-test-helpers"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "Subsystem traits and message definitions"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-subsystem-types"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "Subsystem traits and message definitions"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-subsystem-util"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "Subsystem traits and message definitions"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -250,8 +250,6 @@ pub async fn sign(
|
||||
key: &ValidatorId,
|
||||
data: &[u8],
|
||||
) -> Result<Option<ValidatorSignature>, KeystoreError> {
|
||||
use std::convert::TryInto;
|
||||
|
||||
let signature =
|
||||
CryptoStore::sign_with(&**keystore, ValidatorId::ID, &key.into(), &data).await?;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-node-subsystem"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
description = "Subsystem traits and message definitions and the generated overseer"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-test-client"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
parity-scale-codec = { version = "2.3.1", default-features = false, features = ["derive"] }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-performance-test"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
thiserror = "1.0.30"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-test-service"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
|
||||
@@ -3,7 +3,7 @@ name = "polkadot-parachain"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
description = "Types and utilities for creating and working with parachains"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
# note: special care is taken to avoid inclusion of `sp-io` externals when compiling
|
||||
|
||||
@@ -158,7 +158,6 @@ impl From<u32> for Id {
|
||||
|
||||
impl From<usize> for Id {
|
||||
fn from(x: usize) -> Self {
|
||||
use sp_std::convert::TryInto;
|
||||
// can't panic, so need to truncate
|
||||
let x = x.try_into().unwrap_or(u32::MAX);
|
||||
Id(x)
|
||||
|
||||
@@ -3,7 +3,7 @@ name = "test-parachains"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
description = "Integration tests using the test-parachains"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
tiny-keccak = "2.0.2"
|
||||
|
||||
@@ -3,7 +3,7 @@ name = "test-parachain-adder"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
description = "Test parachain which adds to a number as its state transition"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
build = "build.rs"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -3,7 +3,7 @@ name = "test-parachain-adder-collator"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
description = "Collator for the adder test parachain"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[[bin]]
|
||||
name = "adder-collator"
|
||||
|
||||
@@ -3,7 +3,7 @@ name = "test-parachain-halt"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
description = "Test parachain which executes forever"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
build = "build.rs"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-primitives"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0.136", optional = true, features = ["derive"] }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-rpc"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
jsonrpc-core = "18.0.0"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-runtime-common"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
impl-trait-for-tuples = "0.2.2"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "slot-range-helper"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
paste = "1.0"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "kusama-runtime"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
build = "build.rs"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-runtime-metrics"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
sp-std = { package = "sp-std", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-runtime-parachains"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
bitvec = { version = "0.20.1", default-features = false, features = ["alloc"] }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-runtime"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
build = "build.rs"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "rococo-runtime"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
build = "build.rs"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-test-runtime"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
build = "build.rs"
|
||||
|
||||
[dependencies]
|
||||
@@ -129,4 +129,5 @@ std = [
|
||||
"runtime-common/std",
|
||||
"log/std",
|
||||
"frame-election-provider-support/std",
|
||||
"pallet-sudo/std",
|
||||
]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "westend-runtime"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
build = "build.rs"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-statement-table"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
parity-scale-codec = { version = "2.3.1", default-features = false, features = ["derive"] }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "polkadot-voter-bags"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "3.1", features = ["derive"] }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "remote-ext-tests-bags-list"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
polkadot-runtime = { version = "0.9.17", path = "../../../runtime/polkadot" }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "staking-miner"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "3.1", features = ["derive", "env"] }
|
||||
|
||||
@@ -3,7 +3,7 @@ name = "xcm"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
description = "The basic XCM datastructures."
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
impl-trait-for-tuples = "0.2.2"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "pallet-xcm-benchmarks"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
version = "0.9.17"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
name = "pallet-xcm"
|
||||
version = "0.9.17"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
name = "xcm-procedural"
|
||||
version = "0.1.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
name = "xcm-builder"
|
||||
description = "Tools & types for building with XCM and its executor."
|
||||
version = "0.9.17"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
name = "xcm-executor"
|
||||
description = "An abstract and configurable XCM message executor."
|
||||
version = "0.9.17"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
name = "xcm-executor-integration-tests"
|
||||
description = "Integration tests for the XCM Executor"
|
||||
version = "0.9.17"
|
||||
|
||||
@@ -3,7 +3,7 @@ name = "xcm-simulator"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
description = "Test kit to simulate cross-chain message passing and XCM execution"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "2.0.0" }
|
||||
|
||||
@@ -3,7 +3,7 @@ name = "xcm-simulator-example"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
description = "Examples of xcm-simulator usage."
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "2.0.0" }
|
||||
|
||||
@@ -3,7 +3,7 @@ name = "xcm-simulator-fuzzer"
|
||||
version = "0.9.17"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
description = "Examples of xcm-simulator usage."
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "2.0.0" }
|
||||
|
||||
Reference in New Issue
Block a user