orml-xtokens
is a reference implementation of XCM for fungible tokens that can help easily doing cross-chain token transfer job.Note: the reference implementation is by no means definitive, rather it is the starting point for the parachain community to experiment and iterate. Please provide feedback toxtokens
or the implementation guide.
orml-xtokens
doing cross-chain token transfer.xtokens
module to Support Acala/Karura TokensCurrencyIdConvert
can convertCurrencyId
toMultiLocation
and also convertMultiLocation
toCurrencyId
. The former convert is used by orml-xtokens to send xcm to recipient chain, while the later one is used when you received xcm instruction that need to transfer to correct token.
If you use parachain-launch or polkdot-launch, both tools support initiate hrmp channes when startup local testnet, so the cross-chain token transfer is ready to go. Of course you can manual init hrmp channels by the instructions below.
HRMP has the same interface and functionality as XCMP but is much more demanding on resources since it stores all messages in the Relay Chain storage. When XCMP has been implemented, HRMP is planned to be deprecated and phased out in favor of it.
xtokens
, please PR to this Repo to add yourself: