Update Substrate/Polkadot/Cumulus/Frontier dependency to 0.9.38#2145
Merged
Update Substrate/Polkadot/Cumulus/Frontier dependency to 0.9.38#2145
Conversation
# Conflicts: # Cargo.lock # Cargo.toml
notlesh
reviewed
Mar 23, 2023
notlesh
reviewed
Mar 23, 2023
20 tasks
girazoki
reviewed
Mar 24, 2023
girazoki
reviewed
Mar 24, 2023
girazoki
reviewed
Mar 24, 2023
Collaborator
girazoki
left a comment
There was a problem hiding this comment.
I dont see anything to pick on except the migration of RemoteTransactionInfoWithWeightLimit. We need to migrate the XcmV2Weight to weight as well, putting DEFAULT_PROOF_SIZE
This reverts commit 65e723c.
imstar15
pushed a commit
to AvaProtocol/moonbeam
that referenced
this pull request
May 16, 2023
* Init * update precompile xcm utils * update precompile xcm utils tests * update `pallet-erc20-xcm-bridge` * update `pallet-erc20-xcm-bridge` tests * update `xcm-primitives` * update `xcm-primitives` tests * update `pallet-xcm-transactor` + tests * update `moonbeam-xcm-benchmarks` + tests * update `pallet-evm-precompile-xtokens` + tests * update `pallet-evm-precompile-xcm-transactor` + tests * update `pallet-evm-precompile-xcm-utils` + tests * update `moonbase-runtime` + tests * cleanup * update `moonriver-runtime` + tests * update `moonbeam-runtime` + tests * update `moonbeam-rpc-debug` and `moonbeam-rpc-trace` * update `moonbeam-service` * some additional fixes, cargo check green * cleanup warnings * fmt * remove `XcmExecutorWrapper` * editorconfig * Update polkadot pin * Fix test build * Update `DEFAULT_PROOF_SIZE` in preocmpiles * Update `pallet-evm-precompileset-assets-erc20` test weights * Update `transact_through_signed_precompile_works_v1` test weight * update `RemoveItemsLimit` * wip fix ts tests * update `RemoveItemsLimit` 2 * wip update benchmarks * remove comment * update benchmarks * update `manual-xcm-rpc` * fix remaining dep version updates * wip fix ts tests * remove `XcmExecuteFilterWrapper` * comment on destroy accounts magic number * use `DEFAULT_PROOF_SIZE` const * comment on TODO handle proof size payment * fix `test-mock-hrmp-queue` * repin orml * repin cumulus * fix `test-mock-dmp-queue` test * wip `pallet-asset-manager` migration * `pallet-asset-manager` migration tests * wip `pallet-xcm-transactor` migration * `pallet-xcm-transactor` migration tests * fmt * toml-sort * editorconfig * remove unused * prettier * missing import * repin polkadot * migrate `RemoteTransactInfoWithMaxWeight` * set 0.75 `MAX_POV_SIZE` moonbase only * `pallet-asset-manager` fix pre and post upgrade tests * `pallet-xcm-transactor` fix pre and post upgrade tests * fmt * repin substrate * Revert "set 0.75 `MAX_POV_SIZE` moonbase only" This reverts commit 65e723c. * add defensive `transact_required_weight_at_most` value * Increase `DEFAULT_PROOF_SIZE` to 128kb * fmt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does it do?
0.9.38 dependency upgrade. Updates Moonbeam to add XcmV3 support.
Api changes and migrations
pallet-asset-manager
AssetIdType,AssetTypeId,AssetTypeUnitsPerSecond,SupportedFeePaymentAssetsstorage items are being migrated to XcmV3 MultiLocation.register_foreign_assetset_asset_units_per_secondchange_existing_asset_typeremove_supported_assetpallet-xcm-transactor
TransactInfoWithWeightLimit,DestinationAssetFeePerSecondstorage items are being migrated to XcmV3 MultiLocation.Config'sLocationInverterassociated type is removed.Config'sUniversalLocationassociated type is added.WeightV2.ErrorSendingevent is replaced byErrorDeliveringat the same index (10).ErrorValidatingat last index (25).WeightV2 as input break public Api:transact_through_derivativetransact_through_sovereignset_transact_inforemove_transact_infotransact_through_signedset_fee_per_secondremove_fee_per_secondhrmp_manageWhat important points reviewers should know?
Transactinstruction does not properly account for proof size Weight. To temporarily solve this, polkadot adds aSafeCallFilter, which are calls that are whitelisted inTransact. This calls typically have a fixedWeight, does not contain nested calls, have a defined proof size.. The implementation ofSafeCallFilterin Moonbeam is, at the time of writting, TODO, as we need to decide what to do with theEthereumXcm. What do we do?Is there something left for follow-up PRs?
moonbeam-xcm-benchmarks. New required functions are added astodo!in this PR.What alternative implementations were considered?
Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?
Upstream bugs have been found in the process of this update. They are either fixed or actively being fixed currently and properly backported to 0.9.38 release branches:
What value does it bring to the blockchain users?