Skip to content

new test for snowbridge eth on acala #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@
"lodash": "^4.17.21",
"ts-pattern": "^5.7.0",
"typescript": "^5.8.3",
"vitest": "^3.0.7"
"vitest": "^3.1.3"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@types/lodash": "^4.17.16",
"@types/node": "^22.13.16",
"@vitest/ui": "^3.1.1",
"@types/node": "^22.15.16",
"@vitest/ui": "^3.1.3",
"dotenv": "^16.5.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"tsx": "^4.19.2",
"unplugin-swc": "^1.5.1",
"vite-tsconfig-paths": "^5.1.3"
"lint-staged": "^15.5.2",
"tsx": "^4.19.4",
"unplugin-swc": "^1.5.2",
"vite-tsconfig-paths": "^5.1.4"
},
"lint-staged": {
"*.{js,ts}": "biome check --write --no-errors-on-unmatched"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,27 +315,25 @@ exports[`assetHubKusama & karura > karura transfer USDT to assetHubKusama > from
"data": [
"ConcatenatedVersionedXcm",
{
"v2": [
"v4": [
{
"withdrawAsset": [
{
"fun": {
"fungible": 1000000,
},
"id": {
"concrete": {
"interior": {
"x2": [
{
"palletInstance": 50,
},
{
"generalIndex": 1984,
},
],
},
"parents": 0,
"interior": {
"x2": [
{
"palletInstance": 50,
},
{
"generalIndex": 1984,
},
],
},
"parents": 0,
},
},
],
Expand All @@ -350,19 +348,17 @@ exports[`assetHubKusama & karura > karura transfer USDT to assetHubKusama > from
"fungible": 1000000,
},
"id": {
"concrete": {
"interior": {
"x2": [
{
"palletInstance": 50,
},
{
"generalIndex": 1984,
},
],
},
"parents": 0,
"interior": {
"x2": [
{
"palletInstance": 50,
},
{
"generalIndex": 1984,
},
],
},
"parents": 0,
},
},
"weightLimit": {
Expand All @@ -374,23 +370,22 @@ exports[`assetHubKusama & karura > karura transfer USDT to assetHubKusama > from
"depositAsset": {
"assets": {
"wild": {
"all": null,
"allCounted": 1,
},
},
"beneficiary": {
"interior": {
"x1": {
"accountId32": {
"id": "0xd17c2d7823ebf260fd138f2d7e27d114c0145d968b5ff5006125f2414fadae69",
"network": {
"any": null,
"x1": [
{
"accountId32": {
"id": "0xd17c2d7823ebf260fd138f2d7e27d114c0145d968b5ff5006125f2414fadae69",
"network": null,
},
},
},
],
},
"parents": 0,
},
"maxAssets": 1,
},
},
],
Expand Down
49 changes: 22 additions & 27 deletions packages/kusama/src/__snapshots__/basilisk.karura.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ exports[`basilisk & karura > karura transfer BSX to basilisk > from chain hrmp m
"data": [
"ConcatenatedVersionedXcm",
{
"v2": [
"v4": [
{
"withdrawAsset": [
{
"fun": {
"fungible": 1000000000000000,
},
"id": {
"concrete": {
"interior": {
"x1": {
"interior": {
"x1": [
{
"generalIndex": 0,
},
},
"parents": 0,
],
},
"parents": 0,
},
},
],
Expand All @@ -59,14 +59,14 @@ exports[`basilisk & karura > karura transfer BSX to basilisk > from chain hrmp m
"fungible": 1000000000000000,
},
"id": {
"concrete": {
"interior": {
"x1": {
"interior": {
"x1": [
{
"generalIndex": 0,
},
},
"parents": 0,
],
},
"parents": 0,
},
},
"weightLimit": {
Expand All @@ -78,23 +78,22 @@ exports[`basilisk & karura > karura transfer BSX to basilisk > from chain hrmp m
"depositAsset": {
"assets": {
"wild": {
"all": null,
"allCounted": 1,
},
},
"beneficiary": {
"interior": {
"x1": {
"accountId32": {
"id": "0xd17c2d7823ebf260fd138f2d7e27d114c0145d968b5ff5006125f2414fadae69",
"network": {
"any": null,
"x1": [
{
"accountId32": {
"id": "0xd17c2d7823ebf260fd138f2d7e27d114c0145d968b5ff5006125f2414fadae69",
"network": null,
},
},
},
],
},
"parents": 0,
},
"maxAssets": 1,
},
},
],
Expand Down Expand Up @@ -210,7 +209,7 @@ exports[`basilisk & karura > karura transfer KSM to basilisk > balance on to cha
exports[`basilisk & karura > karura transfer KSM to basilisk > from chain ump messages 1`] = `
[
{
"v2": [
"v3": [
{
"withdrawAsset": [
{
Expand Down Expand Up @@ -255,7 +254,7 @@ exports[`basilisk & karura > karura transfer KSM to basilisk > from chain ump me
"depositReserveAsset": {
"assets": {
"wild": {
"all": null,
"allCounted": 1,
},
},
"dest": {
Expand All @@ -266,7 +265,6 @@ exports[`basilisk & karura > karura transfer KSM to basilisk > from chain ump me
},
"parents": 0,
},
"maxAssets": 1,
"xcm": [
{
"buyExecution": {
Expand All @@ -292,23 +290,20 @@ exports[`basilisk & karura > karura transfer KSM to basilisk > from chain ump me
"depositAsset": {
"assets": {
"wild": {
"all": null,
"allCounted": 1,
},
},
"beneficiary": {
"interior": {
"x1": {
"accountId32": {
"id": "0xd17c2d7823ebf260fd138f2d7e27d114c0145d968b5ff5006125f2414fadae69",
"network": {
"any": null,
},
"network": null,
},
},
},
"parents": 0,
},
"maxAssets": 1,
},
},
],
Expand Down
23 changes: 10 additions & 13 deletions packages/kusama/src/__snapshots__/karura.kusama.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exports[`karura & kusama > karura transfer KSM to kusama > balance on to chain 1
exports[`karura & kusama > karura transfer KSM to kusama > from chain ump messages 1`] = `
[
{
"v2": [
"v3": [
{
"withdrawAsset": [
{
Expand Down Expand Up @@ -71,23 +71,20 @@ exports[`karura & kusama > karura transfer KSM to kusama > from chain ump messag
"depositAsset": {
"assets": {
"wild": {
"all": null,
"allCounted": 1,
},
},
"beneficiary": {
"interior": {
"x1": {
"accountId32": {
"id": "0xd17c2d7823ebf260fd138f2d7e27d114c0145d968b5ff5006125f2414fadae69",
"network": {
"any": null,
},
"network": null,
},
},
},
"parents": 0,
},
"maxAssets": 1,
},
},
],
Expand Down Expand Up @@ -188,7 +185,7 @@ exports[`karura & kusama > karura transfer KSM to kusama wiht limited weight > b
exports[`karura & kusama > karura transfer KSM to kusama wiht limited weight > from chain ump messages 1`] = `
[
{
"v2": [
"v3": [
{
"withdrawAsset": [
{
Expand Down Expand Up @@ -225,31 +222,31 @@ exports[`karura & kusama > karura transfer KSM to kusama wiht limited weight > f
},
},
"weightLimit": {
"limited": 500000000,
"limited": {
"proofSize": 10000,
"refTime": 500000000,
},
},
},
},
{
"depositAsset": {
"assets": {
"wild": {
"all": null,
"allCounted": 1,
},
},
"beneficiary": {
"interior": {
"x1": {
"accountId32": {
"id": "0xd17c2d7823ebf260fd138f2d7e27d114c0145d968b5ff5006125f2414fadae69",
"network": {
"any": null,
},
"network": null,
},
},
},
"parents": 0,
},
"maxAssets": 1,
},
},
],
Expand Down
19 changes: 11 additions & 8 deletions packages/kusama/src/__snapshots__/karura.shiden.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exports[`karura & shiden > karura transfer KAR to shiden > from chain hrmp messa
"data": [
"ConcatenatedVersionedXcm",
{
"v2": [
"v3": [
{
"reserveAssetDeposited": [
{
Expand All @@ -47,7 +47,10 @@ exports[`karura & shiden > karura transfer KAR to shiden > from chain hrmp messa
"parachain": 2000,
},
{
"generalKey": "0x0080",
"generalKey": {
"data": "0x0080000000000000000000000000000000000000000000000000000000000000",
"length": 2,
},
},
],
},
Expand All @@ -74,7 +77,10 @@ exports[`karura & shiden > karura transfer KAR to shiden > from chain hrmp messa
"parachain": 2000,
},
{
"generalKey": "0x0080",
"generalKey": {
"data": "0x0080000000000000000000000000000000000000000000000000000000000000",
"length": 2,
},
},
],
},
Expand All @@ -91,23 +97,20 @@ exports[`karura & shiden > karura transfer KAR to shiden > from chain hrmp messa
"depositAsset": {
"assets": {
"wild": {
"all": null,
"allCounted": 1,
},
},
"beneficiary": {
"interior": {
"x1": {
"accountId32": {
"id": "0xd17c2d7823ebf260fd138f2d7e27d114c0145d968b5ff5006125f2414fadae69",
"network": {
"any": null,
},
"network": null,
},
},
},
"parents": 0,
},
"maxAssets": 1,
},
},
],
Expand Down
Loading