Relay subcommand that performs token RLT <> MLAU token swap#1141
Relay subcommand that performs token RLT <> MLAU token swap#1141
Conversation
785012b to
2bbcea2
Compare
| // | ||
|
|
||
| // prepare `Currency::transfer` call that will happen at the target chain | ||
| let bridged_currency_transfer: CallOf<Target> = pallet_balances::Call::transfer( |
There was a problem hiding this comment.
There's a lot of code in this function - I've been trying to split it into several methods. But there's a problem - pallet calls are generic over runtime. So I need to pass runtime as generic arguments to these methods. But if this'll be extended to something behind Millau<>Rialto, then we won't have an access to the runtime => I've decided not to split it further.
I could also add call-craft functions to the select_bridge!() macro if that's unacceptable.
There was a problem hiding this comment.
Let's leave it like that for now, I think it will soon be replaced by XCM anyway, so this should be just an example for now.
| // | ||
|
|
||
| // prepare `Currency::transfer` call that will happen at the target chain | ||
| let bridged_currency_transfer: CallOf<Target> = pallet_balances::Call::transfer( |
There was a problem hiding this comment.
Let's leave it like that for now, I think it will soon be replaced by XCM anyway, so this should be just an example for now.
…ch#1141) * token swap relay * token swap subcommand fixes * fmt * removed debug traces * removed commented code
…ch#1141) * token swap relay * token swap subcommand fixes * fmt * removed debug traces * removed commented code
New subcommand illustration: