Type Alias polkadot_runtime_parachains::hrmp::pallet::HrmpIngressChannelsIndex
source · pub type HrmpIngressChannelsIndex<T: Config> = StorageMap<_GeneratedPrefixForStorageHrmpIngressChannelsIndex<T>, Twox64Concat, Id, Vec<Id>, ValueQuery>;
Expand description
Ingress/egress indexes allow to find all the senders and receivers given the opposite side. I.e.
(a) ingress index allows to find all the senders for a given recipient. (b) egress index allows to find all the recipients for a given sender.
Invariants:
- for each ingress index entry for
P
each itemI
in the index should present inHrmpChannels
as(I, P)
. - for each egress index entry for
P
each itemE
in the index should present inHrmpChannels
as(P, E)
. - there should be no other dangling channels in
HrmpChannels
. - the vectors are sorted.
Storage type is [StorageMap
] with key type ParaId
and value type Vec < ParaId >
.
Aliased Type§
struct HrmpIngressChannelsIndex<T: Config>(/* private fields */);