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

XCM v3: Bridge infrastructure #4681

Merged
merged 65 commits into from
Feb 14, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
665bd6c
XCM bridge infrastructure
gavofyork Oct 30, 2021
535980e
Missing bit of cherry-pick
gavofyork Jan 10, 2022
d4376f1
Revamped XCM proc macros; new NetworkIds
gavofyork Oct 31, 2021
f093c55
Fixes
gavofyork Oct 31, 2021
bb939e8
Formatting
gavofyork Oct 31, 2021
ec2b72d
ExportMessage instruction and config type
gavofyork Oct 31, 2021
6878ed3
Add MessageExporter definitions
gavofyork Oct 31, 2021
270b662
Formatting
gavofyork Oct 31, 2021
bba850d
Missing files
gavofyork Oct 31, 2021
73e4758
Fixes
gavofyork Oct 31, 2021
4bef607
Initial bridging config API
gavofyork Oct 31, 2021
c0edea0
Allow for two-stage XCM execution
gavofyork Nov 2, 2021
128363e
Update xcm/src/v3/mod.rs
gavofyork Nov 2, 2021
4eb42d6
XCM crate building again
gavofyork Jan 10, 2022
08c41fa
Initial bridging primitive
gavofyork Jan 17, 2022
562b08b
Docs
gavofyork Jan 17, 2022
83adc05
Merge branch 'gav-xcm-v3' into gav-xcm-v3-bridging
gavofyork Jan 17, 2022
5ac926a
Docs
gavofyork Jan 18, 2022
b2dc3f1
More work
gavofyork Jan 20, 2022
4d8c9a8
More work
gavofyork Jan 20, 2022
a837427
Merge branch 'master' into gav-xcm-v3
gavofyork Jan 22, 2022
cacaf4c
Merge branch 'gav-xcm-v3' into gav-xcm-v3-bridging
gavofyork Jan 22, 2022
4a8fc7f
Merge branch 'gav-xcm-v3' into gav-xcm-v3-bridging
gavofyork Jan 22, 2022
449fe35
Merge branch 'gav-xcm-v3-bridging' of github.com:paritytech/polkadot …
gavofyork Jan 22, 2022
1723ae9
Make build
gavofyork Jan 22, 2022
30fbd39
WithComputedOrigin and SovereignPaidRemoteExporter
gavofyork Jan 23, 2022
f75c343
Remove TODOs
gavofyork Jan 28, 2022
fc9fa04
Merge remote-tracking branch 'origin/gav-xcm-v3' into gav-xcm-v3-brid…
gavofyork Jan 28, 2022
197ec2e
Merge branch 'gav-xcm-v3' into gav-xcm-v3-bridging
gavofyork Jan 31, 2022
8af0a3a
Slim bridge API and tests.
gavofyork Jan 31, 2022
caf33cb
Fixes
gavofyork Jan 31, 2022
347b32e
More work
gavofyork Feb 2, 2022
8ef2b84
First bridge test passing
gavofyork Feb 2, 2022
b459cfc
Formatting
gavofyork Feb 2, 2022
b2d3fdf
Another test
gavofyork Feb 2, 2022
ca031c2
Next round of bridging tests
gavofyork Feb 2, 2022
870b109
Repot tests
gavofyork Feb 2, 2022
c68bbc8
Cleanups
gavofyork Feb 2, 2022
1724115
Paid bridging
gavofyork Feb 2, 2022
cc9c35f
Formatting
gavofyork Feb 2, 2022
ac24184
Tests
gavofyork Feb 4, 2022
b90d041
Spelling
gavofyork Feb 4, 2022
7310377
Formatting
gavofyork Feb 4, 2022
d5b6f27
Fees and refactoring
gavofyork Feb 4, 2022
6537401
Fixes
gavofyork Feb 4, 2022
f2f844e
Formatting
gavofyork Feb 4, 2022
cfed333
Refactor SendXcm to become two-phase
gavofyork Feb 5, 2022
450f529
Fix tests
gavofyork Feb 5, 2022
7525c01
Refactoring of SendXcm and ExportXcm complete
gavofyork Feb 7, 2022
e715ef2
Formatting
gavofyork Feb 7, 2022
59768bd
Rename CannotReachDestination -> NotApplicable
gavofyork Feb 7, 2022
18f1100
Remove XCM v0
gavofyork Feb 7, 2022
087ac70
Minor grumbles
gavofyork Feb 7, 2022
9c9c38f
Formatting
gavofyork Feb 8, 2022
ca0d360
Formatting
gavofyork Feb 8, 2022
c4bc44a
Merge branch 'gav-xcm-v3-bridging' of github.com:paritytech/polkadot …
gavofyork Feb 8, 2022
3570fb4
Fixes
gavofyork Feb 8, 2022
45a697c
Fixes
gavofyork Feb 8, 2022
e28c84c
Cleanup XCM config
gavofyork Feb 9, 2022
5247473
Fee handling
gavofyork Feb 9, 2022
d68d61d
Merge remote-tracking branch 'origin/gav-xcm-v3' into gav-xcm-v3-brid…
gavofyork Feb 14, 2022
6ef1f0e
Fixes
gavofyork Feb 14, 2022
faa7463
Formatting
gavofyork Feb 14, 2022
ad5c941
Fixes
gavofyork Feb 14, 2022
5ed0737
Bump
gavofyork Feb 14, 2022
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
Prev Previous commit
Next Next commit
Add MessageExporter definitions
  • Loading branch information
gavofyork committed Jan 10, 2022
commit 6878ed377ff55326255da64fcd8b9f2d1da4ab3d
1 change: 1 addition & 0 deletions runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1435,6 +1435,7 @@ impl xcm_executor::Config for XcmConfig {
type SubscriptionService = XcmPallet;
type PalletInstancesInfo = AllPalletsWithSystem;
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
type MessageExporter = ();
type UniversalAliases = Nothing;
}

Expand Down
1 change: 1 addition & 0 deletions runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ impl xcm_executor::Config for XcmConfig {
type SubscriptionService = XcmPallet;
type PalletInstancesInfo = AllPalletsWithSystem;
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
type MessageExporter = ();
type UniversalAliases = Nothing;
}

Expand Down
1 change: 1 addition & 0 deletions runtime/test-runtime/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,6 @@ impl xcm_executor::Config for XcmConfig {
type SubscriptionService = super::Xcm;
type PalletInstancesInfo = ();
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
type MessageExporter = ();
type UniversalAliases = Nothing;
}
1 change: 1 addition & 0 deletions runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,7 @@ impl xcm_executor::Config for XcmConfig {
type SubscriptionService = XcmPallet;
type PalletInstancesInfo = AllPalletsWithSystem;
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
type MessageExporter = ();
type UniversalAliases = Nothing;
}

Expand Down
1 change: 1 addition & 0 deletions xcm/pallet-xcm-benchmarks/src/fungible/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ impl xcm_executor::Config for XcmConfig {
type SubscriptionService = ();
type PalletInstancesInfo = ();
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
type MessageExporter = ();
type UniversalAliases = Nothing;
}

Expand Down
1 change: 1 addition & 0 deletions xcm/pallet-xcm/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ impl xcm_executor::Config for XcmConfig {
type SubscriptionService = XcmPallet;
type PalletInstancesInfo = AllPalletsWithSystem;
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
type MessageExporter = ();
type UniversalAliases = Nothing;
}

Expand Down
1 change: 1 addition & 0 deletions xcm/xcm-builder/tests/mock/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ impl xcm_executor::Config for XcmConfig {
type SubscriptionService = XcmPallet;
type PalletInstancesInfo = AllPalletsWithSystem;
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
type MessageExporter = ();
type UniversalAliases = Nothing;
}

Expand Down
6 changes: 3 additions & 3 deletions xcm/xcm-executor/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ pub trait Config {
/// and any benchmarks should take that into account.
type MaxAssetsIntoHolding: Get<u32>;

/// The method of exporting a message.
type MessageExporter: ExportXcm;

/// The origin locations and specific universal junctions to which they are allowed to elevate
/// themselves.
type UniversalAliases: Contains<(MultiLocation, Junction)>;

/// The method of exporting a message.
type MessageExporter: ExportXcm;
}
1 change: 1 addition & 0 deletions xcm/xcm-simulator/example/src/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ impl Config for XcmConfig {
type SubscriptionService = ();
type PalletInstancesInfo = ();
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
type MessageExporter = ();
type UniversalAliases = Nothing;
}

Expand Down
1 change: 1 addition & 0 deletions xcm/xcm-simulator/example/src/relay_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ impl Config for XcmConfig {
type SubscriptionService = ();
type PalletInstancesInfo = ();
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
type MessageExporter = ();
type UniversalAliases = Nothing;
}

Expand Down
1 change: 1 addition & 0 deletions xcm/xcm-simulator/fuzzer/src/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ impl Config for XcmConfig {
type SubscriptionService = ();
type PalletInstancesInfo = ();
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
type MessageExporter = ();
type UniversalAliases = Nothing;
}

Expand Down
1 change: 1 addition & 0 deletions xcm/xcm-simulator/fuzzer/src/relay_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ impl Config for XcmConfig {
type SubscriptionService = ();
type PalletInstancesInfo = ();
type MaxAssetsIntoHolding = MaxAssetsIntoHolding;
type MessageExporter = ();
type UniversalAliases = Nothing;
}

Expand Down