Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
25bf025b
Unverified
Commit
25bf025b
authored
Aug 17, 2020
by
Sergey Pepyakin
Committed by
GitHub
Aug 17, 2020
Browse files
Promote `HrmpChannelId` and supply more docs (#1595)
parent
a91b117c
Pipeline
#104110
failed with stages
in 7 minutes and 15 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
roadmap/implementers-guide/src/runtime/router.md
View file @
25bf025b
...
...
@@ -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.
...
...
roadmap/implementers-guide/src/types/messages.md
View file @
25bf025b
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment