From bddb7d0f0af0baaa16db5cc6698ac8ed03543107 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Mar 2022 21:08:40 +0000 Subject: [PATCH 01/14] Bump parity-scale-codec from 3.0.0 to 3.1.0 (#1087) Bumps [parity-scale-codec](https://github.com/paritytech/parity-scale-codec) from 3.0.0 to 3.1.0. - [Release notes](https://github.com/paritytech/parity-scale-codec/releases) - [Changelog](https://github.com/paritytech/parity-scale-codec/blob/master/CHANGELOG.md) - [Commits](https://github.com/paritytech/parity-scale-codec/compare/v3.0...parity-scale-codec-v3.1.0) --- updated-dependencies: - dependency-name: parity-scale-codec dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 8 ++++---- client/relay-chain-interface/Cargo.toml | 2 +- client/relay-chain-rpc-interface/Cargo.toml | 2 +- pallets/session-benchmarking/Cargo.toml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c2b5b571540..951d07e5e6e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6841,9 +6841,9 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "3.0.0" +version = "3.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a7f3fcf5e45fc28b84dcdab6b983e77f197ec01f325a33f404ba6855afd1070" +checksum = "8483b84fb12de1dc23bf95d26030d16cea56391d136db0db37f749508104e3e6" dependencies = [ "arrayvec 0.7.2", "bitvec", @@ -6855,9 +6855,9 @@ dependencies = [ [[package]] name = "parity-scale-codec-derive" -version = "3.0.0" +version = "3.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c6e626dc84025ff56bf1476ed0e30d10c84d7f89a475ef46ebabee1095a8fba" +checksum = "7259388ceb4c23bc09caef272c9e7a732b3b8f9fbd0b41f0009a91d6548cc1d9" dependencies = [ "proc-macro-crate 1.1.3", "proc-macro2", diff --git a/client/relay-chain-interface/Cargo.toml b/client/relay-chain-interface/Cargo.toml index 8725e8c28ba..64c0aee8ccb 100644 --- a/client/relay-chain-interface/Cargo.toml +++ b/client/relay-chain-interface/Cargo.toml @@ -24,4 +24,4 @@ derive_more = "0.99.2" async-trait = "0.1.52" thiserror = "1.0.30" jsonrpsee-core = "0.9.0" -parity-scale-codec = "3.0.0" +parity-scale-codec = "3.1.0" diff --git a/client/relay-chain-rpc-interface/Cargo.toml b/client/relay-chain-rpc-interface/Cargo.toml index 1b9e038c0b1..09422c093b4 100644 --- a/client/relay-chain-rpc-interface/Cargo.toml +++ b/client/relay-chain-rpc-interface/Cargo.toml @@ -21,7 +21,7 @@ sc-rpc-api = { git = "https://github.com/paritytech/substrate", branch = "master futures = "0.3.21" futures-timer = "3.0.2" -parity-scale-codec = "3.0.0" +parity-scale-codec = "3.1.0" parking_lot = "0.12.0" jsonrpsee = { version = "0.9.0", features = ["client"] } tracing = "0.1.32" diff --git a/pallets/session-benchmarking/Cargo.toml b/pallets/session-benchmarking/Cargo.toml index 70bb01b3c0c..afbf0fbd037 100644 --- a/pallets/session-benchmarking/Cargo.toml +++ b/pallets/session-benchmarking/Cargo.toml @@ -13,7 +13,7 @@ readme = "README.md" targets = ["x86_64-unknown-linux-gnu"] [dependencies] -parity-scale-codec = { version = "3.0.0", default-features = false } +parity-scale-codec = { version = "3.1.0", default-features = false } sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "master" } sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "master" } frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "master" } From e535a504edea8f4119d3879b2944ee51308bed72 Mon Sep 17 00:00:00 2001 From: Squirrel Date: Mon, 14 Mar 2022 21:32:11 +0000 Subject: [PATCH 02/14] --json switched to --json-file param in benchmarking script (#1084) --- scripts/benchmarks.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/benchmarks.sh b/scripts/benchmarks.sh index 5ca8d4d4601..9bf416a1bde 100755 --- a/scripts/benchmarks.sh +++ b/scripts/benchmarks.sh @@ -35,7 +35,7 @@ do --extrinsic='*' \ --steps=$steps \ --repeat=$repeat \ - --json \ + --json-file=./bench-statemine.json \ --header=./file_header.txt \ --output=$statemineOutput @@ -47,7 +47,7 @@ do --extrinsic='*' \ --steps=$steps \ --repeat=$repeat \ - --json \ + --json-file=./bench-statemint.json \ --header=./file_header.txt \ --output=$statemintOutput @@ -59,7 +59,7 @@ do --extrinsic='*' \ --steps=$steps \ --repeat=$repeat \ - --json \ + --json-file=./bench-westmint.json \ --header=./file_header.txt \ --output=$westmintOutput done From 4e952282914719fafd2df450993ccc2ce9395415 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Mar 2022 21:49:18 +0000 Subject: [PATCH 03/14] Bump syn from 1.0.86 to 1.0.87 (#1086) Bumps [syn](https://github.com/dtolnay/syn) from 1.0.86 to 1.0.87. - [Release notes](https://github.com/dtolnay/syn/releases) - [Commits](https://github.com/dtolnay/syn/compare/1.0.86...1.0.87) --- updated-dependencies: - dependency-name: syn dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- pallets/parachain-system/proc-macro/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 951d07e5e6e..cc2bfc56e7e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12010,9 +12010,9 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "syn" -version = "1.0.86" +version = "1.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b" +checksum = "1e59d925cf59d8151f25a3bedf97c9c157597c9df7324d32d68991cc399ed08b" dependencies = [ "proc-macro2", "quote", diff --git a/pallets/parachain-system/proc-macro/Cargo.toml b/pallets/parachain-system/proc-macro/Cargo.toml index c016a2531b3..46e3dab8f0b 100644 --- a/pallets/parachain-system/proc-macro/Cargo.toml +++ b/pallets/parachain-system/proc-macro/Cargo.toml @@ -9,7 +9,7 @@ description = "Proc macros provided by the parachain-system pallet" proc-macro = true [dependencies] -syn = "1.0.81" +syn = "1.0.87" proc-macro2 = "1.0.36" quote = "1.0.9" proc-macro-crate = "1.1.3" From 345de10b5519583ae46db33f66ed2c6bea8aeb99 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 15 Mar 2022 21:33:39 +0000 Subject: [PATCH 04/14] Bump syn from 1.0.87 to 1.0.88 (#1091) Bumps [syn](https://github.com/dtolnay/syn) from 1.0.87 to 1.0.88. - [Release notes](https://github.com/dtolnay/syn/releases) - [Commits](https://github.com/dtolnay/syn/compare/1.0.87...1.0.88) --- updated-dependencies: - dependency-name: syn dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- pallets/parachain-system/proc-macro/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cc2bfc56e7e..b4273b3c221 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12010,9 +12010,9 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "syn" -version = "1.0.87" +version = "1.0.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e59d925cf59d8151f25a3bedf97c9c157597c9df7324d32d68991cc399ed08b" +checksum = "ebd69e719f31e88618baa1eaa6ee2de5c9a1c004f1e9ecdb58e8352a13f20a01" dependencies = [ "proc-macro2", "quote", diff --git a/pallets/parachain-system/proc-macro/Cargo.toml b/pallets/parachain-system/proc-macro/Cargo.toml index 46e3dab8f0b..2d1e99471c8 100644 --- a/pallets/parachain-system/proc-macro/Cargo.toml +++ b/pallets/parachain-system/proc-macro/Cargo.toml @@ -9,7 +9,7 @@ description = "Proc macros provided by the parachain-system pallet" proc-macro = true [dependencies] -syn = "1.0.87" +syn = "1.0.88" proc-macro2 = "1.0.36" quote = "1.0.9" proc-macro-crate = "1.1.3" From dd5e9775b554c28dc40e32637ec9f04148c4c923 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 15 Mar 2022 23:19:00 +0100 Subject: [PATCH 05/14] Bump dyn-clone from 1.0.4 to 1.0.5 (#1090) Bumps [dyn-clone](https://github.com/dtolnay/dyn-clone) from 1.0.4 to 1.0.5. - [Release notes](https://github.com/dtolnay/dyn-clone/releases) - [Commits](https://github.com/dtolnay/dyn-clone/compare/1.0.4...1.0.5) --- updated-dependencies: - dependency-name: dyn-clone dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- client/consensus/common/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b4273b3c221..1265f44a529 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2461,9 +2461,9 @@ dependencies = [ [[package]] name = "dyn-clone" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee2626afccd7561a06cf1367e2950c4718ea04565e20fb5029b6c7d8ad09abcf" +checksum = "21e50f3adc76d6a43f5ed73b698a87d0760ca74617f60f7c3b879003536fdd28" [[package]] name = "ecdsa" diff --git a/client/consensus/common/Cargo.toml b/client/consensus/common/Cargo.toml index f243967c247..8cc6e7591ad 100644 --- a/client/consensus/common/Cargo.toml +++ b/client/consensus/common/Cargo.toml @@ -10,7 +10,7 @@ futures = { version = "0.3.8", features = ["compat"] } codec = { package = "parity-scale-codec", version = "3.0.0", features = [ "derive" ] } tracing = "0.1.32" async-trait = "0.1.52" -dyn-clone = "1.0.4" +dyn-clone = "1.0.5" # Substrate sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "master" } From 4322e064ea2bba5a440324d9796af59c0a37f12f Mon Sep 17 00:00:00 2001 From: Squirrel Date: Wed, 16 Mar 2022 19:10:41 +0000 Subject: [PATCH 06/14] collator-selection pallet tidy (#1093) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * One less collect + clippy suggestions. * No need to index into collection * Update pallets/collator-selection/src/lib.rs Co-authored-by: Bastian Köcher --- pallets/collator-selection/src/lib.rs | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pallets/collator-selection/src/lib.rs b/pallets/collator-selection/src/lib.rs index 53a619442ba..fab70a3d0d2 100644 --- a/pallets/collator-selection/src/lib.rs +++ b/pallets/collator-selection/src/lib.rs @@ -368,7 +368,7 @@ pub mod pallet { let current_count = >::try_mutate(|candidates| -> Result { - if candidates.into_iter().any(|candidate| candidate.who == who) { + if candidates.iter().any(|candidate| candidate.who == who) { Err(Error::::AlreadyCandidate)? } else { T::Currency::reserve(&who, deposit)?; @@ -409,6 +409,7 @@ pub mod pallet { pub fn account_id() -> T::AccountId { T::PotId::get().into_account() } + /// Removes a candidate if they exist and sends them back their deposit fn try_remove_candidate(who: &T::AccountId) -> Result { let current_count = @@ -417,8 +418,8 @@ pub mod pallet { .iter() .position(|candidate| candidate.who == *who) .ok_or(Error::::NotCandidate)?; - T::Currency::unreserve(&who, candidates[index].deposit); - candidates.remove(index); + let candidate = candidates.remove(index); + T::Currency::unreserve(who, candidate.deposit); >::remove(who.clone()); Ok(candidates.len()) })?; @@ -431,16 +432,18 @@ pub mod pallet { /// This is done on the fly, as frequent as we are told to do so, as the session manager. pub fn assemble_collators(candidates: Vec) -> Vec { let mut collators = Self::invulnerables(); - collators.extend(candidates.into_iter().collect::>()); + collators.extend(candidates); collators } - /// Kicks out and candidates that did not produce a block in the kick threshold. + + /// Kicks out candidates that did not produce a block in the kick threshold + /// and refund their deposits. pub fn kick_stale_candidates( candidates: Vec>>, ) -> Vec { let now = frame_system::Pallet::::block_number(); let kick_threshold = T::KickThreshold::get(); - let new_candidates = candidates + candidates .into_iter() .filter_map(|c| { let last_block = >::get(c.who.clone()); @@ -458,8 +461,7 @@ pub mod pallet { None } }) - .collect::>(); - new_candidates + .collect() } } @@ -503,9 +505,8 @@ pub mod pallet { let candidates = Self::candidates(); let candidates_len_before = candidates.len(); let active_candidates = Self::kick_stale_candidates(candidates); - let active_candidates_len = active_candidates.len(); + let removed = candidates_len_before - active_candidates.len(); let result = Self::assemble_collators(active_candidates); - let removed = candidates_len_before - active_candidates_len; frame_system::Pallet::::register_extra_weight_unchecked( T::WeightInfo::new_session(candidates_len_before as u32, removed as u32), From 878872c319e95975f019fbf2e395d30d2725359e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 17 Mar 2022 11:01:12 +0100 Subject: [PATCH 07/14] Bump syn from 1.0.88 to 1.0.89 (#1094) Bumps [syn](https://github.com/dtolnay/syn) from 1.0.88 to 1.0.89. - [Release notes](https://github.com/dtolnay/syn/releases) - [Commits](https://github.com/dtolnay/syn/compare/1.0.88...1.0.89) --- updated-dependencies: - dependency-name: syn dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- pallets/parachain-system/proc-macro/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1265f44a529..3335dfe5732 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12010,9 +12010,9 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "syn" -version = "1.0.88" +version = "1.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebd69e719f31e88618baa1eaa6ee2de5c9a1c004f1e9ecdb58e8352a13f20a01" +checksum = "ea297be220d52398dcc07ce15a209fce436d361735ac1db700cab3b6cdfb9f54" dependencies = [ "proc-macro2", "quote", diff --git a/pallets/parachain-system/proc-macro/Cargo.toml b/pallets/parachain-system/proc-macro/Cargo.toml index 2d1e99471c8..89cd7c662e2 100644 --- a/pallets/parachain-system/proc-macro/Cargo.toml +++ b/pallets/parachain-system/proc-macro/Cargo.toml @@ -9,7 +9,7 @@ description = "Proc macros provided by the parachain-system pallet" proc-macro = true [dependencies] -syn = "1.0.88" +syn = "1.0.89" proc-macro2 = "1.0.36" quote = "1.0.9" proc-macro-crate = "1.1.3" From 680c5738d642b8e14bc8d09059ea17c99d320b4f Mon Sep 17 00:00:00 2001 From: Amar Singh Date: Thu, 17 Mar 2022 06:02:59 -0400 Subject: [PATCH 08/14] Add babe randomness to relay state proof (#1083) * add new babe keys to relay storage proof * persist relay state proof and make pub super to expose to runtime * use sp trie StorageProof instead of sp state machine Storage Proof * fmt --- pallets/parachain-system/src/lib.rs | 13 ++++++++++++- primitives/parachain-inherent/src/client_side.rs | 3 +++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pallets/parachain-system/src/lib.rs b/pallets/parachain-system/src/lib.rs index 2338192da1f..2eb242e7387 100644 --- a/pallets/parachain-system/src/lib.rs +++ b/pallets/parachain-system/src/lib.rs @@ -310,7 +310,7 @@ pub mod pallet { let relay_state_proof = RelayChainStateProof::new( T::SelfParaId::get(), vfp.relay_parent_storage_root, - relay_chain_state, + relay_chain_state.clone(), ) .expect("Invalid relay chain state proof"); @@ -352,6 +352,7 @@ pub mod pallet { .expect("Invalid messaging state in relay chain state proof"); >::put(&vfp); + >::put(relay_chain_state); >::put(relevant_messaging_state.clone()); >::put(host_config); @@ -484,6 +485,16 @@ pub mod pallet { pub(super) type UpgradeRestrictionSignal = StorageValue<_, Option, ValueQuery>; + /// The state proof for the last relay parent block. + /// + /// This field is meant to be updated each block with the validation data inherent. Therefore, + /// before processing of the inherent, e.g. in `on_initialize` this data may be stale. + /// + /// This data is also absent from the genesis. + #[pallet::storage] + #[pallet::getter(fn relay_state_proof)] + pub(super) type RelayStateProof = StorageValue<_, sp_trie::StorageProof>; + /// The snapshot of some state related to messaging relevant to the current parachain as per /// the relay parent. /// diff --git a/primitives/parachain-inherent/src/client_side.rs b/primitives/parachain-inherent/src/client_side.rs index 99c27bc8241..000094f0709 100644 --- a/primitives/parachain-inherent/src/client_side.rs +++ b/primitives/parachain-inherent/src/client_side.rs @@ -93,6 +93,9 @@ async fn collect_relay_storage_proof( .unwrap_or_default(); let mut relevant_keys = Vec::new(); + relevant_keys.push(relay_well_known_keys::CURRENT_BLOCK_RANDOMNESS.to_vec()); + relevant_keys.push(relay_well_known_keys::ONE_EPOCH_AGO_RANDOMNESS.to_vec()); + relevant_keys.push(relay_well_known_keys::TWO_EPOCHS_AGO_RANDOMNESS.to_vec()); relevant_keys.push(relay_well_known_keys::CURRENT_SLOT.to_vec()); relevant_keys.push(relay_well_known_keys::ACTIVE_CONFIG.to_vec()); relevant_keys.push(relay_well_known_keys::dmq_mqc_head(para_id)); From f6fa46091179098234b0a44d753b47fd3f82a263 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 17 Mar 2022 21:09:28 +0000 Subject: [PATCH 09/14] Bump parity-scale-codec from 3.1.0 to 3.1.2 (#1096) Bumps [parity-scale-codec](https://github.com/paritytech/parity-scale-codec) from 3.1.0 to 3.1.2. - [Release notes](https://github.com/paritytech/parity-scale-codec/releases) - [Changelog](https://github.com/paritytech/parity-scale-codec/blob/master/CHANGELOG.md) - [Commits](https://github.com/paritytech/parity-scale-codec/commits) --- updated-dependencies: - dependency-name: parity-scale-codec dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 8 ++++---- client/relay-chain-interface/Cargo.toml | 2 +- client/relay-chain-rpc-interface/Cargo.toml | 2 +- pallets/session-benchmarking/Cargo.toml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3335dfe5732..96a0c436b55 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6841,9 +6841,9 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "3.1.0" +version = "3.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8483b84fb12de1dc23bf95d26030d16cea56391d136db0db37f749508104e3e6" +checksum = "e8b44461635bbb1a0300f100a841e571e7d919c81c73075ef5d152ffdb521066" dependencies = [ "arrayvec 0.7.2", "bitvec", @@ -6855,9 +6855,9 @@ dependencies = [ [[package]] name = "parity-scale-codec-derive" -version = "3.1.0" +version = "3.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7259388ceb4c23bc09caef272c9e7a732b3b8f9fbd0b41f0009a91d6548cc1d9" +checksum = "c45ed1f39709f5a89338fab50e59816b2e8815f5bb58276e7ddf9afd495f73f8" dependencies = [ "proc-macro-crate 1.1.3", "proc-macro2", diff --git a/client/relay-chain-interface/Cargo.toml b/client/relay-chain-interface/Cargo.toml index 64c0aee8ccb..9403e89e799 100644 --- a/client/relay-chain-interface/Cargo.toml +++ b/client/relay-chain-interface/Cargo.toml @@ -24,4 +24,4 @@ derive_more = "0.99.2" async-trait = "0.1.52" thiserror = "1.0.30" jsonrpsee-core = "0.9.0" -parity-scale-codec = "3.1.0" +parity-scale-codec = "3.1.2" diff --git a/client/relay-chain-rpc-interface/Cargo.toml b/client/relay-chain-rpc-interface/Cargo.toml index 09422c093b4..295b84e866a 100644 --- a/client/relay-chain-rpc-interface/Cargo.toml +++ b/client/relay-chain-rpc-interface/Cargo.toml @@ -21,7 +21,7 @@ sc-rpc-api = { git = "https://github.com/paritytech/substrate", branch = "master futures = "0.3.21" futures-timer = "3.0.2" -parity-scale-codec = "3.1.0" +parity-scale-codec = "3.1.2" parking_lot = "0.12.0" jsonrpsee = { version = "0.9.0", features = ["client"] } tracing = "0.1.32" diff --git a/pallets/session-benchmarking/Cargo.toml b/pallets/session-benchmarking/Cargo.toml index afbf0fbd037..ba0f8cf4414 100644 --- a/pallets/session-benchmarking/Cargo.toml +++ b/pallets/session-benchmarking/Cargo.toml @@ -13,7 +13,7 @@ readme = "README.md" targets = ["x86_64-unknown-linux-gnu"] [dependencies] -parity-scale-codec = { version = "3.1.0", default-features = false } +parity-scale-codec = { version = "3.1.2", default-features = false } sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "master" } sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "master" } frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "master" } From 2db0a69f66fdfd0ffd9bbfd1113f1f1b25f07b2e Mon Sep 17 00:00:00 2001 From: Squirrel Date: Mon, 21 Mar 2022 14:47:47 +0000 Subject: [PATCH 10/14] express intent better (#1099) --- pallets/xcmp-queue/src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pallets/xcmp-queue/src/lib.rs b/pallets/xcmp-queue/src/lib.rs index 947439ba8b4..98fafb8846b 100644 --- a/pallets/xcmp-queue/src/lib.rs +++ b/pallets/xcmp-queue/src/lib.rs @@ -571,9 +571,7 @@ impl Pallet { let mut shuffled = (0..len).collect::>(); for i in 0..len { let j = (rng.next_u32() as usize) % len; - let a = shuffled[i]; - shuffled[i] = shuffled[j]; - shuffled[j] = a; + shuffled.as_mut_slice().swap(i, j); } shuffled } From fc903ed6783069eedbcab2fe72e2e9107e1ad41a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 18 Mar 2022 20:32:29 +0000 Subject: [PATCH 11/14] Bump quote from 1.0.15 to 1.0.16 Bumps [quote](https://github.com/dtolnay/quote) from 1.0.15 to 1.0.16. - [Release notes](https://github.com/dtolnay/quote/releases) - [Commits](https://github.com/dtolnay/quote/compare/1.0.15...1.0.16) --- updated-dependencies: - dependency-name: quote dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Cargo.lock | 4 ++-- pallets/parachain-system/proc-macro/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 96a0c436b55..be8ea46a08b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8793,9 +8793,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.15" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145" +checksum = "b4af2ec4714533fcdf07e886f17025ace8b997b9ce51204ee69b6da831c3da57" dependencies = [ "proc-macro2", ] diff --git a/pallets/parachain-system/proc-macro/Cargo.toml b/pallets/parachain-system/proc-macro/Cargo.toml index 89cd7c662e2..135e6137f96 100644 --- a/pallets/parachain-system/proc-macro/Cargo.toml +++ b/pallets/parachain-system/proc-macro/Cargo.toml @@ -11,7 +11,7 @@ proc-macro = true [dependencies] syn = "1.0.89" proc-macro2 = "1.0.36" -quote = "1.0.9" +quote = "1.0.16" proc-macro-crate = "1.1.3" [features] From 97173790129dfe4898b47d192d737036c3eddbf4 Mon Sep 17 00:00:00 2001 From: Squirrel Date: Tue, 22 Mar 2022 17:01:15 +0000 Subject: [PATCH 12/14] bump versions in preparation for next release (#1103) * bump collator version * bump statmint runtimes versions * Update lock file * unifying runtime versions --- Cargo.lock | 2 +- polkadot-parachains/Cargo.toml | 2 +- polkadot-parachains/rococo-parachain/src/lib.rs | 2 +- polkadot-parachains/seedling/src/lib.rs | 2 +- polkadot-parachains/statemine/src/lib.rs | 2 +- polkadot-parachains/statemint/src/lib.rs | 2 +- polkadot-parachains/westmint/src/lib.rs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index be8ea46a08b..0d2dcecc6db 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7329,7 +7329,7 @@ dependencies = [ [[package]] name = "polkadot-collator" -version = "5.2.0" +version = "5.3.0" dependencies = [ "assert_cmd", "async-trait", diff --git a/polkadot-parachains/Cargo.toml b/polkadot-parachains/Cargo.toml index e65f20788f8..ccb1668e687 100644 --- a/polkadot-parachains/Cargo.toml +++ b/polkadot-parachains/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "polkadot-collator" -version = "5.2.0" +version = "5.3.0" authors = ["Parity Technologies "] build = "build.rs" edition = "2021" diff --git a/polkadot-parachains/rococo-parachain/src/lib.rs b/polkadot-parachains/rococo-parachain/src/lib.rs index ca4ecc2838a..dd395f287ef 100644 --- a/polkadot-parachains/rococo-parachain/src/lib.rs +++ b/polkadot-parachains/rococo-parachain/src/lib.rs @@ -93,7 +93,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("test-parachain"), impl_name: create_runtime_str!("test-parachain"), authoring_version: 1, - spec_version: 14, + spec_version: 800, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, diff --git a/polkadot-parachains/seedling/src/lib.rs b/polkadot-parachains/seedling/src/lib.rs index 601c8aba9ed..e6c0190f629 100644 --- a/polkadot-parachains/seedling/src/lib.rs +++ b/polkadot-parachains/seedling/src/lib.rs @@ -56,7 +56,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("seedling"), impl_name: create_runtime_str!("seedling"), authoring_version: 1, - spec_version: 1, + spec_version: 800, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, diff --git a/polkadot-parachains/statemine/src/lib.rs b/polkadot-parachains/statemine/src/lib.rs index cfcedc12a35..47484c3ee7e 100644 --- a/polkadot-parachains/statemine/src/lib.rs +++ b/polkadot-parachains/statemine/src/lib.rs @@ -82,7 +82,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("statemine"), impl_name: create_runtime_str!("statemine"), authoring_version: 1, - spec_version: 700, + spec_version: 800, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 5, diff --git a/polkadot-parachains/statemint/src/lib.rs b/polkadot-parachains/statemint/src/lib.rs index 28f831f11b3..566f4bac854 100644 --- a/polkadot-parachains/statemint/src/lib.rs +++ b/polkadot-parachains/statemint/src/lib.rs @@ -83,7 +83,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("statemint"), impl_name: create_runtime_str!("statemint"), authoring_version: 1, - spec_version: 700, + spec_version: 800, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 5, diff --git a/polkadot-parachains/westmint/src/lib.rs b/polkadot-parachains/westmint/src/lib.rs index 0c3ad665159..1cb876c5dd0 100644 --- a/polkadot-parachains/westmint/src/lib.rs +++ b/polkadot-parachains/westmint/src/lib.rs @@ -80,7 +80,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("westmint"), impl_name: create_runtime_str!("westmint"), authoring_version: 1, - spec_version: 700, + spec_version: 800, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 5, From 3cbd4279fa300840800ff6ab77e5a1ec3270bf92 Mon Sep 17 00:00:00 2001 From: Squirrel Date: Tue, 22 Mar 2022 20:56:58 +0000 Subject: [PATCH 13/14] xcmp-queue / less indexing (#1100) * less indexing * removed unneeded clone Co-authored-by: Keith Yeung --- pallets/xcmp-queue/src/lib.rs | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/pallets/xcmp-queue/src/lib.rs b/pallets/xcmp-queue/src/lib.rs index 98fafb8846b..e0c5b6e41ea 100644 --- a/pallets/xcmp-queue/src/lib.rs +++ b/pallets/xcmp-queue/src/lib.rs @@ -495,13 +495,15 @@ impl Pallet { } let mut s = >::get(); - let index = s.iter().position(|item| item.recipient == recipient).unwrap_or_else(|| { + let details = if let Some(details) = s.iter_mut().find(|item| item.recipient == recipient) { + details + } else { s.push(OutboundChannelDetails::new(recipient)); - s.len() - 1 - }); - let have_active = s[index].last_index > s[index].first_index; + s.last_mut().expect("can't be empty; a new element was just pushed; qed") + }; + let have_active = details.last_index > details.first_index; let appended = have_active && - >::mutate(recipient, s[index].last_index - 1, |s| { + >::mutate(recipient, details.last_index - 1, |s| { if XcmpMessageFormat::decode_with_depth_limit(MAX_XCM_DECODE_DEPTH, &mut &s[..]) != Ok(format) { @@ -514,15 +516,15 @@ impl Pallet { return true }); if appended { - Ok((s[index].last_index - s[index].first_index - 1) as u32) + Ok((details.last_index - details.first_index - 1) as u32) } else { // Need to add a new page. - let page_index = s[index].last_index; - s[index].last_index += 1; + let page_index = details.last_index; + details.last_index += 1; let mut new_page = format.encode(); new_page.extend_from_slice(&data[..]); >::insert(recipient, page_index, new_page); - let r = (s[index].last_index - s[index].first_index - 1) as u32; + let r = (details.last_index - details.first_index - 1) as u32; >::put(s); Ok(r) } @@ -532,8 +534,8 @@ impl Pallet { /// block. fn send_signal(dest: ParaId, signal: ChannelSignal) -> Result<(), ()> { let mut s = >::get(); - if let Some(index) = s.iter().position(|item| item.recipient == dest) { - s[index].signals_exist = true; + if let Some(details) = s.iter_mut().find(|item| item.recipient == dest) { + details.signals_exist = true; } else { s.push(OutboundChannelDetails::new(dest).with_signals()); } @@ -598,7 +600,7 @@ impl Pallet { Ok(xcm) => { let location = (1, Parachain(sender.into())); match T::XcmExecutor::execute_xcm(location, xcm, max_weight) { - Outcome::Error(e) => (Err(e.clone()), Event::Fail(Some(hash), e)), + Outcome::Error(e) => (Err(e), Event::Fail(Some(hash), e)), Outcome::Complete(w) => (Ok(w), Event::Success(Some(hash))), // As far as the caller is concerned, this was dispatched without error, so // we just report the weight used. @@ -748,7 +750,7 @@ impl Pallet { let suspended = QueueSuspended::::get(); let mut status = >::get(); // <- sorted. - if status.len() == 0 { + if status.is_empty() { return 0 } @@ -857,10 +859,10 @@ impl Pallet { fn suspend_channel(target: ParaId) { >::mutate(|s| { - if let Some(index) = s.iter().position(|item| item.recipient == target) { - let ok = s[index].state == OutboundState::Ok; + if let Some(details) = s.iter_mut().find(|item| item.recipient == target) { + let ok = details.state == OutboundState::Ok; debug_assert!(ok, "WARNING: Attempt to suspend channel that was not Ok."); - s[index].state = OutboundState::Suspended; + details.state = OutboundState::Suspended; } else { s.push(OutboundChannelDetails::new(target).with_suspended_state()); } From 2fe7a2edba05155c6a5f0f3527e1001aad7aee2e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 23 Mar 2022 00:17:49 +0100 Subject: [PATCH 14/14] Bump log from 0.4.14 to 0.4.16 (#1107) Bumps [log](https://github.com/rust-lang/log) from 0.4.14 to 0.4.16. - [Release notes](https://github.com/rust-lang/log/releases) - [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/log/commits) --- updated-dependencies: - dependency-name: log dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- pallets/collator-selection/Cargo.toml | 2 +- pallets/dmp-queue/Cargo.toml | 2 +- pallets/parachain-system/Cargo.toml | 2 +- pallets/xcmp-queue/Cargo.toml | 2 +- parachain-template/node/Cargo.toml | 2 +- parachain-template/runtime/Cargo.toml | 2 +- polkadot-parachains/Cargo.toml | 2 +- polkadot-parachains/canvas-kusama/Cargo.toml | 2 +- polkadot-parachains/rococo-parachain/Cargo.toml | 2 +- polkadot-parachains/shell/Cargo.toml | 2 +- polkadot-parachains/statemine/Cargo.toml | 2 +- polkadot-parachains/statemint/Cargo.toml | 2 +- polkadot-parachains/westmint/Cargo.toml | 2 +- 14 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0d2dcecc6db..a372e924daf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4981,9 +4981,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.14" +version = "0.4.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" +checksum = "6389c490849ff5bc16be905ae24bc913a9c8892e19b2341dbc175e14c341c2b8" dependencies = [ "cfg-if 1.0.0", "value-bag", diff --git a/pallets/collator-selection/Cargo.toml b/pallets/collator-selection/Cargo.toml index 9c03886ce56..9a0efd3c2d6 100644 --- a/pallets/collator-selection/Cargo.toml +++ b/pallets/collator-selection/Cargo.toml @@ -13,7 +13,7 @@ version = "3.0.0" targets = ["x86_64-unknown-linux-gnu"] [dependencies] -log = { version = "0.4.0", default-features = false } +log = { version = "0.4.16", default-features = false } codec = { default-features = false, features = ["derive"], package = "parity-scale-codec", version = "3.0.0" } rand = { version = "0.8.5", features = ["std_rng"], default-features = false } scale-info = { version = "2.0.0", default-features = false, features = ["derive"] } diff --git a/pallets/dmp-queue/Cargo.toml b/pallets/dmp-queue/Cargo.toml index b79555c360b..3a71cbe8337 100644 --- a/pallets/dmp-queue/Cargo.toml +++ b/pallets/dmp-queue/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" [dependencies] codec = { package = "parity-scale-codec", version = "3.0.0", features = [ "derive" ], default-features = false } -log = { version = "0.4.14", default-features = false } +log = { version = "0.4.16", default-features = false } scale-info = { version = "2.0.0", default-features = false, features = ["derive"] } # Substrate diff --git a/pallets/parachain-system/Cargo.toml b/pallets/parachain-system/Cargo.toml index 0d95571788f..bf59a325669 100644 --- a/pallets/parachain-system/Cargo.toml +++ b/pallets/parachain-system/Cargo.toml @@ -9,7 +9,7 @@ description = "Base pallet for cumulus-based parachains" codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } environmental = { version = "1.1.2", default-features = false } impl-trait-for-tuples = "0.2.1" -log = { version = "0.4.14", default-features = false } +log = { version = "0.4.16", default-features = false } scale-info = { version = "2.0.0", default-features = false, features = ["derive"] } serde = { version = "1.0.132", optional = true, features = ["derive"] } diff --git a/pallets/xcmp-queue/Cargo.toml b/pallets/xcmp-queue/Cargo.toml index b9439bb4434..eb1b81a0003 100644 --- a/pallets/xcmp-queue/Cargo.toml +++ b/pallets/xcmp-queue/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" [dependencies] codec = { package = "parity-scale-codec", version = "3.0.0", features = [ "derive" ], default-features = false } -log = { version = "0.4.14", default-features = false } +log = { version = "0.4.16", default-features = false } rand_chacha = { version = "0.3.0", default-features = false } scale-info = { version = "2.0.0", default-features = false, features = ["derive"] } diff --git a/parachain-template/node/Cargo.toml b/parachain-template/node/Cargo.toml index 172c2e6cb65..31e58aac354 100644 --- a/parachain-template/node/Cargo.toml +++ b/parachain-template/node/Cargo.toml @@ -16,7 +16,7 @@ path = "src/main.rs" [dependencies] clap = { version = "3.1", features = ["derive"] } derive_more = "0.99.2" -log = "0.4.14" +log = "0.4.16" codec = { package = "parity-scale-codec", version = "3.0.0" } serde = { version = "1.0.132", features = ["derive"] } hex-literal = "0.3.4" diff --git a/parachain-template/runtime/Cargo.toml b/parachain-template/runtime/Cargo.toml index 0f7d2947b58..f421c3a99a1 100644 --- a/parachain-template/runtime/Cargo.toml +++ b/parachain-template/runtime/Cargo.toml @@ -17,7 +17,7 @@ substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", bran [dependencies] codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } hex-literal = { version = "0.3.4", optional = true } -log = { version = "0.4.14", default-features = false } +log = { version = "0.4.16", default-features = false } scale-info = { version = "2.0.0", default-features = false, features = ["derive"] } serde = { version = "1.0.132", optional = true, features = ["derive"] } smallvec = "1.6.1" diff --git a/polkadot-parachains/Cargo.toml b/polkadot-parachains/Cargo.toml index ccb1668e687..8d7175f3561 100644 --- a/polkadot-parachains/Cargo.toml +++ b/polkadot-parachains/Cargo.toml @@ -15,7 +15,7 @@ clap = { version = "3.1", features = ["derive"] } codec = { package = "parity-scale-codec", version = "3.0.0" } futures = { version = "0.3.1", features = ["compat"] } hex-literal = "0.3.4" -log = "0.4.8" +log = "0.4.16" serde = { version = "1.0.132", features = ["derive"] } # Local diff --git a/polkadot-parachains/canvas-kusama/Cargo.toml b/polkadot-parachains/canvas-kusama/Cargo.toml index 7dee29a1ac3..6ea9d00e537 100644 --- a/polkadot-parachains/canvas-kusama/Cargo.toml +++ b/polkadot-parachains/canvas-kusama/Cargo.toml @@ -13,7 +13,7 @@ substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", bran [dependencies] codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } hex-literal = { version = "0.3.4", optional = true } -log = { version = "0.4.14", default-features = false } +log = { version = "0.4.16", default-features = false } scale-info = { version = "2.0.0", default-features = false, features = ["derive"] } serde = { version = "1.0.119", optional = true, features = ["derive"] } smallvec = "1.6.1" diff --git a/polkadot-parachains/rococo-parachain/Cargo.toml b/polkadot-parachains/rococo-parachain/Cargo.toml index a205dd43e0d..43f70b40ed3 100644 --- a/polkadot-parachains/rococo-parachain/Cargo.toml +++ b/polkadot-parachains/rococo-parachain/Cargo.toml @@ -7,7 +7,7 @@ description = "Simple runtime used by the rococo parachain(s)" [dependencies] codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } -log = { version = "0.4.14", default-features = false } +log = { version = "0.4.16", default-features = false } scale-info = { version = "2.0.0", default-features = false, features = ["derive"] } serde = { version = "1.0.132", optional = true, features = ["derive"] } diff --git a/polkadot-parachains/shell/Cargo.toml b/polkadot-parachains/shell/Cargo.toml index ceebd968210..74a04c84b7d 100644 --- a/polkadot-parachains/shell/Cargo.toml +++ b/polkadot-parachains/shell/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" [dependencies] codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } -log = { version = "0.4.14", default-features = false } +log = { version = "0.4.16", default-features = false } scale-info = { version = "2.0.0", default-features = false, features = ["derive"] } serde = { version = "1.0.132", optional = true, features = ["derive"] } diff --git a/polkadot-parachains/statemine/Cargo.toml b/polkadot-parachains/statemine/Cargo.toml index f7452a39f57..3f15595c209 100644 --- a/polkadot-parachains/statemine/Cargo.toml +++ b/polkadot-parachains/statemine/Cargo.toml @@ -8,7 +8,7 @@ description = "Kusama variant of Statemint parachain runtime" [dependencies] codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] } hex-literal = { version = "0.3.4", optional = true } -log = { version = "0.4.14", default-features = false } +log = { version = "0.4.16", default-features = false } scale-info = { version = "2.0.0", default-features = false, features = ["derive"] } serde = { version = "1.0.132", optional = true, features = ["derive"] } smallvec = "1.6.1" diff --git a/polkadot-parachains/statemint/Cargo.toml b/polkadot-parachains/statemint/Cargo.toml index 4fb5746f98a..13044de62dd 100644 --- a/polkadot-parachains/statemint/Cargo.toml +++ b/polkadot-parachains/statemint/Cargo.toml @@ -8,7 +8,7 @@ description = "Statemint parachain runtime" [dependencies] codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] } hex-literal = { version = "0.3.4", optional = true } -log = { version = "0.4.14", default-features = false } +log = { version = "0.4.16", default-features = false } serde = { version = "1.0.132", optional = true, features = ["derive"] } scale-info = { version = "2.0.0", default-features = false, features = ["derive"] } smallvec = "1.6.1" diff --git a/polkadot-parachains/westmint/Cargo.toml b/polkadot-parachains/westmint/Cargo.toml index 873725cf532..e6177a6f9eb 100644 --- a/polkadot-parachains/westmint/Cargo.toml +++ b/polkadot-parachains/westmint/Cargo.toml @@ -8,7 +8,7 @@ description = "Westend variant of Statemint parachain runtime" [dependencies] codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] } hex-literal = { version = "0.3.4", optional = true } -log = { version = "0.4.14", default-features = false } +log = { version = "0.4.16", default-features = false } scale-info = { version = "2.0.0", default-features = false, features = ["derive"] } serde = { version = "1.0.132", optional = true, features = ["derive"] } smallvec = "1.6.1"