Proposal for open bi-directionnal HRMP channel with Khala network

Hi Mantalorians!

We’d like to propose a referendum 20 to open a bi-directional HRMP channel with Khala network. This is the next step in the process of enabling cross chain messaging.

This is an important update as it will allow:

  1. Through SubBridge (with XCM bridge integrated) transfer Khala’s assets to Calamari so they can be eventually privatized and transferred confidentially and anonymously.
  2. Calamari’s tokens can be transferred to Khala network or even transfer to Ethereum & Moonrive within a single CT(Crosschain Transfer) seamlessly.
  3. Other well known tokens like USDC/DAI can be bridged to Calamari through SubBridge.

Since the channel is bidirectional we need to accept Khala’s request to open the Khala to Calamari channel, as well as do our ownrequest to open the Calamari to Khala from our side. To achieve this we will use two extrinsics that need to be executed on the relay-chain with Calamari’s sovereign account as origin. They will be batched on the Calamari side and sent via polkadot-xcm send message. The two extrinsics are:

  • hrmp.hrmpAcceptOpenChannel(sender: 2004) ,
  • hrmp.hrmpInitOpenChannel(recipient: 2004, proposedMaxCapacity: 1000, proposedMaxMessageSize: 102400) ,
  • so the final batch call hex-encoded is 0x1800083c01d40700003c00d4070000e803000000900100

The proposedMaxCapacity and proposedMaxMessageSize are set to the values of Kusama’s configuration.activeConfig.hrmpChannelMaxCapacity and configuration.activeConfig.hrmpChannelMaxMessageSize values, respectively.

Thank you for your time and voting!