difftreelog
fix(tests) use V2 in XCM structs
in: master
3 files changed
tests/src/xcm/xcmOpal.test.tsdiffbeforeafterboth808081 await usingPlaygrounds(async (helper) => {81 await usingPlaygrounds(async (helper) => {82 const location = {82 const location = {83 V1: {83 V2: {84 parents: 1,84 parents: 1,85 interior: {X3: [85 interior: {X3: [86 {86 {111 // Providing the relay currency to the unique sender account111 // Providing the relay currency to the unique sender account112 await usingRelayPlaygrounds(relayUrl, async (helper) => {112 await usingRelayPlaygrounds(relayUrl, async (helper) => {113 const destination = {113 const destination = {114 V1: {114 V2: {115 parents: 0,115 parents: 0,116 interior: {X1: {116 interior: {X1: {117 Parachain: UNIQUE_CHAIN,117 Parachain: UNIQUE_CHAIN,120 }};120 }};121121122 const beneficiary = {122 const beneficiary = {123 V1: {123 V2: {124 parents: 0,124 parents: 0,125 interior: {X1: {125 interior: {X1: {126 AccountId32: {126 AccountId32: {132 };132 };133133134 const assets = {134 const assets = {135 V1: [135 V2: [136 {136 {137 id: {137 id: {138 Concrete: {138 Concrete: {157 itSub('Should connect and send USDT from Westmint to Opal', async ({helper}) => {157 itSub('Should connect and send USDT from Westmint to Opal', async ({helper}) => {158 await usingWestmintPlaygrounds(westmintUrl, async (helper) => {158 await usingWestmintPlaygrounds(westmintUrl, async (helper) => {159 const dest = {159 const dest = {160 V1: {160 V2: {161 parents: 1,161 parents: 1,162 interior: {X1: {162 interior: {X1: {163 Parachain: UNIQUE_CHAIN,163 Parachain: UNIQUE_CHAIN,166 }};166 }};167167168 const beneficiary = {168 const beneficiary = {169 V1: {169 V2: {170 parents: 0,170 parents: 0,171 interior: {X1: {171 interior: {X1: {172 AccountId32: {172 AccountId32: {178 };178 };179179180 const assets = {180 const assets = {181 V1: [181 V2: [182 {182 {183 id: {183 id: {184 Concrete: {184 Concrete: {243243244 itSub('Should connect and send USDT from Unique to Statemine back', async ({helper}) => {244 itSub('Should connect and send USDT from Unique to Statemine back', async ({helper}) => {245 const destination = {245 const destination = {246 V1: {246 V2: {247 parents: 1,247 parents: 1,248 interior: {X2: [248 interior: {X2: [249 {249 {301 // Providing the relay currency to the unique sender account301 // Providing the relay currency to the unique sender account302 await usingRelayPlaygrounds(relayUrl, async (helper) => {302 await usingRelayPlaygrounds(relayUrl, async (helper) => {303 const destination = {303 const destination = {304 V1: {304 V2: {305 parents: 0,305 parents: 0,306 interior: {X1: {306 interior: {X1: {307 Parachain: UNIQUE_CHAIN,307 Parachain: UNIQUE_CHAIN,310 }};310 }};311311312 const beneficiary = {312 const beneficiary = {313 V1: {313 V2: {314 parents: 0,314 parents: 0,315 interior: {X1: {315 interior: {X1: {316 AccountId32: {316 AccountId32: {322 };322 };323323324 const assets = {324 const assets = {325 V1: [325 V2: [326 {326 {327 id: {327 id: {328 Concrete: {328 Concrete: {368 });368 });369369370 const destination = {370 const destination = {371 V1: {371 V2: {372 parents: 1,372 parents: 1,373 interior: {373 interior: {374 X1:{374 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.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: [