-
Notifications
You must be signed in to change notification settings - Fork 838
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
Conversation
9bec263
to
1f031ec
Compare
f6ea907
to
adf6e83
Compare
polkadot/xcm/xcm-executor/src/lib.rs
Outdated
@@ -84,6 +84,7 @@ pub struct XcmExecutor<Config: config::Config> { | |||
transact_status: MaybeErrorCode, | |||
fees_mode: FeesMode, | |||
_config: PhantomData<Config>, | |||
assetClaimer: Option<Location>, |
There was a problem hiding this comment.
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.
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>
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/xcm/mod.rs
Outdated
Show resolved
Hide resolved
polkadot/xcm/xcm-executor/src/lib.rs
Outdated
// TODO: modify the message by adding setAssetClaimer. | ||
// replicate for teleport and regular withdraw functions. | ||
// add e2e tests. |
There was a problem hiding this comment.
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.
…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
@x3c41a https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248505 was started for your command Comment |
@x3c41a https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7248506 was started for your command Comment |
@x3c41a Command |
@x3c41a Command |
@x3c41a Command |
@x3c41a Command |
@x3c41a Command |
@x3c41a Command |
@x3c41a Command |
@x3c41a Command |
@x3c41a Command |
@x3c41a Command |
@x3c41a Command |
bot bench polkadot-pallet --subcommand=xcm --runtime=westend --pallet=pallet_xcm_benchmarks::generic |
@x3c41a https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7249095 was started for your command Comment |
@x3c41a Command |
The CI pipeline was cancelled due to failure one of the required jobs. |
3066f6f
to
f0f1aac
Compare
bot bench polkadot-pallet --subcommand=xcm --runtime=westend --pallet=pallet_xcm_benchmarks::generic |
@x3c41a https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7261652 was started for your command Comment |
@x3c41a Command |
Closing in favor of #5585 |
For now only implementation.
The tests will follow-up.