-
Notifications
You must be signed in to change notification settings - Fork 1
Conversation
…et-xcm-fully-support-reserve-transfers
… instead of pallet_xcm
…et-xcm-fully-support-reserve-transfers
…et-xcm-fully-support-reserve-transfers
…et-xcm-fully-support-reserve-transfers
…-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
Alistair/send fees with xcm
Companion for snowbridge #1003
# 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
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 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( |
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.
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; |
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.
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; |
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.
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.
Closing in favour of #28. |
Update after fetching changes from https://github.com/paritytech/polkadot-sdk/pull/1672/files.
Snowbridge companion: Snowfork/snowbridge#1002