-
Notifications
You must be signed in to change notification settings - Fork 1.2k
establish_channel_with_system #3721
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
466d0ab
establish_channel_with_system
xlc eb7c039
Merge branch 'master' into hrml_with_system
xlc 544e787
fmt
xlc 1f80342
make default channel para to be configuable
xlc 30560d2
fmt
xlc 1e3b210
fix
xlc cf94655
Update polkadot/runtime/parachains/src/hrmp.rs
xlc b6bc275
Update polkadot/runtime/parachains/src/hrmp.rs
xlc 79da662
rename and event
xlc 1a1df49
fmt
xlc 4cd357c
Merge branch 'master' into hrml_with_system
xlc 7ed9f54
semi
xlc e163fa8
fix
xlc 807d088
add benchmarks and docs
xlc af7edef
Merge branch 'master' into hrml_with_system
xlc af1f337
fix
xlc debdef6
fix
xlc 2439a77
tests
xlc f68454a
prdoc
xlc 6807729
fix westend bench
xlc d7ebd3b
Merge branch 'master' into hrml_with_system
xlc 48bbe08
Update prdoc/pr_3721.prdoc
xlc 2ccb926
test
xlc 212179c
fmt
xlc 35db15a
Update prdoc/pr_3721.prdoc
xlc 01752a9
Merge branch 'master' into hrml_with_system
xlc 4e4844c
Merge branch 'master' into hrml_with_system
xlc 59f8cc2
remove debug print
xlc c92d726
Apply suggestions from code review
joepetrowski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -331,4 +331,14 @@ impl<T: frame_system::Config> runtime_parachains::hrmp::WeightInfo for WeightInf | |
| .saturating_add(T::DbWeight::get().reads(1)) | ||
| .saturating_add(T::DbWeight::get().writes(1)) | ||
| } | ||
| fn establish_channel_with_system() -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `417` | ||
| // Estimated: `6357` | ||
| // Minimum execution time: 629_674_000 picoseconds. | ||
| Weight::from_parts(640_174_000, 0) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. copied from establish_system_channel |
||
| .saturating_add(Weight::from_parts(0, 6357)) | ||
| .saturating_add(T::DbWeight::get().reads(12)) | ||
| .saturating_add(T::DbWeight::get().writes(8)) | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
| # See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
|
||
| title: New call `hrmp.establish_channel_with_system` to allow parachains to establish a channel with a system parachain | ||
|
|
||
| doc: | ||
| - audience: Runtime Dev | ||
| description: | | ||
| This PR adds a new call `hrmp.establish_channel_with_system` that allows a parachain origin to open a bidirectional channel with a system parachain. | ||
|
|
||
| crates: | ||
| - name: polkadot-runtime-parachains | ||
| bump: minor |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.