-
Notifications
You must be signed in to change notification settings - Fork 378
Can't make XCM from Bridge Hubs to relaychain - Problem with weights. #2758
Comments
For collectives, this is simple: You cannot reserve transfer assets to the Relay Chain because of the XCM config anyway, you must use teleport. See: impl xcm_executor::Config for XcmConfig {
// ...
// Collectives does not recognize a reserve location for any asset. Users must teleport DOT
// where allowed (e.g. with the Relay Chain).
type IsReserve = ();
/// Only allow teleportation of DOT.
type IsTeleporter = ConcreteNativeAssetFrom<DotLocation>;
// ...
} For the Bridge Hubs things are a bit more complicated. The Bridge Hubs themselves are set up to accept teleports of DOT from the Relay Chain, however the Relays do not recognize the Bridge Hub as a trusted teleporter. This currently makes teleportation of DOT to Bridge Hub a one-way street (that being said, there are very few reasons to have any asset on Bridge Hub in the first place, basically only if you want to be a collator and you need some DOT for transaction fees). IIRC, when setting up the Bridge Hub, we weren't sure at genesis if it should be a Trusted Teleporter or not. In one sense, it is a system chain and is trusted by its local Relay. In another, it's the gateway to "all other consensus systems", and other system chains may want to treat it as a reserve knowing that it will have forwarded its messages to (and relay messages from) untrusted locations. Now that we're further along in implementation, perhaps @acatangiu or @bkontur have an update on how the Relay Chain should be configured to see Bridge Hub. |
I am a bit curious why you want to do this? There's generally no reason a user should interact with a Bridge Hub directly. |
Thanks for detailed reply! Should've looked at xcm config at the first place
We basically wanted to provide two-way transfers between relay-chain and new system parachains. We thought it might be useful for felowwship members (for Collectives) and collators (for BridgeHub) |
Yeah, OK. So for Bridge Hub, at least at the moment, it should probably be from the Relay or Asset Hub interface that allows you to teleport DOT/KSM to Bridge Hub, but with a very prominent warning like "At the moment, you cannot get your DOT off Bridge Hub, only send there if you have a specific reason (e.g. collation) to send DOT to Bridge Hub." For Collectives, it does support DOT teleports both ways, so there's no need to do reserve transfers. People sending DOT using reserve transfers (i.e. to other parachains) should do it from Asset Hub anyway, so probably don't need to support that from Collectives. I think a lot of Fellows will appreciate a better UX on sending DOT there and participating in Fellowship governance :). As a side note, have you seen https://hackmd.io/33pI3HvlSkycp-1dQjRLZA ? |
here is the PR which enables teleports of DOTs/KSMs back to the relay chain for BridgeHub @joepetrowski |
We have received requests from number of community collators since there was no UI/convenient way to transfer tokens, therefore we have decided to jump in and help. |
Cool, as long as it's clear that this functionality is for a very niche group, then it's OK. But remember that as of now, the Bridge Hub has no bridges in its runtime, so we don't want people to think that sending assets there is a step toward bridging (this will not be done from Bridge Hub, but primarily from Asset Hub, which will handle interactions with Bridge Hub). |
Hello!
In Nova Wallet we faced with problem to make XCM from Polkadot\Kusama Bridge Hubs to relaychain, the same for Polkadot Collectives.
Error:
1010: Invalid Transaction: Transaction would exhaust the block limits
Example for Kusama Bridge Hub:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fksm-rpc.stakeworld.io%2Fbridgehub#/extrinsics/decode
output:
18,446,744,073,709,551,615
Screen
Same transaction on Statemine show much smaller numbers:
Screen
The text was updated successfully, but these errors were encountered: