establish_channel_with_system (#3721)

Implements https://github.com/polkadot-fellows/RFCs/issues/82
Allow any parachain to have bidirectional channel with any system
parachains

Looking for initial feedbacks before continue finish it

TODOs:
- [x] docs
- [x] benchmarks
- [x] tests

---------

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
Co-authored-by: Adrian Catangiu <adrian@parity.io>
This commit is contained in:
Xiliang Chen
2024-04-12 22:14:20 +12:00
committed by GitHub
parent 13ca339e4a
commit b1db5f3a90
10 changed files with 214 additions and 2 deletions
+2
View File
@@ -554,6 +554,7 @@ impl parachains_dmp::Config for Runtime {}
parameter_types! {
pub const FirstMessageFactorPercent: u64 = 100;
pub const DefaultChannelSizeAndCapacityWithSystem: (u32, u32) = (51200, 500);
}
impl parachains_hrmp::Config for Runtime {
@@ -561,6 +562,7 @@ impl parachains_hrmp::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type ChannelManager = frame_system::EnsureRoot<AccountId>;
type Currency = Balances;
type DefaultChannelSizeAndCapacityWithSystem = DefaultChannelSizeAndCapacityWithSystem;
type WeightInfo = parachains_hrmp::TestWeightInfo;
}