@@ -12,28 +12,20 @@ The xtokens module provides functions for
...
@@ -12,28 +12,20 @@ The xtokens module provides functions for
## Notes
## Notes
#### Unit tests
Unit tests could be added once Polkadot has XCM simulator. https://github.com/paritytech/polkadot/issues/2544
#### Integration tests
#### Integration tests
Integration tests could be done manually after integrating xtokens into runtime. To cover the full features, set up at least 4 relay chain validators and 3 collators of different parachains, and use dispatchable calls to include all these scenarios:
Integration tests could be done manually after integrating xtokens into runtime. To cover the full features, set up at least 4 relay chain validators and 3 collators of different parachains, and use dispatchable calls to include all these scenarios:
- Transfer relay chain tokens to relay chain.
- Transfer relay chain tokens to relay chain.
- Use dispatchable call `transfer_to_relay_chain`.
- Transfer tokens issued by parachain A, from parachain A to parachain B.
- Transfer tokens issued by parachain A, from parachain A to parachain B.
- Use dispatchable call `transfer_to_parachain`.
- Sending the tx from parachain A.
- Sending the tx from parachain A.
- Set the destination as Parachain B.
- Set the destination as Parachain B.
- Set the currency ID as parachain A token.
- Set the currency ID as parachain A token.
- Transfer tokens issued by parachain B, from parachain A to parachain B.
- Transfer tokens issued by parachain B, from parachain A to parachain B.
- Use dispatchable call `transfer_to_parachain`.
- Sending the tx from parachain A.
- Sending the tx from parachain A.
- Set the destination as Parachain B.
- Set the destination as Parachain B.
- Set the currency ID as parachain B token.
- Set the currency ID as parachain B token.
- Transfer tokens issued by parachain C, from parachain A to parachain B.
- Transfer tokens issued by parachain C, from parachain A to parachain B.