Type Definition polkadot_runtime_parachains::hrmp::pallet::HrmpIngressChannelsIndex
source · pub type HrmpIngressChannelsIndex<T: Config> = StorageMap<_GeneratedPrefixForStorageHrmpIngressChannelsIndex<T>, Twox64Concat, ParaId, Vec<ParaId>, 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
Peach itemIin the index should present inHrmpChannelsas(I, P). - for each egress index entry for
Peach itemEin the index should present inHrmpChannelsas(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 >.