-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add HRMP notification handlers to the xcm-executor #3696
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 2 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d56a14e
add_xcm_hrmp
JuaniRios 3830c7a
separate traits and add blanket tuple impl
JuaniRios f9f7d51
Update polkadot/xcm/xcm-executor/src/traits/hrmp.rs
bkontur 350bd9e
".git/.scripts/commands/fmt/fmt.sh"
094f6f4
add doc strings
JuaniRios fcba714
Merge remote-tracking branch 'origin/juanrios/hrmp_xcm_impl' into jua…
JuaniRios c926daa
fix compilation
JuaniRios 258d0db
wrap in transactional processor
JuaniRios 9712735
Merge branch 'paritytech:master' into juanrios/hrmp_xcm_impl
JuaniRios 27ffc19
fmt
JuaniRios 9c6b778
Update polkadot/xcm/xcm-executor/src/traits/hrmp.rs
bkontur ffc9898
Update polkadot/xcm/xcm-executor/src/traits/hrmp.rs
bkontur ea679fd
Update polkadot/xcm/xcm-executor/src/traits/hrmp.rs
bkontur 9861959
Update polkadot/xcm/xcm-executor/src/config.rs
bkontur b182c8b
prdoc 3696
JuaniRios 46ac231
Merge branch 'master' into juanrios/hrmp_xcm_impl
JuaniRios c596857
rename xcm-executor on prdoc to staging-xcm-executor
JuaniRios 608822b
Merge remote-tracking branch 'origin/juanrios/hrmp_xcm_impl' into jua…
JuaniRios 76835c3
Merge branch 'master' into juanrios/hrmp_xcm_impl
bkontur 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
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
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
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,35 @@ | ||
| use xcm::v3::prelude::XcmResult; | ||
bkontur marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| pub trait HandleHrmpNewChannelOpenRequest { | ||
| fn handle(sender: u32, max_message_size: u32, max_capacity: u32) -> XcmResult; | ||
| } | ||
| pub trait HandleHrmpChannelAccepted { | ||
| fn handle(recipient: u32) -> XcmResult; | ||
| } | ||
| pub trait HandleHrmpChannelClosing { | ||
| fn handle(initiator: u32, sender: u32, recipient: u32) -> XcmResult; | ||
| } | ||
bkontur marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| #[impl_trait_for_tuples::impl_for_tuples(30)] | ||
| impl HandleHrmpNewChannelOpenRequest for Tuple { | ||
| fn handle(sender: u32, max_message_size: u32, max_capacity: u32) -> XcmResult { | ||
| for_tuples!( #( Tuple::handle(sender, max_message_size, max_capacity)?; )* ); | ||
| Ok(()) | ||
| } | ||
| } | ||
|
|
||
| #[impl_trait_for_tuples::impl_for_tuples(30)] | ||
| impl HandleHrmpChannelAccepted for Tuple { | ||
| fn handle(recipient: u32) -> XcmResult { | ||
| for_tuples!( #( Tuple::handle(recipient)?; )* ); | ||
| Ok(()) | ||
| } | ||
| } | ||
|
|
||
| #[impl_trait_for_tuples::impl_for_tuples(30)] | ||
| impl HandleHrmpChannelClosing for Tuple { | ||
| fn handle(initiator: u32, sender: u32, recipient: u32) -> XcmResult { | ||
| for_tuples!( #( Tuple::handle(initiator, sender, recipient)?; )* ); | ||
| Ok(()) | ||
| } | ||
| } | ||
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
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
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.