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
821 };821 };
822822
823 quartzParachainMultilocation = {823 quartzParachainMultilocation = {
824 V1: {824 V2: {
825 parents: 1,825 parents: 1,
826 interior: {826 interior: {
827 X1: quartzParachainJunction,827 X1: quartzParachainJunction,
830 };830 };
831831
832 quartzAccountMultilocation = {832 quartzAccountMultilocation = {
833 V1: {833 V2: {
834 parents: 0,834 parents: 0,
835 interior: {835 interior: {
836 X1: quartzAccountJunction,836 X1: quartzAccountJunction,
839 };839 };
840840
841 quartzCombinedMultilocation = {841 quartzCombinedMultilocation = {
842 V1: {842 V2: {
843 parents: 1,843 parents: 1,
844 interior: {844 interior: {
845 X2: [quartzParachainJunction, quartzAccountJunction],845 X2: [quartzParachainJunction, quartzAccountJunction],
895 const destinationParachain = quartzParachainMultilocation;895 const destinationParachain = quartzParachainMultilocation;
896 const beneficiary = quartzAccountMultilocation;896 const beneficiary = quartzAccountMultilocation;
897 const assets = {897 const assets = {
898 V1: [{898 V2: [{
899 id: {899 id: {
900 Concrete: {900 Concrete: {
901 parents: 0,901 parents: 0,
1069 itSub('Should connect to Moonriver and send QTZ back', async ({helper}) => {1069 itSub('Should connect to Moonriver and send QTZ back', async ({helper}) => {
1070 await usingMoonriverPlaygrounds(moonriverUrl, async (helper) => {1070 await usingMoonriverPlaygrounds(moonriverUrl, async (helper) => {
1071 const asset = {1071 const asset = {
1072 V1: {1072 V2: {
1073 id: {1073 id: {
1074 Concrete: {1074 Concrete: {
1075 parents: 1,1075 parents: 1,
1084 },1084 },
1085 };1085 };
1086 const destination = {1086 const destination = {
1087 V1: {1087 V2: {
1088 parents: 1,1088 parents: 1,
1089 interior: {1089 interior: {
1090 X2: [1090 X2: [
1139 const [targetAccount] = await helper.arrange.createAccounts([targetAccountBalance], alice);1139 const [targetAccount] = await helper.arrange.createAccounts([targetAccountBalance], alice);
11401140
1141 const quartzMultilocation = {1141 const quartzMultilocation = {
1142 V1: {1142 V2: {
1143 parents: 1,1143 parents: 1,
1144 interior: {1144 interior: {
1145 X1: {Parachain: QUARTZ_CHAIN},1145 X1: {Parachain: QUARTZ_CHAIN},
1212 const [targetAccount] = await helper.arrange.createAccounts([0n], alice);1212 const [targetAccount] = await helper.arrange.createAccounts([0n], alice);
12131213
1214 const quartzMultilocation = {1214 const quartzMultilocation = {
1215 V1: {1215 V2: {
1216 parents: 1,1216 parents: 1,
1217 interior: {1217 interior: {
1218 X1: {1218 X1: {
13411341
1342 console.log('2. Register asset location on Shiden');1342 console.log('2. Register asset location on Shiden');
1343 const assetLocation = {1343 const assetLocation = {
1344 V1: {1344 V2: {
1345 parents: 1,1345 parents: 1,
1346 interior: {1346 interior: {
1347 X1: {1347 X1: {
modifiedtests/src/xcm/xcmUnique.test.tsdiffbeforeafterboth
--- a/tests/src/xcm/xcmUnique.test.ts
+++ b/tests/src/xcm/xcmUnique.test.ts
@@ -832,7 +832,7 @@
       };
 
       uniqueAccountMultilocation = {
-        V1: {
+        V2: {
           parents: 0,
           interior: {
             X1: uniqueAccountJunction,
@@ -841,7 +841,7 @@
       };
 
       uniqueCombinedMultilocation = {
-        V1: {
+        V2: {
           parents: 1,
           interior: {
             X2: [uniqueParachainJunction, uniqueAccountJunction],
@@ -897,7 +897,7 @@
       const destinationParachain = uniqueParachainMultilocation;
       const beneficiary = uniqueAccountMultilocation;
       const assets = {
-        V1: [{
+        V2: [{
           id: {
             Concrete: {
               parents: 0,
@@ -1072,7 +1072,7 @@
   itSub('Should connect to Moonbeam and send UNQ back', async ({helper}) => {
     await usingMoonbeamPlaygrounds(moonbeamUrl, async (helper) => {
       const asset = {
-        V1: {
+        V2: {
           id: {
             Concrete: {
               parents: 1,
@@ -1087,7 +1087,7 @@
         },
       };
       const destination = {
-        V1: {
+        V2: {
           parents: 1,
           interior: {
             X2: [
@@ -1142,7 +1142,7 @@
     const [targetAccount] = await helper.arrange.createAccounts([targetAccountBalance], alice);
 
     const uniqueMultilocation = {
-      V1: {
+      V2: {
         parents: 1,
         interior: {
           X1: {Parachain: UNIQUE_CHAIN},
@@ -1215,7 +1215,7 @@
     const [targetAccount] = await helper.arrange.createAccounts([0n], alice);
 
     const uniqueMultilocation = {
-      V1: {
+      V2: {
         parents: 1,
         interior: {
           X1: {
@@ -1344,7 +1344,7 @@
 
       console.log('2. Register asset location on Astar');
       const assetLocation = {
-        V1: {
+        V2: {
           parents: 1,
           interior: {
             X1: {