diff --git a/docs/bridge_from_ethereum.md b/docs/bridge_from_ethereum.md new file mode 100644 index 00000000..635882db --- /dev/null +++ b/docs/bridge_from_ethereum.md @@ -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. + +
+ metadata +
diff --git a/docs/howto_bridge.md b/docs/howto_bridge.md deleted file mode 100644 index 3f62d157..00000000 --- a/docs/howto_bridge.md +++ /dev/null @@ -1,108 +0,0 @@ ---- -id: howto_bridge -title: Bridge Assets ---- - -import useBaseUrl from '@docusaurus/useBaseUrl'; - -On this page you will find a step-by-step guide on bridging tokens from the Ethereum ecosystem. Currently there are two methods to bridging to and from Ethereum (via Wormhole): - -- [Moonbeam routed liquidity](#moonbeam) -- [Acala](#acala) - -Wormhole’s Portal Bridge allows you to bridge tokens across different chains. Instead of swapping or converting assets directly, Wormhole locks your source assets in a smart contract and mints new Wormhole-wrapped assets on the target chain. You can then swap Wormhole-wrapped assets on an exchange for other assets on the target chain. - -## To/From Ethereum via Moonbeam {#moonbeam} - -### Prerequisites - -- A Polkadot wallet (Talisman or Polkadot.js/apps); -- An Ethereum wallet (Talisman or Metamask); - -:::caution -Make sure to have enough tokens (ETH) in your wallets to pay for fees. Remember that fees will be charged for sending and redeeming tokens. -::: - -### 01 Navigate to Carrier.so - -https://www.carrier.so/ - -:::caution -Use with caution. All crypto applications can potentially carry risks related to smart contracts/pallets. -::: - -
- metadata -
- -### 02 Add the Wallets from Source and Destination Network - -- Once you have navigated to Carrier.so, add the wallets needed to allow for bridging to and from the desired networks **(1 in image above).** -- In the example above, Metamask was selected as the wallet for Ethereum and Talisman for HydraDX. - -
- metadata -
- -### 03 Select Networks and Wallets to Bridge - -
- metadata -
- -- Once Metamask and Talisman are connected, select the network chains **(2)** and select the previously connected wallets **(3)**. - -### 04 Select Asset to Bridge - -- Select the token asset and amount of tokens you would like to bridge **(4)**. - -### 05 Bridge Tokens - -- Within **Settings** **(5)**, you can select whether to Auto Relay the transaction. It is recommended that this is toggled on. - -
- metadata -
- -- Click **Confirm & Begin Transaction** **(6)** to proceed. This will prompt your wallet to sign the transactions. Once confirmed, you are all done! - -In the example above, bridging from Ethereum to HydraDX, your assets will automatically appear in your wallet on HydraDX network. If you are bridging out of HydraDX to Ethereum, your assets should appear in your Metamask wallet afterwards. - - - -## To/From Ethereum via Acala {#acala} - -### Prerequisites - -- A Polkadot wallet (Talisman or Polkadot.js/apps); -- An Ethereum wallet (Metamask); -- Bind your two wallets following [Acala's guide](https://guide.acalaapps.wiki/general/address-binding). Completing this action will require a small amount of ACA. - -:::caution -Make sure to have enough tokens (ETH and ACA) in your wallets to pay for fees. Remember that fees will be charged for sending and redeeming tokens, and for binding your wallet addresses. -::: - -### 01 Navigate to Acala Bridge Page - -https://apps.acala.network/bridge - -Once you have been directed to Acala bridge page, follow the actions below: - -
- metadata -
- -### Step 2: Connect to Your Account - -- Connect your account **(1)**. -- Select the chains you intend to bridge to and from **(2)**, in this case, it will be **Ethereum** as the Origin Chain and **HydraDX** as the Destination Chain. -- Connect to your Metamask account that you are bridging from **(3)**. - -### Step 3: Bridge Tokens - -- Enter the amount of tokens and the token for bridging **(4)**. -- To commence the bridge, click **Approve Tokens (5)** and sign the transaction using your Metamask wallet app. -- Once the tokens are approved for transfer, click **Send Tokens (5)**. This starts the bridging process cross-chain. -- Once the transaction has been processed by Wormhole, click **Redeem & Route Tokens (5).** This action results in you receiving the tokens on the destination chain. - -In the example above, bridging from Ethereum to HydraDX, your assets will automatically appear in your wallet on HydraDX network. If you are bridging out of HydraDX to Ethereum, your assets should appear in your Metamask wallet afterwards. diff --git a/docs/howto_lp.md b/docs/howto_lp.md index 154f9ab4..f80e6a86 100644 --- a/docs/howto_lp.md +++ b/docs/howto_lp.md @@ -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. diff --git a/docs/howto_trade.md b/docs/howto_trade.md index bcd5697a..2fb69f71 100644 --- a/docs/howto_trade.md +++ b/docs/howto_trade.md @@ -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. diff --git a/docs/trade_metamask.md b/docs/trade_metamask.md new file mode 100644 index 00000000..ac77eec1 --- /dev/null +++ b/docs/trade_metamask.md @@ -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 + +
+ metadata +
diff --git a/i18n/cn/docusaurus-plugin-content-docs/current/howto_lp.md b/i18n/cn/docusaurus-plugin-content-docs/current/howto_lp.md index 24dd3434..43db99a5 100644 --- a/i18n/cn/docusaurus-plugin-content-docs/current/howto_lp.md +++ b/i18n/cn/docusaurus-plugin-content-docs/current/howto_lp.md @@ -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 网络之外的令牌传输。 diff --git a/i18n/cn/docusaurus-plugin-content-docs/current/howto_trade.md b/i18n/cn/docusaurus-plugin-content-docs/current/howto_trade.md index e2d82b2e..ef54802a 100644 --- a/i18n/cn/docusaurus-plugin-content-docs/current/howto_trade.md +++ b/i18n/cn/docusaurus-plugin-content-docs/current/howto_trade.md @@ -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 网络之外的令牌传输。 diff --git a/package.json b/package.json index 4e215ccf..d7b2e761 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "remark-math": "3" }, "engines": { - "node": ">=18 and <=20" + "node": ">=18 and <=22" }, "browserslist": { "production": [ diff --git a/sidebars.js b/sidebars.js index 51079682..ceea3b33 100644 --- a/sidebars.js +++ b/sidebars.js @@ -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", diff --git a/static/howto_bridge/aca1.jpg b/static/howto_bridge/aca1.jpg deleted file mode 100644 index 751e2021..00000000 Binary files a/static/howto_bridge/aca1.jpg and /dev/null differ diff --git a/static/trade_metamask/xcm.jpg b/static/trade_metamask/xcm.jpg new file mode 100644 index 00000000..e25fb7d1 Binary files /dev/null and b/static/trade_metamask/xcm.jpg differ