Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Update Polkadot-SDK #18

Closed
wants to merge 257 commits into from
Closed

Update Polkadot-SDK #18

wants to merge 257 commits into from

Conversation

claravanstaden
Copy link
Collaborator

@claravanstaden claravanstaden commented Nov 6, 2023

Update after fetching changes from https://github.com/paritytech/polkadot-sdk/pull/1672/files.

Snowbridge companion: Snowfork/snowbridge#1002

@claravanstaden claravanstaden changed the base branch from pallet-xcm-fully-support-reserve-transfers to snowbridge November 10, 2023 13:23
…-from-adrian

# Conflicts:
#	Cargo.lock
#	cumulus/parachains/integration-tests/emulated/bridges/bridge-hub-rococo/Cargo.toml
#	cumulus/parachains/integration-tests/emulated/common/src/lib.rs
#	cumulus/parachains/integration-tests/emulated/tests/bridges/bridge-hub-rococo/src/tests/snowbridge.rs
@claravanstaden claravanstaden changed the base branch from snowbridge to pallet-xcm-fully-support-reserve-transfers November 10, 2023 13:30
claravanstaden added 5 commits November 13, 2023 18:07
# Conflicts:
#	cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs
#	cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/xcm_config.rs
#	polkadot/xcm/pallet-xcm/src/benchmarking.rs
#	polkadot/xcm/pallet-xcm/src/lib.rs
# Conflicts:
#	Cargo.lock
#	cumulus/parachains/integration-tests/emulated/bridges/bridge-hub-rococo/Cargo.toml
#	cumulus/parachains/integration-tests/emulated/bridges/bridge-hub-rococo/src/tests/snowbridge.rs
#	cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs
#	cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/xcm_config.rs
@claravanstaden claravanstaden changed the base branch from pallet-xcm-fully-support-reserve-transfers to master November 13, 2023 16:19
Copy link

Choose a reason for hiding this comment

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

I think we are going to get pushback on making these changes to the template parachain, especially when this parachain isn't really meant for testing.

Instead, we should use the PenPal test parachain. See the description here:

//! The PenPal runtime's primary use is for testing interactions between System parachains and

Apparently we can configure it with arbitrary parachain IDs

/// Send an XCM message as parachain sovereign.
#[pallet::call_index(2)]
#[pallet::weight(Weight::from_parts(100_000_000, 0))]
pub fn send_xcm(
Copy link

Choose a reason for hiding this comment

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

We should move this to the PenPal test parachain.

Can create a pallet for it somewhere under cumulus/parachains/runtimes/testing/penpal/

/// Polkadot uses 12 decimals, Kusama and Rococo 10 decimals.
pub const BridgeHubEthereumBaseFeeInDOT: u128 = 27_508_725_000;
pub const BridgeHubEthereumBaseFeeInKSM: u128 = 2_750_872_500_000;
pub const BridgeHubEthereumBaseFeeInRocs: u128 = 2_750_872_500_000;
Copy link

Choose a reason for hiding this comment

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

Suggested change
pub const BridgeHubEthereumBaseFeeInRocs: u128 = 2_750_872_500_000;
pub const BridgeHubEthereumBaseFeeInROC: u128 = 2_750_872_500_000;

@@ -20,6 +20,7 @@ pub mod kusama;
pub mod message_queue;
pub mod polkadot;
pub mod rococo;
pub mod snowbridge_config;
Copy link

Choose a reason for hiding this comment

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

We can't really put these configs in this crate - Its too specific to Snowbridge.

Can I suggest that we rather add this to each AssetHub runtime lib.rs:

parameter_types! {
      BridgeHubEthereumBaseFee = ...
}

Then I'm sure after submitting the PR we'll get more feedback about an appropriate place to put this config.

@claravanstaden
Copy link
Collaborator Author

Closing in favour of #28.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants