HOPR and xHOPR — cross-chain hopping

Dr. Sebastian Bürgel
HOPR
Published in
8 min readFeb 27, 2021

We’re reaching the final stages of the community-governed token distribution on Balancer LBP. Huge thanks to everyone who participated in our launch day event, and congratulations to the winners of our various games and contests. The winners have all been contacted, and we’ll be talking more about this very soon.

Now that we’re approaching Phase 3 of the public distribution, it’s time for the Genesis DAO members to finally get hold of some HOPR! If you participated in the Genesis DAO presale, here’s how to claim your HOPR tokens. A separate post about claiming bounty tokens will be published later. Presale tokens can be claimed from February 27th at 14:00 CET.

Claiming your presale tokens is simple, but it does require a call to the presale smart contract from your wallet. Head to our presale widget at https://hoprlaunch.eth.limo/, paste the address of your HOPR Genesis DAO account that participated in the presale into the box and the widget will scan the contract to find out how many tokens you reserved in the presale.

If you have tokens available to claim, the “Claim Distribution in Blockscout” button will be active. Click it and you’ll be taken to Blockscout.

Once there, you’ll need to send a call to the presale smart contract. Next to the option “1. claimDistribution” you’ll see a box marked “Write”. Click this. You’ll receive a prompt from your wallet asking to confirm the transaction. This will cost some gas, so make sure you have xDAI in your wallet. If you’re short, you can visit the faucet at https://xdai-faucet.top/

Once you’ve confirmed the contract call, your tokens will be sent to your wallet. The amounts on the widget will update to reflect this.

That’s all there is to it!

So why does this blog have almost 1000 words left in it?

Well, as always with crypto, things aren’t quite as simple as we’d like…

The first and most important thing to note is that the presale tokens will be claimed on Gnosis Chain and will be called xHOPR. There are several reasons for this. First is simply gas, which is much cheaper on Gnosis Chain than Ethereum mainnet.

The second is that, for the foreseeable future, HOPR itself will be running on Gnosis Chain using a wrapped version of the xDAI token called wxHOPR. It would be a huge waste of gas to transfer all the presale HOPR onto Ethereum only to ask you to transfer it all back onto Gnosis Chain.

IMPORTANT: Do NOT try and run a HOPR node with your new tokens yet. We can’t guarantee you won’t lose funds. We’ll put out an announcement about how and when to run a HOPR node with real tokens.

We’ll be providing a lot more information about HOPR, xHOPR and wxHOPR next week, but for now it’s important to know that you’ll be receiving xHOPR from the claim widget. If you plan to use your tokens in a node, that’s all there is to it. Just leave them as xHOPR and wait for more information.

However, if you want your HOPR on Ethereum mainnet — or if you got HOPR from the LBP and want them as xHOPR — you’ll need to convert them. The rest of this post will explain how.

Converting xHOPR to HOPR

Like Dai and xDAI, HOPR and xHOPR exist in a 1:1 relationship on Gnosis Chain and Ethereum mainnet, respectively. To convert between them, you need to use a tool called a bridge. Many of you will have done something similar (albeit in the other direction) when getting xDAI for the presale.

To convert xHOPR to HOPR you’ll need to use the Omnibridge, found at https://omni.xdaichain.com/

Make sure your wallet is connected to Gnosis Chain. If you haven’t set that up yet, you can find the details here. You’ll need to select “Add Custom RPC” in your wallet and fill in the information.

Click the “Connect” button to connect your wallet, and accept the prompt that appears.

You’ll see a screen like this, with your wallet address and xDAI at the top right.

Now you need to select your tokens to swap. At the time of writing, xHOPR isn’t currently available as a default option, so you’ll need to add it as a Custom Token. We’re working on getting xHOPR added. Don’t get confused by the token listed as HOPR in the dropdown menu. That’s not the right one, so your balance will show as 0.

Select the dropdown menu on the “From” side of the bridge and choose “Add Custom Token” at the top right. You can also paste the contract address directly into the search bar.

In the window that appears, paste the contract address of the xHOPR token, which is: 0xD057604A14982FE8D88c5fC25Aac3267eA142a08

It should automatically recognise this and fill in the remaining fields.

Click “Add Token” and you’ll return to the bridge, which should now look like this (except your balance will be different):

It will say “HOPR Token on GC” on the “From” side and “HOPR Token” will be automatically selected on the “To” side. Enter the amount you want to transfer across the Omnibridge. The amount you will receive will be shown on the other side. This will be very slightly different because the bridge charges a small fee.

Press “Request” to begin the transfer.

You will receive a warning confirming the bridge fee for the transfer and explaining about the gas fees involved. There will be two transactions, one on the Gnosis side and one on the ETH side. Each will cost gas, so make sure you have both currencies in your wallet, in addition to your xHOPR.

Once you’re ready to start the transfer, press “Continue”

You need to wait for 12 block confirmations before the transfer begins. This will happen on the xDAI side so should only take around a minute.

If you click the blue link, you’ll see what’s going on behind the scenes.

Don’t close the Omnibridge tab! Your transaction won’t be lost, but it will require a bit more effort to process manually. If this happens, please contact the ambassadors in our Telegram channel for help.

Once the transaction reaches 12 block confirmations, an automated multisig will process the transaction on the ETH side. Four out of seven validators must provide signatures to approve the transfer. This can take a little time.

Your tokens will need to be claimed on the other side of the bridge. To do this, your wallet will need to be disconnected from Gnosis Chain and connected to the Ethereum mainnet.

In the Omnibridge, you’ll see a popup asking you to do just that:

Change back to ETH Mainnet in your wallet, and the Omnibridge will automatically detect it.

The popup will change to show a “CLAIM” button:

Press “Claim” and a popup will appear from your wallet asking you to confirm the transaction on the ETH Mainnet. This will be a lot more expensive than the transaction on the Gnosis side, and may take some time due to congestion. But once it confirms, you will have HOPR in your wallet on ETH Mainnet!

You will need to add the HOPR token to your wallet to see it. The contract address for HOPR on ETH Mainnet is 0xf5581dfefd8fb0e4aec526be659cfab1f8c781da.

Converting from HOPR to xHOPR

Converting from HOPR to xHOPR works in exactly the same way, using the Omnibridge. There are a few small differences. First, there’s no bridge fee. (There are still gas fees, sadly.) Second, you’ll obviously need to switch which address goes in which box when adding the assets. Third, there won’t be a “Claim” process like in the Gnosis to ETH direction — you’ll just receive your tokens.

Finally, as with most ERC20 dapps, there will be an extra transaction before you can begin: before you can use the Omnibridge on the ETH side, you’ll need to sign an `approve` transaction with your wallet. Press the “Unlock” button and confirm the prompt that appears from your wallet.

You will have to pay some gas to do this.

Once again, presale tokens will be claimable from https://hoprlaunch.eth.link/ after 14:00 CET on Saturday, February 27th. The Balancer LBP will remain open until liquidity gets moved to Uniswap on Sunday. The HOPR and DAI from the LBP will be moved into a Uniswap liquidity pool as specified in the Genesis DAO proposal. This will mark Phase 3 of the launch. The transfer to the Uniswap pool should take around 24hrs and the Balancer pool will remain open until shortly before moving liquidity to Uniswap.

A huge thank you to everyone who participated in the presale. I hope you’re excited to get your HOPR tokens, and thank you again for all the hard work you put into the Genesis DAO and our testnets.

As always, if you have any questions, please head to Telegram where our ambassadors will help you out.

Sebastian Bürgel,
HOPR Founder

Learn more on hoprnet.org/token

Join the community at t.me/hoprnet

Follow us on twitter.com/hoprnet

--

--