git.delta.rocks / unique-network / refs/commits / 328c47ab9ae4

difftreelog

Merge branch 'master' into release/quartz-v917000

kozyrevdev2022-03-02parents: #12cd6cb #10c0fa3.patch.diff
in: master

2 files changed

modifiedREADME.mddiffbeforeafterboth
160location:160location:
161 V0(X2(Parent, Parachain(PARA_ID))) 161 V0(X2(Parent, Parachain(PARA_ID)))
162metadata:162metadata:
163 name OPL163 name QTZ
164 symbol OPL164 symbol QTZ
165 decimals 18165 decimals 18
166minimalBalance 1166minimalBalance 1
167```167```
168168
169### Next, we can send tokens from Opal to Karura:169### Next, we can send tokens from Quartz to Karura:
170```170```
171polkadotXcm -> reserveTransferAssets171polkadotXcm -> reserveTransferAssets
172dest:172dest:
184The result will be displayed in ChainState 184The result will be displayed in ChainState
185tokens -> accounts 185tokens -> accounts
186186
187### To send tokens from Karura to Opal:187### To send tokens from Karura to Quartz:
188```188```
189xtokens -> transfer189xtokens -> transfer
190190
modifiedtests/src/xcmTransfer.test.tsdiffbeforeafterboth
23const KARURA_CHAIN = 2000;23const KARURA_CHAIN = 2000;
24const KARURA_PORT = '9946';24const KARURA_PORT = '9946';
2525
26describe('Integration test: Exchanging OPL with Karura', () => {26describe('Integration test: Exchanging QTZ with Karura', () => {
27 let alice: IKeyringPair;27 let alice: IKeyringPair;
28 28
29 before(async () => {29 before(async () => {
4949
50 const metadata =50 const metadata =
51 {51 {
52 name: 'OPL',52 name: 'QTZ',
53 symbol: 'OPL',53 symbol: 'QTZ',
54 decimals: 18,54 decimals: 18,
55 minimalBalance: 1,55 minimalBalance: 1,
56 };56 };
63 }, karuraApiOptions);63 }, karuraApiOptions);
64 });64 });
6565
66 it('Should connect and send OPL to Karura', async () => {66 it('Should connect and send QTZ to Karura', async () => {
67 let balanceOnKaruraBefore: bigint;67 let balanceOnKaruraBefore: bigint;
68 68
69 await usingApi(async (api) => {69 await usingApi(async (api) => {
130 }, {provider: new WsProvider('ws://127.0.0.1:' + KARURA_PORT)});130 }, {provider: new WsProvider('ws://127.0.0.1:' + KARURA_PORT)});
131 });131 });
132132
133 it('Should connect to Karura and send OPL back', async () => {133 it('Should connect to Karura and send QTZ back', async () => {
134 let balanceBefore: bigint;134 let balanceBefore: bigint;
135 135
136 await usingApi(async (api) => {136 await usingApi(async (api) => {