Open HRMP Channel Between Karura and Shiden

TL;DR

We propose to open HRMP communication between Karura and Shiden. This will require a few actions from the governance bodies of both chains.

Summary

We propose to open a bi-directional channel between Karura and Shiden. The two primary use cases will be:

  1. To transfer Karura’s assets to Shiden so they can be privatized and transferred confidentially and anonymously.
  2. Shiden’s SDN token can be transferred to Karura to open new DEX pairs and integrate with Karura’s suite of DeFi products.

Proposal

There is no on-chain proposal yet; #TBD.

Technical details:

The procedure for opening the channels is as follows:

  1. Shiden initializes a proposal to open Shiden to the Karura HRMP channel via [Shiden root MultiSig].
  2. Wait until the proposal on step 1 gets approved & enacted.
  3. Karura proposes to accept the Shiden to Karura HRMP channel and open a Karura to Shiden HRMP channel via [Karura Governance Batch call].
  4. Wait until the proposal on step 3 gets approved & enacted.
  5. Shiden accepts the Karura to Shiden HRMP channel.
  6. Wait for another session on Kusama for the change to be effective.
  7. Shiden proposes to register Karura’s assets via [Shiden root MultiSig].
  8. Karura proposes to register Shiden’s asset via [Karura Governance].
  9. Wait until both proposals on steps 7 & 8 are approved & enacted.
  10. The XCM-based cross-chain transfer will be possible at this stage.

The extrinsics that need to be sent with xcm messages to they can be executed on the relay chain , are:

  • For step 1: hrmp.hrmpInitOpenChannel(recipient: 2000, proposedMaxCapacity: 1000, proposedMaxMessageSize: 102400) , which hex-encoded is 0x3c00d0070000e803000000900100
  • For step 3: The first call is hrmp.hrmpAcceptOpenChannel(sender: 2007) , second call is hrmp.hrmpInitOpenChannel(recipient: 2007, proposedMaxCapacity: 1000, proposedMaxMessageSize: 102400) , so the final batch call hex-encoded is 0x1800083c01d70700003c00d7070000e803000000900100
  • For step 5: hrmp.hrmpAcceptOpenChannel(sender: 2000) , which hex-encoded is 0x3c01d0070000

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

These extrinsics need to be called with the parachain’s sovereign account as origin. To achieve this, on the Shiden side we will use polkadot-xcm pallet to send xcm message to the relaychain, by executing the following extrinsic from the parachain. Karura should make an open request call and an accept request call with its orml-xcm pallet.

As a prerequisite, the parachain’s sovereign account must contain at least 10 KSM to be locked as collateral (5 for each channel direction), plus some KSM to pay for xcm execution fees.

5 Likes

Still wondering why it took so long for Shiden, finally proposing it after 1 lease period… :thinking:

Looks like Shiden is a dead parachain, Astar’s team seems to have any specific will to give this parachain a chance and a bit disrespectul for SDN holders (if there are some left).

Thanks for your reply!

Soon we will launch WASM contract-pallet on Shiden. We have innovative project ready who will use Shiden for their WASM project and Shiden for XCM dApps. Many things are coming.