OpenZeppelin / polkadot-runtime-templates

Runtime Templates for Polkadot Parachains
GNU General Public License v3.0
65 stars 21 forks source link

🎁 [Feature Request]: Snowbridge Integration #303

Closed ggonzalez94 closed 4 days ago

ggonzalez94 commented 2 months ago

templates

What is the feature you would like to see?

Snowbridge is a general purpose, trustless and decentralized bridge between Polkadot and Ethereum. It would be great to include this integration as part of the templates.

Here's some of the info the Snowbridge team has shared with us:

The requirements for receiving bridged ERC20 are the following:

  • Accepting asset hub as a reserve for bridged assets.
  • Accepting asset hub as a reserve for DOT.
  • Accepting DOT as execution fee for XCM.
  • polkadotXCM pallet installed. XTokens needs to be modified to support this case.
  • A pallet to store bridged assets. We recommend pallet assets set up like foreign assets pallet on asset hub.

Requirements 1, 4 and 5 are for transfer of assets between Asset Hub and the Parachain. Users will need to bridge their assets to asset hub first. Requrements 2 and 3 are needed in addition is for one-click transfers from Ethereum directly to Paracahin.

Example PRs

Moonbeam. Adds requirements 1 and 2. 3, 4 and 5 were already enabled. https://github.com/moonbeam-foundation/moonbeam/pull/2844 Bifrost. Requirement 3, 4 and 5 were already enabled. Adds requirement 1. https://github.com/bifrost-finance/bifrost/pull/1249 Adds requirement 2. https://github.com/bifrost-finance/bifrost/pull/1305 HydraDX. Only requirement 1 was added. 3, 4 and 5 were already enabled. 2 is planned.
1. https://github.com/galacticcouncil/hydration-node/pull/784

Contribution Guidelines

ggonzalez94 commented 1 month ago

222 is a pre requisite for this