Skip to content
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

Test XCM transfer and pay fees with foreign asset #3047

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

gonzamontiel
Copy link
Contributor

We test that an account in some parachain, can transfer some foreign assets to an account in Moonbeam, paying in another foreign asset. So that they don't need to buy GLMR for buying time for the execution.

@gonzamontiel gonzamontiel added B0-silent Changes should not be mentioned in any release notes not-breaking Does not need to be mentioned in breaking changes D2-notlive PR doesn't change runtime code (so can't be audited) labels Nov 18, 2024
Copy link
Contributor

github-actions bot commented Nov 18, 2024

WASM runtime size check:

Compared to target branch

Moonbase runtime: 2260 KB (no changes) ✅

Moonbeam runtime: 2232 KB (no changes) ✅

Moonriver runtime: 2224 KB (no changes) ✅

Compared to latest release (runtime-3300)

Moonbase runtime: 2260 KB (+232 KB compared to latest release) ⚠️

Moonbeam runtime: 2232 KB (+236 KB compared to latest release) ⚠️

Moonriver runtime: 2224 KB (+232 KB compared to latest release) ⚠️

Copy link
Contributor

github-actions bot commented Nov 18, 2024

Coverage Report

@@                           Coverage Diff                            @@
##           master   gonza/test-xcm-transfer-and-pay-fees      +/-   ##
========================================================================
+ Coverage   74.81%                                 79.00%   +4.19%     
- Files         369                                    303      -66     
- Lines       94137                                  88208    -5929     
========================================================================
- Hits        70421                                  69685     -736     
- Misses      23716                                  18523    -5193     
Files Changed Coverage
/precompiles/relay-data-verifier/src/mock.rs 87.69% (+2.16%) 🔼
/runtime/moonbeam/src/xcm_config.rs 45.45% (+2.18%) 🔼
/runtime/moonbeam/tests/common/mod.rs 94.68% (-0.06%) 🔽
/runtime/moonriver/src/xcm_config.rs 45.45% (+2.18%) 🔼
/runtime/moonriver/tests/common/mod.rs 94.80% (-0.05%) 🔽

Coverage generated Fri Nov 22 20:08:57 UTC 2024

},
});

async function registerAndFundAsset(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should move this function to helpers folder. I would also suggest renaming it to registerAndFundOldAsset.

Also, it would be nice to add a small comment explaining why the function was created.

};

/**
* We are going to test the following scenario:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice docs btw :)

@gonzamontiel gonzamontiel changed the title Test xcm transfer and pay fees Test xcm transfer and pay fees with foreign asset Nov 21, 2024
@gonzamontiel gonzamontiel changed the title Test xcm transfer and pay fees with foreign asset Test XCM transfer and pay fees with foreign asset Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B0-silent Changes should not be mentioned in any release notes D2-notlive PR doesn't change runtime code (so can't be audited) not-breaking Does not need to be mentioned in breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants