Offshift Testnet Guide | Moonbase Alpha

Offshift
Offshift
Jan 4 · 4 min read

Simple Shifts Between Two ERC20 Assets on Substrate via Moonbeam

As we announced today, Offshift is expanding our ecosystem onto Substrate via Moonbeam.

Moonbeam is an Ethereum-compatible smart contract platform on the Polkadot network that allows developers to deploy existing Solidity smart contracts and DApp frontends to Substrate with minimal changes.

To perform a shift on Moonbeam’s TestNet, Moonbase Alpha, we’ll be using MetaMask, so once you have the MetaMask browser extension installed, you’re ready to begin.

1 If you’re already a MetaMask user, we highly recommend creating a new wallet to use on testnet before you proceed, to avoid any potential confusion or unintended transfers.

2 First you’ll need to configure MetaMask to connect to Moonbase Alpha TestNet. Click on your wallet’s identicon in the top right, then click “Settings.”

Navigate to the “Networks” tab, then click “Add Network.”

Configure MetaMask for the following network:

  • Network Name: Moonbase Alpha
  • New RPC URL: https://rpc.testnet.moonbeam.network
  • ChainID: 1287
  • Symbol (Optional): DEV

Click save, then proceed to step three.

3 To interact with Moonbase Alpha you’ll need Moonbeam’s native test asset, DEV. You can request DEV in the Moonbeam Discord in the #alphanet-bot channel by posting your MetaMask address in the format you’ll see there [!faucet send 0x…].

4 We’ll be interacting with Offshift’s two test assets, xftTM and zkA, which are ERC-20 tokens deployed on Substrate via Moonbeam. You’ll need to add these to MetaMask by selecting “Add Token,” circled in the image below.

Then click “Custom Token.”

And copy/paste the xftTM address below into the “Token Contract Address” field.

The “Token Symbol” and “Decimals of Precision” fields will auto-fill once you paste the contract address, then you’ll click “Next,” and “Add Token.”

Repeat and also add zkA with the contract address below —

5 Request some xftTM tokens from our Moonbeam TestNet Token Faucet by clicking the “XFTTM (TESTNET-MOONBEAM) FAUCET” button.

Then “Confirm” in MetaMask.

6 When you’ve finished the steps above, you should have DEV and xftTM balances in your wallet, and you should have zkA listed with a balance of zero, like in the image below.

If you do, you’re ready to shift on Moonbeam!

7 Navigate to our Moonbeam Shifting Dashboard.

8Enter the number of tokens you want to shift, then click “Approve.”

9 MetaMask will pop up and ask if you want to “Allow https://offshift.io to spend your xftTM?”

Click “Confirm.”

10 Once the transaction to approve the xftTM spend has been confirmed (you can check the transaction status by clicking on the “Activity” tab in MetaMask), you’re ready to shift.

Click “Shift” on the dashboard.

11 MetaMask will pop up again and ask you to approve the transaction. Click “Confirm.”

12 You’ve shifted! Your xftTM will be burned and an equivalent value in zkA will be minted.

In the example above we shifted 5 xftTM to zkA.

Our wallet now shows 5 fewer xftTM, and a balance of 5 zkA.

Thanks for taking the time to try shifting on Moonbase Alpha! If you have any questions about Offshift, feel free to come by the Offshift Telegram and ask. If you have questions about Moonbeam or want to follow their progress join the Moonbeam Discord as well!

About Offshift

Offshift is a cryptographically private offshore storage & DeFi protocol on Ethereum and Polkadot. It’s the first dual-sided public/private protocol to be built entirely on a permissionless chain. It gives users the ability to convert a native ERC-20 token (XFT) into private zkAssets that are pegged to a variety of digital and real-world assets.

zkAssets provide stable-value private storage, can be staked to earn zkAsset rewards, used as a peer-to-peer private currency, and used in eCommerce and point-of-sale. Learn more by visiting the links below.

Website | Telegram | Twitter | Instagram | Uniswap.info | Buy XFT

Offshift

Pioneering #Prifi with the world’s first Private Derivatives Platform. #zkAssets are here.

Offshift

Written by

Offshift

Pioneering #PriFi with the world’s first Private Derivatives Platform. 1:1 Collateralization, Zero slippage, Zero liquidations — we promise. #zkAssets are here.

Offshift

Offshift

Pioneering #Prifi with the world’s first Private Derivatives Platform. #zkAssets are here.

Offshift

Written by

Offshift

Pioneering #PriFi with the world’s first Private Derivatives Platform. 1:1 Collateralization, Zero slippage, Zero liquidations — we promise. #zkAssets are here.

Offshift

Offshift

Pioneering #Prifi with the world’s first Private Derivatives Platform. #zkAssets are here.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

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