Skip to content

Adapt relayer to support syncing AssetHub parachains proof#3143

Merged
bkontur merged 32 commits intoparitytech:masterfrom
rosarp:rs-relay-parachains-cli
Apr 4, 2025
Merged

Adapt relayer to support syncing AssetHub parachains proof#3143
bkontur merged 32 commits intoparitytech:masterfrom
rosarp:rs-relay-parachains-cli

Conversation

@rosarp
Copy link
Copy Markdown
Member

@rosarp rosarp commented Mar 19, 2025

Resolves #3136

Existing cli:

./substrate-relay relay-parachains rococo-to-bridge-hub-westend
./substrate-relay relay-parachains westend-to-bridge-hub-rococo
./substrate-relay relay-parachains polkadot-to-bridge-hub-kusama
./substrate-relay relay-parachains kusama-to-bridge-hub-polkadot

New cli options added:

./substrate-relay relay-parachains bridge-hub-rococo-to-bridge-hub-westend
./substrate-relay relay-parachains bridge-hub-westend-to-bridge-hub-rococo
./substrate-relay relay-parachains asset-hub-rococo-to-bridge-hub-westend
./substrate-relay relay-parachains asset-hub-westend-to-bridge-hub-rococo
./substrate-relay relay-parachains bridge-hub-polkadot-to-bridge-hub-kusama
./substrate-relay relay-parachains bridge-hub-kusama-to-bridge-hub-polkadot
./substrate-relay relay-parachains asset-hub-polkadot-to-bridge-hub-kusama
./substrate-relay relay-parachains asset-hub-kusama-to-bridge-hub-polkadot

TODO:

Comment thread relay-clients/client-asset-hub-rococo/src/lib.rs Outdated
Comment thread relay-clients/client-asset-hub-rococo/src/lib.rs Outdated
@bkontur bkontur self-requested a review March 20, 2025 10:16
rosarp and others added 9 commits March 20, 2025 17:24
Co-authored-by: Branislav Kontur <[email protected]>
…arachains_to_bridge_hub_polkadot.rs

Co-authored-by: Branislav Kontur <[email protected]>
…arachains_to_bridge_hub_polkadot.rs


change to asset_hub

Co-authored-by: Branislav Kontur <[email protected]>
Comment thread relay-clients/client-asset-hub-rococo/src/lib.rs Outdated
Comment thread relay-clients/client-asset-hub-westend/src/lib.rs Outdated
rosarp and others added 2 commits March 25, 2025 09:24
Change LegacyLaneId to HashedLaneId for AH relay chains
order correctly SuffixedCommonTransactionExtension args

Co-authored-by: Branislav Kontur <[email protected]>
removed Ah change for kusama/polkadot
added relay messages
added TypeSubstitute for HashedLaneid
@rosarp rosarp marked this pull request as ready for review March 25, 2025 12:44
@rosarp rosarp requested review from acatangiu and serban300 March 25, 2025 13:18
@serban300
Copy link
Copy Markdown
Collaborator

serban300 commented Mar 27, 2025

@rosarp what is the status of this PR ? Is it ready for review ? I see that there is still a TODO left. Also please fix the CI failures

@rosarp
Copy link
Copy Markdown
Member Author

rosarp commented Mar 29, 2025

@serban300 This PR is ready for review.
I was waiting for paritytech/polkadot-sdk#8063 to close.
CI will need to be re-run now as 8063 is now merged, this should resolve. will check that.

Comment thread chains/chain-bridge-hub-kusama/src/lib.rs
added DecodeWithMemTracking
replaced structopt with clap parser for cli
Comment thread relay-clients/client-polkadot-bulletin/src/lib.rs Outdated
@rosarp
Copy link
Copy Markdown
Member Author

rosarp commented Apr 4, 2025

@bkontur @serban300 can we use same CI image as polkadot-sdk?
this is using CI_IMAGE: paritytech/ci-unified:bullseye-1.81.0-2024-09-11-v202409111034
while polkadot-sdk using: 1.84.1 last i checked.

this PR failing here

@rosarp rosarp requested a review from a team as a code owner April 4, 2025 10:15
@serban300
Copy link
Copy Markdown
Collaborator

@bkontur @serban300 can we use same CI image as polkadot-sdk? this is using CI_IMAGE: paritytech/ci-unified:bullseye-1.81.0-2024-09-11-v202409111034 while polkadot-sdk using: 1.84.1 last i checked.

this PR failing here

Yes, that would be good

Comment thread relay-clients/client-asset-hub-rococo/Cargo.toml Outdated
Comment thread relay-clients/client-asset-hub-westend/Cargo.toml Outdated
Comment thread relay-clients/client-polkadot-bulletin/src/lib.rs Outdated
Comment thread tools/runtime-codegen/src/main.rs Outdated
Comment thread relay-clients/client-polkadot-bulletin/src/lib.rs Outdated
Comment thread relay-clients/client-asset-hub-rococo/src/lib.rs Outdated
Comment thread relay-clients/client-asset-hub-westend/src/lib.rs Outdated
Comment thread relay-clients/client-asset-hub-rococo/src/lib.rs Outdated
Comment thread relay-clients/client-asset-hub-westend/src/lib.rs Outdated
},
};

use structopt::StructOpt;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@rosarp please, remove structopt from the main Cargo.toml/Cargo.lockl - as separate PR

Copy link
Copy Markdown
Collaborator

@bkontur bkontur left a comment

Choose a reason for hiding this comment

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

@rosarp good job, looks good, let's make the zombienet working for AH perm.lanes :)

@bkontur bkontur merged commit eb94744 into paritytech:master Apr 4, 2025
13 checks passed
@rosarp rosarp deleted the rs-relay-parachains-cli branch April 5, 2025 15:35
RomarQ pushed a commit to Moonsong-Labs/parity-bridges-common that referenced this pull request May 12, 2025
…h#3143)

* initial commit - Adapt relayer to support syncing AssetHub parachains proof

* adding AH messages

* Update relay-clients/client-asset-hub-rococo/src/lib.rs

Co-authored-by: Branislav Kontur <[email protected]>

* UtilityCall not required

Co-authored-by: Branislav Kontur <[email protected]>

* Update substrate-relay/src/bridges/kusama_polkadot/asset_hub_kusama_parachains_to_bridge_hub_polkadot.rs

Co-authored-by: Branislav Kontur <[email protected]>

* Update substrate-relay/src/bridges/kusama_polkadot/asset_hub_kusama_parachains_to_bridge_hub_polkadot.rs

change to asset_hub

Co-authored-by: Branislav Kontur <[email protected]>

* Remove MessagesCliBridge in AHP parachains to BHK

Co-authored-by: Branislav Kontur <[email protected]>

* Change to asset_hub in AHP parachains to BHK

Co-authored-by: Branislav Kontur <[email protected]>

* Change to asset_hub in AHP parachains to BHK

Co-authored-by: Branislav Kontur <[email protected]>

* Remove MessagesCliBridge in AHK parachains to BHP

Co-authored-by: Branislav Kontur <[email protected]>

* AssetHubRococo to AssetHubWestend messages

Co-authored-by: Branislav Kontur <[email protected]>

* Apply suggestions from code review

* removed unsed UtilityCall & MessagesCliBridge

* renamed *CliBrige to *ParachainsCliBridge

* Apply suggestions from code review

Change LegacyLaneId to HashedLaneId for AH relay chains
order correctly SuffixedCommonTransactionExtension args

Co-authored-by: Branislav Kontur <[email protected]>

* changed to HashedLaneId for AH
removed Ah change for kusama/polkadot
added relay messages
added TypeSubstitute for HashedLaneid

* Fixed errors while aligning to polkadot-sdk master
removed WITH_CHAIN_RELAYERS_PALLET_NAME from ChainWithMessages

* added missing dep. of relay-ah client
added DecodeWithMemTracking
replaced structopt with clap parser for cli

* Apply suggestions from code review

Co-authored-by: Branislav Kontur <[email protected]>

* updating Cargo.lock with latest polkadot-sdk hash

* updating CI_IMAGE to align with polkadot-sdk

* fixed cargo check

* fixed cli args for substrate-relay

* Apply suggestions from code review

* Update relay-clients/client-polkadot-bulletin/src/lib.rs

* Update relay-clients/client-asset-hub-rococo/src/lib.rs

* Update relay-clients/client-asset-hub-westend/src/lib.rs

* Update relay-clients/client-asset-hub-rococo/src/lib.rs

* Update relay-clients/client-asset-hub-westend/src/lib.rs

---------

Co-authored-by: Branislav Kontur <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Adapt relayer to support syncing AssetHub parachains proof

3 participants