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

Upgrade dependencies to polkadot v1.6.0 #389

Closed
wants to merge 18 commits into from
Closed

Conversation

ghost
Copy link

@ghost ghost commented Feb 22, 2024

Overview

paritytech/polkadot-sdk@release-polkadot-v1.1.0...release-polkadot-v1.6.0
polkadot-evm/frontier@polkadot-v1.1.0...polkadot-v1.6.0

Notable changes

  • All the config values for new pallets and new types are copied from cumulus-parachain-template unless commented otherwise
  • other changes are commented in a review below

@@ -214,19 +213,12 @@ pub mod pallet {
/// Just the `Currency::Balance` type; we have this item to allow us to
/// constrain it to `From<u64>`.
/// Note: Definition taken from pallet_gilt
type CurrencyBalance: sp_runtime::traits::AtLeast32BitUnsigned
Copy link
Author

Choose a reason for hiding this comment

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

all of these traits are not needed because they are already included in BalanceT trait

@@ -134,8 +134,11 @@ where
handle.record_cost(GasCalculator::<Runtime>::weight_to_gas(consumed_weight))?;

// Record Substrate related costs
// TODO: Add `ref_time` when precompiles are benchmarked
Copy link
Author

Choose a reason for hiding this comment

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

this was fixed by upstream frontier

type OutboundXcmpMessageSource = XcmpQueue;
type DmpMessageHandler = DmpQueue;
Copy link
Author

Choose a reason for hiding this comment

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

DmpQueue replaced by MessageQueue
paritytech/polkadot-sdk#1246

@@ -3,10 +3,11 @@
#![cfg(test)]
mod precompile_tests;
mod version_tests;
mod xcm_mock;
mod xcm_tests;
// TODO: uncomment this once we are using deps from crates.io
Copy link
Author

Choose a reason for hiding this comment

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

orml crates use deps from crates.io which causes version mismatch between polkadot-sdk deps and causes xcm-tests to fail. Generic refactor of xcm tests is needed:

  1. remove dependency on orml crates
  2. replace usage of DmpQueue with MessageQueue, see above why

@@ -44,7 +44,7 @@ pub type LocationToAccountId = (
);

/// Means for transacting assets on this chain.
pub type LocalAssetTransactor = CurrencyAdapter<
pub type LocalAssetTransactor = FungibleAdapter<
Copy link
Author

Choose a reason for hiding this comment

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

CurrencyAdapter replaced by FungiblesAdapter
paritytech/polkadot-sdk#3287

@ghost ghost marked this pull request as ready for review February 26, 2024 14:48
@ghost ghost self-assigned this Feb 26, 2024
@ghost ghost requested review from magecnion, asiniscalchi and ccubu February 26, 2024 14:48
@ghost ghost marked this pull request as draft February 26, 2024 15:00
@ghost ghost closed this Feb 29, 2024
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant