You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,10 @@ The Open Runtime Module Library (ORML) is a community maintained collection of S
23
23
- Provides scheduled balance locking mechanism, in a *graded vesting* way.
24
24
-[orml-gradually-update](./gradually-update)
25
25
- Provides way to adjust numeric parameter gradually over a period of time.
26
+
-[orml-xtokens](./xtokens)
27
+
- Provides way to do cross-chain assets transfer.
28
+
-[orml-xcm-support](./xcm-support)
29
+
- Provides traits, types, and implementations to support XCM integration.
26
30
27
31
## Example
28
32
@@ -48,7 +52,7 @@ ORML use `Cargo.dev.toml` to avoid workspace conflicts with project cargo config
48
52
- change the command to `make dev-check` etc which does the copy. (For the full list of `make` commands, check `Makefile`)
49
53
50
54
# Web3 Foundation Grant Project
51
-
ORML is part of the bigger `Open-Web3-Stack` initiative, that is currently under a General Grant from Web3 Foundation. See Application details [here](https://github.com/open-web3-stack/General-Grants-Program/blob/master/grants/speculative/open_web3_stack.md). The 1st milestone has been delivered.
55
+
ORML is part of the bigger `Open-Web3-Stack` initiative, that is currently under a General Grant from Web3 Foundation. See Application details [here](https://github.com/open-web3-stack/General-Grants-Program/blob/master/grants/speculative/open_web3_stack.md). The 1st milestone has been delivered.
52
56
53
57
# Projects using ORML
54
58
-[If you intend or are using ORML, please add your project here](https://github.com/open-web3-stack/open-runtime-module-library/edit/master/README.md)
The xtokens module provides cross-chain token transfer functionality, by cross-consensus
6
+
messages(XCM).
7
+
8
+
The xtokens module provides functions for
9
+
- Token transfer from parachains to relay chain.
10
+
- Token transfer between parachains, including relay chain tokens like DOT,
11
+
KSM, and parachain tokens like ACA, aUSD.
12
+
13
+
## Notes
14
+
15
+
#### Unit tests
16
+
17
+
Unit tests could be added once Polkadot has XCM simulator. https://github.com/paritytech/polkadot/issues/2544
18
+
19
+
#### Integration tests
20
+
21
+
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:
22
+
23
+
- Transfer relay chain tokens to relay chain.
24
+
- Use dispatchable call `transfer_to_relay_chain`.
25
+
- Transfer tokens issued by parachain A, from parachain A to parachain B.
26
+
- Use dispatchable call `transfer_to_parachain`.
27
+
- Sending the tx from parachain A.
28
+
- Set the destination as Parachain B.
29
+
- Set the currency ID as parachain A token.
30
+
- Transfer tokens issued by parachain B, from parachain A to parachain B.
31
+
- Use dispatchable call `transfer_to_parachain`.
32
+
- Sending the tx from parachain A.
33
+
- Set the destination as Parachain B.
34
+
- Set the currency ID as parachain B token.
35
+
- Transfer tokens issued by parachain C, from parachain A to parachain B.
0 commit comments