From badf0e0041f38bac8eaa7a9aecfc003171cb076c Mon Sep 17 00:00:00 2001 From: Bryan Chen Date: Wed, 25 Jun 2025 09:16:54 +1200 Subject: [PATCH] fix system chains xcm tests --- ...ssetHubKusama.bridgeHubKusama.test.ts.snap | 172 ++++++++++++++++- ...assetHubKusama.coretimeKusama.test.ts.snap | 170 ++++++++++++++++- .../assetHubKusama.peopleKusama.test.ts.snap | 172 ++++++++++++++++- .../assetHubKusama.bridgeHubKusama.test.ts | 12 +- .../src/assetHubKusama.coretimeKusama.test.ts | 12 +- .../src/assetHubKusama.peopleKusama.test.ts | 12 +- ...HubPolkadot.bridgeHubPolkadot.test.ts.snap | 170 ++++++++++++++++- ...bPolkadot.collectivesPolkadot.test.ts.snap | 168 +++++++++++++++- ...tHubPolkadot.coretimePolkadot.test.ts.snap | 179 ++++++++++++++---- ...setHubPolkadot.peoplePolkadot.test.ts.snap | 166 +++++++++++++++- ...assetHubPolkadot.bridgeHubPolkadot.test.ts | 12 +- ...setHubPolkadot.collectivesPolkadot.test.ts | 12 +- .../assetHubPolkadot.coretimePolkadot.test.ts | 12 +- .../assetHubPolkadot.peoplePolkadot.test.ts | 12 +- 14 files changed, 1159 insertions(+), 122 deletions(-) diff --git a/packages/kusama/src/__snapshots__/assetHubKusama.bridgeHubKusama.test.ts.snap b/packages/kusama/src/__snapshots__/assetHubKusama.bridgeHubKusama.test.ts.snap index 921c5531e..d59632024 100644 --- a/packages/kusama/src/__snapshots__/assetHubKusama.bridgeHubKusama.test.ts.snap +++ b/packages/kusama/src/__snapshots__/assetHubKusama.bridgeHubKusama.test.ts.snap @@ -30,7 +30,85 @@ exports[`assetHubKusama & bridgeHubKusama > assetHubKusama transfer KSM to bridg } `; -exports[`assetHubKusama & bridgeHubKusama > assetHubKusama transfer KSM to bridgeHubKusama > to chain dmp events 1`] = ` +exports[`assetHubKusama & bridgeHubKusama > assetHubKusama transfer KSM to bridgeHubKusama > from chain hrmp messages 1`] = ` +[ + { + "data": [ + "ConcatenatedVersionedXcm", + { + "v3": [ + { + "receiveTeleportedAsset": [ + { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "concrete": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + }, + ], + }, + { + "clearOrigin": null, + }, + { + "buyExecution": { + "fees": { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "concrete": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + }, + "weightLimit": { + "unlimited": null, + }, + }, + }, + { + "depositAsset": { + "assets": { + "wild": { + "allCounted": 1, + }, + }, + "beneficiary": { + "interior": { + "x1": { + "accountId32": { + "id": "0x5e639b43e0052c47447dac87d6fd2b6ec50bdd4d0f614e4299c665249bbd09d9", + "network": null, + }, + }, + }, + "parents": 0, + }, + }, + }, + { + "setTopic": "(redacted)", + }, + ], + }, + ], + "recipient": 1002, + }, +] +`; + +exports[`assetHubKusama & bridgeHubKusama > assetHubKusama transfer KSM to bridgeHubKusama > to chain xcm events 1`] = ` [ { "data": { @@ -57,8 +135,8 @@ exports[`assetHubKusama & bridgeHubKusama > assetHubKusama transfer KSM to bridg "outcome": { "Complete": { "used": { - "proofSize": "(rounded 3590)", - "refTime": "(rounded 189000000)", + "proofSize": "(rounded 3600)", + "refTime": "(rounded 190000000)", }, }, }, @@ -71,7 +149,7 @@ exports[`assetHubKusama & bridgeHubKusama > assetHubKusama transfer KSM to bridg "fees": [ { "fun": { - "Fungible": "(rounded 1030000000)", + "Fungible": "(rounded 1000000000)", }, "id": { "interior": "Here", @@ -211,9 +289,85 @@ exports[`assetHubKusama & bridgeHubKusama > bridgeHubKusama transfer KSM to asse } `; -exports[`assetHubKusama & bridgeHubKusama > bridgeHubKusama transfer KSM to assetHubKusama > from chain ump messages 1`] = `[]`; +exports[`assetHubKusama & bridgeHubKusama > bridgeHubKusama transfer KSM to assetHubKusama > from chain hrmp messages 1`] = ` +[ + { + "data": [ + "ConcatenatedVersionedXcm", + { + "v3": [ + { + "receiveTeleportedAsset": [ + { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "concrete": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + }, + ], + }, + { + "clearOrigin": null, + }, + { + "buyExecution": { + "fees": { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "concrete": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + }, + "weightLimit": { + "unlimited": null, + }, + }, + }, + { + "depositAsset": { + "assets": { + "wild": { + "allCounted": 1, + }, + }, + "beneficiary": { + "interior": { + "x1": { + "accountId32": { + "id": "0x5e639b43e0052c47447dac87d6fd2b6ec50bdd4d0f614e4299c665249bbd09d9", + "network": null, + }, + }, + }, + "parents": 0, + }, + }, + }, + { + "setTopic": "(redacted)", + }, + ], + }, + ], + "recipient": 1000, + }, +] +`; -exports[`assetHubKusama & bridgeHubKusama > bridgeHubKusama transfer KSM to assetHubKusama > to chain ump events 1`] = ` +exports[`assetHubKusama & bridgeHubKusama > bridgeHubKusama transfer KSM to assetHubKusama > to chain xcm events 1`] = ` [ { "data": { @@ -240,8 +394,8 @@ exports[`assetHubKusama & bridgeHubKusama > bridgeHubKusama transfer KSM to asse "outcome": { "Complete": { "used": { - "proofSize": "(rounded 3590)", - "refTime": "(rounded 168000000)", + "proofSize": "(rounded 3600)", + "refTime": "(rounded 170000000)", }, }, }, @@ -254,7 +408,7 @@ exports[`assetHubKusama & bridgeHubKusama > bridgeHubKusama transfer KSM to asse "fees": [ { "fun": { - "Fungible": "(rounded 1030000000)", + "Fungible": "(rounded 1000000000)", }, "id": { "interior": "Here", diff --git a/packages/kusama/src/__snapshots__/assetHubKusama.coretimeKusama.test.ts.snap b/packages/kusama/src/__snapshots__/assetHubKusama.coretimeKusama.test.ts.snap index 7442382b0..5bd66931a 100644 --- a/packages/kusama/src/__snapshots__/assetHubKusama.coretimeKusama.test.ts.snap +++ b/packages/kusama/src/__snapshots__/assetHubKusama.coretimeKusama.test.ts.snap @@ -30,7 +30,83 @@ exports[`assetHubKusama & coretimeKusama > assetHubKusama transfer KSM to coreti } `; -exports[`assetHubKusama & coretimeKusama > assetHubKusama transfer KSM to coretimeKusama > to chain dmp events 1`] = ` +exports[`assetHubKusama & coretimeKusama > assetHubKusama transfer KSM to coretimeKusama > from chain hrmp messages 1`] = ` +[ + { + "data": [ + "ConcatenatedVersionedXcm", + { + "v5": [ + { + "receiveTeleportedAsset": [ + { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + ], + }, + { + "clearOrigin": null, + }, + { + "buyExecution": { + "fees": { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + "weightLimit": { + "unlimited": null, + }, + }, + }, + { + "depositAsset": { + "assets": { + "wild": { + "allCounted": 1, + }, + }, + "beneficiary": { + "interior": { + "x1": [ + { + "accountId32": { + "id": "0x5e639b43e0052c47447dac87d6fd2b6ec50bdd4d0f614e4299c665249bbd09d9", + "network": null, + }, + }, + ], + }, + "parents": 0, + }, + }, + }, + { + "setTopic": "(redacted)", + }, + ], + }, + ], + "recipient": 1005, + }, +] +`; + +exports[`assetHubKusama & coretimeKusama > assetHubKusama transfer KSM to coretimeKusama > to chain xcm events 1`] = ` [ { "data": { @@ -57,8 +133,8 @@ exports[`assetHubKusama & coretimeKusama > assetHubKusama transfer KSM to coreti "outcome": { "Complete": { "used": { - "proofSize": "(rounded 3590)", - "refTime": "(rounded 189000000)", + "proofSize": "(rounded 3600)", + "refTime": "(rounded 190000000)", }, }, }, @@ -71,7 +147,7 @@ exports[`assetHubKusama & coretimeKusama > assetHubKusama transfer KSM to coreti "fees": [ { "fun": { - "Fungible": "(rounded 1030000000)", + "Fungible": "(rounded 1000000000)", }, "id": { "interior": "Here", @@ -102,7 +178,7 @@ exports[`assetHubKusama & coretimeKusama > assetHubKusama transfer KSM to coreti "interior": { "X1": [ { - "Parachain": "(rounded 1010)", + "Parachain": "(rounded 1000)", }, ], }, @@ -211,9 +287,83 @@ exports[`assetHubKusama & coretimeKusama > coretimeKusama transfer KSM to assetH } `; -exports[`assetHubKusama & coretimeKusama > coretimeKusama transfer KSM to assetHubKusama > from chain ump messages 1`] = `[]`; +exports[`assetHubKusama & coretimeKusama > coretimeKusama transfer KSM to assetHubKusama > from chain hrmp messages 1`] = ` +[ + { + "data": [ + "ConcatenatedVersionedXcm", + { + "v5": [ + { + "receiveTeleportedAsset": [ + { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + ], + }, + { + "clearOrigin": null, + }, + { + "buyExecution": { + "fees": { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + "weightLimit": { + "unlimited": null, + }, + }, + }, + { + "depositAsset": { + "assets": { + "wild": { + "allCounted": 1, + }, + }, + "beneficiary": { + "interior": { + "x1": [ + { + "accountId32": { + "id": "0x5e639b43e0052c47447dac87d6fd2b6ec50bdd4d0f614e4299c665249bbd09d9", + "network": null, + }, + }, + ], + }, + "parents": 0, + }, + }, + }, + { + "setTopic": "(redacted)", + }, + ], + }, + ], + "recipient": 1000, + }, +] +`; -exports[`assetHubKusama & coretimeKusama > coretimeKusama transfer KSM to assetHubKusama > to chain ump events 1`] = ` +exports[`assetHubKusama & coretimeKusama > coretimeKusama transfer KSM to assetHubKusama > to chain xcm events 1`] = ` [ { "data": { @@ -240,8 +390,8 @@ exports[`assetHubKusama & coretimeKusama > coretimeKusama transfer KSM to assetH "outcome": { "Complete": { "used": { - "proofSize": "(rounded 3590)", - "refTime": "(rounded 164000000)", + "proofSize": "(rounded 3600)", + "refTime": "(rounded 160000000)", }, }, }, @@ -254,7 +404,7 @@ exports[`assetHubKusama & coretimeKusama > coretimeKusama transfer KSM to assetH "fees": [ { "fun": { - "Fungible": "(rounded 1030000000)", + "Fungible": "(rounded 1000000000)", }, "id": { "interior": "Here", diff --git a/packages/kusama/src/__snapshots__/assetHubKusama.peopleKusama.test.ts.snap b/packages/kusama/src/__snapshots__/assetHubKusama.peopleKusama.test.ts.snap index 8be13d6de..84214077a 100644 --- a/packages/kusama/src/__snapshots__/assetHubKusama.peopleKusama.test.ts.snap +++ b/packages/kusama/src/__snapshots__/assetHubKusama.peopleKusama.test.ts.snap @@ -30,7 +30,85 @@ exports[`assetHubKusama & peopleKusama > assetHubKusama transfer KSM to peopleKu } `; -exports[`assetHubKusama & peopleKusama > assetHubKusama transfer KSM to peopleKusama > to chain dmp events 1`] = ` +exports[`assetHubKusama & peopleKusama > assetHubKusama transfer KSM to peopleKusama > from chain hrmp messages 1`] = ` +[ + { + "data": [ + "ConcatenatedVersionedXcm", + { + "v3": [ + { + "receiveTeleportedAsset": [ + { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "concrete": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + }, + ], + }, + { + "clearOrigin": null, + }, + { + "buyExecution": { + "fees": { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "concrete": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + }, + "weightLimit": { + "unlimited": null, + }, + }, + }, + { + "depositAsset": { + "assets": { + "wild": { + "allCounted": 1, + }, + }, + "beneficiary": { + "interior": { + "x1": { + "accountId32": { + "id": "0x5e639b43e0052c47447dac87d6fd2b6ec50bdd4d0f614e4299c665249bbd09d9", + "network": null, + }, + }, + }, + "parents": 0, + }, + }, + }, + { + "setTopic": "(redacted)", + }, + ], + }, + ], + "recipient": 1004, + }, +] +`; + +exports[`assetHubKusama & peopleKusama > assetHubKusama transfer KSM to peopleKusama > to chain xcm events 1`] = ` [ { "data": { @@ -57,8 +135,8 @@ exports[`assetHubKusama & peopleKusama > assetHubKusama transfer KSM to peopleKu "outcome": { "Complete": { "used": { - "proofSize": "(rounded 3590)", - "refTime": "(rounded 189000000)", + "proofSize": "(rounded 3600)", + "refTime": "(rounded 190000000)", }, }, }, @@ -71,7 +149,7 @@ exports[`assetHubKusama & peopleKusama > assetHubKusama transfer KSM to peopleKu "fees": [ { "fun": { - "Fungible": "(rounded 1030000000)", + "Fungible": "(rounded 1000000000)", }, "id": { "interior": "Here", @@ -211,9 +289,85 @@ exports[`assetHubKusama & peopleKusama > peopleKusama transfer KSM to assetHubKu } `; -exports[`assetHubKusama & peopleKusama > peopleKusama transfer KSM to assetHubKusama > from chain ump messages 1`] = `[]`; +exports[`assetHubKusama & peopleKusama > peopleKusama transfer KSM to assetHubKusama > from chain hrmp messages 1`] = ` +[ + { + "data": [ + "ConcatenatedVersionedXcm", + { + "v3": [ + { + "receiveTeleportedAsset": [ + { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "concrete": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + }, + ], + }, + { + "clearOrigin": null, + }, + { + "buyExecution": { + "fees": { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "concrete": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + }, + "weightLimit": { + "unlimited": null, + }, + }, + }, + { + "depositAsset": { + "assets": { + "wild": { + "allCounted": 1, + }, + }, + "beneficiary": { + "interior": { + "x1": { + "accountId32": { + "id": "0x5e639b43e0052c47447dac87d6fd2b6ec50bdd4d0f614e4299c665249bbd09d9", + "network": null, + }, + }, + }, + "parents": 0, + }, + }, + }, + { + "setTopic": "(redacted)", + }, + ], + }, + ], + "recipient": 1000, + }, +] +`; -exports[`assetHubKusama & peopleKusama > peopleKusama transfer KSM to assetHubKusama > to chain ump events 1`] = ` +exports[`assetHubKusama & peopleKusama > peopleKusama transfer KSM to assetHubKusama > to chain xcm events 1`] = ` [ { "data": { @@ -240,8 +394,8 @@ exports[`assetHubKusama & peopleKusama > peopleKusama transfer KSM to assetHubKu "outcome": { "Complete": { "used": { - "proofSize": "(rounded 3590)", - "refTime": "(rounded 167000000)", + "proofSize": "(rounded 3600)", + "refTime": "(rounded 170000000)", }, }, }, @@ -254,7 +408,7 @@ exports[`assetHubKusama & peopleKusama > peopleKusama transfer KSM to assetHubKu "fees": [ { "fun": { - "Fungible": "(rounded 1030000000)", + "Fungible": "(rounded 1000000000)", }, "id": { "interior": "Here", diff --git a/packages/kusama/src/assetHubKusama.bridgeHubKusama.test.ts b/packages/kusama/src/assetHubKusama.bridgeHubKusama.test.ts index 0246a6d6d..0cb24e7a3 100644 --- a/packages/kusama/src/assetHubKusama.bridgeHubKusama.test.ts +++ b/packages/kusama/src/assetHubKusama.bridgeHubKusama.test.ts @@ -4,7 +4,7 @@ import { defaultAccounts } from '@e2e-test/networks' import { assetHubKusama, bridgeHubKusama } from '@e2e-test/networks/chains' import { setupNetworks } from '@e2e-test/shared' import { query, tx } from '@e2e-test/shared/api' -import { runXcmPalletDown, runXcmPalletUp } from '@e2e-test/shared/xcm' +import { runXcmPalletHorizontal } from '@e2e-test/shared/xcm' describe('assetHubKusama & bridgeHubKusama', async () => { const [assetHubKusamaClient, bridgeHubKusamaClient] = await setupNetworks(assetHubKusama, bridgeHubKusama) @@ -12,21 +12,23 @@ describe('assetHubKusama & bridgeHubKusama', async () => { const bridgeHubKSM = bridgeHubKusama.custom.ksm const assetHubKSM = assetHubKusama.custom.ksm - runXcmPalletDown('assetHubKusama transfer KSM to bridgeHubKusama', async () => { + runXcmPalletHorizontal('assetHubKusama transfer KSM to bridgeHubKusama', async () => { return { fromChain: assetHubKusamaClient, toChain: bridgeHubKusamaClient, - balance: query.balances, + fromBalance: query.balances, + toBalance: query.balances, toAccount: defaultAccounts.dave, tx: tx.xcmPallet.limitedTeleportAssets(assetHubKSM, 1e12, tx.xcmPallet.parachainV3(1, bridgeHubKusama.paraId!)), } }) - runXcmPalletUp('bridgeHubKusama transfer KSM to assetHubKusama', async () => { + runXcmPalletHorizontal('bridgeHubKusama transfer KSM to assetHubKusama', async () => { return { fromChain: bridgeHubKusamaClient, toChain: assetHubKusamaClient, - balance: query.balances, + fromBalance: query.balances, + toBalance: query.balances, toAccount: defaultAccounts.dave, tx: tx.xcmPallet.limitedTeleportAssets( bridgeHubKSM, diff --git a/packages/kusama/src/assetHubKusama.coretimeKusama.test.ts b/packages/kusama/src/assetHubKusama.coretimeKusama.test.ts index b27fed4e3..1e247c4e7 100644 --- a/packages/kusama/src/assetHubKusama.coretimeKusama.test.ts +++ b/packages/kusama/src/assetHubKusama.coretimeKusama.test.ts @@ -4,7 +4,7 @@ import { defaultAccounts } from '@e2e-test/networks' import { assetHubKusama, coretimeKusama } from '@e2e-test/networks/chains' import { setupNetworks } from '@e2e-test/shared' import { query, tx } from '@e2e-test/shared/api' -import { runXcmPalletDown, runXcmPalletUp } from '@e2e-test/shared/xcm' +import { runXcmPalletHorizontal } from '@e2e-test/shared/xcm' describe('assetHubKusama & coretimeKusama', async () => { const [assetHubKusamaClient, coretimeKusamaClient] = await setupNetworks(assetHubKusama, coretimeKusama) @@ -12,21 +12,23 @@ describe('assetHubKusama & coretimeKusama', async () => { const coretimeKSM = coretimeKusama.custom.ksm const assetHubKSM = assetHubKusama.custom.ksm - runXcmPalletDown('assetHubKusama transfer KSM to coretimeKusama', async () => { + runXcmPalletHorizontal('assetHubKusama transfer KSM to coretimeKusama', async () => { return { fromChain: assetHubKusamaClient, toChain: coretimeKusamaClient, - balance: query.balances, + fromBalance: query.balances, + toBalance: query.balances, toAccount: defaultAccounts.dave, tx: tx.xcmPallet.limitedTeleportAssets(assetHubKSM, 1e12, tx.xcmPallet.parachainV3(1, coretimeKusama.paraId!)), } }) - runXcmPalletUp('coretimeKusama transfer KSM to assetHubKusama', async () => { + runXcmPalletHorizontal('coretimeKusama transfer KSM to assetHubKusama', async () => { return { fromChain: coretimeKusamaClient, toChain: assetHubKusamaClient, - balance: query.balances, + fromBalance: query.balances, + toBalance: query.balances, toAccount: defaultAccounts.dave, tx: tx.xcmPallet.limitedTeleportAssets( coretimeKSM, diff --git a/packages/kusama/src/assetHubKusama.peopleKusama.test.ts b/packages/kusama/src/assetHubKusama.peopleKusama.test.ts index 042f8e0f4..4f0462b0d 100644 --- a/packages/kusama/src/assetHubKusama.peopleKusama.test.ts +++ b/packages/kusama/src/assetHubKusama.peopleKusama.test.ts @@ -4,7 +4,7 @@ import { defaultAccounts } from '@e2e-test/networks' import { assetHubKusama, peopleKusama } from '@e2e-test/networks/chains' import { setupNetworks } from '@e2e-test/shared' import { query, tx } from '@e2e-test/shared/api' -import { runXcmPalletDown, runXcmPalletUp } from '@e2e-test/shared/xcm' +import { runXcmPalletHorizontal } from '@e2e-test/shared/xcm' describe('assetHubKusama & peopleKusama', async () => { const [assetHubKusamaClient, peopleClient] = await setupNetworks(assetHubKusama, peopleKusama) @@ -12,21 +12,23 @@ describe('assetHubKusama & peopleKusama', async () => { const peopleKSM = peopleKusama.custom.ksm const kusamaKSM = assetHubKusama.custom.ksm - runXcmPalletDown('assetHubKusama transfer KSM to peopleKusama', async () => { + runXcmPalletHorizontal('assetHubKusama transfer KSM to peopleKusama', async () => { return { fromChain: assetHubKusamaClient, toChain: peopleClient, - balance: query.balances, + fromBalance: query.balances, + toBalance: query.balances, toAccount: defaultAccounts.dave, tx: tx.xcmPallet.limitedTeleportAssets(kusamaKSM, 1e12, tx.xcmPallet.parachainV3(1, peopleKusama.paraId!)), } }) - runXcmPalletUp('peopleKusama transfer KSM to assetHubKusama', async () => { + runXcmPalletHorizontal('peopleKusama transfer KSM to assetHubKusama', async () => { return { fromChain: peopleClient, toChain: assetHubKusamaClient, - balance: query.balances, + fromBalance: query.balances, + toBalance: query.balances, toAccount: defaultAccounts.dave, tx: tx.xcmPallet.limitedTeleportAssets( peopleKSM, diff --git a/packages/polkadot/src/__snapshots__/assetHubPolkadot.bridgeHubPolkadot.test.ts.snap b/packages/polkadot/src/__snapshots__/assetHubPolkadot.bridgeHubPolkadot.test.ts.snap index 9ac04d75f..9e6fd58fb 100644 --- a/packages/polkadot/src/__snapshots__/assetHubPolkadot.bridgeHubPolkadot.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/assetHubPolkadot.bridgeHubPolkadot.test.ts.snap @@ -30,7 +30,85 @@ exports[`assetHubPolkadot & bridgeHubPolkadot > assetHubPolkadot transfer DOT to } `; -exports[`assetHubPolkadot & bridgeHubPolkadot > assetHubPolkadot transfer DOT to bridgeHubPolkadot > to chain dmp events 1`] = ` +exports[`assetHubPolkadot & bridgeHubPolkadot > assetHubPolkadot transfer DOT to bridgeHubPolkadot > from chain hrmp messages 1`] = ` +[ + { + "data": [ + "ConcatenatedVersionedXcm", + { + "v3": [ + { + "receiveTeleportedAsset": [ + { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "concrete": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + }, + ], + }, + { + "clearOrigin": null, + }, + { + "buyExecution": { + "fees": { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "concrete": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + }, + "weightLimit": { + "unlimited": null, + }, + }, + }, + { + "depositAsset": { + "assets": { + "wild": { + "allCounted": 1, + }, + }, + "beneficiary": { + "interior": { + "x1": { + "accountId32": { + "id": "0x5e639b43e0052c47447dac87d6fd2b6ec50bdd4d0f614e4299c665249bbd09d9", + "network": null, + }, + }, + }, + "parents": 0, + }, + }, + }, + { + "setTopic": "(redacted)", + }, + ], + }, + ], + "recipient": 1002, + }, +] +`; + +exports[`assetHubPolkadot & bridgeHubPolkadot > assetHubPolkadot transfer DOT to bridgeHubPolkadot > to chain xcm events 1`] = ` [ { "data": { @@ -57,8 +135,8 @@ exports[`assetHubPolkadot & bridgeHubPolkadot > assetHubPolkadot transfer DOT to "outcome": { "Complete": { "used": { - "proofSize": "(rounded 3590)", - "refTime": "(rounded 191000000)", + "proofSize": "(rounded 3600)", + "refTime": "(rounded 190000000)", }, }, }, @@ -71,7 +149,7 @@ exports[`assetHubPolkadot & bridgeHubPolkadot > assetHubPolkadot transfer DOT to "fees": [ { "fun": { - "Fungible": "(rounded 305000000)", + "Fungible": "(rounded 300000000)", }, "id": { "interior": "Here", @@ -211,9 +289,83 @@ exports[`assetHubPolkadot & bridgeHubPolkadot > bridgeHubPolkadot transfer DOT t } `; -exports[`assetHubPolkadot & bridgeHubPolkadot > bridgeHubPolkadot transfer DOT to assetHubPolkadot > from chain ump messages 1`] = `[]`; +exports[`assetHubPolkadot & bridgeHubPolkadot > bridgeHubPolkadot transfer DOT to assetHubPolkadot > from chain hrmp messages 1`] = ` +[ + { + "data": [ + "ConcatenatedVersionedXcm", + { + "v5": [ + { + "receiveTeleportedAsset": [ + { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + ], + }, + { + "clearOrigin": null, + }, + { + "buyExecution": { + "fees": { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + "weightLimit": { + "unlimited": null, + }, + }, + }, + { + "depositAsset": { + "assets": { + "wild": { + "allCounted": 1, + }, + }, + "beneficiary": { + "interior": { + "x1": [ + { + "accountId32": { + "id": "0x5e639b43e0052c47447dac87d6fd2b6ec50bdd4d0f614e4299c665249bbd09d9", + "network": null, + }, + }, + ], + }, + "parents": 0, + }, + }, + }, + { + "setTopic": "(redacted)", + }, + ], + }, + ], + "recipient": 1000, + }, +] +`; -exports[`assetHubPolkadot & bridgeHubPolkadot > bridgeHubPolkadot transfer DOT to assetHubPolkadot > to chain ump events 1`] = ` +exports[`assetHubPolkadot & bridgeHubPolkadot > bridgeHubPolkadot transfer DOT to assetHubPolkadot > to chain xcm events 1`] = ` [ { "data": { @@ -240,8 +392,8 @@ exports[`assetHubPolkadot & bridgeHubPolkadot > bridgeHubPolkadot transfer DOT t "outcome": { "Complete": { "used": { - "proofSize": "(rounded 3590)", - "refTime": "(rounded 167000000)", + "proofSize": "(rounded 3600)", + "refTime": "(rounded 170000000)", }, }, }, @@ -254,7 +406,7 @@ exports[`assetHubPolkadot & bridgeHubPolkadot > bridgeHubPolkadot transfer DOT t "fees": [ { "fun": { - "Fungible": "(rounded 305000000)", + "Fungible": "(rounded 300000000)", }, "id": { "interior": "Here", diff --git a/packages/polkadot/src/__snapshots__/assetHubPolkadot.collectivesPolkadot.test.ts.snap b/packages/polkadot/src/__snapshots__/assetHubPolkadot.collectivesPolkadot.test.ts.snap index 892a8242b..4f567db21 100644 --- a/packages/polkadot/src/__snapshots__/assetHubPolkadot.collectivesPolkadot.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/assetHubPolkadot.collectivesPolkadot.test.ts.snap @@ -30,7 +30,83 @@ exports[`assetHubPolkadot & collectivesPolkadot > assetHubPolkadot transfer DOT } `; -exports[`assetHubPolkadot & collectivesPolkadot > assetHubPolkadot transfer DOT to collectivesPolkadot > to chain dmp events 1`] = ` +exports[`assetHubPolkadot & collectivesPolkadot > assetHubPolkadot transfer DOT to collectivesPolkadot > from chain hrmp messages 1`] = ` +[ + { + "data": [ + "ConcatenatedVersionedXcm", + { + "v5": [ + { + "receiveTeleportedAsset": [ + { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + ], + }, + { + "clearOrigin": null, + }, + { + "buyExecution": { + "fees": { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + "weightLimit": { + "unlimited": null, + }, + }, + }, + { + "depositAsset": { + "assets": { + "wild": { + "allCounted": 1, + }, + }, + "beneficiary": { + "interior": { + "x1": [ + { + "accountId32": { + "id": "0x5e639b43e0052c47447dac87d6fd2b6ec50bdd4d0f614e4299c665249bbd09d9", + "network": null, + }, + }, + ], + }, + "parents": 0, + }, + }, + }, + { + "setTopic": "(redacted)", + }, + ], + }, + ], + "recipient": 1001, + }, +] +`; + +exports[`assetHubPolkadot & collectivesPolkadot > assetHubPolkadot transfer DOT to collectivesPolkadot > to chain xcm events 1`] = ` [ { "data": { @@ -57,8 +133,8 @@ exports[`assetHubPolkadot & collectivesPolkadot > assetHubPolkadot transfer DOT "outcome": { "Complete": { "used": { - "proofSize": "(rounded 3590)", - "refTime": "(rounded 191000000)", + "proofSize": "(rounded 3600)", + "refTime": "(rounded 190000000)", }, }, }, @@ -71,7 +147,7 @@ exports[`assetHubPolkadot & collectivesPolkadot > assetHubPolkadot transfer DOT "fees": [ { "fun": { - "Fungible": "(rounded 305000000)", + "Fungible": "(rounded 300000000)", }, "id": { "interior": "Here", @@ -211,9 +287,83 @@ exports[`assetHubPolkadot & collectivesPolkadot > collectivesPolkadot transfer D } `; -exports[`assetHubPolkadot & collectivesPolkadot > collectivesPolkadot transfer DOT to assetHubPolkadot > from chain ump messages 1`] = `[]`; +exports[`assetHubPolkadot & collectivesPolkadot > collectivesPolkadot transfer DOT to assetHubPolkadot > from chain hrmp messages 1`] = ` +[ + { + "data": [ + "ConcatenatedVersionedXcm", + { + "v5": [ + { + "receiveTeleportedAsset": [ + { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + ], + }, + { + "clearOrigin": null, + }, + { + "buyExecution": { + "fees": { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + "weightLimit": { + "unlimited": null, + }, + }, + }, + { + "depositAsset": { + "assets": { + "wild": { + "allCounted": 1, + }, + }, + "beneficiary": { + "interior": { + "x1": [ + { + "accountId32": { + "id": "0x5e639b43e0052c47447dac87d6fd2b6ec50bdd4d0f614e4299c665249bbd09d9", + "network": null, + }, + }, + ], + }, + "parents": 0, + }, + }, + }, + { + "setTopic": "(redacted)", + }, + ], + }, + ], + "recipient": 1000, + }, +] +`; -exports[`assetHubPolkadot & collectivesPolkadot > collectivesPolkadot transfer DOT to assetHubPolkadot > to chain ump events 1`] = ` +exports[`assetHubPolkadot & collectivesPolkadot > collectivesPolkadot transfer DOT to assetHubPolkadot > to chain xcm events 1`] = ` [ { "data": { @@ -240,8 +390,8 @@ exports[`assetHubPolkadot & collectivesPolkadot > collectivesPolkadot transfer D "outcome": { "Complete": { "used": { - "proofSize": "(rounded 3590)", - "refTime": "(rounded 168000000)", + "proofSize": "(rounded 3600)", + "refTime": "(rounded 170000000)", }, }, }, @@ -254,7 +404,7 @@ exports[`assetHubPolkadot & collectivesPolkadot > collectivesPolkadot transfer D "fees": [ { "fun": { - "Fungible": "(rounded 305000000)", + "Fungible": "(rounded 300000000)", }, "id": { "interior": "Here", diff --git a/packages/polkadot/src/__snapshots__/assetHubPolkadot.coretimePolkadot.test.ts.snap b/packages/polkadot/src/__snapshots__/assetHubPolkadot.coretimePolkadot.test.ts.snap index 2e0f2354c..e76e39b01 100644 --- a/packages/polkadot/src/__snapshots__/assetHubPolkadot.coretimePolkadot.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/assetHubPolkadot.coretimePolkadot.test.ts.snap @@ -30,15 +30,84 @@ exports[`assetHubPolkadot & coretimePolkadot > assetHubPolkadot transfer DOT to } `; -exports[`assetHubPolkadot & coretimePolkadot > assetHubPolkadot transfer DOT to coretimePolkadot > to chain dmp events 1`] = ` +exports[`assetHubPolkadot & coretimePolkadot > assetHubPolkadot transfer DOT to coretimePolkadot > from chain hrmp messages 1`] = ` [ { - "data": { - "messageHash": "(hash)", - }, - "method": "UpwardMessageSent", - "section": "parachainSystem", + "data": [ + "ConcatenatedVersionedXcm", + { + "v5": [ + { + "receiveTeleportedAsset": [ + { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + ], + }, + { + "clearOrigin": null, + }, + { + "buyExecution": { + "fees": { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + "weightLimit": { + "unlimited": null, + }, + }, + }, + { + "depositAsset": { + "assets": { + "wild": { + "allCounted": 1, + }, + }, + "beneficiary": { + "interior": { + "x1": [ + { + "accountId32": { + "id": "0x5e639b43e0052c47447dac87d6fd2b6ec50bdd4d0f614e4299c665249bbd09d9", + "network": null, + }, + }, + ], + }, + "parents": 0, + }, + }, + }, + { + "setTopic": "(redacted)", + }, + ], + }, + ], + "recipient": 1005, }, +] +`; + +exports[`assetHubPolkadot & coretimePolkadot > assetHubPolkadot transfer DOT to coretimePolkadot > to chain xcm events 1`] = ` +[ { "data": { "id": "(hash)", @@ -64,8 +133,8 @@ exports[`assetHubPolkadot & coretimePolkadot > assetHubPolkadot transfer DOT to "outcome": { "Complete": { "used": { - "proofSize": "(rounded 3590)", - "refTime": "(rounded 191000000)", + "proofSize": "(rounded 3600)", + "refTime": "(rounded 190000000)", }, }, }, @@ -78,7 +147,7 @@ exports[`assetHubPolkadot & coretimePolkadot > assetHubPolkadot transfer DOT to "fees": [ { "fun": { - "Fungible": "(rounded 305000000)", + "Fungible": "(rounded 300000000)", }, "id": { "interior": "Here", @@ -109,7 +178,7 @@ exports[`assetHubPolkadot & coretimePolkadot > assetHubPolkadot transfer DOT to "interior": { "X1": [ { - "Parachain": "(rounded 1010)", + "Parachain": "(rounded 1000)", }, ], }, @@ -218,39 +287,83 @@ exports[`assetHubPolkadot & coretimePolkadot > coretimePolkadot transfer DOT to } `; -exports[`assetHubPolkadot & coretimePolkadot > coretimePolkadot transfer DOT to assetHubPolkadot > from chain ump messages 1`] = ` +exports[`assetHubPolkadot & coretimePolkadot > coretimePolkadot transfer DOT to assetHubPolkadot > from chain hrmp messages 1`] = ` [ { - "v5": [ + "data": [ + "ConcatenatedVersionedXcm", { - "unpaidExecution": { - "checkOrigin": null, - "weightLimit": { - "unlimited": null, + "v5": [ + { + "receiveTeleportedAsset": [ + { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + ], }, - }, - }, - { - "transact": { - "call": { - "encoded": "0x4a02506e9501", + { + "clearOrigin": null, }, - "fallbackMaxWeight": { - "proofSize": 9216, - "refTime": 1000000000, + { + "buyExecution": { + "fees": { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + "weightLimit": { + "unlimited": null, + }, + }, }, - "originKind": "Native", - }, - }, - { - "setTopic": "(redacted)", + { + "depositAsset": { + "assets": { + "wild": { + "allCounted": 1, + }, + }, + "beneficiary": { + "interior": { + "x1": [ + { + "accountId32": { + "id": "0x5e639b43e0052c47447dac87d6fd2b6ec50bdd4d0f614e4299c665249bbd09d9", + "network": null, + }, + }, + ], + }, + "parents": 0, + }, + }, + }, + { + "setTopic": "(redacted)", + }, + ], }, ], + "recipient": 1000, }, ] `; -exports[`assetHubPolkadot & coretimePolkadot > coretimePolkadot transfer DOT to assetHubPolkadot > to chain ump events 1`] = ` +exports[`assetHubPolkadot & coretimePolkadot > coretimePolkadot transfer DOT to assetHubPolkadot > to chain xcm events 1`] = ` [ { "data": { @@ -277,8 +390,8 @@ exports[`assetHubPolkadot & coretimePolkadot > coretimePolkadot transfer DOT to "outcome": { "Complete": { "used": { - "proofSize": "(rounded 3590)", - "refTime": "(rounded 165000000)", + "proofSize": "(rounded 3600)", + "refTime": "(rounded 170000000)", }, }, }, diff --git a/packages/polkadot/src/__snapshots__/assetHubPolkadot.peoplePolkadot.test.ts.snap b/packages/polkadot/src/__snapshots__/assetHubPolkadot.peoplePolkadot.test.ts.snap index 079ac3c90..3948bf4a1 100644 --- a/packages/polkadot/src/__snapshots__/assetHubPolkadot.peoplePolkadot.test.ts.snap +++ b/packages/polkadot/src/__snapshots__/assetHubPolkadot.peoplePolkadot.test.ts.snap @@ -30,7 +30,83 @@ exports[`assetHubPolkadot & peoplePolkadot > assetHubPolkadot transfer DOT to pe } `; -exports[`assetHubPolkadot & peoplePolkadot > assetHubPolkadot transfer DOT to peoplePolkadot > to chain dmp events 1`] = ` +exports[`assetHubPolkadot & peoplePolkadot > assetHubPolkadot transfer DOT to peoplePolkadot > from chain hrmp messages 1`] = ` +[ + { + "data": [ + "ConcatenatedVersionedXcm", + { + "v5": [ + { + "receiveTeleportedAsset": [ + { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + ], + }, + { + "clearOrigin": null, + }, + { + "buyExecution": { + "fees": { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + "weightLimit": { + "unlimited": null, + }, + }, + }, + { + "depositAsset": { + "assets": { + "wild": { + "allCounted": 1, + }, + }, + "beneficiary": { + "interior": { + "x1": [ + { + "accountId32": { + "id": "0x5e639b43e0052c47447dac87d6fd2b6ec50bdd4d0f614e4299c665249bbd09d9", + "network": null, + }, + }, + ], + }, + "parents": 0, + }, + }, + }, + { + "setTopic": "(redacted)", + }, + ], + }, + ], + "recipient": 1004, + }, +] +`; + +exports[`assetHubPolkadot & peoplePolkadot > assetHubPolkadot transfer DOT to peoplePolkadot > to chain xcm events 1`] = ` [ { "data": { @@ -57,8 +133,8 @@ exports[`assetHubPolkadot & peoplePolkadot > assetHubPolkadot transfer DOT to pe "outcome": { "Complete": { "used": { - "proofSize": "(rounded 3590)", - "refTime": "(rounded 191000000)", + "proofSize": "(rounded 3600)", + "refTime": "(rounded 190000000)", }, }, }, @@ -71,7 +147,7 @@ exports[`assetHubPolkadot & peoplePolkadot > assetHubPolkadot transfer DOT to pe "fees": [ { "fun": { - "Fungible": "(rounded 305000000)", + "Fungible": "(rounded 300000000)", }, "id": { "interior": "Here", @@ -211,9 +287,83 @@ exports[`assetHubPolkadot & peoplePolkadot > peoplePolkadot transfer DOT to asse } `; -exports[`assetHubPolkadot & peoplePolkadot > peoplePolkadot transfer DOT to assetHubPolkadot > from chain ump messages 1`] = `[]`; +exports[`assetHubPolkadot & peoplePolkadot > peoplePolkadot transfer DOT to assetHubPolkadot > from chain hrmp messages 1`] = ` +[ + { + "data": [ + "ConcatenatedVersionedXcm", + { + "v5": [ + { + "receiveTeleportedAsset": [ + { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + ], + }, + { + "clearOrigin": null, + }, + { + "buyExecution": { + "fees": { + "fun": { + "fungible": 1000000000000, + }, + "id": { + "interior": { + "here": null, + }, + "parents": 1, + }, + }, + "weightLimit": { + "unlimited": null, + }, + }, + }, + { + "depositAsset": { + "assets": { + "wild": { + "allCounted": 1, + }, + }, + "beneficiary": { + "interior": { + "x1": [ + { + "accountId32": { + "id": "0x5e639b43e0052c47447dac87d6fd2b6ec50bdd4d0f614e4299c665249bbd09d9", + "network": null, + }, + }, + ], + }, + "parents": 0, + }, + }, + }, + { + "setTopic": "(redacted)", + }, + ], + }, + ], + "recipient": 1000, + }, +] +`; -exports[`assetHubPolkadot & peoplePolkadot > peoplePolkadot transfer DOT to assetHubPolkadot > to chain ump events 1`] = ` +exports[`assetHubPolkadot & peoplePolkadot > peoplePolkadot transfer DOT to assetHubPolkadot > to chain xcm events 1`] = ` [ { "data": { @@ -240,8 +390,8 @@ exports[`assetHubPolkadot & peoplePolkadot > peoplePolkadot transfer DOT to asse "outcome": { "Complete": { "used": { - "proofSize": "(rounded 3590)", - "refTime": "(rounded 167000000)", + "proofSize": "(rounded 3600)", + "refTime": "(rounded 170000000)", }, }, }, diff --git a/packages/polkadot/src/assetHubPolkadot.bridgeHubPolkadot.test.ts b/packages/polkadot/src/assetHubPolkadot.bridgeHubPolkadot.test.ts index 9782283a1..183392d44 100644 --- a/packages/polkadot/src/assetHubPolkadot.bridgeHubPolkadot.test.ts +++ b/packages/polkadot/src/assetHubPolkadot.bridgeHubPolkadot.test.ts @@ -4,7 +4,7 @@ import { defaultAccounts } from '@e2e-test/networks' import { assetHubPolkadot, bridgeHubPolkadot } from '@e2e-test/networks/chains' import { setupNetworks } from '@e2e-test/shared' import { query, tx } from '@e2e-test/shared/api' -import { runXcmPalletDown, runXcmPalletUp } from '@e2e-test/shared/xcm' +import { runXcmPalletHorizontal } from '@e2e-test/shared/xcm' describe('assetHubPolkadot & bridgeHubPolkadot', async () => { const [assetHubPolkadotClient, bridgeHubPolkadotClient] = await setupNetworks(assetHubPolkadot, bridgeHubPolkadot) @@ -12,21 +12,23 @@ describe('assetHubPolkadot & bridgeHubPolkadot', async () => { const bridgeHubDOT = bridgeHubPolkadot.custom.dot const polkadotDOT = assetHubPolkadot.custom.dot - runXcmPalletDown('assetHubPolkadot transfer DOT to bridgeHubPolkadot', async () => { + runXcmPalletHorizontal('assetHubPolkadot transfer DOT to bridgeHubPolkadot', async () => { return { fromChain: assetHubPolkadotClient, toChain: bridgeHubPolkadotClient, - balance: query.balances, + fromBalance: query.balances, + toBalance: query.balances, toAccount: defaultAccounts.dave, tx: tx.xcmPallet.limitedTeleportAssets(polkadotDOT, 1e12, tx.xcmPallet.parachainV3(1, bridgeHubPolkadot.paraId!)), } }) - runXcmPalletUp('bridgeHubPolkadot transfer DOT to assetHubPolkadot', async () => { + runXcmPalletHorizontal('bridgeHubPolkadot transfer DOT to assetHubPolkadot', async () => { return { fromChain: bridgeHubPolkadotClient, toChain: assetHubPolkadotClient, - balance: query.balances, + fromBalance: query.balances, + toBalance: query.balances, toAccount: defaultAccounts.dave, tx: tx.xcmPallet.limitedTeleportAssets( bridgeHubDOT, diff --git a/packages/polkadot/src/assetHubPolkadot.collectivesPolkadot.test.ts b/packages/polkadot/src/assetHubPolkadot.collectivesPolkadot.test.ts index c4eef9e5d..a47465bab 100644 --- a/packages/polkadot/src/assetHubPolkadot.collectivesPolkadot.test.ts +++ b/packages/polkadot/src/assetHubPolkadot.collectivesPolkadot.test.ts @@ -4,7 +4,7 @@ import { defaultAccounts } from '@e2e-test/networks' import { assetHubPolkadot, collectivesPolkadot } from '@e2e-test/networks/chains' import { setupNetworks } from '@e2e-test/shared' import { query, tx } from '@e2e-test/shared/api' -import { runXcmPalletDown, runXcmPalletUp } from '@e2e-test/shared/xcm' +import { runXcmPalletHorizontal } from '@e2e-test/shared/xcm' describe('assetHubPolkadot & collectivesPolkadot', async () => { const [assetHubPolkadotClient, collectivesPolkadotClient] = await setupNetworks(assetHubPolkadot, collectivesPolkadot) @@ -12,11 +12,12 @@ describe('assetHubPolkadot & collectivesPolkadot', async () => { const collectivesDOT = collectivesPolkadot.custom.dot const polkadotDOT = assetHubPolkadot.custom.dot - runXcmPalletDown('assetHubPolkadot transfer DOT to collectivesPolkadot', async () => { + runXcmPalletHorizontal('assetHubPolkadot transfer DOT to collectivesPolkadot', async () => { return { fromChain: assetHubPolkadotClient, toChain: collectivesPolkadotClient, - balance: query.balances, + fromBalance: query.balances, + toBalance: query.balances, toAccount: defaultAccounts.dave, tx: tx.xcmPallet.limitedTeleportAssets( polkadotDOT, @@ -26,11 +27,12 @@ describe('assetHubPolkadot & collectivesPolkadot', async () => { } }) - runXcmPalletUp('collectivesPolkadot transfer DOT to assetHubPolkadot', async () => { + runXcmPalletHorizontal('collectivesPolkadot transfer DOT to assetHubPolkadot', async () => { return { fromChain: collectivesPolkadotClient, toChain: assetHubPolkadotClient, - balance: query.balances, + fromBalance: query.balances, + toBalance: query.balances, toAccount: defaultAccounts.dave, tx: tx.xcmPallet.limitedTeleportAssets( collectivesDOT, diff --git a/packages/polkadot/src/assetHubPolkadot.coretimePolkadot.test.ts b/packages/polkadot/src/assetHubPolkadot.coretimePolkadot.test.ts index 16cdcdcbf..a993bfecc 100644 --- a/packages/polkadot/src/assetHubPolkadot.coretimePolkadot.test.ts +++ b/packages/polkadot/src/assetHubPolkadot.coretimePolkadot.test.ts @@ -4,7 +4,7 @@ import { defaultAccounts } from '@e2e-test/networks' import { assetHubPolkadot, coretimePolkadot } from '@e2e-test/networks/chains' import { setupNetworks } from '@e2e-test/shared' import { query, tx } from '@e2e-test/shared/api' -import { runXcmPalletDown, runXcmPalletUp } from '@e2e-test/shared/xcm' +import { runXcmPalletHorizontal } from '@e2e-test/shared/xcm' describe('assetHubPolkadot & coretimePolkadot', async () => { const [assetHubPolkadotClient, coretimePolkadotClient] = await setupNetworks(assetHubPolkadot, coretimePolkadot) @@ -12,21 +12,23 @@ describe('assetHubPolkadot & coretimePolkadot', async () => { const coretimeDOT = coretimePolkadot.custom.dot const polkadotDOT = assetHubPolkadot.custom.dot - runXcmPalletDown('assetHubPolkadot transfer DOT to coretimePolkadot', async () => { + runXcmPalletHorizontal('assetHubPolkadot transfer DOT to coretimePolkadot', async () => { return { fromChain: assetHubPolkadotClient, toChain: coretimePolkadotClient, - balance: query.balances, + fromBalance: query.balances, + toBalance: query.balances, toAccount: defaultAccounts.dave, tx: tx.xcmPallet.limitedTeleportAssets(polkadotDOT, 1e12, tx.xcmPallet.parachainV3(1, coretimePolkadot.paraId!)), } }) - runXcmPalletUp('coretimePolkadot transfer DOT to assetHubPolkadot', async () => { + runXcmPalletHorizontal('coretimePolkadot transfer DOT to assetHubPolkadot', async () => { return { fromChain: coretimePolkadotClient, toChain: assetHubPolkadotClient, - balance: query.balances, + fromBalance: query.balances, + toBalance: query.balances, toAccount: defaultAccounts.dave, tx: tx.xcmPallet.limitedTeleportAssets( coretimeDOT, diff --git a/packages/polkadot/src/assetHubPolkadot.peoplePolkadot.test.ts b/packages/polkadot/src/assetHubPolkadot.peoplePolkadot.test.ts index 6bb23f8ca..c38dc67d9 100644 --- a/packages/polkadot/src/assetHubPolkadot.peoplePolkadot.test.ts +++ b/packages/polkadot/src/assetHubPolkadot.peoplePolkadot.test.ts @@ -4,7 +4,7 @@ import { defaultAccounts } from '@e2e-test/networks' import { assetHubPolkadot, peoplePolkadot } from '@e2e-test/networks/chains' import { setupNetworks } from '@e2e-test/shared' import { query, tx } from '@e2e-test/shared/api' -import { runXcmPalletDown, runXcmPalletUp } from '@e2e-test/shared/xcm' +import { runXcmPalletHorizontal } from '@e2e-test/shared/xcm' describe('assetHubPolkadot & peoplePolkadot', async () => { const [assetHubPolkadotClient, peopleClient] = await setupNetworks(assetHubPolkadot, peoplePolkadot) @@ -12,21 +12,23 @@ describe('assetHubPolkadot & peoplePolkadot', async () => { const peopleDOT = peoplePolkadot.custom.dot const polkadotDOT = assetHubPolkadot.custom.dot - runXcmPalletDown('assetHubPolkadot transfer DOT to peoplePolkadot', async () => { + runXcmPalletHorizontal('assetHubPolkadot transfer DOT to peoplePolkadot', async () => { return { fromChain: assetHubPolkadotClient, toChain: peopleClient, - balance: query.balances, + fromBalance: query.balances, + toBalance: query.balances, toAccount: defaultAccounts.dave, tx: tx.xcmPallet.limitedTeleportAssets(polkadotDOT, 1e12, tx.xcmPallet.parachainV3(1, peoplePolkadot.paraId!)), } }) - runXcmPalletUp('peoplePolkadot transfer DOT to assetHubPolkadot', async () => { + runXcmPalletHorizontal('peoplePolkadot transfer DOT to assetHubPolkadot', async () => { return { fromChain: peopleClient, toChain: assetHubPolkadotClient, - balance: query.balances, + fromBalance: query.balances, + toBalance: query.balances, toAccount: defaultAccounts.dave, tx: tx.xcmPallet.limitedTeleportAssets( peopleDOT,