Skip to content

Setup permissionless lanes for AssetHubs#6675

Open
bkontur wants to merge 32 commits intobko-bridges-congestionfrom
bko-permlanes-on-ahs
Open

Setup permissionless lanes for AssetHubs#6675
bkontur wants to merge 32 commits intobko-bridges-congestionfrom
bko-permlanes-on-ahs

Conversation

@bkontur
Copy link
Copy Markdown
Contributor

@bkontur bkontur commented Nov 27, 2024

Relates to: #6116

This PR:

  • Sets up direct bridging between AssetHubs.
  • Allows permissionless open_bridge / close_bridge for other local chains.
  • Enables the relaying of multiple parachain finalities on BridgeHubs.

TODO

Related PRs

On the top of this PR - next PRs add another missing features - so the last one #8368 is the final one.

High-Level Context Diagram

image

@bkontur bkontur added the T15-bridges This PR/Issue is related to bridges. label Nov 27, 2024
@bkontur bkontur self-assigned this Nov 27, 2024
@bkontur
Copy link
Copy Markdown
Contributor Author

bkontur commented Nov 28, 2024

/cmd fmt

@github-actions
Copy link
Copy Markdown
Contributor

Command "fmt" has started 🚀 See logs here

@github-actions
Copy link
Copy Markdown
Contributor

Command "fmt" has finished ✅ See logs here

@bkontur
Copy link
Copy Markdown
Contributor Author

bkontur commented Jan 30, 2025

/cmd fmt

@bkontur
Copy link
Copy Markdown
Contributor Author

bkontur commented Jan 30, 2025

TODO

* [ ]  add bridging to AssetHubWestend

* [ ]  add emulated test - [Bridge Permissionless Lanes - more tests #5552](https://github.com/paritytech/polkadot-sdk/issues/5552)

@rosarp Rohit, let's start with these two, please do a separate PRs to this branch

@bkontur bkontur force-pushed the bko-permlanes-on-ahs branch from 4e33349 to 122a33b Compare January 31, 2025 09:48
@bkontur bkontur moved this to In Progress in @bkontur's board Mar 6, 2025
bkontur and others added 2 commits March 12, 2025 17:13
This PR implements similar changes done for rococo in PR #6675 to add
bridging to AssetHubWestend

Specifically resolves -
#6675 (comment)

---------

Co-authored-by: Branislav Kontur <bkontur@gmail.com>
github-merge-queue bot pushed a commit that referenced this pull request Mar 28, 2025
This resolves TODO no. 1:
paritytech/parity-bridges-common#3136 (comment)

To add cli support to substrate-relay as described in above issue, 
necessary changes from
[this](#6675) PR are
added by this PR.

Specifically below changes and any other supportive changes.

```
// bridges/chains/chain-asset-hub-rococo/src/lib.rs
impl Chain for AssetHubRococo {..}
impl Parachain for AssetHubRococo {..}
```

```
// bridges/chains/chain-asset-hub-westend/src/lib.rs
impl Chain for AssetHubWestend {..}
impl Parachain for AssetHubWestend {..}
```

---------

Co-authored-by: Branislav Kontur <bkontur@gmail.com>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
antkve pushed a commit that referenced this pull request Mar 31, 2025
This resolves TODO no. 1:
paritytech/parity-bridges-common#3136 (comment)

To add cli support to substrate-relay as described in above issue, 
necessary changes from
[this](#6675) PR are
added by this PR.

Specifically below changes and any other supportive changes.

```
// bridges/chains/chain-asset-hub-rococo/src/lib.rs
impl Chain for AssetHubRococo {..}
impl Parachain for AssetHubRococo {..}
```

```
// bridges/chains/chain-asset-hub-westend/src/lib.rs
impl Chain for AssetHubWestend {..}
impl Parachain for AssetHubWestend {..}
```

---------

Co-authored-by: Branislav Kontur <bkontur@gmail.com>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-merge-queue bot pushed a commit that referenced this pull request Apr 4, 2025
This adds missing initial primitives to add CLI support for AssetHub
Bridging
earlier PR - #8063
source PR - #6675

It adds constants required to make this
[PR](paritytech/parity-bridges-common#3136 (comment))
build.

- [x] Make
[PR](paritytech/parity-bridges-common#3136)
build successful with these changes before merging

---------

Co-authored-by: Branislav Kontur <bkontur@gmail.com>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@bkontur bkontur moved this from In Progress to In-Review in Bridges + XCM May 5, 2025
github-merge-queue bot pushed a commit that referenced this pull request May 14, 2025
Relates to: #8326
Relates to: #6675

(Extracted from #8325)

This PR introduces a new `OnNewHead` hook for
`pallet-bridge-parachains`, which is triggered when a new parachain head
is relayed.

It will be used in conjunction with the [syncing
mechanism](#8326), which
sends relayed AssetHubRococo headers with `state_root`s to
AssetHubWestend for message proof verification.

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This is continuation of
#8292

Adding new emulated test for open_bridge between PenpalA on AHW to
PenpalB on AHR as suggested here

#8292 (comment)

---------

Co-authored-by: Branislav Kontur <bkontur@gmail.com>
}

#[test]
fn para_to_para_open_close_bridge_works() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This test seems not testing on close_bridge like 'ah_to_ah_open_close_bridge_works()` above.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@rosarp please, check/fix with PR to the branch bko-permlanes-on-ahs

…dynamic fees handling for `ExportMessage` and local `ExportXcm`
@paritytech-review-bot paritytech-review-bot bot requested a review from a team July 10, 2025 13:24
rosarp and others added 3 commits July 16, 2025 12:41
Added two tests for AHR & AHW both.

- can_calculate_fee_for_standalone_message_delivery_transaction
- can_calculate_fee_for_standalone_message_confirmation_transaction

---------

Co-authored-by: Branislav Kontur <bkontur@gmail.com>
@paritytech-workflow-stopper
Copy link
Copy Markdown

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/16429704650
Failed job name: build-rustdoc

TarekkMA pushed a commit to moonbeam-foundation/polkadot-sdk that referenced this pull request Jul 28, 2025
…tech#8138)

This adds missing initial primitives to add CLI support for AssetHub
Bridging
earlier PR - paritytech#8063
source PR - paritytech#6675

It adds constants required to make this
[PR](paritytech/parity-bridges-common#3136 (comment))
build.

- [x] Make
[PR](paritytech/parity-bridges-common#3136)
build successful with these changes before merging

---------

Co-authored-by: Branislav Kontur <bkontur@gmail.com>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
TarekkMA pushed a commit to moonbeam-foundation/polkadot-sdk that referenced this pull request Aug 21, 2025
…tech#8138)

This adds missing initial primitives to add CLI support for AssetHub
Bridging
earlier PR - paritytech#8063
source PR - paritytech#6675

It adds constants required to make this
[PR](paritytech/parity-bridges-common#3136 (comment))
build.

- [x] Make
[PR](paritytech/parity-bridges-common#3136)
build successful with these changes before merging

---------

Co-authored-by: Branislav Kontur <bkontur@gmail.com>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
TarekkMA pushed a commit to moonbeam-foundation/polkadot-sdk that referenced this pull request Aug 22, 2025
…tech#8138)

This adds missing initial primitives to add CLI support for AssetHub
Bridging
earlier PR - paritytech#8063
source PR - paritytech#6675

It adds constants required to make this
[PR](paritytech/parity-bridges-common#3136 (comment))
build.

- [x] Make
[PR](paritytech/parity-bridges-common#3136)
build successful with these changes before merging

---------

Co-authored-by: Branislav Kontur <bkontur@gmail.com>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
RomarQ pushed a commit to moonbeam-foundation/polkadot-sdk that referenced this pull request Aug 29, 2025
…tech#8138)

This adds missing initial primitives to add CLI support for AssetHub
Bridging
earlier PR - paritytech#8063
source PR - paritytech#6675

It adds constants required to make this
[PR](paritytech/parity-bridges-common#3136 (comment))
build.

- [x] Make
[PR](paritytech/parity-bridges-common#3136)
build successful with these changes before merging

---------

Co-authored-by: Branislav Kontur <bkontur@gmail.com>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
alvicsam pushed a commit that referenced this pull request Oct 17, 2025
Relates to: #8326
Relates to: #6675

(Extracted from #8325)

This PR introduces a new `OnNewHead` hook for
`pallet-bridge-parachains`, which is triggered when a new parachain head
is relayed.

It will be used in conjunction with the [syncing
mechanism](#8326), which
sends relayed AssetHubRococo headers with `state_root`s to
AssetHubWestend for message proof verification.

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T15-bridges This PR/Issue is related to bridges.

Projects

Status: In Progress
Status: In-Review
Status: Backlog

Development

Successfully merging this pull request may close these issues.

4 participants