Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce XcmFeesToAccount fee manager #1234

Merged
merged 153 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from 86 commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
b862137
Introduce XcmFeesToAccount fee manager
KiChjang Apr 4, 2023
b1ca17e
Put system parachain IDs into consts
KiChjang Apr 4, 2023
fa6e6e2
Fixes
KiChjang Apr 4, 2023
48d3a18
Remove XcmFeesToAccount config for Westend
KiChjang Apr 4, 2023
cdc288a
Include Encointer as a system parachain
KiChjang Apr 4, 2023
dc48ba3
Emit warning when deposit_asset fails
KiChjang Apr 5, 2023
1299ad9
Add comment on what happens when deposit_asset errors
KiChjang Apr 5, 2023
8d7a422
Fixes
KiChjang Apr 5, 2023
6f1eaac
Move SystemParachains to constants
KiChjang Apr 6, 2023
24c560e
Fixes
KiChjang Apr 6, 2023
72b8af5
cargo fmt
KiChjang Apr 7, 2023
655b864
Added BridgeHubs constants (#7053)
bkontur Apr 12, 2023
a89c6c2
Add SystemParachain type to Westmint
KiChjang Apr 13, 2023
9512b45
Waive fee handling during benchmarking
KiChjang Apr 28, 2023
e06740f
Fixes
KiChjang Apr 28, 2023
13226de
Fixes
KiChjang Apr 28, 2023
2fee6e5
Rename to ASSET_HUB_ID
KiChjang Jun 22, 2023
758b977
Rename all asset parachains to AssetHub
KiChjang Jun 22, 2023
3a9bcb8
Fixes
KiChjang Aug 28, 2023
298ab71
Send xcm fees to local treaury
gilescope Apr 5, 2023
13f9577
should not include self
gilescope Apr 5, 2023
898645c
Add collectives and contracts.
gilescope Apr 5, 2023
53dfe45
Less error-prone specifying of system parachains
gilescope Apr 7, 2023
58ce029
Typo fix
KiChjang Aug 29, 2023
8853c4a
Fixes
KiChjang Aug 29, 2023
bb36077
Test for `pallet_xcm::reserve_transfer_assets` with paid XcmRouter
bkontur Aug 7, 2023
0681ffd
Fix another assert
bkontur Aug 7, 2023
58fa19f
Potential fix?
bkontur Aug 7, 2023
e07bc53
Even easier
bkontur Aug 7, 2023
d57a819
Potential fix for `fn respond(`
bkontur Aug 7, 2023
3027720
`set_router_fee_for_destination` inside `new_test_ext`
bkontur Aug 7, 2023
7179f08
Added TestPaidForPara3000SendXcm to test
bkontur Aug 8, 2023
9c26367
TODO: remove dependency of `is_waived` on `runtime-benchmarks`
bkontur Aug 8, 2023
510ebc7
Fixed benchmarks to be `FeeManager/XcmFeesToAccount` aware
bkontur Aug 9, 2023
3d372ba
Extract logic to common place to be reused by different runtimes (rel…
bkontur Aug 13, 2023
db595f9
Fix rococo xcm benchmarks
bkontur Aug 14, 2023
2f64173
".git/.scripts/commands/fmt/fmt.sh"
Aug 16, 2023
caa703c
Nits
bkontur Aug 16, 2023
2f0161e
Update polkadot/xcm/xcm-builder/tests/scenarios.rs
KiChjang Aug 29, 2023
b3a62f7
Merge branch 'master' into kckyeung/xcm-fees-manager
KiChjang Aug 29, 2023
84cf8ce
Fixes
KiChjang Aug 29, 2023
78357aa
Improve docs
KiChjang Aug 29, 2023
a9a3f7e
Doc link
KiChjang Aug 29, 2023
a343a07
cargo fmt
KiChjang Aug 29, 2023
680b321
Implement FeeTracker on the XCMP queue pallet
KiChjang Aug 30, 2023
abf8764
Merge remote-tracking branch 'origin/master' into kckyeung/xcm-fees-m…
KiChjang Sep 9, 2023
4a9a309
Fixes
KiChjang Sep 9, 2023
42c80f1
Formatting
KiChjang Sep 9, 2023
760fb9b
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 13, 2023
8ceea34
Add default DeliveryHelper for system parachains
franciscoaguirre Sep 13, 2023
d0df126
Typo
KiChjang Sep 14, 2023
ca69936
Create DeliveryHelper for reserve chains
KiChjang Sep 14, 2023
6469962
Fixes
KiChjang Sep 14, 2023
d29d3a1
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 15, 2023
4f98070
Fix teleports_for_foreign_assets_works test
franciscoaguirre Sep 15, 2023
af68790
Fix teleports_for_native_asset_works
franciscoaguirre Sep 15, 2023
0ccb348
Fix some clippy issues
franciscoaguirre Sep 15, 2023
2748e68
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 15, 2023
8a81521
Fix faulty import
franciscoaguirre Sep 15, 2023
0fd77b7
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 16, 2023
cd4d023
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 18, 2023
678effb
Fix topic issue in tests
franciscoaguirre Sep 18, 2023
36b5833
Fix topic issue in another test
franciscoaguirre Sep 18, 2023
1d439b9
Stop asserting the expected message
franciscoaguirre Sep 18, 2023
6c0e859
Remove unnecessary mut
franciscoaguirre Sep 18, 2023
51a35fb
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 18, 2023
1a20dbb
".git/.scripts/commands/fmt/fmt.sh"
Sep 18, 2023
56383d7
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 25, 2023
ed5fd90
Fix asset-hub-kusama-integration-tests tests
franciscoaguirre Sep 26, 2023
1cfec49
Fix asset-hub-westend-integration-tests tests
franciscoaguirre Sep 26, 2023
59eb4fb
Fix asset-hub-polkadot-integration-tests tests
franciscoaguirre Sep 26, 2023
1e37646
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 26, 2023
b1b7ce8
Refactor xcm helper to a common crate
franciscoaguirre Sep 26, 2023
a71219a
Fix feature propagation
franciscoaguirre Sep 26, 2023
c4fe1ac
".git/.scripts/commands/fmt/fmt.sh"
Sep 26, 2023
f94fc1d
Fix feature propagation for std
franciscoaguirre Sep 26, 2023
b555e59
Fixes
franciscoaguirre Sep 26, 2023
79d8020
Format features
franciscoaguirre Sep 26, 2023
64afc86
".git/.scripts/commands/fmt/fmt.sh"
Sep 26, 2023
797ef39
Fix tests with runtime-benchmarks
franciscoaguirre Sep 26, 2023
7e85258
Fix pallet-xcm tests
franciscoaguirre Sep 26, 2023
6e089e3
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 27, 2023
792f197
Fix polkadot-collectives and bridge-hub-rococo tests
franciscoaguirre Sep 27, 2023
73f2731
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 27, 2023
0c5980f
Fix license issue
franciscoaguirre Sep 27, 2023
72718fd
Remove dbg
franciscoaguirre Sep 27, 2023
3af7624
Change xcm delivery fee helpers to work with UMP
franciscoaguirre Sep 27, 2023
33746fc
Remove remnant from UMP branch
franciscoaguirre Sep 27, 2023
231f548
Remove remnant from UMP branch
franciscoaguirre Sep 27, 2023
36fd612
Fix collectives tests
franciscoaguirre Sep 27, 2023
8d525f7
Wrong constants module being imported
franciscoaguirre Sep 27, 2023
fb4ff56
Add SetFeesMode to expected message in PayOverXcm tests
franciscoaguirre Sep 27, 2023
65c0fc6
Fix ambiguous trait calls
franciscoaguirre Sep 27, 2023
268fa71
Updated lock
franciscoaguirre Sep 27, 2023
ce3d091
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 27, 2023
eecbb12
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 27, 2023
fce81f1
".git/.scripts/commands/fmt/fmt.sh"
Sep 27, 2023
37cd57a
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 27, 2023
fc97690
Remove conflict
franciscoaguirre Sep 27, 2023
a28be66
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 27, 2023
fe48b31
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 28, 2023
4141b93
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 29, 2023
598516e
Add missing import
franciscoaguirre Sep 29, 2023
b9697b6
Remove polkadot and kusama constants
franciscoaguirre Sep 29, 2023
a38ee4c
Remove hardcoded constant
franciscoaguirre Sep 29, 2023
cd11b32
Fix CI
franciscoaguirre Sep 29, 2023
4f5759a
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Sep 29, 2023
df2ff2d
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 2, 2023
29f8003
Address feedback
franciscoaguirre Oct 2, 2023
ec36b49
".git/.scripts/commands/fmt/fmt.sh"
Oct 2, 2023
7329a72
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 3, 2023
6355068
Default FeeManager shouldn't waive fees
franciscoaguirre Oct 4, 2023
9fd00c2
Remove changes to polkadot and kusama system parachains
franciscoaguirre Oct 4, 2023
e30bae6
Update lockfile
franciscoaguirre Oct 4, 2023
d95d13c
Fix emulated tests
franciscoaguirre Oct 5, 2023
842c78b
Tackle no delivery fees scenario in runtime tests
franciscoaguirre Oct 6, 2023
e7e5729
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 9, 2023
1fd76fa
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 10, 2023
53efd8f
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 11, 2023
b062437
Format features
franciscoaguirre Oct 11, 2023
c1c4805
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 11, 2023
b79b016
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 11, 2023
18bcdec
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 12, 2023
73ad0fc
Add UMP pricing (#1556)
franciscoaguirre Oct 12, 2023
9a8e138
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 12, 2023
c7043b8
Merge branch 'master' into kckyeung/xcm-fees-manager
kianenigma Oct 13, 2023
3bd7e28
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 13, 2023
9f0843c
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 17, 2023
97aab4d
Add tests for XCMP and UMP delivery fees
franciscoaguirre Oct 17, 2023
7f4d6d9
Remove an expect
franciscoaguirre Oct 17, 2023
1e187c5
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 17, 2023
5b427bb
Add missing import
franciscoaguirre Oct 17, 2023
fad641e
Remove unused import
franciscoaguirre Oct 17, 2023
6a93770
Move warn to trace
franciscoaguirre Oct 17, 2023
45b9245
".git/.scripts/commands/fmt/fmt.sh"
Oct 17, 2023
5737b62
Add prdoc
franciscoaguirre Oct 17, 2023
96fd58e
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 18, 2023
9c1fced
Fix function call outside of externalities
franciscoaguirre Oct 18, 2023
4e075cf
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 18, 2023
ff3cf19
Fix rococo bridge hub test
franciscoaguirre Oct 18, 2023
dde8475
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 18, 2023
794a52d
Remove 'Here' from waived locations
franciscoaguirre Oct 18, 2023
237d25d
Fix test
franciscoaguirre Oct 18, 2023
4686838
Add XcmFeesToAccount to westend runtime
franciscoaguirre Oct 18, 2023
6a75e67
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 18, 2023
bf9e431
".git/.scripts/commands/fmt/fmt.sh"
Oct 18, 2023
74bb3e0
Add delivery fees to asset hub rococo tests
franciscoaguirre Oct 18, 2023
997a426
".git/.scripts/commands/fmt/fmt.sh"
Oct 18, 2023
4df9871
Merge branch 'master' into kckyeung/xcm-fees-manager
franciscoaguirre Oct 18, 2023
ffcd09f
Fix rococo benchmarks
franciscoaguirre Oct 18, 2023
b24cc02
Fix asset hub rococo bridge test for now
franciscoaguirre Oct 18, 2023
a4e332f
Use derive impl for balances in mock
franciscoaguirre Oct 18, 2023
f3a5ce6
".git/.scripts/commands/fmt/fmt.sh"
Oct 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions cumulus/pallets/xcmp-queue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ sp-runtime = { path = "../../../substrate/primitives/runtime", default-features
sp-std = { path = "../../../substrate/primitives/std", default-features = false}

# Polkadot
polkadot-runtime-common = { path = "../../../polkadot/runtime/common", default-features = false}
xcm = { package = "staging-xcm", path = "../../../polkadot/xcm", default-features = false}
xcm-executor = { package = "staging-xcm-executor", path = "../../../polkadot/xcm/xcm-executor", default-features = false}
polkadot-runtime-common = { path = "../../../polkadot/runtime/common", default-features = false }
polkadot-runtime-parachains = { path = "../../../polkadot/runtime/parachains", default-features = false }
xcm = { package = "staging-xcm", path = "../../../polkadot/xcm", default-features = false }
xcm-executor = { package = "staging-xcm-executor", path = "../../../polkadot/xcm/xcm-executor", default-features = false }

# Cumulus
cumulus-primitives-core = { path = "../../primitives/core", default-features = false }
Expand Down Expand Up @@ -50,6 +51,7 @@ std = [
"frame-system/std",
"log/std",
"polkadot-runtime-common/std",
"polkadot-runtime-parachains/std",
"scale-info/std",
"sp-io/std",
"sp-runtime/std",
Expand All @@ -65,6 +67,7 @@ runtime-benchmarks = [
"frame-system/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"polkadot-runtime-common/runtime-benchmarks",
"polkadot-runtime-parachains/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
Expand All @@ -75,5 +78,6 @@ try-runtime = [
"frame-system/try-runtime",
"pallet-balances/try-runtime",
"polkadot-runtime-common/try-runtime",
"polkadot-runtime-parachains/try-runtime",
"sp-runtime/try-runtime",
]
69 changes: 63 additions & 6 deletions cumulus/pallets/xcmp-queue/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ use frame_support::{
weights::{constants::WEIGHT_REF_TIME_PER_MILLIS, Weight},
};
use polkadot_runtime_common::xcm_sender::PriceForParachainDelivery;
use polkadot_runtime_parachains::FeeTracker;
use rand_chacha::{
rand_core::{RngCore, SeedableRng},
ChaChaRng,
};
use scale_info::TypeInfo;
use sp_runtime::RuntimeDebug;
use sp_runtime::{FixedU128, RuntimeDebug, Saturating};
use sp_std::{convert::TryFrom, prelude::*};
use xcm::{latest::prelude::*, VersionedXcm, WrapVersion, MAX_XCM_DECODE_DEPTH};
use xcm_executor::traits::ConvertOrigin;
Expand All @@ -65,6 +66,8 @@ pub type OverweightIndex = u64;

const LOG_TARGET: &str = "xcmp_queue";
const DEFAULT_POV_SIZE: u64 = 64 * 1024; // 64 KB
const EXPONENTIAL_FEE_BASE: FixedU128 = FixedU128::from_rational(105, 100); // 1.05
const MESSAGE_SIZE_FEE_BASE: FixedU128 = FixedU128::from_rational(1, 1000); // 0.001

// Maximum amount of messages to process per block. This is a temporary measure until we properly
// account for proof size weights.
Expand All @@ -75,7 +78,7 @@ const MAX_OVERWEIGHT_MESSAGES: u32 = 1000;
#[frame_support::pallet]
pub mod pallet {
use super::*;
use frame_support::pallet_prelude::*;
use frame_support::{pallet_prelude::*, Twox64Concat};
use frame_system::pallet_prelude::*;

#[pallet::pallet]
Expand Down Expand Up @@ -372,6 +375,17 @@ pub mod pallet {
/// Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
#[pallet::storage]
pub(super) type QueueSuspended<T: Config> = StorageValue<_, bool, ValueQuery>;

/// Initialization value for the DeliveryFee factor.
#[pallet::type_value]
franciscoaguirre marked this conversation as resolved.
Show resolved Hide resolved
pub fn InitialFactor() -> FixedU128 {
FixedU128::from_u32(1)
}

/// The factor to multiply the base delivery fee by.
#[pallet::storage]
pub(super) type DeliveryFeeFactor<T: Config> =
StorageMap<_, Twox64Concat, ParaId, FixedU128, ValueQuery, InitialFactor>;
}

#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Encode, Decode, RuntimeDebug, TypeInfo)]
Expand Down Expand Up @@ -655,6 +669,7 @@ impl<T: Config> Pallet<T> {
messages_processed: &mut u8,
max_weight: Weight,
max_individual_weight: Weight,
should_decrement_fee_factor: bool,
) -> (Weight, bool) {
let data = <InboundXcmpMessages<T>>::get(sender, sent_at);
let mut last_remaining_fragments;
Expand Down Expand Up @@ -719,6 +734,10 @@ impl<T: Config> Pallet<T> {
debug_assert!(false, "Invalid incoming XCMP message data");
remaining_fragments = &b""[..];
}

if should_decrement_fee_factor {
Self::decrement_fee_factor(sender);
}
}
},
XcmpMessageFormat::ConcatenatedEncodedBlob => {
Expand Down Expand Up @@ -814,6 +833,7 @@ impl<T: Config> Pallet<T> {

let QueueConfigData {
resume_threshold,
suspend_threshold,
threshold_weight,
weight_restrict_decay,
xcmp_max_individual_weight,
Expand Down Expand Up @@ -872,12 +892,15 @@ impl<T: Config> Pallet<T> {
} else {
// Process up to one block's worth for now.
let weight_remaining = weight_available.saturating_sub(weight_used);
let should_decrement_fee_factor =
(status[index].message_metadata.len() as u32) <= suspend_threshold;
let (weight_processed, is_empty) = Self::process_xcmp_message(
sender,
status[index].message_metadata[0],
&mut messages_processed,
weight_remaining,
xcmp_max_individual_weight,
should_decrement_fee_factor,
);
if is_empty {
status[index].message_metadata.remove(0);
Expand Down Expand Up @@ -947,6 +970,28 @@ impl<T: Config> Pallet<T> {
}
});
}

/// Raise the delivery fee factor by a multiplicative factor and stores the resulting value.
///
/// Returns the new delivery fee factor after the increment.
pub(crate) fn increment_fee_factor(para: ParaId, message_size_factor: FixedU128) -> FixedU128 {
<DeliveryFeeFactor<T>>::mutate(para, |f| {
*f = f.saturating_mul(EXPONENTIAL_FEE_BASE + message_size_factor);
franciscoaguirre marked this conversation as resolved.
Show resolved Hide resolved
*f
})
}

/// Reduce the delivery fee factor by a multiplicative factor and stores the resulting value.
///
/// Does not reduce the fee factor below the initial value, which is currently set as 1.
///
/// Returns the new delivery fee factor after the decrement.
pub(crate) fn decrement_fee_factor(para: ParaId) -> FixedU128 {
<DeliveryFeeFactor<T>>::mutate(para, |f| {
*f = InitialFactor::get().max(*f / EXPONENTIAL_FEE_BASE);
*f
})
}
}

impl<T: Config> XcmpMessageHandler for Pallet<T> {
Expand Down Expand Up @@ -984,9 +1029,8 @@ impl<T: Config> XcmpMessageHandler for Pallet<T> {
// Record the fact we received it.
match status.binary_search_by_key(&sender, |item| item.sender) {
Ok(i) => {
let count = status[i].message_metadata.len();
if count as u32 >= suspend_threshold && status[i].state == InboundState::Ok
{
let count = status[i].message_metadata.len() as u32;
if count >= suspend_threshold && status[i].state == InboundState::Ok {
status[i].state = InboundState::Suspended;
let r = Self::send_signal(sender, ChannelSignal::Suspend);
if r.is_err() {
Expand All @@ -995,14 +1039,21 @@ impl<T: Config> XcmpMessageHandler for Pallet<T> {
);
}
}
if (count as u32) < drop_threshold {
if count < drop_threshold {
status[i].message_metadata.push((sent_at, format));
} else {
debug_assert!(
false,
"XCMP channel queue full. Silently dropping message"
);
}
// Update the delivery fee factor, if applicable.
if count > suspend_threshold {
let message_size_factor =
FixedU128::from_u32(data_ref.len().saturating_div(1024) as u32)
franciscoaguirre marked this conversation as resolved.
Show resolved Hide resolved
.saturating_mul(MESSAGE_SIZE_FEE_BASE);
Self::increment_fee_factor(sender, message_size_factor);
}
},
Err(_) => status.push(InboundChannelDetails {
sender,
Expand Down Expand Up @@ -1178,3 +1229,9 @@ impl<T: Config> SendXcm for Pallet<T> {
}
}
}

impl<T: Config> FeeTracker for Pallet<T> {
fn get_fee_factor(para: ParaId) -> FixedU128 {
<DeliveryFeeFactor<T>>::get(para)
}
}
3 changes: 3 additions & 0 deletions cumulus/pallets/xcmp-queue/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ fn bad_message_is_handled() {
&mut 0,
Weight::from_parts(10_000_000_000, 0),
Weight::from_parts(10_000_000_000, 0),
true,
);
});
}
Expand All @@ -73,6 +74,7 @@ fn handle_blob_message() {
&mut 0,
Weight::from_parts(10_000_000_000, 0),
Weight::from_parts(10_000_000_000, 0),
true,
);
});
}
Expand All @@ -91,6 +93,7 @@ fn handle_invalid_data() {
&mut 0,
Weight::from_parts(10_000_000_000, 0),
Weight::from_parts(10_000_000_000, 0),
true,
);
});
}
Expand Down
2 changes: 2 additions & 0 deletions cumulus/parachains/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ xcm-executor = { package = "staging-xcm-executor", path = "../../../polkadot/xcm
pallet-collator-selection = { path = "../../pallets/collator-selection", default-features = false }
cumulus-primitives-core = { path = "../../primitives/core", default-features = false }
cumulus-primitives-utility = { path = "../../primitives/utility", default-features = false }
parachain-info = { path = "../pallets/parachain-info", default-features = false }

[dev-dependencies]
pallet-authorship = { path = "../../../substrate/frame/authorship", default-features = false}
Expand All @@ -65,6 +66,7 @@ std = [
"pallet-authorship/std",
"pallet-balances/std",
"pallet-collator-selection/std",
"parachain-info/std",
"polkadot-core-primitives/std",
"polkadot-primitives/std",
"polkadot-runtime-constants/std",
Expand Down
Loading
Loading