git.delta.rocks / unique-network / refs/commits / 18191fcbe399

difftreelog

Use XCM V2

Max Andreev2023-05-22parent: #e12a9ef.patch.diff
in: master

2 files changed

modifiedtests/src/xcm/xcmQuartz.test.tsdiffbeforeafterboth
--- a/tests/src/xcm/xcmQuartz.test.ts
+++ b/tests/src/xcm/xcmQuartz.test.ts
@@ -821,7 +821,7 @@
       };
 
       quartzParachainMultilocation = {
-        V1: {
+        V2: {
           parents: 1,
           interior: {
             X1: quartzParachainJunction,
@@ -830,7 +830,7 @@
       };
 
       quartzAccountMultilocation = {
-        V1: {
+        V2: {
           parents: 0,
           interior: {
             X1: quartzAccountJunction,
@@ -839,7 +839,7 @@
       };
 
       quartzCombinedMultilocation = {
-        V1: {
+        V2: {
           parents: 1,
           interior: {
             X2: [quartzParachainJunction, quartzAccountJunction],
@@ -895,7 +895,7 @@
       const destinationParachain = quartzParachainMultilocation;
       const beneficiary = quartzAccountMultilocation;
       const assets = {
-        V1: [{
+        V2: [{
           id: {
             Concrete: {
               parents: 0,
@@ -1069,7 +1069,7 @@
   itSub('Should connect to Moonriver and send QTZ back', async ({helper}) => {
     await usingMoonriverPlaygrounds(moonriverUrl, async (helper) => {
       const asset = {
-        V1: {
+        V2: {
           id: {
             Concrete: {
               parents: 1,
@@ -1084,7 +1084,7 @@
         },
       };
       const destination = {
-        V1: {
+        V2: {
           parents: 1,
           interior: {
             X2: [
@@ -1139,7 +1139,7 @@
     const [targetAccount] = await helper.arrange.createAccounts([targetAccountBalance], alice);
 
     const quartzMultilocation = {
-      V1: {
+      V2: {
         parents: 1,
         interior: {
           X1: {Parachain: QUARTZ_CHAIN},
@@ -1212,7 +1212,7 @@
     const [targetAccount] = await helper.arrange.createAccounts([0n], alice);
 
     const quartzMultilocation = {
-      V1: {
+      V2: {
         parents: 1,
         interior: {
           X1: {
@@ -1341,7 +1341,7 @@
 
       console.log('2. Register asset location on Shiden');
       const assetLocation = {
-        V1: {
+        V2: {
           parents: 1,
           interior: {
             X1: {
modifiedtests/src/xcm/xcmUnique.test.tsdiffbeforeafterboth
832 };832 };
833833
834 uniqueAccountMultilocation = {834 uniqueAccountMultilocation = {
835 V1: {835 V2: {
836 parents: 0,836 parents: 0,
837 interior: {837 interior: {
838 X1: uniqueAccountJunction,838 X1: uniqueAccountJunction,
841 };841 };
842842
843 uniqueCombinedMultilocation = {843 uniqueCombinedMultilocation = {
844 V1: {844 V2: {
845 parents: 1,845 parents: 1,
846 interior: {846 interior: {
847 X2: [uniqueParachainJunction, uniqueAccountJunction],847 X2: [uniqueParachainJunction, uniqueAccountJunction],
897 const destinationParachain = uniqueParachainMultilocation;897 const destinationParachain = uniqueParachainMultilocation;
898 const beneficiary = uniqueAccountMultilocation;898 const beneficiary = uniqueAccountMultilocation;
899 const assets = {899 const assets = {
900 V1: [{900 V2: [{
901 id: {901 id: {
902 Concrete: {902 Concrete: {
903 parents: 0,903 parents: 0,
1072 itSub('Should connect to Moonbeam and send UNQ back', async ({helper}) => {1072 itSub('Should connect to Moonbeam and send UNQ back', async ({helper}) => {
1073 await usingMoonbeamPlaygrounds(moonbeamUrl, async (helper) => {1073 await usingMoonbeamPlaygrounds(moonbeamUrl, async (helper) => {
1074 const asset = {1074 const asset = {
1075 V1: {1075 V2: {
1076 id: {1076 id: {
1077 Concrete: {1077 Concrete: {
1078 parents: 1,1078 parents: 1,
1087 },1087 },
1088 };1088 };
1089 const destination = {1089 const destination = {
1090 V1: {1090 V2: {
1091 parents: 1,1091 parents: 1,
1092 interior: {1092 interior: {
1093 X2: [1093 X2: [
1142 const [targetAccount] = await helper.arrange.createAccounts([targetAccountBalance], alice);1142 const [targetAccount] = await helper.arrange.createAccounts([targetAccountBalance], alice);
11431143
1144 const uniqueMultilocation = {1144 const uniqueMultilocation = {
1145 V1: {1145 V2: {
1146 parents: 1,1146 parents: 1,
1147 interior: {1147 interior: {
1148 X1: {Parachain: UNIQUE_CHAIN},1148 X1: {Parachain: UNIQUE_CHAIN},
1215 const [targetAccount] = await helper.arrange.createAccounts([0n], alice);1215 const [targetAccount] = await helper.arrange.createAccounts([0n], alice);
12161216
1217 const uniqueMultilocation = {1217 const uniqueMultilocation = {
1218 V1: {1218 V2: {
1219 parents: 1,1219 parents: 1,
1220 interior: {1220 interior: {
1221 X1: {1221 X1: {
13441344
1345 console.log('2. Register asset location on Astar');1345 console.log('2. Register asset location on Astar');
1346 const assetLocation = {1346 const assetLocation = {
1347 V1: {1347 V2: {
1348 parents: 1,1348 parents: 1,
1349 interior: {1349 interior: {
1350 X1: {1350 X1: {