From 3769c9ba09880ac2bffaa107a74280444c05a178 Mon Sep 17 00:00:00 2001 From: Bryan Chen Date: Mon, 27 May 2024 12:10:27 +1200 Subject: [PATCH] update snapshots --- .../__snapshots__/kusama-para.test.ts.snap | 195 ------------- .../__snapshots__/polkadot-para.test.ts.snap | 265 ------------------ 2 files changed, 460 deletions(-) diff --git a/tests/xcm-transfer/__snapshots__/kusama-para.test.ts.snap b/tests/xcm-transfer/__snapshots__/kusama-para.test.ts.snap index 1467ed8..86e396f 100644 --- a/tests/xcm-transfer/__snapshots__/kusama-para.test.ts.snap +++ b/tests/xcm-transfer/__snapshots__/kusama-para.test.ts.snap @@ -501,8 +501,6 @@ exports[`'karura' -> 'assetHubKusama' xcm transfer 'USDT' > xtokens transfer > t exports[`'karura' -> 'basilisk' xcm transfer 'DAI' > xtokens transfer > balance on from chain 1`] = `99000000000000000000`; -exports[`'karura' -> 'basilisk' xcm transfer 'DAI' > xtokens transfer > balance on from chain 2`] = `99000000000000000000`; - exports[`'karura' -> 'basilisk' xcm transfer 'DAI' > xtokens transfer > balance on to chain 1`] = ` { "free": "(rounded 101000000000000000000)", @@ -511,14 +509,6 @@ exports[`'karura' -> 'basilisk' xcm transfer 'DAI' > xtokens transfer > balance } `; -exports[`'karura' -> 'basilisk' xcm transfer 'DAI' > xtokens transfer > balance on to chain 2`] = ` -{ - "free": "(rounded 101000000000000000000)", - "frozen": 0, - "reserved": 0, -} -`; - exports[`'karura' -> 'basilisk' xcm transfer 'DAI' > xtokens transfer > from chain hrmp messages 1`] = ` [ { @@ -611,116 +601,7 @@ exports[`'karura' -> 'basilisk' xcm transfer 'DAI' > xtokens transfer > from cha ] `; -exports[`'karura' -> 'basilisk' xcm transfer 'DAI' > xtokens transfer > from chain hrmp messages 2`] = ` -[ - { - "data": [ - "ConcatenatedVersionedXcm", - { - "v2": [ - { - "reserveAssetDeposited": [ - { - "fun": { - "fungible": "0x00000000000000000de0b6b3a7640000", - }, - "id": { - "concrete": { - "interior": { - "x2": [ - { - "parachain": 2000, - }, - { - "generalKey": "0x024bb6afb5fa2b07a5d1c499e1c3ddb5a15e709a71", - }, - ], - }, - "parents": 1, - }, - }, - }, - ], - }, - { - "clearOrigin": null, - }, - { - "buyExecution": { - "fees": { - "fun": { - "fungible": "0x00000000000000000de0b6b3a7640000", - }, - "id": { - "concrete": { - "interior": { - "x2": [ - { - "parachain": 2000, - }, - { - "generalKey": "0x024bb6afb5fa2b07a5d1c499e1c3ddb5a15e709a71", - }, - ], - }, - "parents": 1, - }, - }, - }, - "weightLimit": { - "unlimited": null, - }, - }, - }, - { - "depositAsset": { - "assets": { - "wild": { - "all": null, - }, - }, - "beneficiary": { - "interior": { - "x1": { - "accountId32": { - "id": "0x88dc3417d5058ec4b4503e0c12ea1a0a89be200fe98922423d4334014fa6b0ee", - "network": { - "any": null, - }, - }, - }, - }, - "parents": 0, - }, - "maxAssets": 1, - }, - }, - ], - }, - ], - "recipient": 2090, - }, -] -`; - exports[`'karura' -> 'basilisk' xcm transfer 'DAI' > xtokens transfer > to chain xcm events 1`] = ` -[ - { - "data": { - "messageHash": "(hash)", - "messageId": "(hash)", - "weight": { - "proofSize": 0, - "refTime": 400000000, - }, - }, - "method": "Success", - "section": "xcmpQueue", - }, -] -`; - -exports[`'karura' -> 'basilisk' xcm transfer 'DAI' > xtokens transfer > to chain xcm events 2`] = ` [ { "data": { @@ -815,79 +696,3 @@ exports[`'karura' -> 'basilisk' xcm transfer 'DAI' > xtokens transfer > tx event }, ] `; - -exports[`'karura' -> 'basilisk' xcm transfer 'DAI' > xtokens transfer > tx events 2`] = ` -[ - { - "data": { - "assets": [ - { - "fun": { - "Fungible": 1000000000000000000, - }, - "id": { - "Concrete": { - "interior": { - "X2": [ - { - "Parachain": 2000, - }, - { - "GeneralKey": { - "data": "(hash)", - "length": 21, - }, - }, - ], - }, - "parents": 1, - }, - }, - }, - ], - "dest": { - "interior": { - "X2": [ - { - "Parachain": "(rounded 2100)", - }, - { - "AccountId32": { - "id": "(hash)", - "network": null, - }, - }, - ], - }, - "parents": 1, - }, - "fee": { - "fun": { - "Fungible": 1000000000000000000, - }, - "id": { - "Concrete": { - "interior": { - "X2": [ - { - "Parachain": 2000, - }, - { - "GeneralKey": { - "data": "(hash)", - "length": 21, - }, - }, - ], - }, - "parents": 1, - }, - }, - }, - "sender": "rPizfonc8MPuEsMxufAytHjpRW7a2YrXWHKibaJXe9ZtjKx", - }, - "method": "TransferredMultiAssets", - "section": "xTokens", - }, -] -`; diff --git a/tests/xcm-transfer/__snapshots__/polkadot-para.test.ts.snap b/tests/xcm-transfer/__snapshots__/polkadot-para.test.ts.snap index 0283fdb..1bb182b 100644 --- a/tests/xcm-transfer/__snapshots__/polkadot-para.test.ts.snap +++ b/tests/xcm-transfer/__snapshots__/polkadot-para.test.ts.snap @@ -220,14 +220,6 @@ exports[`'acala' -> 'moonbeam' xcm transfer 'DOT' > xtokens transfer > balance o } `; -exports[`'acala' -> 'moonbeam' xcm transfer 'DOT' > xtokens transfer > balance on from chain 2`] = ` -{ - "free": 9000000000000, - "frozen": 0, - "reserved": 0, -} -`; - exports[`'acala' -> 'moonbeam' xcm transfer 'DOT' > xtokens transfer > balance on to chain 1`] = ` { "balance": "(rounded 1000000000000)", @@ -239,17 +231,6 @@ exports[`'acala' -> 'moonbeam' xcm transfer 'DOT' > xtokens transfer > balance o } `; -exports[`'acala' -> 'moonbeam' xcm transfer 'DOT' > xtokens transfer > balance on to chain 2`] = ` -{ - "balance": "(rounded 1000000000000)", - "extra": null, - "reason": { - "sufficient": null, - }, - "status": "Liquid", -} -`; - exports[`'acala' -> 'moonbeam' xcm transfer 'DOT' > xtokens transfer > from chain ump messages 1`] = ` [ { @@ -362,138 +343,7 @@ exports[`'acala' -> 'moonbeam' xcm transfer 'DOT' > xtokens transfer > from chai ] `; -exports[`'acala' -> 'moonbeam' xcm transfer 'DOT' > xtokens transfer > from chain ump messages 2`] = ` -[ - { - "v2": [ - { - "withdrawAsset": [ - { - "fun": { - "fungible": 1000000000000, - }, - "id": { - "concrete": { - "interior": { - "here": null, - }, - "parents": 0, - }, - }, - }, - ], - }, - { - "clearOrigin": null, - }, - { - "buyExecution": { - "fees": { - "fun": { - "fungible": 500000000000, - }, - "id": { - "concrete": { - "interior": { - "here": null, - }, - "parents": 0, - }, - }, - }, - "weightLimit": { - "unlimited": null, - }, - }, - }, - { - "depositReserveAsset": { - "assets": { - "wild": { - "all": null, - }, - }, - "dest": { - "interior": { - "x1": { - "parachain": 2004, - }, - }, - "parents": 0, - }, - "maxAssets": 1, - "xcm": [ - { - "buyExecution": { - "fees": { - "fun": { - "fungible": 500000000000, - }, - "id": { - "concrete": { - "interior": { - "here": null, - }, - "parents": 1, - }, - }, - }, - "weightLimit": { - "unlimited": null, - }, - }, - }, - { - "depositAsset": { - "assets": { - "wild": { - "all": null, - }, - }, - "beneficiary": { - "interior": { - "x1": { - "accountKey20": { - "key": "0xf24ff3a9cf04c71dbc94d0b566f7a27b94566cac", - "network": { - "any": null, - }, - }, - }, - }, - "parents": 0, - }, - "maxAssets": 1, - }, - }, - ], - }, - }, - ], - }, -] -`; - exports[`'acala' -> 'moonbeam' xcm transfer 'DOT' > xtokens transfer > to chain xcm events 1`] = ` -[ - { - "data": { - "messageHash": "(hash)", - "messageId": "(hash)", - "outcome": { - "Complete": { - "proofSize": "(rounded 26000)", - "refTime": "(rounded 690000000)", - }, - }, - }, - "method": "ExecutedDownward", - "section": "dmpQueue", - }, -] -`; - -exports[`'acala' -> 'moonbeam' xcm transfer 'DOT' > xtokens transfer > to chain xcm events 2`] = ` [ { "data": { @@ -563,58 +413,6 @@ exports[`'acala' -> 'moonbeam' xcm transfer 'DOT' > xtokens transfer > tx events ] `; -exports[`'acala' -> 'moonbeam' xcm transfer 'DOT' > xtokens transfer > tx events 2`] = ` -[ - { - "data": { - "assets": [ - { - "fun": { - "Fungible": 1000000000000, - }, - "id": { - "Concrete": { - "interior": "Here", - "parents": 1, - }, - }, - }, - ], - "dest": { - "interior": { - "X2": [ - { - "Parachain": "(rounded 2000)", - }, - { - "AccountKey20": { - "key": "0xf24ff3a9cf04c71dbc94d0b566f7a27b94566cac", - "network": null, - }, - }, - ], - }, - "parents": 1, - }, - "fee": { - "fun": { - "Fungible": 1000000000000, - }, - "id": { - "Concrete": { - "interior": "Here", - "parents": 1, - }, - }, - }, - "sender": "23y3WetbNi6rDMgHmyRDjgpb7PnhgPotuPPawxruTMLYTLzG", - }, - "method": "TransferredMultiAssets", - "section": "xTokens", - }, -] -`; - exports[`'assetHubPolkadot' -> 'acala' xcm transfer 'WBTC' > xcmPallet transfer > balance on from chain 1`] = ` { "balance": 90000000, @@ -918,17 +716,6 @@ exports[`'moonbeam' -> 'acala' xcm transfer 'DOT' > xtokens transfer > balance o } `; -exports[`'moonbeam' -> 'acala' xcm transfer 'DOT' > xtokens transfer > balance on from chain 2`] = ` -{ - "balance": 9000000000000, - "extra": null, - "reason": { - "consumer": null, - }, - "status": "Liquid", -} -`; - exports[`'moonbeam' -> 'acala' xcm transfer 'DOT' > xtokens transfer > balance on to chain 1`] = ` { "free": "(rounded 11000000000000)", @@ -1064,58 +851,6 @@ exports[`'moonbeam' -> 'acala' xcm transfer 'DOT' > xtokens transfer > to chain `; exports[`'moonbeam' -> 'acala' xcm transfer 'DOT' > xtokens transfer > tx events 1`] = ` -[ - { - "data": { - "assets": [ - { - "fun": { - "Fungible": 1000000000000, - }, - "id": { - "Concrete": { - "interior": "Here", - "parents": 1, - }, - }, - }, - ], - "dest": { - "interior": { - "X2": [ - { - "Parachain": 2000, - }, - { - "AccountId32": { - "id": "(hash)", - "network": null, - }, - }, - ], - }, - "parents": 1, - }, - "fee": { - "fun": { - "Fungible": 1000000000000, - }, - "id": { - "Concrete": { - "interior": "Here", - "parents": 1, - }, - }, - }, - "sender": "0xf24FF3a9CF04c71Dbc94D0b566f7A27B94566cac", - }, - "method": "TransferredMultiAssets", - "section": "xTokens", - }, -] -`; - -exports[`'moonbeam' -> 'acala' xcm transfer 'DOT' > xtokens transfer > tx events 2`] = ` [ { "data": {