-
Notifications
You must be signed in to change notification settings - Fork 370
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
polkadot-sdk v1.13.0 uplift #1358
Conversation
Co-authored-by: Ermal Kaleci <[email protected]>
This reverts commit 6738535.
} | ||
|
||
// TODO: improve this function, reduce code duplication, especially on a such a functional level |
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.
I see you tried to resolve this with a good step forward but it's not what I had in mind 🙂
Right now the WeightToForeignAssetFee
is in no way bound to the pallet that actually handles the conversion, which is XcmAssetConfig
.
If you want to take this approach, I'd suggest to define this function directly in that pallet. That way it would be more tied together. Because even though you've introduced the new type with the function, it's not used inside aforementioned pallet, hence we still have unnecessary code (and functional) duplication.
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.
I have moved the weight_to_fee
logic directly into the XcAssetConfig
pallet. In the future, we could consider creating a WeightToFee
trait (similar to ExecutionPaymentRate
) to eliminate code duplication in astar-primitives. This might be outside the scope of this uplift, but it's something to keep in mind.
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.
make sense overall.
I have similar question on Xcm Recorder like Dino
Minimum allowed line rate is |
Pull Request Summary
Uplifts dependencies from
polkadot-sdk-v1.11.0
topolkadot-v1.13.0
.This uplift affects only runtimes and does not require any migration.
Runtime breaking Changes
RuntimeGenesisConfig
generic type is removed from GenericChainSpec - 4fc0e05::fees
in the xcm_fee_payment_runtime_api for theXcmPaymentApi
- 6d63a79MaxActiveOutboundChannels
andMaxPageSize
for xcmp_queue pallet - b6506ccXcmRecorder
for xcm_executor pallet - d190155Runtime enhancements
This API allows to dry-running extrinsics and XCM programs to get the messages (programs) need to be passed to the already implemented fees API
XcmPaymentApi
in previous uplift #1314.Steps:
dry_run_xcm
and extract the intermediate remote messagequery_xcm_weight
andquery_weight_to_asset_fee
Click here to check the API trait.
Check list