This PR refactors existing call selection logic into the resolveCall method on the AssetTransferAPI which determines the correct call type and call based on information obtained from the current runtime.
Changes
Refactored call selection logic into the resolveCall method
Added resolveCall unit tests for ParaTo,*SystemTo* and RelayTo* XCM directions
Fixed parachain primary asset tx construction to allow for xTokens transfers of parachain native assets (e.g. SDN -> Moonriver, MOVR -> Bifrost, etc.) which were previously constructed using only polkadotXcm.
Description
This PR refactors existing call selection logic into the
resolveCall
method on theAssetTransferAPI
which determines the correct call type and call based on information obtained from the current runtime.Changes
ParaTo,*
SystemTo*
andRelayTo*
XCM directionsxTokens
transfers of parachain native assets (e.g.SDN
->Moonriver
,MOVR
->Bifrost
, etc.) which were previously constructed using onlypolkadotXcm
.closes: #368