import "../../_dnt.polyfills.js"; import { GenesisConfig } from "./ChainSpec.js" const hrmpChannelMaxCapacity = 8 const hrmpChannelMaxMessageSize = 512 export function addXcmHrmpChannels(genesisConfig: GenesisConfig, paraIds: number[]) { if (!genesisConfig.hrmp) return for (const senderParaId of paraIds) { for (const recipientParaId of paraIds) { if (senderParaId === recipientParaId) continue genesisConfig.hrmp.preopenHrmpChannels.push([ senderParaId, recipientParaId, hrmpChannelMaxCapacity, hrmpChannelMaxMessageSize, ]) } } }