Testing SORA’s HASHI bridge Substrate XCM transfers between Rococo and SORA testnet

Help us test the latest upgrade to the HASHI Substrate bridge!

SORA
SORA
3 min readJun 23, 2023

--

Ahead of the full release of the HASHI bridge Substrate XCM upgrade, it is already possible to test sending assets to and from Rococo (Polkadot’s Parachain Testnet) and the SORA testnet (a standalone Substrate test network), utilizing the SORA Rococo parachain and Substrate XCM.

Here is a quick tutorial on how you can help test this feature:

You will need a Substrate account on Dotapps.io that allows use on any chain. You can get Rococo testnet tokens from the faucet provided by Parity. To claim these tokens, input your Substrate address and then verify you’re a human and click the “Get some $ROC” button. Make sure you’ve updated your extension in Settings.

Rococo faucet provided by Parity

With $ROC tokens on your account, navigate to dotapps.io and switch the network to the Rococo relay chain.

Next, navigate to Developer > Extrinsics. Here you will need to select the account that has $ROC tokens from the faucet.

  • The extrinsic to submit is xcmPallet then reserveTransferAssets(dest,beneficiary,assets,feeAssetitem)
  • The dest: is V3
  • The interior:XCMV3Junctions is X1
  • The Parachain is 2011
  • Then in the next section, the Beneficiary:XCMVersionedMultiLocation is V3
  • Under V3:XCMMultilocation the interior:XCMV3Junctions is X1
  • The X1:XCMV3Junction is Accountid32 and in the id:[u8:32] section, input your SORA test network account address (to transfer tokens to)

So far, you now have the sender and the receiver for the transfer, now let’s input the asset.

  • In assets: XcmVersionedMultiAssets select V3, then click Add Item
  • In the field Fungible:Compact<128> add the number of tokens to be transferred. You have to add twelve zeroes after the amount. In this case, we are sending 50, so the input is 5000000000000

With all the fields filled in, this is how it should look like:

  • Finally, submit the transaction and sign on the pop-up using your password

After the transaction is successful (when the ✅ appears on the upper-right corner), you will notice the $ROC balance is reduced. Let’s double-check in Polkaswap (testnet):

  • Open test.polkaswap.io and navigate to the Bridge section. Choose the Rococo network and connect the account that you just used to test
  • Select the ROC token from the list. If the transfer was successful, it will look like this:
test.polkaswap.io

If you have any questions while testing, please contact an admin or ambassador.

We are working to get the UI for the HASHI Substrate bridge, utilizing XCM, on Polkaswap, ready for testing as well. Please stay fearless for an update soon!

Update: The Rococo testnet token has been whitelisted on test.polkaswap.io, so you can simply add the asset to your account there to verify the transaction was successful.

About SORA

SORA is a movement that advances humanity by empowering people with decentralized technology, DeFi, and with a new economic system geared towards enabling human progress. The SORA network implements a new way of parachain architecture on Polkadot and Kusama network, with the capability to bridge external blockchains (like Ethereum) to the Polkadot ecosystem.

Connect With Us:

SORA 𒀭 community:

Twitter | Telegram | Reddit | YouTube | Announcements Channel

Polkaswap 𒊹𒂵𒆜 community:

Twitter | Telegram | Reddit | YouTube | Announcements Channel

Fearless Wallet 𒉡𒉎𒋼 community:

Twitter | Telegram | Element | YouTube | Android App | iOS App

--

--

SORA
SORA
Editor for

SORA is working to become a decentralized world economic system, under the democratic supervision of the SORA Parliament. Many Worlds. One Economy. SORA.