difftreelog
fix(tests) use V2 in XCM structs
in: master
3 files changed
tests/src/xcm/xcmOpal.test.tsdiffbeforeafterboth--- a/tests/src/xcm/xcmOpal.test.ts
+++ b/tests/src/xcm/xcmOpal.test.ts
@@ -80,7 +80,7 @@
await usingPlaygrounds(async (helper) => {
const location = {
- V1: {
+ V2: {
parents: 1,
interior: {X3: [
{
@@ -111,7 +111,7 @@
// Providing the relay currency to the unique sender account
await usingRelayPlaygrounds(relayUrl, async (helper) => {
const destination = {
- V1: {
+ V2: {
parents: 0,
interior: {X1: {
Parachain: UNIQUE_CHAIN,
@@ -120,7 +120,7 @@
}};
const beneficiary = {
- V1: {
+ V2: {
parents: 0,
interior: {X1: {
AccountId32: {
@@ -132,7 +132,7 @@
};
const assets = {
- V1: [
+ V2: [
{
id: {
Concrete: {
@@ -157,7 +157,7 @@
itSub('Should connect and send USDT from Westmint to Opal', async ({helper}) => {
await usingWestmintPlaygrounds(westmintUrl, async (helper) => {
const dest = {
- V1: {
+ V2: {
parents: 1,
interior: {X1: {
Parachain: UNIQUE_CHAIN,
@@ -166,7 +166,7 @@
}};
const beneficiary = {
- V1: {
+ V2: {
parents: 0,
interior: {X1: {
AccountId32: {
@@ -178,7 +178,7 @@
};
const assets = {
- V1: [
+ V2: [
{
id: {
Concrete: {
@@ -243,7 +243,7 @@
itSub('Should connect and send USDT from Unique to Statemine back', async ({helper}) => {
const destination = {
- V1: {
+ V2: {
parents: 1,
interior: {X2: [
{
@@ -301,7 +301,7 @@
// Providing the relay currency to the unique sender account
await usingRelayPlaygrounds(relayUrl, async (helper) => {
const destination = {
- V1: {
+ V2: {
parents: 0,
interior: {X1: {
Parachain: UNIQUE_CHAIN,
@@ -310,7 +310,7 @@
}};
const beneficiary = {
- V1: {
+ V2: {
parents: 0,
interior: {X1: {
AccountId32: {
@@ -322,7 +322,7 @@
};
const assets = {
- V1: [
+ V2: [
{
id: {
Concrete: {
@@ -368,7 +368,7 @@
});
const destination = {
- V1: {
+ V2: {
parents: 1,
interior: {
X1:{
tests/src/xcm/xcmQuartz.test.tsdiffbeforeafterboth--- a/tests/src/xcm/xcmQuartz.test.ts
+++ b/tests/src/xcm/xcmQuartz.test.ts
@@ -113,7 +113,7 @@
await usingPlaygrounds(async (helper) => {
const location = {
- V1: {
+ V2: {
parents: 1,
interior: {X3: [
{
@@ -145,7 +145,7 @@
// (fee for USDT XCM are paid in relay tokens)
await usingRelayPlaygrounds(relayUrl, async (helper) => {
const destination = {
- V1: {
+ V2: {
parents: 0,
interior: {X1: {
Parachain: QUARTZ_CHAIN,
@@ -154,7 +154,7 @@
}};
const beneficiary = {
- V1: {
+ V2: {
parents: 0,
interior: {X1: {
AccountId32: {
@@ -166,7 +166,7 @@
};
const assets = {
- V1: [
+ V2: [
{
id: {
Concrete: {
@@ -191,7 +191,7 @@
itSub('Should connect and send USDT from Statemine to Quartz', async ({helper}) => {
await usingStateminePlaygrounds(statemineUrl, async (helper) => {
const dest = {
- V1: {
+ V2: {
parents: 1,
interior: {X1: {
Parachain: QUARTZ_CHAIN,
@@ -200,7 +200,7 @@
}};
const beneficiary = {
- V1: {
+ V2: {
parents: 0,
interior: {X1: {
AccountId32: {
@@ -212,7 +212,7 @@
};
const assets = {
- V1: [
+ V2: [
{
id: {
Concrete: {
@@ -276,7 +276,7 @@
itSub('Should connect and send USDT from Quartz to Statemine back', async ({helper}) => {
const destination = {
- V1: {
+ V2: {
parents: 1,
interior: {X2: [
{
@@ -332,7 +332,7 @@
await usingRelayPlaygrounds(relayUrl, async (helper) => {
const destination = {
- V1: {
+ V2: {
parents: 0,
interior: {X1: {
Parachain: QUARTZ_CHAIN,
@@ -341,7 +341,7 @@
}};
const beneficiary = {
- V1: {
+ V2: {
parents: 0,
interior: {X1: {
AccountId32: {
@@ -353,7 +353,7 @@
};
const assets = {
- V1: [
+ V2: [
{
id: {
Concrete: {
@@ -401,7 +401,7 @@
});
const destination = {
- V1: {
+ V2: {
parents: 1,
interior: {
X1:{
@@ -470,7 +470,7 @@
await usingKaruraPlaygrounds(karuraUrl, async (helper) => {
const destination = {
- V1: {
+ V2: {
parents: 1,
interior: {
X1: {
@@ -501,7 +501,7 @@
itSub('Should connect and send QTZ to Karura', async ({helper}) => {
const destination = {
- V1: {
+ V2: {
parents: 1,
interior: {
X1: {
@@ -512,7 +512,7 @@
};
const beneficiary = {
- V1: {
+ V2: {
parents: 0,
interior: {
X1: {
@@ -526,7 +526,7 @@
};
const assets = {
- V1: [
+ V2: [
{
id: {
Concrete: {
@@ -580,7 +580,7 @@
itSub('Should connect to Karura and send QTZ back', async ({helper}) => {
await usingKaruraPlaygrounds(karuraUrl, async (helper) => {
const destination = {
- V1: {
+ V2: {
parents: 1,
interior: {
X2: [
@@ -644,7 +644,7 @@
itSub('Quartz rejects KAR tokens from Karura', async ({helper}) => {
await usingKaruraPlaygrounds(karuraUrl, async (helper) => {
const destination = {
- V1: {
+ V2: {
parents: 1,
interior: {
X2: [
@@ -865,7 +865,7 @@
NativeAssetId: 'Here',
};
const dest = {
- V1: {
+ V2: {
parents: 1,
interior: {
X2: [
@@ -905,7 +905,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,
@@ -920,7 +920,7 @@
},
};
const destination = {
- V1: {
+ V2: {
parents: 1,
interior: {
X2: [
tests/src/xcm/xcmUnique.test.tsdiffbeforeafterboth113113114 await usingPlaygrounds(async (helper) => {114 await usingPlaygrounds(async (helper) => {115 const location = {115 const location = {116 V1: {116 V2: {117 parents: 1,117 parents: 1,118 interior: {X3: [118 interior: {X3: [119 {119 {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 V1: {148 V2: {149 parents: 0,149 parents: 0,150 interior: {X1: {150 interior: {X1: {151 Parachain: UNIQUE_CHAIN,151 Parachain: UNIQUE_CHAIN,154 }};154 }};155155156 const beneficiary = {156 const beneficiary = {157 V1: {157 V2: {158 parents: 0,158 parents: 0,159 interior: {X1: {159 interior: {X1: {160 AccountId32: {160 AccountId32: {166 };166 };167167168 const assets = {168 const assets = {169 V1: [169 V2: [170 {170 {171 id: {171 id: {172 Concrete: {172 Concrete: {191 itSub('Should connect and send USDT from Statemint to Unique', async ({helper}) => {191 itSub('Should connect and send USDT from Statemint to Unique', async ({helper}) => {192 await usingStatemintPlaygrounds(statemintUrl, async (helper) => {192 await usingStatemintPlaygrounds(statemintUrl, async (helper) => {193 const dest = {193 const dest = {194 V1: {194 V2: {195 parents: 1,195 parents: 1,196 interior: {X1: {196 interior: {X1: {197 Parachain: UNIQUE_CHAIN,197 Parachain: UNIQUE_CHAIN,200 }};200 }};201201202 const beneficiary = {202 const beneficiary = {203 V1: {203 V2: {204 parents: 0,204 parents: 0,205 interior: {X1: {205 interior: {X1: {206 AccountId32: {206 AccountId32: {212 };212 };213213214 const assets = {214 const assets = {215 V1: [215 V2: [216 {216 {217 id: {217 id: {218 Concrete: {218 Concrete: {276276277 itSub('Should connect and send USDT from Unique to Statemint back', async ({helper}) => {277 itSub('Should connect and send USDT from Unique to Statemint back', async ({helper}) => {278 const destination = {278 const destination = {279 V1: {279 V2: {280 parents: 1,280 parents: 1,281 interior: {X2: [281 interior: {X2: [282 {282 {332332333 await usingRelayPlaygrounds(relayUrl, async (helper) => {333 await usingRelayPlaygrounds(relayUrl, async (helper) => {334 const destination = {334 const destination = {335 V1: {335 V2: {336 parents: 0,336 parents: 0,337 interior: {X1: {337 interior: {X1: {338 Parachain: UNIQUE_CHAIN,338 Parachain: UNIQUE_CHAIN,341 }};341 }};342342343 const beneficiary = {343 const beneficiary = {344 V1: {344 V2: {345 parents: 0,345 parents: 0,346 interior: {X1: {346 interior: {X1: {347 AccountId32: {347 AccountId32: {353 };353 };354354355 const assets = {355 const assets = {356 V1: [356 V2: [357 {357 {358 id: {358 id: {359 Concrete: {359 Concrete: {401 });401 });402402403 const destination = {403 const destination = {404 V1: {404 V2: {405 parents: 1,405 parents: 1,406 interior: {406 interior: {407 X1:{407 X1:{470470471 await usingAcalaPlaygrounds(acalaUrl, async (helper) => {471 await usingAcalaPlaygrounds(acalaUrl, async (helper) => {472 const destination = {472 const destination = {473 V1: {473 V2: {474 parents: 1,474 parents: 1,475 interior: {475 interior: {476 X1: {476 X1: {502 itSub('Should connect and send UNQ to Acala', async ({helper}) => {502 itSub('Should connect and send UNQ to Acala', async ({helper}) => {503503504 const destination = {504 const destination = {505 V1: {505 V2: {506 parents: 1,506 parents: 1,507 interior: {507 interior: {508 X1: {508 X1: {513 };513 };514514515 const beneficiary = {515 const beneficiary = {516 V1: {516 V2: {517 parents: 0,517 parents: 0,518 interior: {518 interior: {519 X1: {519 X1: {527 };527 };528528529 const assets = {529 const assets = {530 V1: [530 V2: [531 {531 {532 id: {532 id: {533 Concrete: {533 Concrete: {581 itSub('Should connect to Acala and send UNQ back', async ({helper}) => {581 itSub('Should connect to Acala and send UNQ back', async ({helper}) => {582 await usingAcalaPlaygrounds(acalaUrl, async (helper) => {582 await usingAcalaPlaygrounds(acalaUrl, async (helper) => {583 const destination = {583 const destination = {584 V1: {584 V2: {585 parents: 1,585 parents: 1,586 interior: {586 interior: {587 X2: [587 X2: [645 itSub('Unique rejects ACA tokens from Acala', async ({helper}) => {645 itSub('Unique rejects ACA tokens from Acala', async ({helper}) => {646 await usingAcalaPlaygrounds(acalaUrl, async (helper) => {646 await usingAcalaPlaygrounds(acalaUrl, async (helper) => {647 const destination = {647 const destination = {648 V1: {648 V2: {649 parents: 1,649 parents: 1,650 interior: {650 interior: {651 X2: [651 X2: [866 NativeAssetId: 'Here',866 NativeAssetId: 'Here',867 };867 };868 const dest = {868 const dest = {869 V1: {869 V2: {870 parents: 1,870 parents: 1,871 interior: {871 interior: {872 X2: [872 X2: [907 itSub('Should connect to Moonbeam and send UNQ back', async ({helper}) => {907 itSub('Should connect to Moonbeam and send UNQ back', async ({helper}) => {908 await usingMoonbeamPlaygrounds(moonbeamUrl, async (helper) => {908 await usingMoonbeamPlaygrounds(moonbeamUrl, async (helper) => {909 const asset = {909 const asset = {910 V1: {910 V2: {911 id: {911 id: {912 Concrete: {912 Concrete: {913 parents: 1,913 parents: 1,922 },922 },923 };923 };924 const destination = {924 const destination = {925 V1: {925 V2: {926 parents: 1,926 parents: 1,927 interior: {927 interior: {928 X2: [928 X2: [