Skip to content

Commit

Permalink
Merge pull request #181 from galacticcouncil/evm
Browse files Browse the repository at this point in the history
EVM
  • Loading branch information
vgantchev authored Dec 29, 2023
2 parents 0f43211 + bb40f16 commit 711ab51
Show file tree
Hide file tree
Showing 11 changed files with 67 additions and 114 deletions.
33 changes: 33 additions & 0 deletions docs/bridge_from_ethereum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
id: bridge_from_ethereum
title: Bridge Assets from Ethereum
---

import useBaseUrl from '@docusaurus/useBaseUrl';

Bridging assets from the Ethereum ecosystem is easy using the [Wormhole](https://wormhole.com/) bridge which is implemented by the [Moonbeam network](https://moonbeam.network/).

When bridging an asset, Wormhole will lock it on the source network and mint an equivalent amount of Wormhole-wrapped assets on the Moonbeam network. The assets are then transferred to the HydraDX chain where they can be used for trading. In a few clicks and seamlessly.

To bridge assets from Ethereum to HydraDX, follow the steps below.

### Prerequisites

- A Polkadot wallet
- An Ethereum wallet
- ETH for transaction fees

### Step-by-step
1. Navigate to the [Carrier UI](https://www.carrier.so/)
2. As Destination, select `HydraDX`
3. Connect your Ethereum wallet
4. Connect your HydraDX wallet
5. Select the asset you wish to bridge and the amount
6. Click on `Settings` and turn on `Auto Relay`
7. Confirm and sign the transaction

Once finalized, the assets will appear in your HydraDX wallet.

<div style={{textAlign: 'center'}}>
<img alt="metadata" src={useBaseUrl('/howto_bridge/mb3.jpg')} width="600px" />
</div>
108 changes: 0 additions & 108 deletions docs/howto_bridge.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/howto_lp.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ If you would like to execute a trade using a non-native asset (e.g. DOT or DAI),

There are two different mechanisms to transport non-native assets:
* [Cross-chain transfer](https://app.hydradx.io/#/cross-chain) - use this tool to transfer assets from other Polkadot parachains, or from Polkadot itself. Step-by-step documentation [here](howto_xcm);
* [Ethereum bridge](https://www.portalbridge.com/#/transfer) - for bridging assets from the Ethereum ecosystem. Step-by-step documentation [here](/howto_bridge).
* [Ethereum bridge](https://www.portalbridge.com/#/transfer) - for bridging assets from the Ethereum ecosystem. Step-by-step documentation [here](/bridge_from_ethereum).

These solutions can also be used to transport tokens outside of the HydraDX network.

Expand Down
2 changes: 1 addition & 1 deletion docs/howto_trade.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ If you would like to execute a trade using a non-native asset (e.g. DOT or DAI),

There are two different mechanisms to transport non-native assets:
* [Cross-chain transfer](https://app.hydradx.io/cross-chain) - use this tool to transfer assets from other Polkadot parachains, or from Polkadot itself. Step-by-step documentation [here](howto_xcm);
* [Ethereum bridge](https://www.portalbridge.com/#/transfer) - for bridging assets from the Ethereum ecosystem. Step-by-step documentation [here](/howto_bridge).
* [Ethereum bridge](https://www.portalbridge.com/#/transfer) - for bridging assets from the Ethereum ecosystem. Step-by-step documentation [here](/bridge_from_ethereum).

These solutions can also be used to transport tokens outside of the HydraDX network.

Expand Down
27 changes: 27 additions & 0 deletions docs/trade_metamask.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
id: trade_metamask
title: Start Trading with MetaMask
---

import useBaseUrl from '@docusaurus/useBaseUrl';

The HydraDX chain supports the Ethereum Virtual Machine (EVM). You can use your 0x address with MetaMask and/or Ledger to perform any on-chain action such as trading in the Omnipool or placing a trustless over-the-counter order.

The accepted currency for gas fees is **WETH (Moonbeam)**.

The easiest way to onboard assets from the Ethereum network into your MetaMask HydraDX account is to [bridge them to the Moonbeam network](https://www.carrier.so/).

Once you have the assets on the Moonbeam network, you can easily transfer them to the HydraDX chain using the guide below.

## Step-by-step
To onboard assets from Moonbeam to HydraDX:

1. Navigate to the [HydraDX cross-chain UI](https://app.hydradx.io/cross-chain)
2. Connect your MetaMask wallet and accept changing network to HydraDX
3. Select as source chain `Moonbeam`
4. Select the asset you want to transfer and the amount
5. Transfer and sign using your MetaMask wallet

<div style={{textAlign: 'center'}}>
<img alt="metadata" src={useBaseUrl('/trade_metamask/xcm.jpg')} />
</div>
2 changes: 1 addition & 1 deletion i18n/cn/docusaurus-plugin-content-docs/current/howto_lp.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';

有两种不同的机制来转移非原生资产:
* **[跨链转账](https://app.hydradx.io/#/cross-chain)** - 使用此工具,可从其他 Polkadot 平行链或从 Polkadot 自身转移资产。分步指南在 **[这里](howto_xcm)**
* **[以太坊桥](https://www.portalbridge.com/#/transfer)** - 用于连接以太坊生态系统中的资产。分步指南文档在 **[这里](/howto_bridge)**
* **[以太坊桥](https://www.portalbridge.com/#/transfer)** - 用于连接以太坊生态系统中的资产。分步指南文档在 **[这里](/bridge_from_ethereum)**

这些解决方案,也可用于 HydraDX 网络之外的令牌传输。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ HydraDX Omniool 是可释放无与伦比的效率的新一代 AMM,您可以在

有两种不同的机制来转移非原生资产:
* **[跨链传输](https://app.hydradx.io/#/cross-chain)** - 使用此工具,可从其他 Polkadot 平行链或从 Polkadot 自身转移资产。分步指南在 **[这里](howto_xcm)**
* **[以太坊桥](https://www.portalbridge.com/#/transfer)** - 用于连接以太坊生态系统中的资产。分步指南在 **[这里](/howto_bridge)**
* **[以太坊桥](https://www.portalbridge.com/#/transfer)** - 用于连接以太坊生态系统中的资产。分步指南在 **[这里](/bridge_from_ethereum)**

这些解决方案,也可用于 HydraDX 网络之外的令牌传输。

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"remark-math": "3"
},
"engines": {
"node": ">=18 and <=20"
"node": ">=18 and <=22"
},
"browserslist": {
"production": [
Expand Down
3 changes: 2 additions & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ module.exports = {
"spending_fw",
],
"How-to": [
"trade_metamask",
"bridge_from_ethereum",
"howto_xcm",
"howto_bridge",
"howto_trade",
"howto_dca",
"howto_lp",
Expand Down
Binary file removed static/howto_bridge/aca1.jpg
Binary file not shown.
Binary file added static/trade_metamask/xcm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 711ab51

Please sign in to comment.