Skip to content

Commit

Permalink
Use XCM V2
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksandre authored and CertainLach committed May 24, 2023
1 parent e12a9ef commit 18191fc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions tests/src/xcm/xcmQuartz.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ describeXCM('[XCM] Integration test: Quartz rejects non-native tokens', () => {
};

quartzParachainMultilocation = {
V1: {
V2: {
parents: 1,
interior: {
X1: quartzParachainJunction,
Expand All @@ -830,7 +830,7 @@ describeXCM('[XCM] Integration test: Quartz rejects non-native tokens', () => {
};

quartzAccountMultilocation = {
V1: {
V2: {
parents: 0,
interior: {
X1: quartzAccountJunction,
Expand All @@ -839,7 +839,7 @@ describeXCM('[XCM] Integration test: Quartz rejects non-native tokens', () => {
};

quartzCombinedMultilocation = {
V1: {
V2: {
parents: 1,
interior: {
X2: [quartzParachainJunction, quartzAccountJunction],
Expand Down Expand Up @@ -895,7 +895,7 @@ describeXCM('[XCM] Integration test: Quartz rejects non-native tokens', () => {
const destinationParachain = quartzParachainMultilocation;
const beneficiary = quartzAccountMultilocation;
const assets = {
V1: [{
V2: [{
id: {
Concrete: {
parents: 0,
Expand Down Expand Up @@ -1069,7 +1069,7 @@ describeXCM('[XCM] Integration test: Exchanging QTZ with Moonriver', () => {
itSub('Should connect to Moonriver and send QTZ back', async ({helper}) => {
await usingMoonriverPlaygrounds(moonriverUrl, async (helper) => {
const asset = {
V1: {
V2: {
id: {
Concrete: {
parents: 1,
Expand All @@ -1084,7 +1084,7 @@ describeXCM('[XCM] Integration test: Exchanging QTZ with Moonriver', () => {
},
};
const destination = {
V1: {
V2: {
parents: 1,
interior: {
X2: [
Expand Down Expand Up @@ -1139,7 +1139,7 @@ describeXCM('[XCM] Integration test: Exchanging QTZ with Moonriver', () => {
const [targetAccount] = await helper.arrange.createAccounts([targetAccountBalance], alice);

const quartzMultilocation = {
V1: {
V2: {
parents: 1,
interior: {
X1: {Parachain: QUARTZ_CHAIN},
Expand Down Expand Up @@ -1212,7 +1212,7 @@ describeXCM('[XCM] Integration test: Exchanging QTZ with Moonriver', () => {
const [targetAccount] = await helper.arrange.createAccounts([0n], alice);

const quartzMultilocation = {
V1: {
V2: {
parents: 1,
interior: {
X1: {
Expand Down Expand Up @@ -1341,7 +1341,7 @@ describeXCM('[XCM] Integration test: Exchanging tokens with Shiden', () => {

console.log('2. Register asset location on Shiden');
const assetLocation = {
V1: {
V2: {
parents: 1,
interior: {
X1: {
Expand Down
16 changes: 8 additions & 8 deletions tests/src/xcm/xcmUnique.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ describeXCM('[XCM] Integration test: Unique rejects non-native tokens', () => {
};

uniqueAccountMultilocation = {
V1: {
V2: {
parents: 0,
interior: {
X1: uniqueAccountJunction,
Expand All @@ -841,7 +841,7 @@ describeXCM('[XCM] Integration test: Unique rejects non-native tokens', () => {
};

uniqueCombinedMultilocation = {
V1: {
V2: {
parents: 1,
interior: {
X2: [uniqueParachainJunction, uniqueAccountJunction],
Expand Down Expand Up @@ -897,7 +897,7 @@ describeXCM('[XCM] Integration test: Unique rejects non-native tokens', () => {
const destinationParachain = uniqueParachainMultilocation;
const beneficiary = uniqueAccountMultilocation;
const assets = {
V1: [{
V2: [{
id: {
Concrete: {
parents: 0,
Expand Down Expand Up @@ -1072,7 +1072,7 @@ describeXCM('[XCM] Integration test: Exchanging UNQ with Moonbeam', () => {
itSub('Should connect to Moonbeam and send UNQ back', async ({helper}) => {
await usingMoonbeamPlaygrounds(moonbeamUrl, async (helper) => {
const asset = {
V1: {
V2: {
id: {
Concrete: {
parents: 1,
Expand All @@ -1087,7 +1087,7 @@ describeXCM('[XCM] Integration test: Exchanging UNQ with Moonbeam', () => {
},
};
const destination = {
V1: {
V2: {
parents: 1,
interior: {
X2: [
Expand Down Expand Up @@ -1142,7 +1142,7 @@ describeXCM('[XCM] Integration test: Exchanging UNQ with Moonbeam', () => {
const [targetAccount] = await helper.arrange.createAccounts([targetAccountBalance], alice);

const uniqueMultilocation = {
V1: {
V2: {
parents: 1,
interior: {
X1: {Parachain: UNIQUE_CHAIN},
Expand Down Expand Up @@ -1215,7 +1215,7 @@ describeXCM('[XCM] Integration test: Exchanging UNQ with Moonbeam', () => {
const [targetAccount] = await helper.arrange.createAccounts([0n], alice);

const uniqueMultilocation = {
V1: {
V2: {
parents: 1,
interior: {
X1: {
Expand Down Expand Up @@ -1344,7 +1344,7 @@ describeXCM('[XCM] Integration test: Exchanging tokens with Astar', () => {

console.log('2. Register asset location on Astar');
const assetLocation = {
V1: {
V2: {
parents: 1,
interior: {
X1: {
Expand Down

0 comments on commit 18191fc

Please sign in to comment.