From fa0252a96bd562dbecb9d3faa53597f8c5adb93b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dino=20Pa=C4=8Dandi?= <3002868+Dinonard@users.noreply.github.com> Date: Mon, 18 Sep 2023 22:51:18 +0200 Subject: [PATCH] Remove unused XCM consts (#1026) --- Cargo.lock | 16 ++++++++-------- bin/collator/Cargo.toml | 2 +- runtime/astar/Cargo.toml | 2 +- runtime/astar/src/xcm_config.rs | 5 ----- runtime/local/Cargo.toml | 2 +- runtime/shibuya/Cargo.toml | 2 +- runtime/shibuya/src/xcm_config.rs | 5 ----- runtime/shiden/Cargo.toml | 2 +- runtime/shiden/src/xcm_config.rs | 5 ----- 9 files changed, 13 insertions(+), 28 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 28f586a9b..63ae1234c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -404,7 +404,7 @@ dependencies = [ [[package]] name = "astar-collator" -version = "5.18.0" +version = "5.18.1" dependencies = [ "astar-primitives", "astar-runtime", @@ -533,7 +533,7 @@ dependencies = [ [[package]] name = "astar-runtime" -version = "5.18.0" +version = "5.18.1" dependencies = [ "array-bytes 6.1.0", "astar-primitives", @@ -5495,7 +5495,7 @@ checksum = "09fc20d2ca12cb9f044c93e3bd6d32d523e6e2ec3db4f7b2939cd99026ecd3f0" [[package]] name = "local-runtime" -version = "5.18.0" +version = "5.18.1" dependencies = [ "array-bytes 6.1.0", "astar-primitives", @@ -10171,9 +10171,9 @@ dependencies = [ [[package]] name = "quinn-proto" -version = "0.9.3" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67c10f662eee9c94ddd7135043e544f3c82fa839a1e7b865911331961b53186c" +checksum = "c956be1b23f4261676aed05a0046e204e8a6836e50203902683a718af0797989" dependencies = [ "bytes", "rand 0.8.5", @@ -12356,7 +12356,7 @@ dependencies = [ [[package]] name = "shibuya-runtime" -version = "5.18.0" +version = "5.18.1" dependencies = [ "array-bytes 6.1.0", "astar-primitives", @@ -12464,7 +12464,7 @@ dependencies = [ [[package]] name = "shiden-runtime" -version = "5.18.0" +version = "5.18.1" dependencies = [ "array-bytes 6.1.0", "astar-primitives", @@ -14462,7 +14462,7 @@ checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ "cfg-if", "digest 0.10.7", - "rand 0.8.5", + "rand 0.7.3", "static_assertions", ] diff --git a/bin/collator/Cargo.toml b/bin/collator/Cargo.toml index 3c7fccb18..3e2f1533b 100644 --- a/bin/collator/Cargo.toml +++ b/bin/collator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "astar-collator" -version = "5.18.0" +version = "5.18.1" description = "Astar collator implementation in Rust." build = "build.rs" default-run = "astar-collator" diff --git a/runtime/astar/Cargo.toml b/runtime/astar/Cargo.toml index 83458c980..c4ad5a085 100644 --- a/runtime/astar/Cargo.toml +++ b/runtime/astar/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "astar-runtime" -version = "5.18.0" +version = "5.18.1" build = "build.rs" authors.workspace = true edition.workspace = true diff --git a/runtime/astar/src/xcm_config.rs b/runtime/astar/src/xcm_config.rs index 5c86c9e93..c147f4cdf 100644 --- a/runtime/astar/src/xcm_config.rs +++ b/runtime/astar/src/xcm_config.rs @@ -20,7 +20,6 @@ use super::{ AccountId, AllPalletsWithSystem, AssetId, Assets, AstarAssetLocationIdConverter, Balance, Balances, DealWithFees, ParachainInfo, ParachainSystem, PolkadotXcm, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, TreasuryAccountId, WeightToFee, XcAssetConfig, XcmpQueue, - MAXIMUM_BLOCK_WEIGHT, }; use frame_support::{ match_types, parameter_types, @@ -270,10 +269,6 @@ impl xcm_executor::Config for XcmConfig { type SafeCallFilter = SafeCallFilter; } -parameter_types! { - pub const MaxDownwardMessageWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(10); -} - /// Local origins on this chain are allowed to dispatch XCM sends/executions. pub type LocalOriginToLocation = SignedToAccountId32; diff --git a/runtime/local/Cargo.toml b/runtime/local/Cargo.toml index 44012e176..5fab41f77 100644 --- a/runtime/local/Cargo.toml +++ b/runtime/local/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "local-runtime" -version = "5.18.0" +version = "5.18.1" build = "build.rs" authors.workspace = true edition.workspace = true diff --git a/runtime/shibuya/Cargo.toml b/runtime/shibuya/Cargo.toml index 20e1cf7ef..72c1d69ce 100644 --- a/runtime/shibuya/Cargo.toml +++ b/runtime/shibuya/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shibuya-runtime" -version = "5.18.0" +version = "5.18.1" build = "build.rs" authors.workspace = true edition.workspace = true diff --git a/runtime/shibuya/src/xcm_config.rs b/runtime/shibuya/src/xcm_config.rs index 3848b0bd1..4ef26d328 100644 --- a/runtime/shibuya/src/xcm_config.rs +++ b/runtime/shibuya/src/xcm_config.rs @@ -20,7 +20,6 @@ use super::{ AccountId, AllPalletsWithSystem, AssetId, Assets, Balance, Balances, DealWithFees, ParachainInfo, ParachainSystem, PolkadotXcm, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, ShibuyaAssetLocationIdConverter, TreasuryAccountId, WeightToFee, XcAssetConfig, XcmpQueue, - MAXIMUM_BLOCK_WEIGHT, }; use frame_support::{ match_types, parameter_types, @@ -204,10 +203,6 @@ impl xcm_executor::Config for XcmConfig { type SafeCallFilter = Everything; } -parameter_types! { - pub const MaxDownwardMessageWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(10); -} - /// Local origins on this chain are allowed to dispatch XCM sends/executions. pub type LocalOriginToLocation = SignedToAccountId32; diff --git a/runtime/shiden/Cargo.toml b/runtime/shiden/Cargo.toml index 9e8b34b62..8a86693eb 100644 --- a/runtime/shiden/Cargo.toml +++ b/runtime/shiden/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shiden-runtime" -version = "5.18.0" +version = "5.18.1" build = "build.rs" authors.workspace = true edition.workspace = true diff --git a/runtime/shiden/src/xcm_config.rs b/runtime/shiden/src/xcm_config.rs index 981c906c5..ee3a3d678 100644 --- a/runtime/shiden/src/xcm_config.rs +++ b/runtime/shiden/src/xcm_config.rs @@ -20,7 +20,6 @@ use super::{ AccountId, AllPalletsWithSystem, AssetId, Assets, Balance, Balances, BurnFees, ParachainInfo, ParachainSystem, PolkadotXcm, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, ShidenAssetLocationIdConverter, TreasuryAccountId, WeightToFee, XcAssetConfig, XcmpQueue, - MAXIMUM_BLOCK_WEIGHT, }; use frame_support::{ match_types, parameter_types, @@ -274,10 +273,6 @@ impl xcm_executor::Config for XcmConfig { type SafeCallFilter = SafeCallFilter; } -parameter_types! { - pub const MaxDownwardMessageWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(10); -} - /// Local origins on this chain are allowed to dispatch XCM sends/executions. pub type LocalOriginToLocation = SignedToAccountId32;