-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BridgeHub related issues #3480
Comments
Cc @acatangiu |
TLDR: Yes, in the future by opening HRMP channels with sibling Bridge Hub (BH) and by doing some additional actions there (at BH), you will be able to connect two parachains together, without requiring your messages/funds to go through the Asset Hub (AH). However, initially (in upcoming initial deployment) you won't be able to do that - we'll only have a hardcoded communication channel (bridge) between two AHs. So all communication in the beginning is the communication between two AHs, no other paracahains allowed. You can track the progress here: paritytech/parity-bridges-common#2451 Some details on how we currently plan to implement that (BTW, some code is already available in 'bridges v2' branch, which is just our master: https://github.com/paritytech/parity-bridges-common/blob/master/modules/xcm-bridge-hub/src/lib.rs). To open bridge between some Kusama Parachain KP and Polkadot Parachain PP, you'll need to:
Once you don't want the bridge, you and/or your counterpart may call the As you see, most of yet WIP things ^^^ is about designing and implementing a set of "bridge rules". The main goal here is to ensure that parachains are using bridge hub responsibly (e.g. not flooding BH with thousands of messages and hence bloating its runtime storage size) and care about their own messages delivery (running a relayer). Other than that, everything is pretty clear. |
@svyatonik Thanks for the answer, is there support for tokens across parachain possible between the two AssetHubs then? Only DOT and KSM are supported as far as I can remember. |
Yes, DOT and KSM initially with USDT addition soon after that. Re other tokens - IIRC we've been working on sufficient token transfers so far, so there's not much other tokens to support left (to my knowledge). But in any case until 'bridges v2' adding more tokens will be a manual process, which would require BH runtime upgrades and (maybe) some changes to xcm pallets/infrastructure. It may also interfere with upcoming liquidity pools (don't know when they'll be added to K/P runtimes), so it could be even harder than just doing some code changes. But in any case - please let us know how you're planning to use the bridge and, if that's just some tokens, which tokens exactly you want to see supported. Thank you! |
Both Bifrost kusama and Bifrost polkadot network tokens are BNC, at the moment our cross-chain solution is only available via CEX, now we want to do it via BridgeHub custom XCM messages (Withdraw---Deposit). |
Yeah, as I said above, you won't be able to do that after initial deployment (KSM <> DOT and USDT soon). But thank you for letting us know your case - we'll need to talk about that within a team to maybe rearrange our priorities. If you want to experiment yourself locally , you may tweak Polkadot and Kusama Asset Hubs runtime configs meanwhile. In particular, you may be interested in XCM + bridges configuration (e.g. Kusama AH: https://github.com/polkadot-fellows/runtimes/blob/main/system-parachains/asset-hubs/asset-hub-kusama/src/xcm_config.rs#L746-L815), which holds the set of tokens you may transfer between Asset Hubs. |
Thanks, I'll do a local test. |
KSM and DOT are configured in Asset Hubs to go over bridge, we will run with this for a short while to see everything works well. Afterwards, it's just a matter of Asset Hub configuration to allow other assets as well.
You will be able to do that soon(ish) through AssetHubs. Shortest path I see is register BNC on AssetHubs as ForeignAssets. AH can then act as reserve of BNC over the bridge. BNC will be teleportable between local Bifrost and local AssetHub. |
@acatangiu If BNC is used as ForeignAssets on AssetHubs, which method will be used to cross-chain between AssetHubs (teleports or reserves)?
|
I once tested it locally. Bifrost sent XCM messages directly to BridgeHub, which enabled Bifrost Kusama and Bifrost Polkadot to cross BNC (teleports). The results were great. So I hope it can also be achieved with AssetHub. |
All transfers between the two asset hubs are reserve-based. The reason for that is we do not want (yet) to completely trust the other AssetHub (e.g. any Kusama Asset Hub issue or security problem should not extend blast radius to Polkadot Asset Hub).
From Kusama/Polkadot AH point of view, the two are not/cannot be fungible, they are coming from different chains on different ecosystems. BUT, you can definitely treat them as fungible in Kusama/Polkadot Bifrost chains.
I think this would be a better possible path/flow:
Ultimately, I think you can hide the difference between pBNC and kBNC in your chain so, on Bifrost chains, users see everything as BNC (on AHs they still see them as different pBNC and kBNC). |
If you open direct channel/lane over the bridge between Bifrost chains (not go through AH), you can directly teleport between your two chains and have single asset everywhere.
|
@acatangiu Thanks for your answer, I understand. I will continue to pay attention to the progress of the bridge and hope to realize it as soon as possible. |
@acatangiu Thank you for your assistance. This is the ideal solution for BNC to cross-chain between Bifrost Kusama <> Bifrost Polkadot, and we have tested it in the local env successfully, but the current problem is the unexpected launch point of bridge hub v2. We hope it will be pushed to launch soon. |
It is planned for Q2 this year: https://github.com/orgs/paritytech/projects/27/views/11 |
It seems to me that if parachain and BridgeHub opened hrmp, this would allow direct cross-chaining like AssetHub does.
The text was updated successfully, but these errors were encountered: