Skip to content

Upgrade dependencies to polkadot v1.6.0#389

Closed
ghost wants to merge 18 commits intomainfrom
feat/polkadot-v1.6.0
Closed

Upgrade dependencies to polkadot v1.6.0#389
ghost wants to merge 18 commits intomainfrom
feat/polkadot-v1.6.0

Conversation

@ghost
Copy link
Copy Markdown

@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

/// 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
Copy Markdown
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

handle.record_cost(GasCalculator::<Runtime>::weight_to_gas(consumed_weight))?;

// Record Substrate related costs
// TODO: Add `ref_time` when precompiles are benchmarked
Copy link
Copy Markdown
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 SelfParaId = parachain_info::Pallet<Runtime>;
type SelfParaId = staging_parachain_info::Pallet<Runtime>;
type OutboundXcmpMessageSource = XcmpQueue;
type DmpMessageHandler = DmpQueue;
Copy link
Copy Markdown
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

mod version_tests;
mod xcm_mock;
mod xcm_tests;
// TODO: uncomment this once we are using deps from crates.io
Copy link
Copy Markdown
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


/// Means for transacting assets on this chain.
pub type LocalAssetTransactor = CurrencyAdapter<
pub type LocalAssetTransactor = FungibleAdapter<
Copy link
Copy Markdown
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 asiniscalchi, ccubu and magecnion 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.

1 participant