Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
4e727205
Commit
4e727205
authored
4 years ago
by
Sergey Pepyakin
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Promote `HrmpChannelId` and supply more docs (#1595)
parent
dffefac5
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
polkadot/roadmap/implementers-guide/src/runtime/router.md
+0
-6
0 additions, 6 deletions
polkadot/roadmap/implementers-guide/src/runtime/router.md
polkadot/roadmap/implementers-guide/src/types/messages.md
+16
-0
16 additions, 0 deletions
polkadot/roadmap/implementers-guide/src/types/messages.md
with
16 additions
and
6 deletions
polkadot/roadmap/implementers-guide/src/runtime/router.md
+
0
−
6
View file @
4e727205
...
...
@@ -32,12 +32,6 @@ DownwardMessageQueues: map ParaId => Vec<DownwardMessage>;
HRMP related structs:
```
rust,ignore
/// A type used to designate a HRMP channel between a (sender, recipient).
struct
HrmpChannelId
{
sender
:
ParaId
,
recipient
:
ParaId
,
}
/// A description of a request to open an HRMP channel.
struct
HrmpOpenChannelRequest
{
/// The sender and the initiator of this request.
...
...
This diff is collapsed.
Click to expand it.
polkadot/roadmap/implementers-guide/src/types/messages.md
+
16
−
0
View file @
4e727205
...
...
@@ -5,6 +5,22 @@ Types of messages that are passed between parachains and the relay chain: UMP, D
There is also HRMP (Horizontally Relay-routed Message Passing) which provides the same functionality
although with smaller scalability potential.
## HrmpChannelId
A type that uniquely identifies a HRMP channel. A HRMP channel is established between two paras.
In text, we use the notation
`(A, B)`
to specify a channel between A and B. The channels are
unidirectional, meaning that
`(A, B)`
and
`(B, A)`
refer to different channels. The convention is
that we use the first item tuple for the sender and the second for the recipient. Only one channel
is allowed between two participants in one direction, i.e. there cannot be 2 different channels
identified by
`(A, B)`
.
```
rust,ignore
struct
HrmpChannelId
{
sender
:
ParaId
,
recipient
:
ParaId
,
}
```
## Upward Message
A type of messages dispatched from a parachain to the relay chain.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment