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

Added SetAssetClaimer instruction #5416

Closed
wants to merge 77 commits into from
Closed

Conversation

x3c41a
Copy link
Contributor

@x3c41a x3c41a commented Aug 20, 2024

For now only implementation.
The tests will follow-up.

@x3c41a x3c41a requested a review from a team as a code owner August 20, 2024 12:20
@x3c41a x3c41a added the T6-XCM This PR/Issue is related to XCM. label Aug 20, 2024
@x3c41a x3c41a force-pushed the xcm-v5-custom-asset-claimer branch from f6ea907 to adf6e83 Compare August 20, 2024 13:23
@@ -84,6 +84,7 @@ pub struct XcmExecutor<Config: config::Config> {
transact_status: MaybeErrorCode,
fees_mode: FeesMode,
_config: PhantomData<Config>,
assetClaimer: Option<Location>,
Copy link
Contributor

Choose a reason for hiding this comment

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

We're using CamelCase for struct names, and snake_case for variable/member names.

Suggested change
assetClaimer: Option<Location>,
asset_claimer: Option<Location>,

Please check
https://github.com/paritytech/polkadot-sdk/blob/master/docs/contributor/CONTRIBUTING.md
and
https://github.com/paritytech/polkadot-sdk/blob/master/docs/contributor/STYLE_GUIDE.md
for more contributor info.

tip: cargo can do most of the style formatting for you. Just run cargo fmt -p <crate-name> or cargo fmt --all.
In our case you should use the nightly version for formatting for some advanced linters we use: cargo +nightly fmt -p <crate-name>

Comment on lines 919 to 964
// TODO: modify the message by adding setAssetClaimer.
// replicate for teleport and regular withdraw functions.
// add e2e tests.
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to decide if we want to implicitly propagate the asset claimer location to forwarded XCMs, or we let the XCM builders explicitly configure it for each XCM run at each hop.

Aka, do we need to add it here, or expect the caller to have added it in xcm param (if they wanted a custom claimer on dest as well).

I am leaning towards the latter.

franciscoaguirre and others added 20 commits August 21, 2024 18:20
…coco --target_dir=polkadot --pallet=pallet_xcm_benchmarks::generic
…stend --target_dir=polkadot --pallet=pallet_xcm_benchmarks::generic
…retime-westend --runtime_dir=coretime --target_dir=cumulus --pallet=pallet_xcm_benchmarks::generic
@command-bot
Copy link

command-bot bot commented Sep 4, 2024

@x3c41a https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248505 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=people-westend --runtime_dir=people --target_dir=cumulus --pallet=pallet_xcm_benchmarks::generic. Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 12-8a6b9390-292a-44ca-9d48-c94b15b6d4f6 to cancel this command or bot cancel to cancel all commands in this pull request.

@command-bot
Copy link

command-bot bot commented Sep 4, 2024

@x3c41a https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248506 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=people-rococo --runtime_dir=people --target_dir=cumulus --pallet=pallet_xcm_benchmarks::generic. Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 13-fe70ee96-93ae-43ea-a184-2f55243db2b1 to cancel this command or bot cancel to cancel all commands in this pull request.

@command-bot
Copy link

command-bot bot commented Sep 4, 2024

@x3c41a Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=rococo --target_dir=polkadot --pallet=pallet_xcm_benchmarks::generic has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248496 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248496/artifacts/download.

@command-bot
Copy link

command-bot bot commented Sep 4, 2024

@x3c41a Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=westend --target_dir=polkadot --pallet=pallet_xcm_benchmarks::generic has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248495 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248495/artifacts/download.

@command-bot
Copy link

command-bot bot commented Sep 4, 2024

@x3c41a Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=asset-hub-westend --runtime_dir=assets --target_dir=cumulus --pallet=pallet_xcm_benchmarks::generic has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248498 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248498/artifacts/download.

@command-bot
Copy link

command-bot bot commented Sep 4, 2024

@x3c41a Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=people-rococo --runtime_dir=people --target_dir=cumulus --pallet=pallet_xcm_benchmarks::generic has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248506 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248506/artifacts/download.

@command-bot
Copy link

command-bot bot commented Sep 4, 2024

@x3c41a Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=coretime-rococo --runtime_dir=coretime --target_dir=cumulus --pallet=pallet_xcm_benchmarks::generic has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248501 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248501/artifacts/download.

@command-bot
Copy link

command-bot bot commented Sep 4, 2024

@x3c41a Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=asset-hub-rococo --runtime_dir=assets --target_dir=cumulus --pallet=pallet_xcm_benchmarks::generic has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248499 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248499/artifacts/download.

@command-bot
Copy link

command-bot bot commented Sep 4, 2024

@x3c41a Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=coretime-westend --runtime_dir=coretime --target_dir=cumulus --pallet=pallet_xcm_benchmarks::generic has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248500 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248500/artifacts/download.

@command-bot
Copy link

command-bot bot commented Sep 4, 2024

@x3c41a Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=bridge-hub-rococo --runtime_dir=bridge-hubs --target_dir=cumulus --pallet=pallet_xcm_benchmarks::generic has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248502 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248502/artifacts/download.

@command-bot
Copy link

command-bot bot commented Sep 4, 2024

@x3c41a Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=bridge-hub-westend --runtime_dir=bridge-hubs --target_dir=cumulus --pallet=pallet_xcm_benchmarks::generic has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248503 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248503/artifacts/download.

@command-bot
Copy link

command-bot bot commented Sep 4, 2024

@x3c41a Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=people-westend --runtime_dir=people --target_dir=cumulus --pallet=pallet_xcm_benchmarks::generic has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248505 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248505/artifacts/download.

@command-bot
Copy link

command-bot bot commented Sep 4, 2024

@x3c41a Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=contracts-rococo --runtime_dir=contracts --target_dir=cumulus --pallet=pallet_xcm_benchmarks::generic has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248504 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248504/artifacts/download.

@x3c41a
Copy link
Contributor Author

x3c41a commented Sep 4, 2024

bot bench polkadot-pallet --subcommand=xcm --runtime=westend --pallet=pallet_xcm_benchmarks::generic

@command-bot
Copy link

command-bot bot commented Sep 4, 2024

@x3c41a https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7249095 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=westend --target_dir=polkadot --pallet=pallet_xcm_benchmarks::generic. Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 14-17ec3c6e-6b82-43da-a88b-b9e9077ac463 to cancel this command or bot cancel to cancel all commands in this pull request.

@command-bot
Copy link

command-bot bot commented Sep 4, 2024

@x3c41a Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=westend --target_dir=polkadot --pallet=pallet_xcm_benchmarks::generic has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7249095 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7249095/artifacts/download.

@x3c41a x3c41a requested review from athei, koute and a team as code owners September 4, 2024 09:18
@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable-int
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7249411

@x3c41a
Copy link
Contributor Author

x3c41a commented Sep 5, 2024

bot bench polkadot-pallet --subcommand=xcm --runtime=westend --pallet=pallet_xcm_benchmarks::generic

@command-bot
Copy link

command-bot bot commented Sep 5, 2024

@x3c41a https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7261652 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=westend --target_dir=polkadot --pallet=pallet_xcm_benchmarks::generic. Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 18-e761bbe5-a639-4df1-a17d-f312a0557726 to cancel this command or bot cancel to cancel all commands in this pull request.

@command-bot
Copy link

command-bot bot commented Sep 5, 2024

@x3c41a Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=xcm --runtime=westend --target_dir=polkadot --pallet=pallet_xcm_benchmarks::generic has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7261652 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7261652/artifacts/download.

Base automatically changed from xcm-pay-fees to xcm-v5 October 17, 2024 12:35
@franciscoaguirre
Copy link
Contributor

Closing in favor of #5585

@franciscoaguirre franciscoaguirre deleted the xcm-v5-custom-asset-claimer branch October 21, 2024 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T6-XCM This PR/Issue is related to XCM.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants