-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add support for the new transfer_assets_using_type_and_then()
call in pallet XCM
#400
Comments
transfer_assets_using_type_and_then()
call in pallet XCMtransfer_assets_using_type_and_then()
call in pallet XCM
I am hoping that this library be more than just a wrapper and instead can build on top of the The limitation of I would really like to start from some "complex" user stories (bridged assets, multiple hops, multiple assets, mixing teleports with reserves, etc) that are either not possible or hard to do in practice in our ecosystem, and come up with some helper APIs here to do them, hiding all that complexity from the user. For this ^ we really need to work backwards from the usecase, I expect we will find we still need some missing pieces from the chain to make it really great UX. Lemme know what you think. |
@acatangiu Thanks for the comment, I totally agree, the main purpose of this API is to facilitate every kind of cross-chain transfers. After thinking a bit about your comment my initial idea would be to:
|
Sounds great to me! 👍 |
Following from the original issue: #384
The new
transfer_assets_using_type_and_then()
call in pallet XCM will add heavy changes to the original interface. Among other things, this call allows to transfer more than one asset in a proper manner (see discussion here). Asset Transfer API should support this call but leaving up to the user the flexibility and extra complexity thattransfer_assets
does not allow. This is, this call should meant to be only for advanced API users. More concretely:Whenever only one asset is meant to be transferred, this call should be disregarded and
transfer_assets
(or other calls) should be constructed.If there are more than one asset to be transferred, then the behaviour should be:
remote_fees_id
input param should be already supported by thepaysWithFeeDest?
input in the API, but nowpaysWithFeeDest?
input should not be optional.assets_transfer_type
input parameter.fees_transfer_type
input paramter as perassets_transfer_type
:In any case, the value of
custom_xcm_on_dest
input should default toXcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])
as explained here. But the user should have the option to input their own custom instructions for destination.The text was updated successfully, but these errors were encountered: