Published in


Introducing the Ethereum<->SORA network Bridge “HASHI” on the Polkaswap Testnet

The SORA testnet has been updated to support token transfers across our HASHI Ethereum bridge, so now test tokens can be moved from the Ethereum Rinkeby testnet to the SORA v2/Polkaswap testnet.

The HASHI bridge can be tested at testbridge.polkaswap.io.

Source code is also opened.

Testnet contract addresses on Rinkeby:

VAL 0x725c6b8cd3621eba4e0ccc40d532e7025b925a65
XOR 0xdc1c024535118f6de6d999c23fc31e33bc2cafc9
PSWAP 0x89801864f50d2ee5e71253f73470244fbf0d6206
Bridge 0x4ff646bff7884f118406aa4beebd9e10de406603

The HASHI bridge to Ethereum is a core part of the SORA v2/Polkaswap architecture.

SORA v2/Polkaswap Testnet Bridge Tutorial


To be able to use the SORA testnet bridge, you need to have an account on the SORA testnet with some test XOR. If you don’t have one, please create an account on the SORA testnet and get some test XOR using the SORA testnet faucet: https://testfaucet.polkaswap.io

On the main net, we plan to provide a workaround for the users to be able to transfer tokens from Ethereum to the SORA network without having XOR on the SORA network side, but for the testnet this is currently required.

Ethereum Rinkeby Testnet→SORA v2 Testnet, HASHI Bridge Transfer Tutorial

The launch of bridge functionality on the testnet bridge supports only XOR and VAL token transfers between Ethereum and SORA networks. This whitelist of tokens will be extended soon after some testing is performed. In the future, users will be able to register almost any token to be able to transfer between networks.

To be able to move tokens across the bridge from the Ethereum Rinkeby testnet to the SORA v2 testnet, first you need to connect your Metamask wallet to the Ethereum Rinkeby testnet. This is simple to do, as shown below.

  1. Open metamask, select your account and press the network selection area. Select Rinkeby Test Network.

2. After being connected to the Rinkeby Test network you need to get some Rinkeby Test Ether to operate on the network. So, please go to the Rinkeby Authenticated faucet site — https://app.mycrypto.com/faucet— and perform the required action.

3. After submitting your social network post to the required field of the faucet click, “Give me ether” button and select the amount from the dropdown list. Wait for the transaction to be processed by Rinkeby network and feel happy with the newly received test Ethereum tokens 🎉

4. Now you can go to the HASHI bridge UI and transfer some test Ether from the Rinkeby test network to the SORA test network. Go to the HASHI bridge URL: testbridge.polkaswap.io

5. On the HASHI bridge page, connect both Metamask and SORA wallets to the application by pressing two “Connect wallet buttons” and follow the flow which Metamask and Polkadot.js extensions propose to you.

Check that the SORA (sic) Mainnet input field is on top of the Ethereum (sic) Mainnet input field in the form. If not, then press arrows between input fields to exchange positions. This setup ensures that you will transfer tokens from the SORA test to Ethereum.

6. Then press the “Choose token button” and select the XOR token to transfer between networks and enter the token amount you want to transfer. Then press the Next button.

7. You will then see the transfer confirmation screen:

8. After you press the Confirm button, the UI will sequentially ask you to sign transactions with Polkadot.js and Metamask browser extensions. Please, consider that blockchain transactions do not happen immediately and it might take some time.

9. After successfully transferring, you will see the final message and be able to check the amount of tokens transferred to your Metamask wallet connected to Rinkeby network (Rinkeby XOR contract address 0xdc1c024535118f6de6d999c23fc31e33bc2cafc9). Please make sure you add the XOR testnet token to the token list in Metamask.

10. You can view XOR transactions on the Rinkeby testnet here: https://rinkeby.etherscan.io/address/0xdc1c024535118f6de6d999c23fc31e33bc2cafc9

11. You can also move XOR from the Rinkeby testnet to the SORA testnet by doing the opposite of the above. Please keep in mind that when finalizing the transaction on the SORA testnet, it takes about 6 minutes because 30 block confirmations are needed to prevent forks on the Rinkeby testnet from disrupting the bridge.

12. You can try to play around with the VAL token too. Contract address is: 0x725c6b8cd3621eba4e0ccc40d532e7025b925a65 (https://rinkeby.etherscan.io/token/0x725c6b8cd3621eba4e0ccc40d532e7025b925a65)

For PSWAP, the contract address is 0x89801864f50d2ee5e71253f73470244fbf0d6206 (https://rinkeby.etherscan.io/address/0x89801864f50d2ee5e71253f73470244fbf0d6206)

Whatever you do, please have fun and definitely make sure you do not send any real XOR, real VAL, or real ETH to the testnet!!!!



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store