git.delta.rocks / unique-network / refs/commits / 81c388773ff5

difftreelog

fix xcm v3 test (v2 locations)

Daniel Shiposha2023-03-29parent: #3acaf7a.patch.diff
in: master

2 files changed

modifiedtests/src/xcm/xcmQuartz.test.tsdiffbeforeafterboth
145 // (fee for USDT XCM are paid in relay tokens)145 // (fee for USDT XCM are paid in relay tokens)
146 await usingRelayPlaygrounds(relayUrl, async (helper) => {146 await usingRelayPlaygrounds(relayUrl, async (helper) => {
147 const destination = {147 const destination = {
148 V2: {148 V1: {
149 parents: 0,149 parents: 0,
150 interior: {X1: {150 interior: {X1: {
151 Parachain: QUARTZ_CHAIN,151 Parachain: QUARTZ_CHAIN,
154 }};154 }};
155155
156 const beneficiary = {156 const beneficiary = {
157 V2: {157 V1: {
158 parents: 0,158 parents: 0,
159 interior: {X1: {159 interior: {X1: {
160 AccountId32: {160 AccountId32: {
166 };166 };
167167
168 const assets = {168 const assets = {
169 V2: [169 V1: [
170 {170 {
171 id: {171 id: {
172 Concrete: {172 Concrete: {
191 itSub('Should connect and send USDT from Statemine to Quartz', async ({helper}) => {191 itSub('Should connect and send USDT from Statemine to Quartz', async ({helper}) => {
192 await usingStateminePlaygrounds(statemineUrl, async (helper) => {192 await usingStateminePlaygrounds(statemineUrl, async (helper) => {
193 const dest = {193 const dest = {
194 V2: {194 V1: {
195 parents: 1,195 parents: 1,
196 interior: {X1: {196 interior: {X1: {
197 Parachain: QUARTZ_CHAIN,197 Parachain: QUARTZ_CHAIN,
200 }};200 }};
201201
202 const beneficiary = {202 const beneficiary = {
203 V2: {203 V1: {
204 parents: 0,204 parents: 0,
205 interior: {X1: {205 interior: {X1: {
206 AccountId32: {206 AccountId32: {
212 };212 };
213213
214 const assets = {214 const assets = {
215 V2: [215 V1: [
216 {216 {
217 id: {217 id: {
218 Concrete: {218 Concrete: {
332332
333 await usingRelayPlaygrounds(relayUrl, async (helper) => {333 await usingRelayPlaygrounds(relayUrl, async (helper) => {
334 const destination = {334 const destination = {
335 V2: {335 V1: {
336 parents: 0,336 parents: 0,
337 interior: {X1: {337 interior: {X1: {
338 Parachain: QUARTZ_CHAIN,338 Parachain: QUARTZ_CHAIN,
341 }};341 }};
342342
343 const beneficiary = {343 const beneficiary = {
344 V2: {344 V1: {
345 parents: 0,345 parents: 0,
346 interior: {X1: {346 interior: {X1: {
347 AccountId32: {347 AccountId32: {
353 };353 };
354354
355 const assets = {355 const assets = {
356 V2: [356 V1: [
357 {357 {
358 id: {358 id: {
359 Concrete: {359 Concrete: {
470470
471 await usingKaruraPlaygrounds(karuraUrl, async (helper) => {471 await usingKaruraPlaygrounds(karuraUrl, async (helper) => {
472 const destination = {472 const destination = {
473 V2: {473 V1: {
474 parents: 1,474 parents: 1,
475 interior: {475 interior: {
476 X1: {476 X1: {
580 itSub('Should connect to Karura and send QTZ back', async ({helper}) => {580 itSub('Should connect to Karura and send QTZ back', async ({helper}) => {
581 await usingKaruraPlaygrounds(karuraUrl, async (helper) => {581 await usingKaruraPlaygrounds(karuraUrl, async (helper) => {
582 const destination = {582 const destination = {
583 V2: {583 V1: {
584 parents: 1,584 parents: 1,
585 interior: {585 interior: {
586 X2: [586 X2: [
644 itSub('Quartz rejects KAR tokens from Karura', async ({helper}) => {644 itSub('Quartz rejects KAR tokens from Karura', async ({helper}) => {
645 await usingKaruraPlaygrounds(karuraUrl, async (helper) => {645 await usingKaruraPlaygrounds(karuraUrl, async (helper) => {
646 const destination = {646 const destination = {
647 V2: {647 V1: {
648 parents: 1,648 parents: 1,
649 interior: {649 interior: {
650 X2: [650 X2: [
905 itSub('Should connect to Moonriver and send QTZ back', async ({helper}) => {905 itSub('Should connect to Moonriver and send QTZ back', async ({helper}) => {
906 await usingMoonriverPlaygrounds(moonriverUrl, async (helper) => {906 await usingMoonriverPlaygrounds(moonriverUrl, async (helper) => {
907 const asset = {907 const asset = {
908 V2: {908 V1: {
909 id: {909 id: {
910 Concrete: {910 Concrete: {
911 parents: 1,911 parents: 1,
920 },920 },
921 };921 };
922 const destination = {922 const destination = {
923 V2: {923 V1: {
924 parents: 1,924 parents: 1,
925 interior: {925 interior: {
926 X2: [926 X2: [
modifiedtests/src/xcm/xcmUnique.test.tsdiffbeforeafterboth
--- a/tests/src/xcm/xcmUnique.test.ts
+++ b/tests/src/xcm/xcmUnique.test.ts
@@ -145,7 +145,7 @@
     // (fee for USDT XCM are paid in relay tokens)
     await usingRelayPlaygrounds(relayUrl, async (helper) => {
       const destination = {
-        V2: {
+        V1: {
           parents: 0,
           interior: {X1: {
             Parachain: UNIQUE_CHAIN,
@@ -154,7 +154,7 @@
         }};
 
       const beneficiary = {
-        V2: {
+        V1: {
           parents: 0,
           interior: {X1: {
             AccountId32: {
@@ -166,7 +166,7 @@
       };
 
       const assets = {
-        V2: [
+        V1: [
           {
             id: {
               Concrete: {
@@ -191,7 +191,7 @@
   itSub('Should connect and send USDT from Statemint to Unique', async ({helper}) => {
     await usingStatemintPlaygrounds(statemintUrl, async (helper) => {
       const dest = {
-        V2: {
+        V1: {
           parents: 1,
           interior: {X1: {
             Parachain: UNIQUE_CHAIN,
@@ -200,7 +200,7 @@
         }};
 
       const beneficiary = {
-        V2: {
+        V1: {
           parents: 0,
           interior: {X1: {
             AccountId32: {
@@ -212,7 +212,7 @@
       };
 
       const assets = {
-        V2: [
+        V1: [
           {
             id: {
               Concrete: {
@@ -332,7 +332,7 @@
 
     await usingRelayPlaygrounds(relayUrl, async (helper) => {
       const destination = {
-        V2: {
+        V1: {
           parents: 0,
           interior: {X1: {
             Parachain: UNIQUE_CHAIN,
@@ -341,7 +341,7 @@
         }};
 
       const beneficiary = {
-        V2: {
+        V1: {
           parents: 0,
           interior: {X1: {
             AccountId32: {
@@ -353,7 +353,7 @@
       };
 
       const assets = {
-        V2: [
+        V1: [
           {
             id: {
               Concrete: {
@@ -470,7 +470,7 @@
 
     await usingAcalaPlaygrounds(acalaUrl, async (helper) => {
       const destination = {
-        V2: {
+        V1: {
           parents: 1,
           interior: {
             X1: {
@@ -581,7 +581,7 @@
   itSub('Should connect to Acala and send UNQ back', async ({helper}) => {
     await usingAcalaPlaygrounds(acalaUrl, async (helper) => {
       const destination = {
-        V2: {
+        V1: {
           parents: 1,
           interior: {
             X2: [
@@ -645,7 +645,7 @@
   itSub('Unique rejects ACA tokens from Acala', async ({helper}) => {
     await usingAcalaPlaygrounds(acalaUrl, async (helper) => {
       const destination = {
-        V2: {
+        V1: {
           parents: 1,
           interior: {
             X2: [
@@ -907,7 +907,7 @@
   itSub('Should connect to Moonbeam and send UNQ back', async ({helper}) => {
     await usingMoonbeamPlaygrounds(moonbeamUrl, async (helper) => {
       const asset = {
-        V2: {
+        V1: {
           id: {
             Concrete: {
               parents: 1,
@@ -922,7 +922,7 @@
         },
       };
       const destination = {
-        V2: {
+        V1: {
           parents: 1,
           interior: {
             X2: [