8000 Bridge (Moonbeam <-> Moonriver) by RomarQ · Pull Request #3188 · moonbeam-foundation/moonbeam · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Bridge (Moonbeam <-> Moonriver) #3188

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

Draft
wants to merge 66 commits into
base: master
Choose a base branch
from
Draft

Bridge (Moonbeam <-> Moonriver) #3188

wants to merge 66 commits into from

Conversation

RomarQ
Copy link
Contributor
@RomarQ RomarQ commented Feb 6, 2025

What does it do?

Configures the moonbeam and moonriver runtimes with new pallets and primitives for enabling XCM bridging between them.

Relayer binary: https://github.com/Moonsong-Labs/parity-bridges-common

What important points should reviewers know?

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

@RomarQ RomarQ self-assigned this Feb 6, 2025
@RomarQ RomarQ changed the title Bridge PoC Bridge MVP Feb 25, 2025
@RomarQ RomarQ added B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes not-breaking Does not need to be mentioned in breaking changes D9-needsaudit👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited labels Feb 25, 2025
Copy link
Contributor
github-actions bot commented Feb 25, 2025

Moonbase Weight Difference Report

File Extrinsic Old New Change Percent

Moonriver Weight Difference Report

File Extrinsic Old New Change Percent

Moonbeam Weight Difference Report

File Extrinsic Old New Change Percent

Copy link
Contributor
github-actions bot commented Feb 26, 2025

WASM runtime size check:

Compared to target branch

Moonbase runtime: 2368 KB (+4 KB) ⚠️

Moonbeam runtime: 2552 KB (+200 KB) 🚨

Moonriver runtime: 2552 KB (+196 KB) 🚨

Compared to latest release (runtime-3701)

Moonbase runtime: 2368 KB (+312 KB compared to latest release) ⚠️

Moonbeam runtime: 2552 KB (+504 KB compared to latest release) 🚨

Moonriver runtime: 2552 KB (+500 KB compared to latest release) 🚨

Copy link
Contributor
github-actions bot commented Feb 26, 2025

Coverage Report

@@                 Coverage Diff                 @@
##           master   rq/bridge-setup      +/-   ##
===================================================
- Coverage   74.25%            73.64%   -0.61%     
- Files         415               411       -4     
- Lines      103355            100509    -2846     
===================================================
- Hits        76738             74013    -2725     
- Misses      26617             26496     -121     
Files Changed Coverage
/pallets/ethereum-xcm/src/lib.rs 89.71% (+9.71%) 🔼
/pallets/moonbeam-foreign-assets/src/lib.rs 82.53% (+2.21%) 🔼
/pallets/xcm-weight-trader/src/lib.rs 88.93% (+1.59%) 🔼
/primitives/xcm/src/origin_conversion.rs 93.88% (+4.08%) 🔼
/runtime/common/src/apis.rs 85.28% (+0.02%) 🔼
/runtime/moonbase/tests/common/mod.rs 95.15% (+1.52%) 🔼
/runtime/moonbeam/src/lib.rs 49.11% (-2.90%) 🔽
/runtime/moonbeam/src/weights/xcm/fungible.rs 45.45% (+21.21%) 🔼
/runtime/moonbeam/src/weights/xcm/generic.rs 8.83% (+5.09%) 🔼
/runtime/moonbeam/src/weights/xcm/mod.rs 23.44% (+11.00%) 🔼
/runtime/moonbeam/src/xcm_config.rs 63.46% (+1.92%) 🔼
/runtime/moonbeam/tests/common/mod.rs 95.57% (+0.47%) 🔼
/runtime/moonbeam/tests/integration_test.rs 99.39% (+0.05%) 🔼
/runtime/moonriver/src/lib.rs 48.86% (-2.90%) 🔽
/runtime/moonriver/src/weights/xcm/fungible.rs 45.45% (+33.33%) 🔼
/runtime/moonriver/src/weights/xcm/generic.rs 7.54% (+3.85%) 🔼
/runtime/moonriver/src/weights/xcm/mod.rs 22.01% (+11.96%) 🔼
/runtime/moonriver/src/xcm_config.rs 63.46% (+1.92%) 🔼
/runtime/moonriver/tests/common/mod.rs 95.65% (+0.44%) 🔼
/runtime/moonriver/tests/integration_test.rs 99.36% (+0.04%) 🔼

Coverage generated Thu Jun 26 13:01:37 UTC 2025

@RomarQ RomarQ requested a review from Copilot April 7, 2025 14:05
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 65 out of 66 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • Makefile: Language not supported
Comments suppressed due to low confidence (2)

node/service/src/chain_spec/moonbeam.rs:146

  • [nitpick] Consider expanding this comment with additional context on how the Bridge account is derived to aid future maintainers.< 10000 /li>
// Bridge Location::new(1, [Parachain(<bp_moonbeam::Moonbeam as bp_runtime::Parachain>::PARACHAIN_ID)])

Cargo.toml:57

  • [nitpick] Ensure that using the 2021 edition here aligns with the rest of the workspace settings for consistency across packages.
edition = "2021"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes B10-Bridge This pull request touches on the bridge functionality D9-needsaudit👮 PR contains changes to fund-managing logic that should be properly reviewed and externally 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.

1 participant
0