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.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: QUARTZ_CHAIN,151 Parachain: QUARTZ_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 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 V1: {194 V2: {195 parents: 1,195 parents: 1,196 interior: {X1: {196 interior: {X1: {197 Parachain: QUARTZ_CHAIN,197 Parachain: QUARTZ_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 Quartz to Statemine back', async ({helper}) => {277 itSub('Should connect and send USDT from Quartz to Statemine 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: QUARTZ_CHAIN,338 Parachain: QUARTZ_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 usingKaruraPlaygrounds(karuraUrl, async (helper) => {471 await usingKaruraPlaygrounds(karuraUrl, 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: {501501502 itSub('Should connect and send QTZ to Karura', async ({helper}) => {502 itSub('Should connect and send QTZ to Karura', async ({helper}) => {503 const destination = {503 const destination = {504 V1: {504 V2: {505 parents: 1,505 parents: 1,506 interior: {506 interior: {507 X1: {507 X1: {512 };512 };513513514 const beneficiary = {514 const beneficiary = {515 V1: {515 V2: {516 parents: 0,516 parents: 0,517 interior: {517 interior: {518 X1: {518 X1: {526 };526 };527527528 const assets = {528 const assets = {529 V1: [529 V2: [530 {530 {531 id: {531 id: {532 Concrete: {532 Concrete: {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 V1: {583 V2: {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 V1: {647 V2: {648 parents: 1,648 parents: 1,649 interior: {649 interior: {650 X2: [650 X2: [865 NativeAssetId: 'Here',865 NativeAssetId: 'Here',866 };866 };867 const dest = {867 const dest = {868 V1: {868 V2: {869 parents: 1,869 parents: 1,870 interior: {870 interior: {871 X2: [871 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 V1: {908 V2: {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 V1: {923 V2: {924 parents: 1,924 parents: 1,925 interior: {925 interior: {926 X2: [926 X2: [tests/src/xcm/xcmUnique.test.tsdiffbeforeafterboth--- a/tests/src/xcm/xcmUnique.test.ts
+++ b/tests/src/xcm/xcmUnique.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: UNIQUE_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 Statemint to Unique', async ({helper}) => {
await usingStatemintPlaygrounds(statemintUrl, async (helper) => {
const dest = {
- V1: {
+ V2: {
parents: 1,
interior: {X1: {
Parachain: UNIQUE_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 Unique to Statemint 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: UNIQUE_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 usingAcalaPlaygrounds(acalaUrl, async (helper) => {
const destination = {
- V1: {
+ V2: {
parents: 1,
interior: {
X1: {
@@ -502,7 +502,7 @@
itSub('Should connect and send UNQ to Acala', async ({helper}) => {
const destination = {
- V1: {
+ V2: {
parents: 1,
interior: {
X1: {
@@ -513,7 +513,7 @@
};
const beneficiary = {
- V1: {
+ V2: {
parents: 0,
interior: {
X1: {
@@ -527,7 +527,7 @@
};
const assets = {
- V1: [
+ V2: [
{
id: {
Concrete: {
@@ -581,7 +581,7 @@
itSub('Should connect to Acala and send UNQ back', async ({helper}) => {
await usingAcalaPlaygrounds(acalaUrl, async (helper) => {
const destination = {
- V1: {
+ V2: {
parents: 1,
interior: {
X2: [
@@ -645,7 +645,7 @@
itSub('Unique rejects ACA tokens from Acala', async ({helper}) => {
await usingAcalaPlaygrounds(acalaUrl, async (helper) => {
const destination = {
- V1: {
+ V2: {
parents: 1,
interior: {
X2: [
@@ -866,7 +866,7 @@
NativeAssetId: 'Here',
};
const dest = {
- V1: {
+ V2: {
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 = {
- V1: {
+ V2: {
id: {
Concrete: {
parents: 1,
@@ -922,7 +922,7 @@
},
};
const destination = {
- V1: {
+ V2: {
parents: 1,
interior: {
X2: [