Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

XCM v3 Companion #697

Merged
merged 156 commits into from
Jan 17, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
8f48998
Fixes
gavofyork Oct 23, 2021
2ac537e
Undiener
gavofyork Oct 23, 2021
138f06d
Undiener
gavofyork Oct 24, 2021
535b254
Undiener
gavofyork Oct 24, 2021
9f5c19f
Lockfile
gavofyork Oct 26, 2021
9a93d95
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
gavofyork Oct 27, 2021
2c0ac0a
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 31, 2021
fc381c9
Changes for send returning hash
gavofyork Jan 20, 2022
8b81608
Merge branch 'master' into gav-xcm-v3
KiChjang Mar 9, 2022
23c26db
Include message ID as params to execute_xcm
KiChjang Mar 9, 2022
6cec5c8
Fixes
KiChjang Mar 10, 2022
3fb3bb9
Merge branch 'master' into gav-xcm-v3
KiChjang Mar 11, 2022
005d37a
Fixes
KiChjang Mar 11, 2022
a10ac2e
Fixes
KiChjang Mar 11, 2022
9e70ba8
Fixes
KiChjang Mar 11, 2022
484e63d
Fixes
KiChjang Mar 11, 2022
f474297
Fixes
KiChjang Mar 11, 2022
ed87d18
Companion fixes
gavofyork Mar 11, 2022
feec189
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
gavofyork Mar 11, 2022
e5cdda0
Formatting
gavofyork Mar 11, 2022
8e73c00
Fixes
gavofyork Mar 11, 2022
3f9e25a
Formatting
gavofyork Mar 11, 2022
4b72261
Bump
gavofyork Mar 11, 2022
865839a
Bump
gavofyork Mar 11, 2022
6462dd9
Fixes
gavofyork Mar 11, 2022
b9cc2f2
Formatting
gavofyork Mar 11, 2022
fb1d3f2
Make the price of UMP/XCMP message sending configurable
KiChjang Mar 12, 2022
c42ccaf
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Mar 12, 2022
c3ee8a1
cargo fmt
KiChjang Mar 12, 2022
ae1436e
Remove InvertLocation
gavofyork Mar 12, 2022
d42833b
Formatting
gavofyork Mar 12, 2022
780475d
Use ConstantPrice from polkadot-runtime-common
KiChjang Mar 14, 2022
b8cb39d
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Mar 14, 2022
d8861bd
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Mar 21, 2022
3fd47f9
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Mar 21, 2022
4453f08
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Apr 15, 2022
9c6296c
Merge remote-tracking branch 'origin' into gav-xcm-v3
KiChjang Aug 13, 2022
667273a
Fix naming
KiChjang Aug 14, 2022
0e6fd2d
cargo fmt
KiChjang Aug 14, 2022
620c42c
Fixes
KiChjang Aug 14, 2022
059037f
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Aug 24, 2022
4e53da1
Fixes
KiChjang Aug 24, 2022
9ee4759
Fixes
KiChjang Aug 24, 2022
187c47a
Add CallDispatcher
KiChjang Aug 24, 2022
bd3ce91
Fixes
KiChjang Aug 24, 2022
ad1cbec
Fixes
KiChjang Aug 24, 2022
5a34514
Fixes
KiChjang Aug 24, 2022
67c99fd
Fixes
KiChjang Aug 24, 2022
1fc2cb4
Fixes
KiChjang Aug 24, 2022
0f3f8b8
Fixes
KiChjang Aug 24, 2022
57e4420
Fixes
KiChjang Aug 24, 2022
d1230e3
Fixes
KiChjang Aug 24, 2022
3ba852b
Fixes
KiChjang Aug 24, 2022
31accbd
Fixes
KiChjang Aug 25, 2022
004f044
Fixes
KiChjang Aug 25, 2022
bee34ba
Fixes
KiChjang Aug 25, 2022
5c54d38
Fixes
KiChjang Aug 25, 2022
5166698
Fixes
KiChjang Aug 25, 2022
7dc793d
Merge branch 'master' into gav-xcm-v3
KiChjang Sep 22, 2022
1dba83a
Fixes
KiChjang Sep 22, 2022
e02878e
Fixes
KiChjang Sep 22, 2022
25958aa
Fixes
KiChjang Sep 23, 2022
4f88026
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Sep 26, 2022
9e30984
Fixes
KiChjang Sep 27, 2022
afccd79
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Sep 27, 2022
013534a
Fixes
KiChjang Sep 27, 2022
4984ef3
Remove unused import
KiChjang Sep 27, 2022
5efee4c
Remove unused import
KiChjang Sep 27, 2022
483b20c
XCMv3 fixes (#1710)
bkontur Oct 3, 2022
763d88b
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
bkontur Oct 3, 2022
c446b63
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
bkontur Oct 4, 2022
7290787
Avoid consuming XCM message for NotApplicable scenario (#1787)
bkontur Oct 25, 2022
6ece1b6
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
bkontur Nov 7, 2022
ded04c2
Add 10 message processing limit to DMP queue
KiChjang Nov 15, 2022
f9fc7c6
Add 10 message limit to XCMP queue
KiChjang Nov 15, 2022
61438f5
Always increment the message_processed count whenever a message is pr…
KiChjang Nov 16, 2022
d1f21d7
Fix formatting
KiChjang Nov 16, 2022
03c318c
Set an upper limit to the overweight message DMP queue
KiChjang Nov 16, 2022
953aaae
Add upper limit to XCMP overweight message queue
KiChjang Nov 16, 2022
e196377
Fix for missing weight for `fn unpaid_execution()`
bkontur Nov 8, 2022
aea33d1
Fix - usage of `messages_processed`
bkontur Nov 19, 2022
6d534f0
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Nov 22, 2022
196ad14
Fixes
KiChjang Nov 22, 2022
331b21e
Fixes
KiChjang Nov 22, 2022
b613a35
Fixes
KiChjang Nov 22, 2022
930b988
cargo fmt
KiChjang Nov 22, 2022
cd1452b
Fixes
KiChjang Nov 22, 2022
a0865d8
Fixes
KiChjang Nov 22, 2022
d953b60
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Nov 22, 2022
e80d39b
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Nov 22, 2022
3fdf078
Fixes
KiChjang Nov 22, 2022
d6d1a7d
Fixes
KiChjang Nov 22, 2022
2d4603d
Remove unused import
KiChjang Nov 28, 2022
3647b74
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Nov 28, 2022
c6f8c3d
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Nov 29, 2022
db18833
Fixes for gav-xcm-v3 (#1835)
bkontur Nov 29, 2022
61c1cdf
Fixes
KiChjang Nov 29, 2022
d30d218
Fixes
KiChjang Nov 29, 2022
2a8678d
Fixes
KiChjang Nov 29, 2022
b1e8b37
Fixes
KiChjang Nov 29, 2022
fad4c13
Fixes
KiChjang Nov 29, 2022
f1e7e18
Fix tests
KiChjang Nov 29, 2022
4829edb
Fixes
KiChjang Nov 29, 2022
8afc224
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 3, 2022
6057952
Add SafeCallFilter
KiChjang Dec 3, 2022
33404f2
Add missing config items
KiChjang Dec 3, 2022
ff25026
Add TODO
KiChjang Dec 3, 2022
080c7f0
Use () as the PriceForParentDelivery
KiChjang Dec 6, 2022
a9a359b
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 6, 2022
9bad64e
Fixes
KiChjang Dec 6, 2022
9ad8152
Fixes
KiChjang Dec 6, 2022
f366c7f
Fixes
KiChjang Dec 6, 2022
92ace05
Fixes
KiChjang Dec 6, 2022
d2684b2
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 7, 2022
ffc7926
Update transact_origin to transact_origin_and_runtime_call
KiChjang Dec 8, 2022
cb1dd01
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 8, 2022
7c25f95
Add ReachableDest config item to XCM pallet
KiChjang Dec 8, 2022
b144b78
Update SafeCallFilter to allow remark_with_event in runtime benchmarks
KiChjang Dec 9, 2022
2719c7a
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 9, 2022
06c43f5
cargo fmt
KiChjang Dec 9, 2022
7f0e710
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 10, 2022
fef449a
Update substrate
KiChjang Dec 10, 2022
e3a6bc6
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
bkontur Dec 11, 2022
1fcb5d5
Fix worst_case_holding
KiChjang Dec 12, 2022
dd74806
Fix DMQ queue unit tests
KiChjang Dec 12, 2022
97d8c80
Remove unused label
KiChjang Dec 12, 2022
36a767c
cargo fmt
KiChjang Dec 12, 2022
1d6f7ae
Actually process incoming XCMs
KiChjang Dec 12, 2022
90b7e77
Fixes
KiChjang Dec 12, 2022
838656a
Fixes
KiChjang Dec 12, 2022
a50aed6
Fixes
KiChjang Dec 12, 2022
2b2d90e
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
bkontur Dec 13, 2022
ccb74d9
Fixes - return back Weightless
bkontur Dec 13, 2022
221d6be
Added measured benchmarks for `pallet_xcm` (#1968)
bkontur Dec 13, 2022
27f9798
cargo fmt
bkontur Dec 13, 2022
bb821eb
Fix benchmarks
KiChjang Dec 14, 2022
c70a11f
Bko gav xcm v3 (#1993)
bkontur Dec 14, 2022
5cf2a72
Change AllowUnpaidExecutionFrom to be explicit
KiChjang Dec 15, 2022
1d53b51
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 21, 2022
2f39d75
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 22, 2022
5cdc48a
xcm-v3 benchmarks, weights, fixes for bridge-hubs (#2035)
bkontur Dec 23, 2022
7f3727f
Merge branch 'master' into gav-xcm-v3
KiChjang Dec 29, 2022
e2a3354
Add event for showing the hash of an UMP sent message (#1228)
girazoki Jan 3, 2023
b7970c3
Merge branch 'master' into gav-xcm-v3
KiChjang Jan 3, 2023
63a18c2
Fixes
KiChjang Jan 3, 2023
f9a0390
Fixes
KiChjang Jan 3, 2023
893bc5c
Fixes
KiChjang Jan 3, 2023
e303fb2
Fixes
KiChjang Jan 3, 2023
8fe432b
Allow explicit unpaid executions from the relay chains for system par…
KiChjang Jan 7, 2023
e28ef3c
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Jan 7, 2023
87e0ea1
Allow receiving XCMs from any relay chain plurality
KiChjang Jan 10, 2023
146c742
Fixes
KiChjang Jan 10, 2023
d5787aa
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
bkontur Jan 13, 2023
447d1a7
update lockfile for {"polkadot", "substrate"}
Jan 17, 2023
eb99eff
Update polkadot
KiChjang Jan 17, 2023
a6210c1
Add runtime-benchmarks feature
KiChjang Jan 17, 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
466 changes: 233 additions & 233 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pallets/dmp-queue/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ mod tests {

fn msg(weight: Weight) -> Xcm {
Xcm(vec![Transact {
origin_type: OriginKind::Native,
origin_kind: OriginKind::Native,
require_weight_at_most: weight,
call: vec![].into(),
}])
Expand Down
2 changes: 1 addition & 1 deletion pallets/parachain-system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ impl<T: Config> GetChannelInfo for Pallet<T> {
// None then it must be that this is an edge-case where a message is attempted to be
// sent at the first block. It should be safe to assume that there are no channels
// opened at all so early. At least, relying on this assumption seems to be a better
// tradeoff, compared to introducing an error variant that the clients should be
// trade-off, compared to introducing an error variant that the clients should be
// prepared to handle.
let index = match channels.binary_search_by_key(&id, |item| item.0) {
Err(_) => return ChannelStatus::Closed,
Expand Down
3 changes: 3 additions & 0 deletions pallets/xcmp-queue/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ parameter_types! {
pub Ancestry: MultiLocation = X1(Parachain(1u32.into())).into();
pub UnitWeightCost: Weight = 1_000_000;
pub const MaxInstructions: u32 = 100;
pub const MaxAssetsIntoHolding: u32 = 64;
}

/// Means for transacting assets on this chain.
Expand Down Expand Up @@ -145,6 +146,8 @@ impl xcm_executor::Config for XcmConfig {
type AssetTrap = ();
type AssetClaims = ();
type SubscriptionService = ();
type PalletInstancesInfo = AllPallets;
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
}

pub type XcmRouter = (
Expand Down
3 changes: 3 additions & 0 deletions parachain-template/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ parameter_types! {
// One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
pub UnitWeightCost: Weight = 1_000_000_000;
pub const MaxInstructions: u32 = 100;
pub const MaxAssetsIntoHolding: u32 = 64;
}

match_type! {
Expand Down Expand Up @@ -490,6 +491,8 @@ impl Config for XcmConfig {
type AssetTrap = PolkadotXcm;
type AssetClaims = PolkadotXcm;
type SubscriptionService = PolkadotXcm;
type PalletInstancesInfo = ();
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
}

parameter_types! {
Expand Down
4 changes: 2 additions & 2 deletions polkadot-parachains/pallets/ping/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub mod pallet {
match T::XcmSender::send_xcm(
(1, Junction::Parachain(para.into())),
Xcm(vec![Transact {
origin_type: OriginKind::Native,
origin_kind: OriginKind::Native,
require_weight_at_most: 1_000,
call: <T as Config>::Call::from(Call::<T>::ping {
seq,
Expand Down Expand Up @@ -167,7 +167,7 @@ pub mod pallet {
match T::XcmSender::send_xcm(
(1, Junction::Parachain(para.into())),
Xcm(vec![Transact {
origin_type: OriginKind::Native,
origin_kind: OriginKind::Native,
require_weight_at_most: 1_000,
call: <T as Config>::Call::from(Call::<T>::pong {
seq,
Expand Down
3 changes: 3 additions & 0 deletions polkadot-parachains/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ pub type Barrier = (

parameter_types! {
pub StatemintLocation: MultiLocation = MultiLocation::new(1, X1(Parachain(1000)));
pub MaxAssetsIntoHolding: u32 = 64;
}

pub type Reserves = (NativeAsset, AssetsFrom<StatemintLocation>);
Expand All @@ -401,6 +402,8 @@ impl Config for XcmConfig {
type AssetTrap = PolkadotXcm;
type AssetClaims = PolkadotXcm;
type SubscriptionService = PolkadotXcm;
type PalletInstancesInfo = ();
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
}

/// Local origins on this chain are allowed to dispatch XCM sends/executions.
Expand Down
3 changes: 3 additions & 0 deletions polkadot-parachains/shell/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ parameter_types! {
// One XCM operation is 1_000_000 weight - almost certainly a conservative estimate.
pub UnitWeightCost: Weight = 1_000_000;
pub const MaxInstructions: u32 = 100;
pub const MaxAssetsIntoHolding: u32 = 64;
}

pub struct XcmConfig;
Expand All @@ -215,6 +216,8 @@ impl Config for XcmConfig {
type AssetTrap = (); // don't trap for now
type AssetClaims = (); // don't claim for now
type SubscriptionService = (); // don't handle subscriptions for now
type PalletInstancesInfo = ();
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
}

impl cumulus_pallet_xcm::Config for Runtime {
Expand Down
3 changes: 3 additions & 0 deletions polkadot-parachains/statemine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ parameter_types! {
// One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
pub UnitWeightCost: Weight = 1_000_000_000;
pub const MaxInstructions: u32 = 100;
pub const MaxAssetsIntoHolding: u32 = 64;
}

match_type! {
Expand Down Expand Up @@ -582,6 +583,8 @@ impl Config for XcmConfig {
type AssetTrap = PolkadotXcm;
type AssetClaims = PolkadotXcm;
type SubscriptionService = PolkadotXcm;
type PalletInstancesInfo = ();
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
}

parameter_types! {
Expand Down
3 changes: 3 additions & 0 deletions polkadot-parachains/statemint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ parameter_types! {
// One XCM operation is 1_000_000 weight - almost certainly a conservative estimate.
pub UnitWeightCost: Weight = 1_000_000;
pub const MaxInstructions: u32 = 100;
pub const MaxAssetsIntoHolding: u32 = 64;
}

match_type! {
Expand Down Expand Up @@ -558,6 +559,8 @@ impl Config for XcmConfig {
type AssetTrap = PolkadotXcm;
type AssetClaims = PolkadotXcm;
type SubscriptionService = PolkadotXcm;
type PalletInstancesInfo = ();
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
}

parameter_types! {
Expand Down
3 changes: 3 additions & 0 deletions polkadot-parachains/westmint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ pub type XcmOriginToTransactDispatchOrigin = (
parameter_types! {
pub UnitWeightCost: Weight = 1_000;
pub const MaxInstructions: u32 = 100;
pub const MaxAssetsIntoHolding: u32 = 64;
}

match_type! {
Expand Down Expand Up @@ -544,6 +545,8 @@ impl Config for XcmConfig {
type AssetTrap = PolkadotXcm;
type AssetClaims = PolkadotXcm;
type SubscriptionService = PolkadotXcm;
type PalletInstancesInfo = ();
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
}

parameter_types! {
Expand Down